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.1.1 to 4.1.2

2

dist/cjs/package.json
{
"name": "rimraf",
"version": "4.1.1",
"version": "4.1.2",
"main": "./dist/cjs/src/index-cjs.js",

@@ -5,0 +5,0 @@ "module": "./dist/mjs/index.js",

@@ -54,2 +54,6 @@ #!/usr/bin/env node

}
else if (arg === '-rf' || arg === '-fr') {
// this never did anything, but people put it there I guess
continue;
}
else if (arg === '-h' || arg === '--help') {

@@ -56,0 +60,0 @@ console.log(exports.help);

@@ -9,9 +9,7 @@ "use strict";

const path_arg_js_1 = __importDefault(require("./path-arg.js"));
/* c8 ignore start */
const typeOrUndef = (val, t) => typeof val === 'undefined' || typeof val === t;
/* c8 ignore stop */
const isRimrafOptions = (o) => !!o &&
typeof o === 'object' &&
typeOrUndef(o.preserveRoot, 'boolean') &&
typeOrUndef(o.preserveRoot, 'number') &&
typeOrUndef(o.tmp, 'string') &&
typeOrUndef(o.maxRetries, 'number') &&

@@ -22,3 +20,2 @@ typeOrUndef(o.retryDelay, 'number') &&

exports.isRimrafOptions = isRimrafOptions;
/* c8 ignore start */
const assertRimrafOptions = (o) => {

@@ -30,3 +27,2 @@ if (!(0, exports.isRimrafOptions)(o)) {

exports.assertRimrafOptions = assertRimrafOptions;
/* c8 ignore stop */
const rimraf_manual_js_1 = require("./rimraf-manual.js");

@@ -33,0 +29,0 @@ const rimraf_move_remove_js_1 = require("./rimraf-move-remove.js");

import optArg from './opt-arg.js';
import pathArg from './path-arg.js';
/* c8 ignore start */
const typeOrUndef = (val, t) => typeof val === 'undefined' || typeof val === t;
/* c8 ignore stop */
export const isRimrafOptions = (o) => !!o &&
typeof o === 'object' &&
typeOrUndef(o.preserveRoot, 'boolean') &&
typeOrUndef(o.preserveRoot, 'number') &&
typeOrUndef(o.tmp, 'string') &&
typeOrUndef(o.maxRetries, 'number') &&

@@ -14,3 +12,2 @@ typeOrUndef(o.retryDelay, 'number') &&

typeOrUndef(o.maxBackoff, 'number');
/* c8 ignore start */
export const assertRimrafOptions = (o) => {

@@ -21,3 +18,2 @@ if (!isRimrafOptions(o)) {

};
/* c8 ignore stop */
import { rimrafManual, rimrafManualSync } from './rimraf-manual.js';

@@ -24,0 +20,0 @@ import { rimrafMoveRemove, rimrafMoveRemoveSync } from './rimraf-move-remove.js';

{
"name": "rimraf",
"version": "4.1.1",
"version": "4.1.2",
"main": "./dist/cjs/src/index-cjs.js",

@@ -5,0 +5,0 @@ "module": "./dist/mjs/index.js",

Sorry, the diff of this file is not supported yet

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