This commit is contained in:
metacryst
2026-01-09 11:14:27 -06:00
parent cf03c95664
commit 637c9e4674
2149 changed files with 527743 additions and 0 deletions

5
node_modules/rimraf/dist/esm/error.js generated vendored Normal file
View File

@@ -0,0 +1,5 @@
const isRecord = (o) => !!o && typeof o === 'object';
const hasString = (o, key) => key in o && typeof o[key] === 'string';
export const isFsError = (o) => isRecord(o) && hasString(o, 'code') && hasString(o, 'path');
export const errorCode = (er) => isRecord(er) && hasString(er, 'code') ? er.code : null;
//# sourceMappingURL=error.js.map