@gradientedge/cdk-utils 8.32.0 → 8.34.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/app/api-destined-function/layers/nodejs/node_modules/.yarn-integrity +15 -17
- package/app/api-destined-function/layers/nodejs/package.json +3 -3
- package/app/api-destined-function/node_modules/.yarn-integrity +296 -53
- package/app/api-destined-function/node_modules/@types/uuid/README.md +1 -1
- package/app/api-destined-function/node_modules/@types/uuid/index.d.ts +1 -1
- package/app/api-destined-function/node_modules/@types/uuid/package.json +3 -3
- package/app/api-destined-function/node_modules/brace-expansion/README.md +6 -0
- package/app/api-destined-function/node_modules/brace-expansion/index.js +86 -84
- package/app/api-destined-function/node_modules/brace-expansion/package.json +3 -4
- package/app/api-destined-function/node_modules/glob/LICENSE +1 -7
- package/app/api-destined-function/node_modules/glob/README.md +992 -284
- package/app/api-destined-function/node_modules/glob/dist/cjs/glob.d.ts +328 -0
- package/app/api-destined-function/node_modules/glob/dist/cjs/glob.d.ts.map +1 -0
- package/app/api-destined-function/node_modules/glob/dist/cjs/glob.js +228 -0
- package/app/api-destined-function/node_modules/glob/dist/cjs/glob.js.map +1 -0
- package/app/api-destined-function/node_modules/glob/dist/cjs/has-magic.d.ts +14 -0
- package/app/api-destined-function/node_modules/glob/dist/cjs/has-magic.d.ts.map +1 -0
- package/app/api-destined-function/node_modules/glob/dist/cjs/has-magic.js +27 -0
- package/app/api-destined-function/node_modules/glob/dist/cjs/has-magic.js.map +1 -0
- package/app/api-destined-function/node_modules/glob/dist/cjs/ignore.d.ts +20 -0
- package/app/api-destined-function/node_modules/glob/dist/cjs/ignore.d.ts.map +1 -0
- package/app/api-destined-function/node_modules/glob/dist/cjs/ignore.js +103 -0
- package/app/api-destined-function/node_modules/glob/dist/cjs/ignore.js.map +1 -0
- package/app/api-destined-function/node_modules/glob/dist/cjs/index-cjs.d.ts +75 -0
- package/app/api-destined-function/node_modules/glob/dist/cjs/index-cjs.d.ts.map +1 -0
- package/app/api-destined-function/node_modules/glob/dist/cjs/index-cjs.js +7 -0
- package/app/api-destined-function/node_modules/glob/dist/cjs/index-cjs.js.map +1 -0
- package/app/api-destined-function/node_modules/glob/dist/cjs/index.d.ts +96 -0
- package/app/api-destined-function/node_modules/glob/dist/cjs/index.d.ts.map +1 -0
- package/app/api-destined-function/node_modules/glob/dist/cjs/index.js +68 -0
- package/app/api-destined-function/node_modules/glob/dist/cjs/index.js.map +1 -0
- package/app/api-destined-function/node_modules/glob/dist/cjs/package.json +3 -0
- package/app/api-destined-function/node_modules/glob/dist/cjs/pattern.d.ts +77 -0
- package/app/api-destined-function/node_modules/glob/dist/cjs/pattern.d.ts.map +1 -0
- package/app/api-destined-function/node_modules/glob/dist/cjs/pattern.js +219 -0
- package/app/api-destined-function/node_modules/glob/dist/cjs/pattern.js.map +1 -0
- package/app/api-destined-function/node_modules/glob/dist/cjs/processor.d.ts +59 -0
- package/app/api-destined-function/node_modules/glob/dist/cjs/processor.d.ts.map +1 -0
- package/app/api-destined-function/node_modules/glob/dist/cjs/processor.js +309 -0
- package/app/api-destined-function/node_modules/glob/dist/cjs/processor.js.map +1 -0
- package/app/api-destined-function/node_modules/glob/dist/cjs/walker.d.ts +95 -0
- package/app/api-destined-function/node_modules/glob/dist/cjs/walker.d.ts.map +1 -0
- package/app/api-destined-function/node_modules/glob/dist/cjs/walker.js +360 -0
- package/app/api-destined-function/node_modules/glob/dist/cjs/walker.js.map +1 -0
- package/app/api-destined-function/node_modules/glob/dist/mjs/glob.d.ts +328 -0
- package/app/api-destined-function/node_modules/glob/dist/mjs/glob.d.ts.map +1 -0
- package/app/api-destined-function/node_modules/glob/dist/mjs/glob.js +224 -0
- package/app/api-destined-function/node_modules/glob/dist/mjs/glob.js.map +1 -0
- package/app/api-destined-function/node_modules/glob/dist/mjs/has-magic.d.ts +14 -0
- package/app/api-destined-function/node_modules/glob/dist/mjs/has-magic.d.ts.map +1 -0
- package/app/api-destined-function/node_modules/glob/dist/mjs/has-magic.js +23 -0
- package/app/api-destined-function/node_modules/glob/dist/mjs/has-magic.js.map +1 -0
- package/app/api-destined-function/node_modules/glob/dist/mjs/ignore.d.ts +20 -0
- package/app/api-destined-function/node_modules/glob/dist/mjs/ignore.d.ts.map +1 -0
- package/app/api-destined-function/node_modules/glob/dist/mjs/ignore.js +99 -0
- package/app/api-destined-function/node_modules/glob/dist/mjs/ignore.js.map +1 -0
- package/app/api-destined-function/node_modules/glob/dist/mjs/index.d.ts +96 -0
- package/app/api-destined-function/node_modules/glob/dist/mjs/index.d.ts.map +1 -0
- package/app/api-destined-function/node_modules/glob/dist/mjs/index.js +55 -0
- package/app/api-destined-function/node_modules/glob/dist/mjs/index.js.map +1 -0
- package/app/api-destined-function/node_modules/glob/dist/mjs/package.json +3 -0
- package/app/api-destined-function/node_modules/glob/dist/mjs/pattern.d.ts +77 -0
- package/app/api-destined-function/node_modules/glob/dist/mjs/pattern.d.ts.map +1 -0
- package/app/api-destined-function/node_modules/glob/dist/mjs/pattern.js +215 -0
- package/app/api-destined-function/node_modules/glob/dist/mjs/pattern.js.map +1 -0
- package/app/api-destined-function/node_modules/glob/dist/mjs/processor.d.ts +59 -0
- package/app/api-destined-function/node_modules/glob/dist/mjs/processor.d.ts.map +1 -0
- package/app/api-destined-function/node_modules/glob/dist/mjs/processor.js +302 -0
- package/app/api-destined-function/node_modules/glob/dist/mjs/processor.js.map +1 -0
- package/app/api-destined-function/node_modules/glob/dist/mjs/walker.d.ts +95 -0
- package/app/api-destined-function/node_modules/glob/dist/mjs/walker.d.ts.map +1 -0
- package/app/api-destined-function/node_modules/glob/dist/mjs/walker.js +351 -0
- package/app/api-destined-function/node_modules/glob/dist/mjs/walker.js.map +1 -0
- package/app/api-destined-function/node_modules/glob/package.json +76 -30
- package/app/api-destined-function/node_modules/{inflight → lru-cache}/LICENSE +1 -1
- package/app/api-destined-function/node_modules/lru-cache/README.md +1117 -0
- package/app/api-destined-function/node_modules/lru-cache/index.d.ts +869 -0
- package/app/api-destined-function/node_modules/lru-cache/index.js +1227 -0
- package/app/api-destined-function/node_modules/lru-cache/index.mjs +1227 -0
- package/app/api-destined-function/node_modules/lru-cache/package.json +96 -0
- package/app/api-destined-function/node_modules/minimatch/LICENSE +1 -1
- package/app/api-destined-function/node_modules/minimatch/README.md +305 -55
- package/app/api-destined-function/node_modules/minimatch/dist/cjs/brace-expressions.d.ts +8 -0
- package/app/api-destined-function/node_modules/minimatch/dist/cjs/brace-expressions.d.ts.map +1 -0
- package/app/api-destined-function/node_modules/minimatch/dist/cjs/brace-expressions.js +152 -0
- package/app/api-destined-function/node_modules/minimatch/dist/cjs/brace-expressions.js.map +1 -0
- package/app/api-destined-function/node_modules/minimatch/dist/cjs/escape.d.ts +12 -0
- package/app/api-destined-function/node_modules/minimatch/dist/cjs/escape.d.ts.map +1 -0
- package/app/api-destined-function/node_modules/minimatch/dist/cjs/escape.js +22 -0
- package/app/api-destined-function/node_modules/minimatch/dist/cjs/escape.js.map +1 -0
- package/app/api-destined-function/node_modules/minimatch/dist/cjs/index-cjs.d.ts +42 -0
- package/app/api-destined-function/node_modules/minimatch/dist/cjs/index-cjs.d.ts.map +1 -0
- package/app/api-destined-function/node_modules/minimatch/dist/cjs/index-cjs.js +7 -0
- package/app/api-destined-function/node_modules/minimatch/dist/cjs/index-cjs.js.map +1 -0
- package/app/api-destined-function/node_modules/minimatch/dist/cjs/index.d.ts +92 -0
- package/app/api-destined-function/node_modules/minimatch/dist/cjs/index.d.ts.map +1 -0
- package/app/api-destined-function/node_modules/minimatch/dist/cjs/index.js +1304 -0
- package/app/api-destined-function/node_modules/minimatch/dist/cjs/index.js.map +1 -0
- package/app/api-destined-function/node_modules/minimatch/dist/cjs/package.json +3 -0
- package/app/api-destined-function/node_modules/minimatch/dist/cjs/unescape.d.ts +17 -0
- package/app/api-destined-function/node_modules/minimatch/dist/cjs/unescape.d.ts.map +1 -0
- package/app/api-destined-function/node_modules/minimatch/dist/cjs/unescape.js +24 -0
- package/app/api-destined-function/node_modules/minimatch/dist/cjs/unescape.js.map +1 -0
- package/app/api-destined-function/node_modules/minimatch/dist/mjs/brace-expressions.d.ts +8 -0
- package/app/api-destined-function/node_modules/minimatch/dist/mjs/brace-expressions.d.ts.map +1 -0
- package/app/api-destined-function/node_modules/minimatch/dist/mjs/brace-expressions.js +148 -0
- package/app/api-destined-function/node_modules/minimatch/dist/mjs/brace-expressions.js.map +1 -0
- package/app/api-destined-function/node_modules/minimatch/dist/mjs/escape.d.ts +12 -0
- package/app/api-destined-function/node_modules/minimatch/dist/mjs/escape.d.ts.map +1 -0
- package/app/api-destined-function/node_modules/minimatch/dist/mjs/escape.js +18 -0
- package/app/api-destined-function/node_modules/minimatch/dist/mjs/escape.js.map +1 -0
- package/app/api-destined-function/node_modules/minimatch/dist/mjs/index.d.ts +92 -0
- package/app/api-destined-function/node_modules/minimatch/dist/mjs/index.d.ts.map +1 -0
- package/app/api-destined-function/node_modules/minimatch/dist/mjs/index.js +1289 -0
- package/app/api-destined-function/node_modules/minimatch/dist/mjs/index.js.map +1 -0
- package/app/api-destined-function/node_modules/minimatch/dist/mjs/package.json +3 -0
- package/app/api-destined-function/node_modules/minimatch/dist/mjs/unescape.d.ts +17 -0
- package/app/api-destined-function/node_modules/minimatch/dist/mjs/unescape.d.ts.map +1 -0
- package/app/api-destined-function/node_modules/minimatch/dist/mjs/unescape.js +20 -0
- package/app/api-destined-function/node_modules/minimatch/dist/mjs/unescape.js.map +1 -0
- package/app/api-destined-function/node_modules/minimatch/package.json +67 -11
- package/app/api-destined-function/node_modules/{once → minipass}/LICENSE +1 -1
- package/app/api-destined-function/node_modules/minipass/README.md +769 -0
- package/app/api-destined-function/node_modules/minipass/index.d.ts +150 -0
- package/app/api-destined-function/node_modules/minipass/index.js +702 -0
- package/app/api-destined-function/node_modules/minipass/index.mjs +702 -0
- package/app/api-destined-function/node_modules/minipass/package.json +76 -0
- package/app/api-destined-function/node_modules/mkdirp/dist/cjs/package.json +4 -3
- package/app/api-destined-function/node_modules/mkdirp/dist/cjs/src/bin.d.ts +1 -0
- package/app/api-destined-function/node_modules/mkdirp/dist/cjs/src/bin.d.ts.map +1 -0
- package/app/api-destined-function/node_modules/mkdirp/dist/cjs/src/bin.js +7 -0
- package/app/api-destined-function/node_modules/mkdirp/dist/cjs/src/bin.js.map +1 -1
- package/app/api-destined-function/node_modules/mkdirp/dist/cjs/src/find-made.d.ts +1 -0
- package/app/api-destined-function/node_modules/mkdirp/dist/cjs/src/find-made.d.ts.map +1 -0
- package/app/api-destined-function/node_modules/mkdirp/dist/cjs/src/index-cjs.d.ts +1 -0
- package/app/api-destined-function/node_modules/mkdirp/dist/cjs/src/index-cjs.d.ts.map +1 -0
- package/app/api-destined-function/node_modules/mkdirp/dist/cjs/src/index.d.ts +1 -0
- package/app/api-destined-function/node_modules/mkdirp/dist/cjs/src/index.d.ts.map +1 -0
- package/app/api-destined-function/node_modules/mkdirp/dist/cjs/src/mkdirp-manual.d.ts +1 -0
- package/app/api-destined-function/node_modules/mkdirp/dist/cjs/src/mkdirp-manual.d.ts.map +1 -0
- package/app/api-destined-function/node_modules/mkdirp/dist/cjs/src/mkdirp-native.d.ts +1 -0
- package/app/api-destined-function/node_modules/mkdirp/dist/cjs/src/mkdirp-native.d.ts.map +1 -0
- package/app/api-destined-function/node_modules/mkdirp/dist/cjs/src/opts-arg.d.ts +1 -0
- package/app/api-destined-function/node_modules/mkdirp/dist/cjs/src/opts-arg.d.ts.map +1 -0
- package/app/api-destined-function/node_modules/mkdirp/dist/cjs/src/path-arg.d.ts +1 -0
- package/app/api-destined-function/node_modules/mkdirp/dist/cjs/src/path-arg.d.ts.map +1 -0
- package/app/api-destined-function/node_modules/mkdirp/dist/cjs/src/use-native.d.ts +1 -0
- package/app/api-destined-function/node_modules/mkdirp/dist/cjs/src/use-native.d.ts.map +1 -0
- package/app/api-destined-function/node_modules/mkdirp/dist/mjs/find-made.d.ts +1 -0
- package/app/api-destined-function/node_modules/mkdirp/dist/mjs/find-made.d.ts.map +1 -0
- package/app/api-destined-function/node_modules/mkdirp/dist/mjs/index.d.ts +1 -0
- package/app/api-destined-function/node_modules/mkdirp/dist/mjs/index.d.ts.map +1 -0
- package/app/api-destined-function/node_modules/mkdirp/dist/mjs/mkdirp-manual.d.ts +1 -0
- package/app/api-destined-function/node_modules/mkdirp/dist/mjs/mkdirp-manual.d.ts.map +1 -0
- package/app/api-destined-function/node_modules/mkdirp/dist/mjs/mkdirp-native.d.ts +1 -0
- package/app/api-destined-function/node_modules/mkdirp/dist/mjs/mkdirp-native.d.ts.map +1 -0
- package/app/api-destined-function/node_modules/mkdirp/dist/mjs/opts-arg.d.ts +1 -0
- package/app/api-destined-function/node_modules/mkdirp/dist/mjs/opts-arg.d.ts.map +1 -0
- package/app/api-destined-function/node_modules/mkdirp/dist/mjs/path-arg.d.ts +1 -0
- package/app/api-destined-function/node_modules/mkdirp/dist/mjs/path-arg.d.ts.map +1 -0
- package/app/api-destined-function/node_modules/mkdirp/dist/mjs/use-native.d.ts +1 -0
- package/app/api-destined-function/node_modules/mkdirp/dist/mjs/use-native.d.ts.map +1 -0
- package/app/api-destined-function/node_modules/mkdirp/package.json +4 -3
- package/app/api-destined-function/node_modules/path-scurry/LICENSE.md +55 -0
- package/app/api-destined-function/node_modules/path-scurry/README.md +559 -0
- package/app/api-destined-function/node_modules/path-scurry/dist/cjs/index.d.ts +1055 -0
- package/app/api-destined-function/node_modules/path-scurry/dist/cjs/index.d.ts.map +1 -0
- package/app/api-destined-function/node_modules/path-scurry/dist/cjs/index.js +1865 -0
- package/app/api-destined-function/node_modules/path-scurry/dist/cjs/index.js.map +1 -0
- package/app/api-destined-function/node_modules/path-scurry/dist/cjs/package.json +3 -0
- package/app/api-destined-function/node_modules/path-scurry/dist/mjs/index.d.ts +1055 -0
- package/app/api-destined-function/node_modules/path-scurry/dist/mjs/index.d.ts.map +1 -0
- package/app/api-destined-function/node_modules/path-scurry/dist/mjs/index.js +1827 -0
- package/app/api-destined-function/node_modules/path-scurry/dist/mjs/index.js.map +1 -0
- package/app/api-destined-function/node_modules/path-scurry/dist/mjs/package.json +3 -0
- package/app/api-destined-function/node_modules/path-scurry/package.json +87 -0
- package/app/api-destined-function/node_modules/rimraf/LICENSE +1 -1
- package/app/api-destined-function/node_modules/rimraf/README.md +185 -72
- package/app/api-destined-function/node_modules/rimraf/dist/cjs/package.json +84 -0
- package/app/api-destined-function/node_modules/rimraf/dist/cjs/src/bin.d.ts +8 -0
- package/app/api-destined-function/node_modules/rimraf/dist/cjs/src/bin.d.ts.map +1 -0
- package/app/api-destined-function/node_modules/rimraf/dist/cjs/src/bin.js +260 -0
- package/app/api-destined-function/node_modules/rimraf/dist/cjs/src/bin.js.map +1 -0
- package/app/api-destined-function/node_modules/rimraf/dist/cjs/src/default-tmp.d.ts +3 -0
- package/app/api-destined-function/node_modules/rimraf/dist/cjs/src/default-tmp.d.ts.map +1 -0
- package/app/api-destined-function/node_modules/rimraf/dist/cjs/src/default-tmp.js +61 -0
- package/app/api-destined-function/node_modules/rimraf/dist/cjs/src/default-tmp.js.map +1 -0
- package/app/api-destined-function/node_modules/rimraf/dist/cjs/src/fix-eperm.d.ts +3 -0
- package/app/api-destined-function/node_modules/rimraf/dist/cjs/src/fix-eperm.d.ts.map +1 -0
- package/app/api-destined-function/node_modules/rimraf/dist/cjs/src/fix-eperm.js +58 -0
- package/app/api-destined-function/node_modules/rimraf/dist/cjs/src/fix-eperm.js.map +1 -0
- package/app/api-destined-function/node_modules/rimraf/dist/cjs/src/fs.d.ts +17 -0
- package/app/api-destined-function/node_modules/rimraf/dist/cjs/src/fs.d.ts.map +1 -0
- package/app/api-destined-function/node_modules/rimraf/dist/cjs/src/fs.js +46 -0
- package/app/api-destined-function/node_modules/rimraf/dist/cjs/src/fs.js.map +1 -0
- package/app/api-destined-function/node_modules/rimraf/dist/cjs/src/ignore-enoent.d.ts +3 -0
- package/app/api-destined-function/node_modules/rimraf/dist/cjs/src/ignore-enoent.d.ts.map +1 -0
- package/app/api-destined-function/node_modules/rimraf/dist/cjs/src/ignore-enoent.js +21 -0
- package/app/api-destined-function/node_modules/rimraf/dist/cjs/src/ignore-enoent.js.map +1 -0
- package/app/api-destined-function/node_modules/rimraf/dist/cjs/src/index-cjs.d.ts +57 -0
- package/app/api-destined-function/node_modules/rimraf/dist/cjs/src/index-cjs.d.ts.map +1 -0
- package/app/api-destined-function/node_modules/rimraf/dist/cjs/src/index-cjs.js +7 -0
- package/app/api-destined-function/node_modules/rimraf/dist/cjs/src/index-cjs.js.map +1 -0
- package/app/api-destined-function/node_modules/rimraf/dist/cjs/src/index.d.ts +71 -0
- package/app/api-destined-function/node_modules/rimraf/dist/cjs/src/index.d.ts.map +1 -0
- package/app/api-destined-function/node_modules/rimraf/dist/cjs/src/index.js +92 -0
- package/app/api-destined-function/node_modules/rimraf/dist/cjs/src/index.js.map +1 -0
- package/app/api-destined-function/node_modules/rimraf/dist/cjs/src/opt-arg.d.ts +17 -0
- package/app/api-destined-function/node_modules/rimraf/dist/cjs/src/opt-arg.d.ts.map +1 -0
- package/app/api-destined-function/node_modules/rimraf/dist/cjs/src/opt-arg.js +36 -0
- package/app/api-destined-function/node_modules/rimraf/dist/cjs/src/opt-arg.js.map +1 -0
- package/app/api-destined-function/node_modules/rimraf/dist/cjs/src/path-arg.d.ts +4 -0
- package/app/api-destined-function/node_modules/rimraf/dist/cjs/src/path-arg.d.ts.map +1 -0
- package/app/api-destined-function/node_modules/rimraf/dist/cjs/src/path-arg.js +54 -0
- package/app/api-destined-function/node_modules/rimraf/dist/cjs/src/path-arg.js.map +1 -0
- package/app/api-destined-function/node_modules/rimraf/dist/cjs/src/platform.d.ts +3 -0
- package/app/api-destined-function/node_modules/rimraf/dist/cjs/src/platform.d.ts.map +1 -0
- package/app/api-destined-function/node_modules/rimraf/dist/cjs/src/platform.js +4 -0
- package/app/api-destined-function/node_modules/rimraf/dist/cjs/src/platform.js.map +1 -0
- package/app/api-destined-function/node_modules/rimraf/dist/cjs/src/readdir-or-error.d.ts +5 -0
- package/app/api-destined-function/node_modules/rimraf/dist/cjs/src/readdir-or-error.d.ts.map +1 -0
- package/app/api-destined-function/node_modules/rimraf/dist/cjs/src/readdir-or-error.js +19 -0
- package/app/api-destined-function/node_modules/rimraf/dist/cjs/src/readdir-or-error.js.map +1 -0
- package/app/api-destined-function/node_modules/rimraf/dist/cjs/src/retry-busy.d.ts +8 -0
- package/app/api-destined-function/node_modules/rimraf/dist/cjs/src/retry-busy.d.ts.map +1 -0
- package/app/api-destined-function/node_modules/rimraf/dist/cjs/src/retry-busy.js +68 -0
- package/app/api-destined-function/node_modules/rimraf/dist/cjs/src/retry-busy.js.map +1 -0
- package/app/api-destined-function/node_modules/rimraf/dist/cjs/src/rimraf-manual.d.ts +3 -0
- package/app/api-destined-function/node_modules/rimraf/dist/cjs/src/rimraf-manual.d.ts.map +1 -0
- package/app/api-destined-function/node_modules/rimraf/dist/cjs/src/rimraf-manual.js +12 -0
- package/app/api-destined-function/node_modules/rimraf/dist/cjs/src/rimraf-manual.js.map +1 -0
- package/app/api-destined-function/node_modules/rimraf/dist/cjs/src/rimraf-move-remove.d.ts +4 -0
- package/app/api-destined-function/node_modules/rimraf/dist/cjs/src/rimraf-move-remove.d.ts.map +1 -0
- package/app/api-destined-function/node_modules/rimraf/dist/cjs/src/rimraf-move-remove.js +192 -0
- package/app/api-destined-function/node_modules/rimraf/dist/cjs/src/rimraf-move-remove.js.map +1 -0
- package/app/api-destined-function/node_modules/rimraf/dist/cjs/src/rimraf-native.d.ts +4 -0
- package/app/api-destined-function/node_modules/rimraf/dist/cjs/src/rimraf-native.d.ts.map +1 -0
- package/app/api-destined-function/node_modules/rimraf/dist/cjs/src/rimraf-native.js +24 -0
- package/app/api-destined-function/node_modules/rimraf/dist/cjs/src/rimraf-native.js.map +1 -0
- package/app/api-destined-function/node_modules/rimraf/dist/cjs/src/rimraf-posix.d.ts +4 -0
- package/app/api-destined-function/node_modules/rimraf/dist/cjs/src/rimraf-posix.d.ts.map +1 -0
- package/app/api-destined-function/node_modules/rimraf/dist/cjs/src/rimraf-posix.js +123 -0
- package/app/api-destined-function/node_modules/rimraf/dist/cjs/src/rimraf-posix.js.map +1 -0
- package/app/api-destined-function/node_modules/rimraf/dist/cjs/src/rimraf-windows.d.ts +4 -0
- package/app/api-destined-function/node_modules/rimraf/dist/cjs/src/rimraf-windows.d.ts.map +1 -0
- package/app/api-destined-function/node_modules/rimraf/dist/cjs/src/rimraf-windows.js +182 -0
- package/app/api-destined-function/node_modules/rimraf/dist/cjs/src/rimraf-windows.js.map +1 -0
- package/app/api-destined-function/node_modules/rimraf/dist/cjs/src/use-native.d.ts +4 -0
- package/app/api-destined-function/node_modules/rimraf/dist/cjs/src/use-native.d.ts.map +1 -0
- package/app/api-destined-function/node_modules/rimraf/dist/cjs/src/use-native.js +19 -0
- package/app/api-destined-function/node_modules/rimraf/dist/cjs/src/use-native.js.map +1 -0
- package/app/api-destined-function/node_modules/rimraf/dist/mjs/default-tmp.d.ts +3 -0
- package/app/api-destined-function/node_modules/rimraf/dist/mjs/default-tmp.d.ts.map +1 -0
- package/app/api-destined-function/node_modules/rimraf/dist/mjs/default-tmp.js +55 -0
- package/app/api-destined-function/node_modules/rimraf/dist/mjs/default-tmp.js.map +1 -0
- package/app/api-destined-function/node_modules/rimraf/dist/mjs/fix-eperm.d.ts +3 -0
- package/app/api-destined-function/node_modules/rimraf/dist/mjs/fix-eperm.d.ts.map +1 -0
- package/app/api-destined-function/node_modules/rimraf/dist/mjs/fix-eperm.js +53 -0
- package/app/api-destined-function/node_modules/rimraf/dist/mjs/fix-eperm.js.map +1 -0
- package/app/api-destined-function/node_modules/rimraf/dist/mjs/fs.d.ts +17 -0
- package/app/api-destined-function/node_modules/rimraf/dist/mjs/fs.d.ts.map +1 -0
- package/app/api-destined-function/node_modules/rimraf/dist/mjs/fs.js +31 -0
- package/app/api-destined-function/node_modules/rimraf/dist/mjs/fs.js.map +1 -0
- package/app/api-destined-function/node_modules/rimraf/dist/mjs/ignore-enoent.d.ts +3 -0
- package/app/api-destined-function/node_modules/rimraf/dist/mjs/ignore-enoent.d.ts.map +1 -0
- package/app/api-destined-function/node_modules/rimraf/dist/mjs/ignore-enoent.js +16 -0
- package/app/api-destined-function/node_modules/rimraf/dist/mjs/ignore-enoent.js.map +1 -0
- package/app/api-destined-function/node_modules/rimraf/dist/mjs/index.d.ts +71 -0
- package/app/api-destined-function/node_modules/rimraf/dist/mjs/index.d.ts.map +1 -0
- package/app/api-destined-function/node_modules/rimraf/dist/mjs/index.js +84 -0
- package/app/api-destined-function/node_modules/rimraf/dist/mjs/index.js.map +1 -0
- package/app/api-destined-function/node_modules/rimraf/dist/mjs/opt-arg.d.ts +17 -0
- package/app/api-destined-function/node_modules/rimraf/dist/mjs/opt-arg.d.ts.map +1 -0
- package/app/api-destined-function/node_modules/rimraf/dist/mjs/opt-arg.js +31 -0
- package/app/api-destined-function/node_modules/rimraf/dist/mjs/opt-arg.js.map +1 -0
- package/app/api-destined-function/node_modules/rimraf/dist/mjs/package.json +4 -0
- package/app/api-destined-function/node_modules/rimraf/dist/mjs/path-arg.d.ts +4 -0
- package/app/api-destined-function/node_modules/rimraf/dist/mjs/path-arg.d.ts.map +1 -0
- package/app/api-destined-function/node_modules/rimraf/dist/mjs/path-arg.js +49 -0
- package/app/api-destined-function/node_modules/rimraf/dist/mjs/path-arg.js.map +1 -0
- package/app/api-destined-function/node_modules/rimraf/dist/mjs/platform.d.ts +3 -0
- package/app/api-destined-function/node_modules/rimraf/dist/mjs/platform.d.ts.map +1 -0
- package/app/api-destined-function/node_modules/rimraf/dist/mjs/platform.js +2 -0
- package/app/api-destined-function/node_modules/rimraf/dist/mjs/platform.js.map +1 -0
- package/app/api-destined-function/node_modules/rimraf/dist/mjs/readdir-or-error.d.ts +5 -0
- package/app/api-destined-function/node_modules/rimraf/dist/mjs/readdir-or-error.d.ts.map +1 -0
- package/app/api-destined-function/node_modules/rimraf/dist/mjs/readdir-or-error.js +14 -0
- package/app/api-destined-function/node_modules/rimraf/dist/mjs/readdir-or-error.js.map +1 -0
- package/app/api-destined-function/node_modules/rimraf/dist/mjs/retry-busy.d.ts +8 -0
- package/app/api-destined-function/node_modules/rimraf/dist/mjs/retry-busy.d.ts.map +1 -0
- package/app/api-destined-function/node_modules/rimraf/dist/mjs/retry-busy.js +63 -0
- package/app/api-destined-function/node_modules/rimraf/dist/mjs/retry-busy.js.map +1 -0
- package/app/api-destined-function/node_modules/rimraf/dist/mjs/rimraf-manual.d.ts +3 -0
- package/app/api-destined-function/node_modules/rimraf/dist/mjs/rimraf-manual.d.ts.map +1 -0
- package/app/api-destined-function/node_modules/rimraf/dist/mjs/rimraf-manual.js +6 -0
- package/app/api-destined-function/node_modules/rimraf/dist/mjs/rimraf-manual.js.map +1 -0
- package/app/api-destined-function/node_modules/rimraf/dist/mjs/rimraf-move-remove.d.ts +4 -0
- package/app/api-destined-function/node_modules/rimraf/dist/mjs/rimraf-move-remove.d.ts.map +1 -0
- package/app/api-destined-function/node_modules/rimraf/dist/mjs/rimraf-move-remove.js +187 -0
- package/app/api-destined-function/node_modules/rimraf/dist/mjs/rimraf-move-remove.js.map +1 -0
- package/app/api-destined-function/node_modules/rimraf/dist/mjs/rimraf-native.d.ts +4 -0
- package/app/api-destined-function/node_modules/rimraf/dist/mjs/rimraf-native.d.ts.map +1 -0
- package/app/api-destined-function/node_modules/rimraf/dist/mjs/rimraf-native.js +19 -0
- package/app/api-destined-function/node_modules/rimraf/dist/mjs/rimraf-native.js.map +1 -0
- package/app/api-destined-function/node_modules/rimraf/dist/mjs/rimraf-posix.d.ts +4 -0
- package/app/api-destined-function/node_modules/rimraf/dist/mjs/rimraf-posix.d.ts.map +1 -0
- package/app/api-destined-function/node_modules/rimraf/dist/mjs/rimraf-posix.js +118 -0
- package/app/api-destined-function/node_modules/rimraf/dist/mjs/rimraf-posix.js.map +1 -0
- package/app/api-destined-function/node_modules/rimraf/dist/mjs/rimraf-windows.d.ts +4 -0
- package/app/api-destined-function/node_modules/rimraf/dist/mjs/rimraf-windows.d.ts.map +1 -0
- package/app/api-destined-function/node_modules/rimraf/dist/mjs/rimraf-windows.js +177 -0
- package/app/api-destined-function/node_modules/rimraf/dist/mjs/rimraf-windows.js.map +1 -0
- package/app/api-destined-function/node_modules/rimraf/dist/mjs/use-native.d.ts +4 -0
- package/app/api-destined-function/node_modules/rimraf/dist/mjs/use-native.d.ts.map +1 -0
- package/app/api-destined-function/node_modules/rimraf/dist/mjs/use-native.js +13 -0
- package/app/api-destined-function/node_modules/rimraf/dist/mjs/use-native.js.map +1 -0
- package/app/api-destined-function/node_modules/rimraf/package.json +67 -15
- package/app/api-destined-function/package.json +3 -3
- package/dist/src/lib/common/stack.js +1 -1
- package/package.json +11 -11
- package/src/lib/common/stack.ts +1 -1
- package/app/api-destined-function/node_modules/concat-map/.travis.yml +0 -4
- package/app/api-destined-function/node_modules/concat-map/LICENSE +0 -18
- package/app/api-destined-function/node_modules/concat-map/README.markdown +0 -62
- package/app/api-destined-function/node_modules/concat-map/example/map.js +0 -6
- package/app/api-destined-function/node_modules/concat-map/index.js +0 -13
- package/app/api-destined-function/node_modules/concat-map/package.json +0 -43
- package/app/api-destined-function/node_modules/glob/common.js +0 -236
- package/app/api-destined-function/node_modules/glob/glob.js +0 -787
- package/app/api-destined-function/node_modules/glob/sync.js +0 -483
- package/app/api-destined-function/node_modules/inflight/README.md +0 -37
- package/app/api-destined-function/node_modules/inflight/inflight.js +0 -54
- package/app/api-destined-function/node_modules/inflight/package.json +0 -29
- package/app/api-destined-function/node_modules/inherits/LICENSE +0 -16
- package/app/api-destined-function/node_modules/inherits/README.md +0 -42
- package/app/api-destined-function/node_modules/inherits/inherits.js +0 -9
- package/app/api-destined-function/node_modules/inherits/inherits_browser.js +0 -27
- package/app/api-destined-function/node_modules/inherits/package.json +0 -29
- package/app/api-destined-function/node_modules/minimatch/minimatch.js +0 -952
- package/app/api-destined-function/node_modules/once/README.md +0 -79
- package/app/api-destined-function/node_modules/once/once.js +0 -42
- package/app/api-destined-function/node_modules/once/package.json +0 -33
- package/app/api-destined-function/node_modules/path-is-absolute/index.js +0 -20
- package/app/api-destined-function/node_modules/path-is-absolute/license +0 -21
- package/app/api-destined-function/node_modules/path-is-absolute/package.json +0 -43
- package/app/api-destined-function/node_modules/path-is-absolute/readme.md +0 -59
- package/app/api-destined-function/node_modules/rimraf/bin.js +0 -68
- package/app/api-destined-function/node_modules/rimraf/rimraf.js +0 -360
- package/app/api-destined-function/node_modules/wrappy/LICENSE +0 -15
- package/app/api-destined-function/node_modules/wrappy/README.md +0 -36
- package/app/api-destined-function/node_modules/wrappy/package.json +0 -29
- package/app/api-destined-function/node_modules/wrappy/wrappy.js +0 -33
|
@@ -0,0 +1,260 @@
|
|
|
1
|
+
#!/usr/bin/env node
|
|
2
|
+
"use strict";
|
|
3
|
+
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
4
|
+
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
5
|
+
};
|
|
6
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
7
|
+
exports.help = void 0;
|
|
8
|
+
const package_json_1 = require("../package.json");
|
|
9
|
+
const index_cjs_js_1 = __importDefault(require("./index-cjs.js"));
|
|
10
|
+
const runHelpForUsage = () => console.error('run `rimraf --help` for usage information');
|
|
11
|
+
exports.help = `rimraf version ${package_json_1.version}
|
|
12
|
+
|
|
13
|
+
Usage: rimraf <path> [<path> ...]
|
|
14
|
+
Deletes all files and folders at "path", recursively.
|
|
15
|
+
|
|
16
|
+
Options:
|
|
17
|
+
-- Treat all subsequent arguments as paths
|
|
18
|
+
-h --help Display this usage info
|
|
19
|
+
--preserve-root Do not remove '/' recursively (default)
|
|
20
|
+
--no-preserve-root Do not treat '/' specially
|
|
21
|
+
-G --no-glob Treat arguments as literal paths, not globs (default)
|
|
22
|
+
-g --glob Treat arguments as glob patterns
|
|
23
|
+
-v --verbose Be verbose when deleting files, showing them as
|
|
24
|
+
they are removed. Not compatible with --impl=native
|
|
25
|
+
-V --no-verbose Be silent when deleting files, showing nothing as
|
|
26
|
+
they are removed (default)
|
|
27
|
+
-i --interactive Ask for confirmation before deleting anything
|
|
28
|
+
Not compatible with --impl=native
|
|
29
|
+
-I --no-interactive Do not ask for confirmation before deleting
|
|
30
|
+
|
|
31
|
+
--impl=<type> Specify the implementation to use:
|
|
32
|
+
rimraf: choose the best option (default)
|
|
33
|
+
native: the built-in implementation in Node.js
|
|
34
|
+
manual: the platform-specific JS implementation
|
|
35
|
+
posix: the Posix JS implementation
|
|
36
|
+
windows: the Windows JS implementation (falls back to
|
|
37
|
+
move-remove on ENOTEMPTY)
|
|
38
|
+
move-remove: a slow reliable Windows fallback
|
|
39
|
+
|
|
40
|
+
Implementation-specific options:
|
|
41
|
+
--tmp=<path> Temp file folder for 'move-remove' implementation
|
|
42
|
+
--max-retries=<n> maxRetries for 'native' and 'windows' implementations
|
|
43
|
+
--retry-delay=<n> retryDelay for 'native' implementation, default 100
|
|
44
|
+
--backoff=<n> Exponential backoff factor for retries (default: 1.2)
|
|
45
|
+
`;
|
|
46
|
+
const path_1 = require("path");
|
|
47
|
+
const cwd = process.cwd();
|
|
48
|
+
const readline_1 = require("readline");
|
|
49
|
+
const prompt = async (rl, q) => new Promise(res => rl.question(q, res));
|
|
50
|
+
const interactiveRimraf = async (impl, paths, opt) => {
|
|
51
|
+
const existingFilter = opt.filter || (() => true);
|
|
52
|
+
let allRemaining = false;
|
|
53
|
+
let noneRemaining = false;
|
|
54
|
+
const queue = [];
|
|
55
|
+
let processing = false;
|
|
56
|
+
const processQueue = async () => {
|
|
57
|
+
if (processing)
|
|
58
|
+
return;
|
|
59
|
+
processing = true;
|
|
60
|
+
let next;
|
|
61
|
+
while ((next = queue.shift())) {
|
|
62
|
+
await next();
|
|
63
|
+
}
|
|
64
|
+
processing = false;
|
|
65
|
+
};
|
|
66
|
+
const oneAtATime = (fn) => async (s, e) => {
|
|
67
|
+
const p = new Promise(res => {
|
|
68
|
+
queue.push(async () => {
|
|
69
|
+
const result = await fn(s, e);
|
|
70
|
+
res(result);
|
|
71
|
+
return result;
|
|
72
|
+
});
|
|
73
|
+
});
|
|
74
|
+
processQueue();
|
|
75
|
+
return p;
|
|
76
|
+
};
|
|
77
|
+
const rl = (0, readline_1.createInterface)({
|
|
78
|
+
input: process.stdin,
|
|
79
|
+
output: process.stdout,
|
|
80
|
+
});
|
|
81
|
+
opt.filter = oneAtATime(async (path, ent) => {
|
|
82
|
+
if (noneRemaining) {
|
|
83
|
+
return false;
|
|
84
|
+
}
|
|
85
|
+
while (!allRemaining) {
|
|
86
|
+
const a = (await prompt(rl, `rm? ${(0, path_1.relative)(cwd, path)}\n[(Yes)/No/All/Quit] > `)).trim();
|
|
87
|
+
if (/^n/i.test(a)) {
|
|
88
|
+
return false;
|
|
89
|
+
}
|
|
90
|
+
else if (/^a/i.test(a)) {
|
|
91
|
+
allRemaining = true;
|
|
92
|
+
break;
|
|
93
|
+
}
|
|
94
|
+
else if (/^q/i.test(a)) {
|
|
95
|
+
noneRemaining = true;
|
|
96
|
+
return false;
|
|
97
|
+
}
|
|
98
|
+
else if (a === '' || /^y/i.test(a)) {
|
|
99
|
+
break;
|
|
100
|
+
}
|
|
101
|
+
else {
|
|
102
|
+
continue;
|
|
103
|
+
}
|
|
104
|
+
}
|
|
105
|
+
return existingFilter(path, ent);
|
|
106
|
+
});
|
|
107
|
+
await impl(paths, opt);
|
|
108
|
+
rl.close();
|
|
109
|
+
};
|
|
110
|
+
const main = async (...args) => {
|
|
111
|
+
const verboseFilter = (s) => {
|
|
112
|
+
console.log((0, path_1.relative)(cwd, s));
|
|
113
|
+
return true;
|
|
114
|
+
};
|
|
115
|
+
if (process.env.__RIMRAF_TESTING_BIN_FAIL__ === '1') {
|
|
116
|
+
throw new Error('simulated rimraf failure');
|
|
117
|
+
}
|
|
118
|
+
const opt = {};
|
|
119
|
+
const paths = [];
|
|
120
|
+
let dashdash = false;
|
|
121
|
+
let impl = index_cjs_js_1.default;
|
|
122
|
+
let interactive = false;
|
|
123
|
+
for (const arg of args) {
|
|
124
|
+
if (dashdash) {
|
|
125
|
+
paths.push(arg);
|
|
126
|
+
continue;
|
|
127
|
+
}
|
|
128
|
+
if (arg === '--') {
|
|
129
|
+
dashdash = true;
|
|
130
|
+
continue;
|
|
131
|
+
}
|
|
132
|
+
else if (arg === '-rf' || arg === '-fr') {
|
|
133
|
+
// this never did anything, but people put it there I guess
|
|
134
|
+
continue;
|
|
135
|
+
}
|
|
136
|
+
else if (arg === '-h' || arg === '--help') {
|
|
137
|
+
console.log(exports.help);
|
|
138
|
+
return 0;
|
|
139
|
+
}
|
|
140
|
+
else if (arg === '--interactive' || arg === '-i') {
|
|
141
|
+
interactive = true;
|
|
142
|
+
continue;
|
|
143
|
+
}
|
|
144
|
+
else if (arg === '--no-interactive' || arg === '-I') {
|
|
145
|
+
interactive = false;
|
|
146
|
+
continue;
|
|
147
|
+
}
|
|
148
|
+
else if (arg === '--verbose' || arg === '-v') {
|
|
149
|
+
opt.filter = verboseFilter;
|
|
150
|
+
continue;
|
|
151
|
+
}
|
|
152
|
+
else if (arg === '--no-verbose' || arg === '-V') {
|
|
153
|
+
opt.filter = undefined;
|
|
154
|
+
continue;
|
|
155
|
+
}
|
|
156
|
+
else if (arg === '-g' || arg === '--glob') {
|
|
157
|
+
opt.glob = true;
|
|
158
|
+
continue;
|
|
159
|
+
}
|
|
160
|
+
else if (arg === '-G' || arg === '--no-glob') {
|
|
161
|
+
opt.glob = false;
|
|
162
|
+
continue;
|
|
163
|
+
}
|
|
164
|
+
else if (arg === '--preserve-root') {
|
|
165
|
+
opt.preserveRoot = true;
|
|
166
|
+
continue;
|
|
167
|
+
}
|
|
168
|
+
else if (arg === '--no-preserve-root') {
|
|
169
|
+
opt.preserveRoot = false;
|
|
170
|
+
continue;
|
|
171
|
+
}
|
|
172
|
+
else if (/^--tmp=/.test(arg)) {
|
|
173
|
+
const val = arg.substring('--tmp='.length);
|
|
174
|
+
opt.tmp = val;
|
|
175
|
+
continue;
|
|
176
|
+
}
|
|
177
|
+
else if (/^--max-retries=/.test(arg)) {
|
|
178
|
+
const val = +arg.substring('--max-retries='.length);
|
|
179
|
+
opt.maxRetries = val;
|
|
180
|
+
continue;
|
|
181
|
+
}
|
|
182
|
+
else if (/^--retry-delay=/.test(arg)) {
|
|
183
|
+
const val = +arg.substring('--retry-delay='.length);
|
|
184
|
+
opt.retryDelay = val;
|
|
185
|
+
continue;
|
|
186
|
+
}
|
|
187
|
+
else if (/^--backoff=/.test(arg)) {
|
|
188
|
+
const val = +arg.substring('--backoff='.length);
|
|
189
|
+
opt.backoff = val;
|
|
190
|
+
continue;
|
|
191
|
+
}
|
|
192
|
+
else if (/^--impl=/.test(arg)) {
|
|
193
|
+
const val = arg.substring('--impl='.length);
|
|
194
|
+
switch (val) {
|
|
195
|
+
case 'rimraf':
|
|
196
|
+
impl = index_cjs_js_1.default;
|
|
197
|
+
continue;
|
|
198
|
+
case 'native':
|
|
199
|
+
case 'manual':
|
|
200
|
+
case 'posix':
|
|
201
|
+
case 'windows':
|
|
202
|
+
impl = index_cjs_js_1.default[val];
|
|
203
|
+
continue;
|
|
204
|
+
case 'move-remove':
|
|
205
|
+
impl = index_cjs_js_1.default.moveRemove;
|
|
206
|
+
continue;
|
|
207
|
+
default:
|
|
208
|
+
console.error(`unknown implementation: ${val}`);
|
|
209
|
+
runHelpForUsage();
|
|
210
|
+
return 1;
|
|
211
|
+
}
|
|
212
|
+
}
|
|
213
|
+
else if (/^-/.test(arg)) {
|
|
214
|
+
console.error(`unknown option: ${arg}`);
|
|
215
|
+
runHelpForUsage();
|
|
216
|
+
return 1;
|
|
217
|
+
}
|
|
218
|
+
else {
|
|
219
|
+
paths.push(arg);
|
|
220
|
+
}
|
|
221
|
+
}
|
|
222
|
+
if (opt.preserveRoot !== false) {
|
|
223
|
+
for (const path of paths.map(p => (0, path_1.resolve)(p))) {
|
|
224
|
+
if (path === (0, path_1.parse)(path).root) {
|
|
225
|
+
console.error(`rimraf: it is dangerous to operate recursively on '/'`);
|
|
226
|
+
console.error('use --no-preserve-root to override this failsafe');
|
|
227
|
+
return 1;
|
|
228
|
+
}
|
|
229
|
+
}
|
|
230
|
+
}
|
|
231
|
+
if (!paths.length) {
|
|
232
|
+
console.error('rimraf: must provide a path to remove');
|
|
233
|
+
runHelpForUsage();
|
|
234
|
+
return 1;
|
|
235
|
+
}
|
|
236
|
+
if (impl === index_cjs_js_1.default.native && (interactive || opt.filter)) {
|
|
237
|
+
console.error('native implementation does not support -v or -i');
|
|
238
|
+
runHelpForUsage();
|
|
239
|
+
return 1;
|
|
240
|
+
}
|
|
241
|
+
if (interactive) {
|
|
242
|
+
await interactiveRimraf(impl, paths, opt);
|
|
243
|
+
}
|
|
244
|
+
else {
|
|
245
|
+
await impl(paths, opt);
|
|
246
|
+
}
|
|
247
|
+
return 0;
|
|
248
|
+
};
|
|
249
|
+
main.help = exports.help;
|
|
250
|
+
exports.default = main;
|
|
251
|
+
if (typeof require === 'function' &&
|
|
252
|
+
typeof module === 'object' &&
|
|
253
|
+
require.main === module) {
|
|
254
|
+
const args = process.argv.slice(2);
|
|
255
|
+
main(...args).then(code => process.exit(code), er => {
|
|
256
|
+
console.error(er);
|
|
257
|
+
process.exit(1);
|
|
258
|
+
});
|
|
259
|
+
}
|
|
260
|
+
//# sourceMappingURL=bin.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"bin.js","sourceRoot":"","sources":["../../../src/bin.ts"],"names":[],"mappings":";;;;;;;AACA,kDAAyC;AACzC,kEAAmC;AAGnC,MAAM,eAAe,GAAG,GAAG,EAAE,CAC3B,OAAO,CAAC,KAAK,CAAC,2CAA2C,CAAC,CAAA;AAE/C,QAAA,IAAI,GAAG,kBAAkB,sBAAO;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAkC5C,CAAA;AAED,+BAA+C;AAC/C,MAAM,GAAG,GAAG,OAAO,CAAC,GAAG,EAAE,CAAA;AAEzB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eAAO,MAAM,UAAU,SAnCc,MAAM,oBAoCe,CAAA;AAC1D,eAAO,MAAM,cAAc,SArBQ,MAAM,WAsByB,CAAA"}
|
|
@@ -0,0 +1,61 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
3
|
+
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
4
|
+
};
|
|
5
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
+
exports.defaultTmpSync = exports.defaultTmp = void 0;
|
|
7
|
+
// The default temporary folder location for use in the windows algorithm.
|
|
8
|
+
// It's TEMPting to use dirname(path), since that's guaranteed to be on the
|
|
9
|
+
// same device. However, this means that:
|
|
10
|
+
// rimraf(path).then(() => rimraf(dirname(path)))
|
|
11
|
+
// will often fail with EBUSY, because the parent dir contains
|
|
12
|
+
// marked-for-deletion directory entries (which do not show up in readdir).
|
|
13
|
+
// The approach here is to use os.tmpdir() if it's on the same drive letter,
|
|
14
|
+
// or resolve(path, '\\temp') if it exists, or the root of the drive if not.
|
|
15
|
+
// On Posix (not that you'd be likely to use the windows algorithm there),
|
|
16
|
+
// it uses os.tmpdir() always.
|
|
17
|
+
const os_1 = require("os");
|
|
18
|
+
const path_1 = require("path");
|
|
19
|
+
const fs_js_1 = require("./fs.js");
|
|
20
|
+
const platform_js_1 = __importDefault(require("./platform.js"));
|
|
21
|
+
const { stat } = fs_js_1.promises;
|
|
22
|
+
const isDirSync = (path) => {
|
|
23
|
+
try {
|
|
24
|
+
return (0, fs_js_1.statSync)(path).isDirectory();
|
|
25
|
+
}
|
|
26
|
+
catch (er) {
|
|
27
|
+
return false;
|
|
28
|
+
}
|
|
29
|
+
};
|
|
30
|
+
const isDir = (path) => stat(path).then(st => st.isDirectory(), () => false);
|
|
31
|
+
const win32DefaultTmp = async (path) => {
|
|
32
|
+
const { root } = (0, path_1.parse)(path);
|
|
33
|
+
const tmp = (0, os_1.tmpdir)();
|
|
34
|
+
const { root: tmpRoot } = (0, path_1.parse)(tmp);
|
|
35
|
+
if (root.toLowerCase() === tmpRoot.toLowerCase()) {
|
|
36
|
+
return tmp;
|
|
37
|
+
}
|
|
38
|
+
const driveTmp = (0, path_1.resolve)(root, '/temp');
|
|
39
|
+
if (await isDir(driveTmp)) {
|
|
40
|
+
return driveTmp;
|
|
41
|
+
}
|
|
42
|
+
return root;
|
|
43
|
+
};
|
|
44
|
+
const win32DefaultTmpSync = (path) => {
|
|
45
|
+
const { root } = (0, path_1.parse)(path);
|
|
46
|
+
const tmp = (0, os_1.tmpdir)();
|
|
47
|
+
const { root: tmpRoot } = (0, path_1.parse)(tmp);
|
|
48
|
+
if (root.toLowerCase() === tmpRoot.toLowerCase()) {
|
|
49
|
+
return tmp;
|
|
50
|
+
}
|
|
51
|
+
const driveTmp = (0, path_1.resolve)(root, '/temp');
|
|
52
|
+
if (isDirSync(driveTmp)) {
|
|
53
|
+
return driveTmp;
|
|
54
|
+
}
|
|
55
|
+
return root;
|
|
56
|
+
};
|
|
57
|
+
const posixDefaultTmp = async () => (0, os_1.tmpdir)();
|
|
58
|
+
const posixDefaultTmpSync = () => (0, os_1.tmpdir)();
|
|
59
|
+
exports.defaultTmp = platform_js_1.default === 'win32' ? win32DefaultTmp : posixDefaultTmp;
|
|
60
|
+
exports.defaultTmpSync = platform_js_1.default === 'win32' ? win32DefaultTmpSync : posixDefaultTmpSync;
|
|
61
|
+
//# sourceMappingURL=default-tmp.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"default-tmp.js","sourceRoot":"","sources":["../../../src/default-tmp.ts"],"names":[],"mappings":";;;;;;AAAA,0EAA0E;AAC1E,2EAA2E;AAC3E,0CAA0C;AAC1C,iDAAiD;AACjD,8DAA8D;AAC9D,2EAA2E;AAC3E,4EAA4E;AAC5E,4EAA4E;AAC5E,0EAA0E;AAC1E,8BAA8B;AAC9B,2BAA2B;AAC3B,+BAAqC;AACrC,mCAA4C;AAC5C,gEAAoC;AACpC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,CAAC,CAAA;IACpC,IAAI,IAAI,CAAC,WAAW,EAAE,KAAK,OAAO,CAAC,WAAW,EAAE,EAAE;QAChD,OAAO,GAAG,CAAA;KACX;IAED,MAAM,QAAQ,GAAG,IAAA,cAAO,EAAC,IAAI,EAAE,OAAO,CAAC,CAAA;IACvC,IAAI,SAAS,CAAC,QAAQ,CAAC,EAAE;QACvB,OAAO,QAAQ,CAAA;KAChB;IAED,OAAO,IAAI,CAAA;AACb,CAAC,CAAA;AAED,MAAM,eAAe,GAAG,KAAK,IAAI,EAAE,CAAC,IAAA,WAAM,GAAE,CAAA;AAC5C,MAAM,mBAAmB,GAAG,GAAG,EAAE,CAAC,IAAA,WAAM,GAAE,CAAA;AAE7B,QAAA,UAAU,GACrB,qBAAQ,KAAK,OAAO,CAAC,CAAC,CAAC,eAAe,CAAC,CAAC,CAAC,eAAe,CAAA;AAC7C,QAAA,cAAc,GACzB,qBAAQ,KAAK,OAAO,CAAC,CAAC,CAAC,mBAAmB,CAAC,CAAC,CAAC,mBAAmB,CAAA"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"fix-eperm.d.ts","sourceRoot":"","sources":["../../../src/fix-eperm.ts"],"names":[],"mappings":"AAGA,eAAO,MAAM,QAAQ,cACP,MAAM,KAAK,QAAQ,GAAG,CAAC,YAAkB,MAAM,iBAsB1D,CAAA;AAEH,eAAO,MAAM,YAAY,cAAe,MAAM,KAAK,GAAG,YAAY,MAAM,QAsBvE,CAAA"}
|
|
@@ -0,0 +1,58 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.fixEPERMSync = exports.fixEPERM = void 0;
|
|
4
|
+
const fs_js_1 = require("./fs.js");
|
|
5
|
+
const { chmod } = fs_js_1.promises;
|
|
6
|
+
const fixEPERM = (fn) => async (path) => {
|
|
7
|
+
try {
|
|
8
|
+
return await fn(path);
|
|
9
|
+
}
|
|
10
|
+
catch (er) {
|
|
11
|
+
const fer = er;
|
|
12
|
+
if (fer?.code === 'ENOENT') {
|
|
13
|
+
return;
|
|
14
|
+
}
|
|
15
|
+
if (fer?.code === 'EPERM') {
|
|
16
|
+
try {
|
|
17
|
+
await chmod(path, 0o666);
|
|
18
|
+
}
|
|
19
|
+
catch (er2) {
|
|
20
|
+
const fer2 = er2;
|
|
21
|
+
if (fer2?.code === 'ENOENT') {
|
|
22
|
+
return;
|
|
23
|
+
}
|
|
24
|
+
throw er;
|
|
25
|
+
}
|
|
26
|
+
return await fn(path);
|
|
27
|
+
}
|
|
28
|
+
throw er;
|
|
29
|
+
}
|
|
30
|
+
};
|
|
31
|
+
exports.fixEPERM = fixEPERM;
|
|
32
|
+
const fixEPERMSync = (fn) => (path) => {
|
|
33
|
+
try {
|
|
34
|
+
return fn(path);
|
|
35
|
+
}
|
|
36
|
+
catch (er) {
|
|
37
|
+
const fer = er;
|
|
38
|
+
if (fer?.code === 'ENOENT') {
|
|
39
|
+
return;
|
|
40
|
+
}
|
|
41
|
+
if (fer?.code === 'EPERM') {
|
|
42
|
+
try {
|
|
43
|
+
(0, fs_js_1.chmodSync)(path, 0o666);
|
|
44
|
+
}
|
|
45
|
+
catch (er2) {
|
|
46
|
+
const fer2 = er2;
|
|
47
|
+
if (fer2?.code === 'ENOENT') {
|
|
48
|
+
return;
|
|
49
|
+
}
|
|
50
|
+
throw er;
|
|
51
|
+
}
|
|
52
|
+
return fn(path);
|
|
53
|
+
}
|
|
54
|
+
throw er;
|
|
55
|
+
}
|
|
56
|
+
};
|
|
57
|
+
exports.fixEPERMSync = fixEPERMSync;
|
|
58
|
+
//# sourceMappingURL=fix-eperm.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"fix-eperm.js","sourceRoot":"","sources":["../../../src/fix-eperm.ts"],"names":[],"mappings":";;;AAAA,mCAA6C;AAC7C,MAAM,EAAE,KAAK,EAAE,GAAG,gBAAQ,CAAA;AAEnB,MAAM,QAAQ,G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E,CAAC,IAAI,CAAC,CAAA;SAChB;QACD,MAAM,EAAE,CAAA;KACT;AACH,CAAC,CAAA;AAtBY,QAAA,YAAY,gBAsBxB"}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import fs, { Dirent } from 'fs';
|
|
2
|
+
export { chmodSync, mkdirSync, renameSync, rmdirSync, rmSync, statSync, lstatSync, unlinkSync, } from 'fs';
|
|
3
|
+
export declare const readdirSync: (path: fs.PathLike) => Dirent[];
|
|
4
|
+
export declare const promises: {
|
|
5
|
+
chmod: (path: fs.PathLike, mode: fs.Mode) => Promise<void>;
|
|
6
|
+
mkdir: (path: fs.PathLike, options?: fs.Mode | (fs.MakeDirectoryOptions & {
|
|
7
|
+
recursive?: boolean | null;
|
|
8
|
+
}) | undefined | null) => Promise<string | undefined>;
|
|
9
|
+
readdir: (path: fs.PathLike) => Promise<Dirent[]>;
|
|
10
|
+
rename: (oldPath: fs.PathLike, newPath: fs.PathLike) => Promise<void>;
|
|
11
|
+
rm: (path: fs.PathLike, options: fs.RmOptions) => Promise<void>;
|
|
12
|
+
rmdir: (path: fs.PathLike) => Promise<void>;
|
|
13
|
+
stat: (path: fs.PathLike) => Promise<fs.Stats>;
|
|
14
|
+
lstat: (path: fs.PathLike) => Promise<fs.Stats>;
|
|
15
|
+
unlink: (path: fs.PathLike) => Promise<void>;
|
|
16
|
+
};
|
|
17
|
+
//# sourceMappingURL=fs.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"fs.d.ts","sourceRoot":"","sources":["../../../src/fs.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,EAAE,EAAE,MAAM,EAAE,MAAM,IAAI,CAAA;AAG/B,OAAO,EACL,SAAS,EACT,SAAS,EACT,UAAU,EACV,SAAS,EACT,MAAM,EACN,QAAQ,EACR,SAAS,EACT,UAAU,GACX,MAAM,IAAI,CAAA;AAGX,eAAO,MAAM,WAAW,SAAU,GAAG,QAAQ,KAAG,MAAM,EACf,CAAA;AA6DvC,eAAO,MAAM,QAAQ;kBAtDA,GAAG,QAAQ,QAAQ,GAAG,IAAI,KAAG,QAAQ,IAAI,CAAC;kBAMvD,GAAG,QAAQ,YAEb,GAAG,IAAI,GACP,CAAC,GAAG,oBAAoB,GAAG;QAAE,SAAS,CAAC,EAAE,OAAO,GAAG,IAAI,CAAA;KAAE,CAAC,GAC1D,SAAS,GACT,IAAI,KACP,QAAQ,MAAM,GAAG,SAAS,CAAC;oBAKP,GAAG,QAAQ,KAAG,QAAQ,MAAM,EAAE,CAAC;sBAO7B,GAAG,QAAQ,WAAW,GAAG,QAAQ,KAAG,QAAQ,IAAI,CAAC;eAKxD,GAAG,QAAQ,WAAW,GAAG,SAAS,KAAG,QAAQ,IAAI,CAAC;kBAK/C,GAAG,QAAQ,KAAG,QAAQ,IAAI,CAAC;iBAK5B,GAAG,QAAQ,KAAG,QAAQ,GAAG,KAAK,CAAC;kBAK9B,GAAG,QAAQ,KAAG,QAAQ,GAAG,KAAK,CAAC;mBAK9B,GAAG,QAAQ,KAAG,QAAQ,IAAI,CAAC;CAehD,CAAA"}
|
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
// promisify ourselves, because older nodes don't have fs.promises
|
|
3
|
+
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
4
|
+
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
5
|
+
};
|
|
6
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
7
|
+
exports.promises = exports.readdirSync = exports.unlinkSync = exports.lstatSync = exports.statSync = exports.rmSync = exports.rmdirSync = exports.renameSync = exports.mkdirSync = exports.chmodSync = void 0;
|
|
8
|
+
const fs_1 = __importDefault(require("fs"));
|
|
9
|
+
// sync ones just take the sync version from node
|
|
10
|
+
var fs_2 = require("fs");
|
|
11
|
+
Object.defineProperty(exports, "chmodSync", { enumerable: true, get: function () { return fs_2.chmodSync; } });
|
|
12
|
+
Object.defineProperty(exports, "mkdirSync", { enumerable: true, get: function () { return fs_2.mkdirSync; } });
|
|
13
|
+
Object.defineProperty(exports, "renameSync", { enumerable: true, get: function () { return fs_2.renameSync; } });
|
|
14
|
+
Object.defineProperty(exports, "rmdirSync", { enumerable: true, get: function () { return fs_2.rmdirSync; } });
|
|
15
|
+
Object.defineProperty(exports, "rmSync", { enumerable: true, get: function () { return fs_2.rmSync; } });
|
|
16
|
+
Object.defineProperty(exports, "statSync", { enumerable: true, get: function () { return fs_2.statSync; } });
|
|
17
|
+
Object.defineProperty(exports, "lstatSync", { enumerable: true, get: function () { return fs_2.lstatSync; } });
|
|
18
|
+
Object.defineProperty(exports, "unlinkSync", { enumerable: true, get: function () { return fs_2.unlinkSync; } });
|
|
19
|
+
const fs_3 = require("fs");
|
|
20
|
+
const readdirSync = (path) => (0, fs_3.readdirSync)(path, { withFileTypes: true });
|
|
21
|
+
exports.readdirSync = readdirSync;
|
|
22
|
+
// unrolled for better inlining, this seems to get better performance
|
|
23
|
+
// than something like:
|
|
24
|
+
// const makeCb = (res, rej) => (er, ...d) => er ? rej(er) : res(...d)
|
|
25
|
+
// which would be a bit cleaner.
|
|
26
|
+
const chmod = (path, mode) => new Promise((res, rej) => fs_1.default.chmod(path, mode, (er, ...d) => (er ? rej(er) : res(...d))));
|
|
27
|
+
const mkdir = (path, options) => new Promise((res, rej) => fs_1.default.mkdir(path, options, (er, made) => (er ? rej(er) : res(made))));
|
|
28
|
+
const readdir = (path) => new Promise((res, rej) => fs_1.default.readdir(path, { withFileTypes: true }, (er, data) => er ? rej(er) : res(data)));
|
|
29
|
+
const rename = (oldPath, newPath) => new Promise((res, rej) => fs_1.default.rename(oldPath, newPath, (er, ...d) => (er ? rej(er) : res(...d))));
|
|
30
|
+
const rm = (path, options) => new Promise((res, rej) => fs_1.default.rm(path, options, (er, ...d) => (er ? rej(er) : res(...d))));
|
|
31
|
+
const rmdir = (path) => new Promise((res, rej) => fs_1.default.rmdir(path, (er, ...d) => (er ? rej(er) : res(...d))));
|
|
32
|
+
const stat = (path) => new Promise((res, rej) => fs_1.default.stat(path, (er, data) => (er ? rej(er) : res(data))));
|
|
33
|
+
const lstat = (path) => new Promise((res, rej) => fs_1.default.lstat(path, (er, data) => (er ? rej(er) : res(data))));
|
|
34
|
+
const unlink = (path) => new Promise((res, rej) => fs_1.default.unlink(path, (er, ...d) => (er ? rej(er) : res(...d))));
|
|
35
|
+
exports.promises = {
|
|
36
|
+
chmod,
|
|
37
|
+
mkdir,
|
|
38
|
+
readdir,
|
|
39
|
+
rename,
|
|
40
|
+
rm,
|
|
41
|
+
rmdir,
|
|
42
|
+
stat,
|
|
43
|
+
lstat,
|
|
44
|
+
unlink,
|
|
45
|
+
};
|
|
46
|
+
//# sourceMappingURL=fs.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"fs.js","sourceRoot":"","sources":["../../../src/fs.ts"],"names":[],"mappings":";AAAA,kEAAkE;;;;;;AAElE,4CAA+B;AAE/B,iDAAiD;AACjD,yBASW;AART,+FAAA,SAAS,OAAA;AACT,+FAAA,SAAS,OAAA;AACT,gGAAA,UAAU,OAAA;AACV,+FAAA,SAAS,OAAA;AACT,4FAAA,MAAM,OAAA;AACN,8FAAA,QAAQ,OAAA;AACR,+FAAA,SAAS,OAAA;AACT,gGAAA,UAAU,OAAA;AAGZ,2BAA0C;AACnC,MAAM,WAAW,GAAG,CAAC,IAAiB,EAAY,EAAE,CACzD,IAAA,gBAAM,EAAC,IAAI,EAAE,EAAE,aAAa,EAAE,IAAI,EAAE,CAAC,CAAA;AAD1B,QAAA,WAAW,eACe;AAEvC,qEAAqE;AACrE,uBAAuB;AACvB,sEAAsE;AACtE,gCAAgC;AAEhC,MAAM,KAAK,GAAG,CAAC,IAAiB,EAAE,IAAa,EAAiB,EAAE,CAChE,IAAI,OAAO,CAAC,CAAC,GAAG,EAAE,GAAG,EAAE,EAAE,CACvB,YAAE,CAAC,KAAK,CAAC,IAAI,EAAE,IAAI,EAAE,CAAC,EAAE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GAAG,CAAC,IAAI,CAAC,CAAC,CAAC,CACzD,CAAA;AAEH,MAAM,MAAM,GAAG,CAAC,IAAiB,EAAiB,EAAE,CAClD,IAAI,OAAO,CAAC,CAAC,GAAG,EAAE,GAAG,EAAE,EAAE,CACvB,YAAE,CAAC,MAAM,CAAC,IAAI,EAAE,CAAC,EAAE,EAAE,GAAG,CAAQ,EAAE,EAAE,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,GAAG,CAAC,EAAE,CAAC,CAAC,CAAC,CAAC,GAAG,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC,CACjE,CAAA;AAEU,QAAA,QAAQ,GAAG;IACtB,KAAK;IACL,KAAK;IACL,OAAO;IACP,MAAM;IACN,EAAE;IACF,KAAK;IACL,IAAI;IACJ,KAAK;IACL,MAAM;CACP,CAAA"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ignore-enoent.d.ts","sourceRoot":"","sources":["../../../src/ignore-enoent.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,YAAY,MAAa,QAAQ,GAAG,CAAC,iBAK9C,CAAA;AAEJ,eAAO,MAAM,gBAAgB,OAAQ,MAAM,GAAG,QAQ7C,CAAA"}
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.ignoreENOENTSync = exports.ignoreENOENT = void 0;
|
|
4
|
+
const ignoreENOENT = async (p) => p.catch(er => {
|
|
5
|
+
if (er.code !== 'ENOENT') {
|
|
6
|
+
throw er;
|
|
7
|
+
}
|
|
8
|
+
});
|
|
9
|
+
exports.ignoreENOENT = ignoreENOENT;
|
|
10
|
+
const ignoreENOENTSync = (fn) => {
|
|
11
|
+
try {
|
|
12
|
+
return fn();
|
|
13
|
+
}
|
|
14
|
+
catch (er) {
|
|
15
|
+
if (er?.code !== 'ENOENT') {
|
|
16
|
+
throw er;
|
|
17
|
+
}
|
|
18
|
+
}
|
|
19
|
+
};
|
|
20
|
+
exports.ignoreENOENTSync = ignoreENOENTSync;
|
|
21
|
+
//# sourceMappingURL=ignore-enoent.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ignore-enoent.js","sourceRoot":"","sources":["../../../src/ignore-enoent.ts"],"names":[],"mappings":";;;AAAO,MAAM,YAAY,GAAG,KAAK,EAAE,CAAe,EAAE,EAAE,CACpD,CAAC,CAAC,KAAK,CAAC,EAAE,CAAC,EAAE;IACX,IAAI,EAAE,CAAC,IAAI,KAAK,QAAQ,EAAE;QACxB,MAAM,EAAE,CAAA;KACT;AACH,CAAC,CAAC,CAAA;AALS,QAAA,YAAY,gBAKrB;AAEG,MAAM,gBAAgB,GAAG,CAAC,EAAa,EAAE,EAAE;IAChD,IAAI;QACF,OAAO,EAAE,EAAE,CAAA;KACZ;IAAC,OAAO,EAAE,EAAE;QACX,IAAK,EAA4B,EAAE,IAAI,KAAK,QAAQ,EAAE;YACpD,MAAM,EAAE,CAAA;SACT;KACF;AACH,CAAC,CAAA;AARY,QAAA,gBAAgB,oBAQ5B"}
|
|
@@ -0,0 +1,57 @@
|
|
|
1
|
+
declare const _default: ((path: string | string[], opt?: import("./index.js").RimrafAsyncOptions | undefined) => Promise<boolean>) & {
|
|
2
|
+
rimraf: ((path: string | string[], opt?: import("./index.js").RimrafAsyncOptions | undefined) => Promise<boolean>) & {
|
|
3
|
+
sync: (path: string | string[], opt?: import("./index.js").RimrafSyncOptions | undefined) => boolean;
|
|
4
|
+
};
|
|
5
|
+
sync: (path: string | string[], opt?: import("./index.js").RimrafSyncOptions | undefined) => boolean;
|
|
6
|
+
rimrafSync: (path: string | string[], opt?: import("./index.js").RimrafSyncOptions | undefined) => boolean;
|
|
7
|
+
manual: ((path: string | string[], opt?: import("./index.js").RimrafAsyncOptions | undefined) => Promise<boolean>) & {
|
|
8
|
+
sync: (path: string | string[], opt?: import("./index.js").RimrafSyncOptions | undefined) => boolean;
|
|
9
|
+
};
|
|
10
|
+
manualSync: (path: string | string[], opt?: import("./index.js").RimrafSyncOptions | undefined) => boolean;
|
|
11
|
+
native: ((path: string | string[], opt?: import("./index.js").RimrafAsyncOptions | undefined) => Promise<boolean>) & {
|
|
12
|
+
sync: (path: string | string[], opt?: import("./index.js").RimrafSyncOptions | undefined) => boolean;
|
|
13
|
+
};
|
|
14
|
+
nativeSync: (path: string | string[], opt?: import("./index.js").RimrafSyncOptions | undefined) => boolean;
|
|
15
|
+
posix: ((path: string | string[], opt?: import("./index.js").RimrafAsyncOptions | undefined) => Promise<boolean>) & {
|
|
16
|
+
sync: (path: string | string[], opt?: import("./index.js").RimrafSyncOptions | undefined) => boolean;
|
|
17
|
+
};
|
|
18
|
+
posixSync: (path: string | string[], opt?: import("./index.js").RimrafSyncOptions | undefined) => boolean;
|
|
19
|
+
windows: ((path: string | string[], opt?: import("./index.js").RimrafAsyncOptions | undefined) => Promise<boolean>) & {
|
|
20
|
+
sync: (path: string | string[], opt?: import("./index.js").RimrafSyncOptions | undefined) => boolean;
|
|
21
|
+
};
|
|
22
|
+
windowsSync: (path: string | string[], opt?: import("./index.js").RimrafSyncOptions | undefined) => boolean;
|
|
23
|
+
moveRemove: ((path: string | string[], opt?: import("./index.js").RimrafAsyncOptions | undefined) => Promise<boolean>) & {
|
|
24
|
+
sync: (path: string | string[], opt?: import("./index.js").RimrafSyncOptions | undefined) => boolean;
|
|
25
|
+
};
|
|
26
|
+
moveRemoveSync: (path: string | string[], opt?: import("./index.js").RimrafSyncOptions | undefined) => boolean;
|
|
27
|
+
} & {
|
|
28
|
+
default: ((path: string | string[], opt?: import("./index.js").RimrafAsyncOptions | undefined) => Promise<boolean>) & {
|
|
29
|
+
rimraf: ((path: string | string[], opt?: import("./index.js").RimrafAsyncOptions | undefined) => Promise<boolean>) & {
|
|
30
|
+
sync: (path: string | string[], opt?: import("./index.js").RimrafSyncOptions | undefined) => boolean;
|
|
31
|
+
};
|
|
32
|
+
sync: (path: string | string[], opt?: import("./index.js").RimrafSyncOptions | undefined) => boolean;
|
|
33
|
+
rimrafSync: (path: string | string[], opt?: import("./index.js").RimrafSyncOptions | undefined) => boolean;
|
|
34
|
+
manual: ((path: string | string[], opt?: import("./index.js").RimrafAsyncOptions | undefined) => Promise<boolean>) & {
|
|
35
|
+
sync: (path: string | string[], opt?: import("./index.js").RimrafSyncOptions | undefined) => boolean;
|
|
36
|
+
};
|
|
37
|
+
manualSync: (path: string | string[], opt?: import("./index.js").RimrafSyncOptions | undefined) => boolean;
|
|
38
|
+
native: ((path: string | string[], opt?: import("./index.js").RimrafAsyncOptions | undefined) => Promise<boolean>) & {
|
|
39
|
+
sync: (path: string | string[], opt?: import("./index.js").RimrafSyncOptions | undefined) => boolean;
|
|
40
|
+
};
|
|
41
|
+
nativeSync: (path: string | string[], opt?: import("./index.js").RimrafSyncOptions | undefined) => boolean;
|
|
42
|
+
posix: ((path: string | string[], opt?: import("./index.js").RimrafAsyncOptions | undefined) => Promise<boolean>) & {
|
|
43
|
+
sync: (path: string | string[], opt?: import("./index.js").RimrafSyncOptions | undefined) => boolean;
|
|
44
|
+
};
|
|
45
|
+
posixSync: (path: string | string[], opt?: import("./index.js").RimrafSyncOptions | undefined) => boolean;
|
|
46
|
+
windows: ((path: string | string[], opt?: import("./index.js").RimrafAsyncOptions | undefined) => Promise<boolean>) & {
|
|
47
|
+
sync: (path: string | string[], opt?: import("./index.js").RimrafSyncOptions | undefined) => boolean;
|
|
48
|
+
};
|
|
49
|
+
windowsSync: (path: string | string[], opt?: import("./index.js").RimrafSyncOptions | undefined) => boolean;
|
|
50
|
+
moveRemove: ((path: string | string[], opt?: import("./index.js").RimrafAsyncOptions | undefined) => Promise<boolean>) & {
|
|
51
|
+
sync: (path: string | string[], opt?: import("./index.js").RimrafSyncOptions | undefined) => boolean;
|
|
52
|
+
};
|
|
53
|
+
moveRemoveSync: (path: string | string[], opt?: import("./index.js").RimrafSyncOptions | undefined) => boolean;
|
|
54
|
+
};
|
|
55
|
+
};
|
|
56
|
+
export = _default;
|
|
57
|
+
//# sourceMappingURL=index-cjs.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index-cjs.d.ts","sourceRoot":"","sources":["../../../src/index-cjs.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAEA,kBAAmD"}
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
3
|
+
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
4
|
+
};
|
|
5
|
+
const index_js_1 = __importDefault(require("./index.js"));
|
|
6
|
+
module.exports = Object.assign(index_js_1.default, { default: index_js_1.default });
|
|
7
|
+
//# sourceMappingURL=index-cjs.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index-cjs.js","sourceRoot":"","sources":["../../../src/index-cjs.ts"],"names":[],"mappings":";;;;AAAA,0DAA+B;AAE/B,iBAAS,MAAM,CAAC,MAAM,CAAC,kBAAM,EAAE,EAAE,OAAO,EAAE,kBAAM,EAAE,CAAC,CAAA"}
|