fix gitignore again
This commit is contained in:
parent
ce5a1e330b
commit
5da5c2afe2
3329 changed files with 364540 additions and 3 deletions
18
electron/node_modules/rimraf/dist/commonjs/use-native.js
generated
vendored
Normal file
18
electron/node_modules/rimraf/dist/commonjs/use-native.js
generated
vendored
Normal file
|
|
@ -0,0 +1,18 @@
|
|||
"use strict";
|
||||
Object.defineProperty(exports, "__esModule", { value: true });
|
||||
exports.useNativeSync = exports.useNative = void 0;
|
||||
/* c8 ignore next */
|
||||
const [major = 0, minor = 0] = process.version
|
||||
.replace(/^v/, '')
|
||||
.split('.')
|
||||
.map(v => parseInt(v, 10));
|
||||
const hasNative = major > 14 || (major === 14 && minor >= 14);
|
||||
// we do NOT use native by default on Windows, because Node's native
|
||||
// rm implementation is less advanced. Change this code if that changes.
|
||||
exports.useNative = !hasNative || process.platform === 'win32' ?
|
||||
() => false
|
||||
: opt => !opt?.signal && !opt?.filter;
|
||||
exports.useNativeSync = !hasNative || process.platform === 'win32' ?
|
||||
() => false
|
||||
: opt => !opt?.signal && !opt?.filter;
|
||||
//# sourceMappingURL=use-native.js.map
|
||||
Loading…
Add table
Add a link
Reference in a new issue