Comparing version 4.4.1 to 5.0.0
{ | ||
"name": "rimraf", | ||
"version": "4.4.1", | ||
"main": "./dist/cjs/src/index-cjs.js", | ||
"version": "5.0.0", | ||
"main": "./dist/cjs/src/index.js", | ||
"module": "./dist/mjs/index.js", | ||
@@ -16,3 +16,3 @@ "types": "./dist/mjs/index.d.ts", | ||
"types": "./dist/cjs/src/index.d.ts", | ||
"default": "./dist/cjs/src/index-cjs.js" | ||
"default": "./dist/cjs/src/index.js" | ||
} | ||
@@ -59,3 +59,3 @@ } | ||
"eslint-config-prettier": "^8.6.0", | ||
"mkdirp": "1", | ||
"mkdirp": "^3.0.0", | ||
"prettier": "^2.8.2", | ||
@@ -65,3 +65,3 @@ "tap": "^16.3.4", | ||
"typedoc": "^0.23.21", | ||
"typescript": "^4.9.3" | ||
"typescript": "^5.0.4" | ||
}, | ||
@@ -85,4 +85,4 @@ "tap": { | ||
"dependencies": { | ||
"glob": "^9.2.0" | ||
"glob": "^10.0.0" | ||
} | ||
} |
#!/usr/bin/env node | ||
"use strict"; | ||
var __importDefault = (this && this.__importDefault) || function (mod) { | ||
return (mod && mod.__esModule) ? mod : { "default": mod }; | ||
}; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
exports.help = void 0; | ||
const package_json_1 = require("../package.json"); | ||
const index_cjs_js_1 = __importDefault(require("./index-cjs.js")); | ||
const index_js_1 = require("./index.js"); | ||
const runHelpForUsage = () => console.error('run `rimraf --help` for usage information'); | ||
@@ -121,3 +118,3 @@ exports.help = `rimraf version ${package_json_1.version} | ||
let dashdash = false; | ||
let impl = index_cjs_js_1.default; | ||
let impl = index_js_1.rimraf; | ||
let interactive = false; | ||
@@ -197,3 +194,3 @@ for (const arg of args) { | ||
case 'rimraf': | ||
impl = index_cjs_js_1.default; | ||
impl = index_js_1.rimraf; | ||
continue; | ||
@@ -204,6 +201,6 @@ case 'native': | ||
case 'windows': | ||
impl = index_cjs_js_1.default[val]; | ||
impl = index_js_1.rimraf[val]; | ||
continue; | ||
case 'move-remove': | ||
impl = index_cjs_js_1.default.moveRemove; | ||
impl = index_js_1.rimraf.moveRemove; | ||
continue; | ||
@@ -239,3 +236,3 @@ default: | ||
} | ||
if (impl === index_cjs_js_1.default.native && (interactive || opt.filter)) { | ||
if (impl === index_js_1.rimraf.native && (interactive || opt.filter)) { | ||
console.error('native implementation does not support -v or -i'); | ||
@@ -242,0 +239,0 @@ runHelpForUsage(); |
@@ -44,5 +44,3 @@ /// <reference types="node" /> | ||
export declare const rimraf: ((path: string | string[], opt?: RimrafAsyncOptions) => Promise<boolean>) & { | ||
rimraf: ((path: string | string[], opt?: RimrafAsyncOptions) => Promise<boolean>) & { | ||
sync: (path: string | string[], opt?: RimrafSyncOptions) => boolean; | ||
}; | ||
rimraf: (path: string | string[], opt?: RimrafAsyncOptions) => Promise<boolean>; | ||
sync: (path: string | string[], opt?: RimrafSyncOptions) => boolean; | ||
@@ -71,3 +69,2 @@ rimrafSync: (path: string | string[], opt?: RimrafSyncOptions) => boolean; | ||
}; | ||
export default rimraf; | ||
//# sourceMappingURL=index.d.ts.map |
@@ -74,5 +74,5 @@ "use strict"; | ||
exports.sync = exports.rimrafSync; | ||
exports.rimraf = Object.assign(wrap((path, opt) => (0, use_native_js_1.useNative)(opt) ? (0, rimraf_native_js_1.rimrafNative)(path, opt) : (0, rimraf_manual_js_1.rimrafManual)(path, opt)), { | ||
// this weirdness because it's easier than explicitly declaring | ||
rimraf: exports.manual, | ||
const rimraf_ = wrap((path, opt) => (0, use_native_js_1.useNative)(opt) ? (0, rimraf_native_js_1.rimrafNative)(path, opt) : (0, rimraf_manual_js_1.rimrafManual)(path, opt)); | ||
exports.rimraf = Object.assign(rimraf_, { | ||
rimraf: rimraf_, | ||
sync: exports.rimrafSync, | ||
@@ -92,3 +92,2 @@ rimrafSync: exports.rimrafSync, | ||
exports.rimraf.rimraf = exports.rimraf; | ||
exports.default = exports.rimraf; | ||
//# sourceMappingURL=index.js.map |
@@ -44,5 +44,3 @@ /// <reference types="node" /> | ||
export declare const rimraf: ((path: string | string[], opt?: RimrafAsyncOptions) => Promise<boolean>) & { | ||
rimraf: ((path: string | string[], opt?: RimrafAsyncOptions) => Promise<boolean>) & { | ||
sync: (path: string | string[], opt?: RimrafSyncOptions) => boolean; | ||
}; | ||
rimraf: (path: string | string[], opt?: RimrafAsyncOptions) => Promise<boolean>; | ||
sync: (path: string | string[], opt?: RimrafSyncOptions) => boolean; | ||
@@ -71,3 +69,2 @@ rimrafSync: (path: string | string[], opt?: RimrafSyncOptions) => boolean; | ||
}; | ||
export default rimraf; | ||
//# sourceMappingURL=index.d.ts.map |
@@ -66,5 +66,5 @@ import { optArg, optArgSync } from './opt-arg.js'; | ||
export const sync = rimrafSync; | ||
export const rimraf = Object.assign(wrap((path, opt) => useNative(opt) ? rimrafNative(path, opt) : rimrafManual(path, opt)), { | ||
// this weirdness because it's easier than explicitly declaring | ||
rimraf: manual, | ||
const rimraf_ = wrap((path, opt) => useNative(opt) ? rimrafNative(path, opt) : rimrafManual(path, opt)); | ||
export const rimraf = Object.assign(rimraf_, { | ||
rimraf: rimraf_, | ||
sync: rimrafSync, | ||
@@ -84,3 +84,2 @@ rimrafSync: rimrafSync, | ||
rimraf.rimraf = rimraf; | ||
export default rimraf; | ||
//# sourceMappingURL=index.js.map |
{ | ||
"version": "4.4.0", | ||
"version": "4.4.1", | ||
"type": "module" | ||
} |
{ | ||
"name": "rimraf", | ||
"version": "4.4.1", | ||
"main": "./dist/cjs/src/index-cjs.js", | ||
"version": "5.0.0", | ||
"main": "./dist/cjs/src/index.js", | ||
"module": "./dist/mjs/index.js", | ||
@@ -16,3 +16,3 @@ "types": "./dist/mjs/index.d.ts", | ||
"types": "./dist/cjs/src/index.d.ts", | ||
"default": "./dist/cjs/src/index-cjs.js" | ||
"default": "./dist/cjs/src/index.js" | ||
} | ||
@@ -59,3 +59,3 @@ } | ||
"eslint-config-prettier": "^8.6.0", | ||
"mkdirp": "1", | ||
"mkdirp": "^3.0.0", | ||
"prettier": "^2.8.2", | ||
@@ -65,3 +65,3 @@ "tap": "^16.3.4", | ||
"typedoc": "^0.23.21", | ||
"typescript": "^4.9.3" | ||
"typescript": "^5.0.4" | ||
}, | ||
@@ -85,4 +85,4 @@ "tap": { | ||
"dependencies": { | ||
"glob": "^9.2.0" | ||
"glob": "^10.0.0" | ||
} | ||
} |
@@ -25,8 +25,4 @@ The [UNIX command](<http://en.wikipedia.org/wiki/Rm_(Unix)>) `rm -rf` for node. | ||
```js | ||
// default export is the main rimraf function, or use named imports | ||
import rimraf from 'rimraf' | ||
// or | ||
const rimraf = require('rimraf') | ||
// other strategies exported as well | ||
// 'rimraf' export is the one you probably want, but other | ||
// strategies exported as well. | ||
import { rimraf, rimrafSync, native, nativeSync } from 'rimraf' | ||
@@ -33,0 +29,0 @@ // or |
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
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
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
277335
137
2431
211
+ Added@isaacs/cliui@8.0.2(transitive)
+ Added@pkgjs/parseargs@0.11.0(transitive)
+ Addedansi-regex@5.0.16.1.0(transitive)
+ Addedansi-styles@4.3.06.2.1(transitive)
+ Addedcolor-convert@2.0.1(transitive)
+ Addedcolor-name@1.1.4(transitive)
+ Addedcross-spawn@7.0.3(transitive)
+ Addedeastasianwidth@0.2.0(transitive)
+ Addedemoji-regex@8.0.09.2.2(transitive)
+ Addedforeground-child@3.3.0(transitive)
+ Addedglob@10.4.5(transitive)
+ Addedis-fullwidth-code-point@3.0.0(transitive)
+ Addedisexe@2.0.0(transitive)
+ Addedjackspeak@3.4.3(transitive)
+ Addedminimatch@9.0.5(transitive)
+ Addedpackage-json-from-dist@1.0.0(transitive)
+ Addedpath-key@3.1.1(transitive)
+ Addedshebang-command@2.0.0(transitive)
+ Addedshebang-regex@3.0.0(transitive)
+ Addedsignal-exit@4.1.0(transitive)
+ Addedstring-width@4.2.35.1.2(transitive)
+ Addedstrip-ansi@6.0.17.1.0(transitive)
+ Addedwhich@2.0.2(transitive)
+ Addedwrap-ansi@7.0.08.1.0(transitive)
- Removedfs.realpath@1.0.0(transitive)
- Removedglob@9.3.5(transitive)
- Removedminimatch@8.0.4(transitive)
- Removedminipass@4.2.8(transitive)
Updatedglob@^10.0.0