fix gitignore again
This commit is contained in:
parent
ce5a1e330b
commit
5da5c2afe2
3329 changed files with 364540 additions and 3 deletions
38
electron/node_modules/rimraf/dist/commonjs/fix-eperm.js
generated
vendored
Normal file
38
electron/node_modules/rimraf/dist/commonjs/fix-eperm.js
generated
vendored
Normal file
|
|
@ -0,0 +1,38 @@
|
|||
"use strict";
|
||||
Object.defineProperty(exports, "__esModule", { value: true });
|
||||
exports.fixEPERMSync = exports.fixEPERM = void 0;
|
||||
const error_js_1 = require("./error.js");
|
||||
const fs_js_1 = require("./fs.js");
|
||||
const ignore_enoent_js_1 = require("./ignore-enoent.js");
|
||||
const { chmod } = fs_js_1.promises;
|
||||
const fixEPERM = (fn) => async (path) => {
|
||||
try {
|
||||
return void (await (0, ignore_enoent_js_1.ignoreENOENT)(fn(path)));
|
||||
}
|
||||
catch (er) {
|
||||
if ((0, error_js_1.errorCode)(er) === 'EPERM') {
|
||||
if (!(await (0, ignore_enoent_js_1.ignoreENOENT)(chmod(path, 0o666).then(() => true), er))) {
|
||||
return;
|
||||
}
|
||||
return void (await fn(path));
|
||||
}
|
||||
throw er;
|
||||
}
|
||||
};
|
||||
exports.fixEPERM = fixEPERM;
|
||||
const fixEPERMSync = (fn) => (path) => {
|
||||
try {
|
||||
return void (0, ignore_enoent_js_1.ignoreENOENTSync)(() => fn(path));
|
||||
}
|
||||
catch (er) {
|
||||
if ((0, error_js_1.errorCode)(er) === 'EPERM') {
|
||||
if (!(0, ignore_enoent_js_1.ignoreENOENTSync)(() => ((0, fs_js_1.chmodSync)(path, 0o666), true), er)) {
|
||||
return;
|
||||
}
|
||||
return void fn(path);
|
||||
}
|
||||
throw er;
|
||||
}
|
||||
};
|
||||
exports.fixEPERMSync = fixEPERMSync;
|
||||
//# sourceMappingURL=fix-eperm.js.map
|
||||
Loading…
Add table
Add a link
Reference in a new issue