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

10
node_modules/rimraf/dist/commonjs/error.js generated vendored Normal file
View File

@@ -0,0 +1,10 @@
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.errorCode = exports.isFsError = void 0;
const isRecord = (o) => !!o && typeof o === 'object';
const hasString = (o, key) => key in o && typeof o[key] === 'string';
const isFsError = (o) => isRecord(o) && hasString(o, 'code') && hasString(o, 'path');
exports.isFsError = isFsError;
const errorCode = (er) => isRecord(er) && hasString(er, 'code') ? er.code : null;
exports.errorCode = errorCode;
//# sourceMappingURL=error.js.map