Socket
Socket
Sign inDemoInstall

rimraf

Package Overview
Dependencies
Maintainers
1
Versions
82
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

rimraf - npm Package Compare versions

Comparing version 4.0.0 to 4.0.1

2

dist/cjs/package.json
{
"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

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc