Comparing version 4.0.0 to 4.0.1
{ | ||
"name": "rimraf", | ||
"version": "4.0.0", | ||
"version": "4.0.1", | ||
"main": "./dist/cjs/src/index.js", | ||
@@ -5,0 +5,0 @@ "module": "./dist/mjs/src/index.js", |
"use strict"; | ||
var __importDefault = (this && this.__importDefault) || function (mod) { | ||
return (mod && mod.__esModule) ? mod : { "default": mod }; | ||
}; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
@@ -7,4 +10,7 @@ exports.useNativeSync = exports.useNative = void 0; | ||
const hasNative = +versArr[0] > 14 || (+versArr[0] === 14 && +versArr[1] >= 14); | ||
exports.useNative = !hasNative ? () => false : () => true; | ||
exports.useNativeSync = !hasNative ? () => false : () => true; | ||
// we do NOT use native by default on Windows, because Node's native | ||
// rm implementation is less advanced. Change this code if that changes. | ||
const platform_1 = __importDefault(require("./platform")); | ||
exports.useNative = !hasNative || platform_1.default === 'win32' ? () => false : () => true; | ||
exports.useNativeSync = !hasNative || platform_1.default === 'win32' ? () => false : () => true; | ||
//# sourceMappingURL=use-native.js.map |
{ | ||
"name": "rimraf", | ||
"version": "4.0.0", | ||
"version": "4.0.1", | ||
"main": "./dist/cjs/src/index.js", | ||
@@ -5,0 +5,0 @@ "module": "./dist/mjs/src/index.js", |
const version = process.env.__TESTING_RIMRAF_NODE_VERSION__ || process.version; | ||
const versArr = version.replace(/^v/, '').split('.'); | ||
const hasNative = +versArr[0] > 14 || (+versArr[0] === 14 && +versArr[1] >= 14); | ||
export const useNative = !hasNative ? () => false : () => true; | ||
export const useNativeSync = !hasNative ? () => false : () => true; | ||
// we do NOT use native by default on Windows, because Node's native | ||
// rm implementation is less advanced. Change this code if that changes. | ||
import platform from './platform'; | ||
export const useNative = !hasNative || platform === 'win32' ? () => false : () => true; | ||
export const useNativeSync = !hasNative || platform === 'win32' ? () => false : () => true; | ||
//# sourceMappingURL=use-native.js.map |
{ | ||
"name": "rimraf", | ||
"version": "4.0.0", | ||
"version": "4.0.1", | ||
"main": "./dist/cjs/src/index.js", | ||
@@ -5,0 +5,0 @@ "module": "./dist/mjs/src/index.js", |
@@ -10,3 +10,4 @@ The [UNIX command](<http://en.wikipedia.org/wiki/Rm_(Unix)>) `rm -rf` for node. | ||
- Functions take arrays of paths, as well as a single path. | ||
- Native implementation used by default when available. | ||
- Native implementation used by default when available, except on | ||
Windows, where this implementation is faster and more reliable. | ||
- New implementation on Windows, falling back to "move then | ||
@@ -13,0 +14,0 @@ remove" strategy when exponential backoff for `EBUSY` fails to |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
Environment variable access
Supply chain riskPackage accesses environment variables, which may be a sign of credential stuffing or data theft.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
Found 1 instance in 1 package
149261
1898
167
0
9