Add capacitorjs runtime
This commit is contained in:
parent
d0ece489ee
commit
f90c0e6c40
8362 changed files with 1502407 additions and 1 deletions
19
node_modules/rimraf/dist/esm/ignore-enoent.js
generated
vendored
Normal file
19
node_modules/rimraf/dist/esm/ignore-enoent.js
generated
vendored
Normal file
|
|
@ -0,0 +1,19 @@
|
|||
import { errorCode } from './error.js';
|
||||
export const ignoreENOENT = async (p, rethrow) => p.catch(er => {
|
||||
if (errorCode(er) === 'ENOENT') {
|
||||
return;
|
||||
}
|
||||
throw rethrow ?? er;
|
||||
});
|
||||
export const ignoreENOENTSync = (fn, rethrow) => {
|
||||
try {
|
||||
return fn();
|
||||
}
|
||||
catch (er) {
|
||||
if (errorCode(er) === 'ENOENT') {
|
||||
return;
|
||||
}
|
||||
throw rethrow ?? er;
|
||||
}
|
||||
};
|
||||
//# sourceMappingURL=ignore-enoent.js.map
|
||||
Loading…
Add table
Add a link
Reference in a new issue