omegon 0.6.32 → 0.7.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/bin/omegon.mjs +74 -1
- package/extensions/00-secrets/index.ts +6 -0
- package/extensions/00-splash/index.ts +338 -0
- package/extensions/00-splash/logo.ts +194 -0
- package/extensions/bootstrap/index.ts +19 -2
- package/extensions/effort/index.ts +10 -0
- package/extensions/lib/splash-state.ts +25 -0
- package/extensions/mcp-bridge/index.ts +5 -0
- package/extensions/project-memory/index.ts +10 -0
- package/extensions/tool-profile/index.ts +7 -2
- package/node_modules/@smithy/core/package.json +2 -2
- package/node_modules/@smithy/middleware-endpoint/package.json +3 -3
- package/node_modules/@smithy/middleware-retry/package.json +2 -2
- package/node_modules/@smithy/middleware-serde/package.json +2 -2
- package/node_modules/@smithy/node-http-handler/dist-cjs/index.js +44 -37
- package/node_modules/@smithy/node-http-handler/dist-es/node-http-handler.js +38 -31
- package/node_modules/@smithy/node-http-handler/dist-es/node-http2-connection-manager.js +1 -1
- package/node_modules/@smithy/node-http-handler/dist-es/node-http2-handler.js +1 -1
- package/node_modules/@smithy/node-http-handler/dist-es/readable.mock.js +1 -1
- package/node_modules/@smithy/node-http-handler/dist-es/server.mock.js +6 -6
- package/node_modules/@smithy/node-http-handler/dist-es/stream-collector/collector.js +1 -1
- package/node_modules/@smithy/node-http-handler/dist-es/stream-collector/readable.mock.js +1 -1
- package/node_modules/@smithy/node-http-handler/dist-es/write-request-body.js +1 -1
- package/node_modules/@smithy/node-http-handler/dist-types/get-transformed-headers.d.ts +1 -1
- package/node_modules/@smithy/node-http-handler/dist-types/node-http-handler.d.ts +4 -4
- package/node_modules/@smithy/node-http-handler/dist-types/node-http2-connection-manager.d.ts +1 -1
- package/node_modules/@smithy/node-http-handler/dist-types/node-http2-connection-pool.d.ts +1 -1
- package/node_modules/@smithy/node-http-handler/dist-types/readable.mock.d.ts +2 -2
- package/node_modules/@smithy/node-http-handler/dist-types/server.mock.d.ts +3 -3
- package/node_modules/@smithy/node-http-handler/dist-types/set-connection-timeout.d.ts +1 -1
- package/node_modules/@smithy/node-http-handler/dist-types/set-request-timeout.d.ts +1 -1
- package/node_modules/@smithy/node-http-handler/dist-types/set-socket-keep-alive.d.ts +1 -1
- package/node_modules/@smithy/node-http-handler/dist-types/set-socket-timeout.d.ts +1 -1
- package/node_modules/@smithy/node-http-handler/dist-types/stream-collector/collector.d.ts +1 -1
- package/node_modules/@smithy/node-http-handler/dist-types/stream-collector/readable.mock.d.ts +2 -2
- package/node_modules/@smithy/node-http-handler/dist-types/ts3.4/get-transformed-headers.d.ts +1 -1
- package/node_modules/@smithy/node-http-handler/dist-types/ts3.4/node-http-handler.d.ts +4 -4
- package/node_modules/@smithy/node-http-handler/dist-types/ts3.4/node-http2-connection-manager.d.ts +1 -1
- package/node_modules/@smithy/node-http-handler/dist-types/ts3.4/node-http2-connection-pool.d.ts +1 -1
- package/node_modules/@smithy/node-http-handler/dist-types/ts3.4/readable.mock.d.ts +2 -2
- package/node_modules/@smithy/node-http-handler/dist-types/ts3.4/server.mock.d.ts +3 -3
- package/node_modules/@smithy/node-http-handler/dist-types/ts3.4/set-connection-timeout.d.ts +1 -1
- package/node_modules/@smithy/node-http-handler/dist-types/ts3.4/set-request-timeout.d.ts +1 -1
- package/node_modules/@smithy/node-http-handler/dist-types/ts3.4/set-socket-keep-alive.d.ts +1 -1
- package/node_modules/@smithy/node-http-handler/dist-types/ts3.4/set-socket-timeout.d.ts +1 -1
- package/node_modules/@smithy/node-http-handler/dist-types/ts3.4/stream-collector/collector.d.ts +1 -1
- package/node_modules/@smithy/node-http-handler/dist-types/ts3.4/stream-collector/readable.mock.d.ts +2 -2
- package/node_modules/@smithy/node-http-handler/dist-types/ts3.4/write-request-body.d.ts +2 -2
- package/node_modules/@smithy/node-http-handler/dist-types/write-request-body.d.ts +2 -2
- package/node_modules/@smithy/node-http-handler/package.json +1 -1
- package/node_modules/@smithy/smithy-client/package.json +4 -4
- package/node_modules/@smithy/util-defaults-mode-browser/package.json +2 -2
- package/node_modules/@smithy/util-defaults-mode-node/package.json +2 -2
- package/node_modules/@smithy/util-stream/package.json +2 -2
- package/node_modules/file-type/core.js +86 -9
- package/node_modules/file-type/index.js +17 -1
- package/node_modules/file-type/package.json +1 -1
- package/node_modules/file-type/readme.md +3 -0
- package/node_modules/gaxios/build/cjs/tsconfig.cjs.tsbuildinfo +1 -1
- package/node_modules/gaxios/build/esm/tsconfig.tsbuildinfo +1 -1
- package/node_modules/gaxios/package.json +13 -14
- package/node_modules/google-auth-library/package.json +2 -2
- package/package.json +5 -5
- package/node_modules/@isaacs/cliui/LICENSE.txt +0 -14
- package/node_modules/@isaacs/cliui/README.md +0 -143
- package/node_modules/@isaacs/cliui/build/index.cjs +0 -317
- package/node_modules/@isaacs/cliui/build/index.d.cts +0 -43
- package/node_modules/@isaacs/cliui/build/lib/index.js +0 -302
- package/node_modules/@isaacs/cliui/index.mjs +0 -14
- package/node_modules/@isaacs/cliui/node_modules/ansi-styles/index.d.ts +0 -236
- package/node_modules/@isaacs/cliui/node_modules/ansi-styles/index.js +0 -223
- package/node_modules/@isaacs/cliui/node_modules/ansi-styles/license +0 -9
- package/node_modules/@isaacs/cliui/node_modules/ansi-styles/package.json +0 -54
- package/node_modules/@isaacs/cliui/node_modules/ansi-styles/readme.md +0 -173
- package/node_modules/@isaacs/cliui/node_modules/emoji-regex/LICENSE-MIT.txt +0 -20
- package/node_modules/@isaacs/cliui/node_modules/emoji-regex/README.md +0 -137
- package/node_modules/@isaacs/cliui/node_modules/emoji-regex/RGI_Emoji.d.ts +0 -5
- package/node_modules/@isaacs/cliui/node_modules/emoji-regex/RGI_Emoji.js +0 -6
- package/node_modules/@isaacs/cliui/node_modules/emoji-regex/es2015/RGI_Emoji.d.ts +0 -5
- package/node_modules/@isaacs/cliui/node_modules/emoji-regex/es2015/RGI_Emoji.js +0 -6
- package/node_modules/@isaacs/cliui/node_modules/emoji-regex/es2015/index.d.ts +0 -5
- package/node_modules/@isaacs/cliui/node_modules/emoji-regex/es2015/index.js +0 -6
- package/node_modules/@isaacs/cliui/node_modules/emoji-regex/es2015/text.d.ts +0 -5
- package/node_modules/@isaacs/cliui/node_modules/emoji-regex/es2015/text.js +0 -6
- package/node_modules/@isaacs/cliui/node_modules/emoji-regex/index.d.ts +0 -5
- package/node_modules/@isaacs/cliui/node_modules/emoji-regex/index.js +0 -6
- package/node_modules/@isaacs/cliui/node_modules/emoji-regex/package.json +0 -52
- package/node_modules/@isaacs/cliui/node_modules/emoji-regex/text.d.ts +0 -5
- package/node_modules/@isaacs/cliui/node_modules/emoji-regex/text.js +0 -6
- package/node_modules/@isaacs/cliui/node_modules/string-width/index.d.ts +0 -29
- package/node_modules/@isaacs/cliui/node_modules/string-width/index.js +0 -54
- package/node_modules/@isaacs/cliui/node_modules/string-width/license +0 -9
- package/node_modules/@isaacs/cliui/node_modules/string-width/package.json +0 -59
- package/node_modules/@isaacs/cliui/node_modules/string-width/readme.md +0 -67
- package/node_modules/@isaacs/cliui/node_modules/wrap-ansi/index.d.ts +0 -41
- package/node_modules/@isaacs/cliui/node_modules/wrap-ansi/index.js +0 -214
- package/node_modules/@isaacs/cliui/node_modules/wrap-ansi/license +0 -9
- package/node_modules/@isaacs/cliui/node_modules/wrap-ansi/package.json +0 -69
- package/node_modules/@isaacs/cliui/node_modules/wrap-ansi/readme.md +0 -91
- package/node_modules/@isaacs/cliui/package.json +0 -86
- package/node_modules/@pkgjs/parseargs/.editorconfig +0 -14
- package/node_modules/@pkgjs/parseargs/CHANGELOG.md +0 -147
- package/node_modules/@pkgjs/parseargs/LICENSE +0 -201
- package/node_modules/@pkgjs/parseargs/README.md +0 -413
- package/node_modules/@pkgjs/parseargs/examples/is-default-value.js +0 -25
- package/node_modules/@pkgjs/parseargs/examples/limit-long-syntax.js +0 -35
- package/node_modules/@pkgjs/parseargs/examples/negate.js +0 -43
- package/node_modules/@pkgjs/parseargs/examples/no-repeated-options.js +0 -31
- package/node_modules/@pkgjs/parseargs/examples/ordered-options.mjs +0 -41
- package/node_modules/@pkgjs/parseargs/examples/simple-hard-coded.js +0 -26
- package/node_modules/@pkgjs/parseargs/index.js +0 -396
- package/node_modules/@pkgjs/parseargs/internal/errors.js +0 -47
- package/node_modules/@pkgjs/parseargs/internal/primordials.js +0 -393
- package/node_modules/@pkgjs/parseargs/internal/util.js +0 -14
- package/node_modules/@pkgjs/parseargs/internal/validators.js +0 -89
- package/node_modules/@pkgjs/parseargs/package.json +0 -36
- package/node_modules/@pkgjs/parseargs/utils.js +0 -198
- package/node_modules/cross-spawn/LICENSE +0 -21
- package/node_modules/cross-spawn/README.md +0 -89
- package/node_modules/cross-spawn/index.js +0 -39
- package/node_modules/cross-spawn/lib/enoent.js +0 -59
- package/node_modules/cross-spawn/lib/parse.js +0 -91
- package/node_modules/cross-spawn/lib/util/escape.js +0 -47
- package/node_modules/cross-spawn/lib/util/readShebang.js +0 -23
- package/node_modules/cross-spawn/lib/util/resolveCommand.js +0 -52
- package/node_modules/cross-spawn/package.json +0 -73
- package/node_modules/eastasianwidth/README.md +0 -32
- package/node_modules/eastasianwidth/eastasianwidth.js +0 -311
- package/node_modules/eastasianwidth/package.json +0 -18
- package/node_modules/foreground-child/LICENSE +0 -15
- package/node_modules/foreground-child/README.md +0 -128
- package/node_modules/foreground-child/dist/commonjs/all-signals.d.ts +0 -2
- package/node_modules/foreground-child/dist/commonjs/all-signals.d.ts.map +0 -1
- package/node_modules/foreground-child/dist/commonjs/all-signals.js +0 -58
- package/node_modules/foreground-child/dist/commonjs/all-signals.js.map +0 -1
- package/node_modules/foreground-child/dist/commonjs/index.d.ts +0 -58
- package/node_modules/foreground-child/dist/commonjs/index.d.ts.map +0 -1
- package/node_modules/foreground-child/dist/commonjs/index.js +0 -123
- package/node_modules/foreground-child/dist/commonjs/index.js.map +0 -1
- package/node_modules/foreground-child/dist/commonjs/package.json +0 -3
- package/node_modules/foreground-child/dist/commonjs/proxy-signals.d.ts +0 -6
- package/node_modules/foreground-child/dist/commonjs/proxy-signals.d.ts.map +0 -1
- package/node_modules/foreground-child/dist/commonjs/proxy-signals.js +0 -38
- package/node_modules/foreground-child/dist/commonjs/proxy-signals.js.map +0 -1
- package/node_modules/foreground-child/dist/commonjs/watchdog.d.ts +0 -10
- package/node_modules/foreground-child/dist/commonjs/watchdog.d.ts.map +0 -1
- package/node_modules/foreground-child/dist/commonjs/watchdog.js +0 -50
- package/node_modules/foreground-child/dist/commonjs/watchdog.js.map +0 -1
- package/node_modules/foreground-child/dist/esm/all-signals.d.ts +0 -2
- package/node_modules/foreground-child/dist/esm/all-signals.d.ts.map +0 -1
- package/node_modules/foreground-child/dist/esm/all-signals.js +0 -52
- package/node_modules/foreground-child/dist/esm/all-signals.js.map +0 -1
- package/node_modules/foreground-child/dist/esm/index.d.ts +0 -58
- package/node_modules/foreground-child/dist/esm/index.d.ts.map +0 -1
- package/node_modules/foreground-child/dist/esm/index.js +0 -115
- package/node_modules/foreground-child/dist/esm/index.js.map +0 -1
- package/node_modules/foreground-child/dist/esm/package.json +0 -3
- package/node_modules/foreground-child/dist/esm/proxy-signals.d.ts +0 -6
- package/node_modules/foreground-child/dist/esm/proxy-signals.d.ts.map +0 -1
- package/node_modules/foreground-child/dist/esm/proxy-signals.js +0 -34
- package/node_modules/foreground-child/dist/esm/proxy-signals.js.map +0 -1
- package/node_modules/foreground-child/dist/esm/watchdog.d.ts +0 -10
- package/node_modules/foreground-child/dist/esm/watchdog.d.ts.map +0 -1
- package/node_modules/foreground-child/dist/esm/watchdog.js +0 -46
- package/node_modules/foreground-child/dist/esm/watchdog.js.map +0 -1
- package/node_modules/foreground-child/node_modules/signal-exit/LICENSE.txt +0 -16
- package/node_modules/foreground-child/node_modules/signal-exit/README.md +0 -74
- package/node_modules/foreground-child/node_modules/signal-exit/dist/cjs/browser.d.ts +0 -12
- package/node_modules/foreground-child/node_modules/signal-exit/dist/cjs/browser.d.ts.map +0 -1
- package/node_modules/foreground-child/node_modules/signal-exit/dist/cjs/browser.js +0 -10
- package/node_modules/foreground-child/node_modules/signal-exit/dist/cjs/browser.js.map +0 -1
- package/node_modules/foreground-child/node_modules/signal-exit/dist/cjs/index.d.ts +0 -48
- package/node_modules/foreground-child/node_modules/signal-exit/dist/cjs/index.d.ts.map +0 -1
- package/node_modules/foreground-child/node_modules/signal-exit/dist/cjs/index.js +0 -279
- package/node_modules/foreground-child/node_modules/signal-exit/dist/cjs/index.js.map +0 -1
- package/node_modules/foreground-child/node_modules/signal-exit/dist/cjs/package.json +0 -3
- package/node_modules/foreground-child/node_modules/signal-exit/dist/cjs/signals.d.ts +0 -29
- package/node_modules/foreground-child/node_modules/signal-exit/dist/cjs/signals.d.ts.map +0 -1
- package/node_modules/foreground-child/node_modules/signal-exit/dist/cjs/signals.js +0 -42
- package/node_modules/foreground-child/node_modules/signal-exit/dist/cjs/signals.js.map +0 -1
- package/node_modules/foreground-child/node_modules/signal-exit/dist/mjs/browser.d.ts +0 -12
- package/node_modules/foreground-child/node_modules/signal-exit/dist/mjs/browser.d.ts.map +0 -1
- package/node_modules/foreground-child/node_modules/signal-exit/dist/mjs/browser.js +0 -4
- package/node_modules/foreground-child/node_modules/signal-exit/dist/mjs/browser.js.map +0 -1
- package/node_modules/foreground-child/node_modules/signal-exit/dist/mjs/index.d.ts +0 -48
- package/node_modules/foreground-child/node_modules/signal-exit/dist/mjs/index.d.ts.map +0 -1
- package/node_modules/foreground-child/node_modules/signal-exit/dist/mjs/index.js +0 -275
- package/node_modules/foreground-child/node_modules/signal-exit/dist/mjs/index.js.map +0 -1
- package/node_modules/foreground-child/node_modules/signal-exit/dist/mjs/package.json +0 -3
- package/node_modules/foreground-child/node_modules/signal-exit/dist/mjs/signals.d.ts +0 -29
- package/node_modules/foreground-child/node_modules/signal-exit/dist/mjs/signals.d.ts.map +0 -1
- package/node_modules/foreground-child/node_modules/signal-exit/dist/mjs/signals.js +0 -39
- package/node_modules/foreground-child/node_modules/signal-exit/dist/mjs/signals.js.map +0 -1
- package/node_modules/foreground-child/node_modules/signal-exit/package.json +0 -106
- package/node_modules/foreground-child/package.json +0 -106
- package/node_modules/isexe/.npmignore +0 -2
- package/node_modules/isexe/LICENSE +0 -15
- package/node_modules/isexe/README.md +0 -51
- package/node_modules/isexe/index.js +0 -57
- package/node_modules/isexe/mode.js +0 -41
- package/node_modules/isexe/package.json +0 -31
- package/node_modules/isexe/test/basic.js +0 -221
- package/node_modules/isexe/windows.js +0 -42
- package/node_modules/jackspeak/LICENSE.md +0 -55
- package/node_modules/jackspeak/README.md +0 -357
- package/node_modules/jackspeak/dist/commonjs/index.d.ts +0 -315
- package/node_modules/jackspeak/dist/commonjs/index.d.ts.map +0 -1
- package/node_modules/jackspeak/dist/commonjs/index.js +0 -1010
- package/node_modules/jackspeak/dist/commonjs/index.js.map +0 -1
- package/node_modules/jackspeak/dist/commonjs/package.json +0 -3
- package/node_modules/jackspeak/dist/commonjs/parse-args-cjs.cjs.map +0 -1
- package/node_modules/jackspeak/dist/commonjs/parse-args-cjs.d.cts.map +0 -1
- package/node_modules/jackspeak/dist/commonjs/parse-args.d.ts +0 -4
- package/node_modules/jackspeak/dist/commonjs/parse-args.js +0 -50
- package/node_modules/jackspeak/dist/esm/index.d.ts +0 -315
- package/node_modules/jackspeak/dist/esm/index.d.ts.map +0 -1
- package/node_modules/jackspeak/dist/esm/index.js +0 -1000
- package/node_modules/jackspeak/dist/esm/index.js.map +0 -1
- package/node_modules/jackspeak/dist/esm/package.json +0 -3
- package/node_modules/jackspeak/dist/esm/parse-args.d.ts +0 -4
- package/node_modules/jackspeak/dist/esm/parse-args.d.ts.map +0 -1
- package/node_modules/jackspeak/dist/esm/parse-args.js +0 -26
- package/node_modules/jackspeak/dist/esm/parse-args.js.map +0 -1
- package/node_modules/jackspeak/package.json +0 -95
- package/node_modules/package-json-from-dist/LICENSE.md +0 -63
- package/node_modules/package-json-from-dist/README.md +0 -110
- package/node_modules/package-json-from-dist/dist/commonjs/index.d.ts +0 -89
- package/node_modules/package-json-from-dist/dist/commonjs/index.d.ts.map +0 -1
- package/node_modules/package-json-from-dist/dist/commonjs/index.js +0 -134
- package/node_modules/package-json-from-dist/dist/commonjs/index.js.map +0 -1
- package/node_modules/package-json-from-dist/dist/commonjs/package.json +0 -3
- package/node_modules/package-json-from-dist/dist/esm/index.d.ts +0 -89
- package/node_modules/package-json-from-dist/dist/esm/index.d.ts.map +0 -1
- package/node_modules/package-json-from-dist/dist/esm/index.js +0 -129
- package/node_modules/package-json-from-dist/dist/esm/index.js.map +0 -1
- package/node_modules/package-json-from-dist/dist/esm/package.json +0 -3
- package/node_modules/package-json-from-dist/package.json +0 -68
- package/node_modules/path-key/index.d.ts +0 -40
- package/node_modules/path-key/index.js +0 -16
- package/node_modules/path-key/license +0 -9
- package/node_modules/path-key/package.json +0 -39
- package/node_modules/path-key/readme.md +0 -61
- package/node_modules/rimraf/LICENSE +0 -15
- package/node_modules/rimraf/README.md +0 -220
- package/node_modules/rimraf/dist/commonjs/default-tmp.d.ts +0 -3
- package/node_modules/rimraf/dist/commonjs/default-tmp.d.ts.map +0 -1
- package/node_modules/rimraf/dist/commonjs/default-tmp.js +0 -61
- package/node_modules/rimraf/dist/commonjs/default-tmp.js.map +0 -1
- package/node_modules/rimraf/dist/commonjs/fix-eperm.d.ts +0 -3
- package/node_modules/rimraf/dist/commonjs/fix-eperm.d.ts.map +0 -1
- package/node_modules/rimraf/dist/commonjs/fix-eperm.js +0 -58
- package/node_modules/rimraf/dist/commonjs/fix-eperm.js.map +0 -1
- package/node_modules/rimraf/dist/commonjs/fs.d.ts +0 -17
- package/node_modules/rimraf/dist/commonjs/fs.d.ts.map +0 -1
- package/node_modules/rimraf/dist/commonjs/fs.js +0 -46
- package/node_modules/rimraf/dist/commonjs/fs.js.map +0 -1
- package/node_modules/rimraf/dist/commonjs/ignore-enoent.d.ts +0 -3
- package/node_modules/rimraf/dist/commonjs/ignore-enoent.d.ts.map +0 -1
- package/node_modules/rimraf/dist/commonjs/ignore-enoent.js +0 -21
- package/node_modules/rimraf/dist/commonjs/ignore-enoent.js.map +0 -1
- package/node_modules/rimraf/dist/commonjs/index.d.ts +0 -50
- package/node_modules/rimraf/dist/commonjs/index.d.ts.map +0 -1
- package/node_modules/rimraf/dist/commonjs/index.js +0 -78
- package/node_modules/rimraf/dist/commonjs/index.js.map +0 -1
- package/node_modules/rimraf/dist/commonjs/opt-arg.d.ts +0 -34
- package/node_modules/rimraf/dist/commonjs/opt-arg.d.ts.map +0 -1
- package/node_modules/rimraf/dist/commonjs/opt-arg.js +0 -53
- package/node_modules/rimraf/dist/commonjs/opt-arg.js.map +0 -1
- package/node_modules/rimraf/dist/commonjs/package.json +0 -3
- package/node_modules/rimraf/dist/commonjs/path-arg.d.ts +0 -4
- package/node_modules/rimraf/dist/commonjs/path-arg.d.ts.map +0 -1
- package/node_modules/rimraf/dist/commonjs/path-arg.js +0 -52
- package/node_modules/rimraf/dist/commonjs/path-arg.js.map +0 -1
- package/node_modules/rimraf/dist/commonjs/platform.d.ts +0 -3
- package/node_modules/rimraf/dist/commonjs/platform.d.ts.map +0 -1
- package/node_modules/rimraf/dist/commonjs/platform.js +0 -4
- package/node_modules/rimraf/dist/commonjs/platform.js.map +0 -1
- package/node_modules/rimraf/dist/commonjs/readdir-or-error.d.ts +0 -3
- package/node_modules/rimraf/dist/commonjs/readdir-or-error.d.ts.map +0 -1
- package/node_modules/rimraf/dist/commonjs/readdir-or-error.js +0 -19
- package/node_modules/rimraf/dist/commonjs/readdir-or-error.js.map +0 -1
- package/node_modules/rimraf/dist/commonjs/retry-busy.d.ts +0 -8
- package/node_modules/rimraf/dist/commonjs/retry-busy.d.ts.map +0 -1
- package/node_modules/rimraf/dist/commonjs/retry-busy.js +0 -68
- package/node_modules/rimraf/dist/commonjs/retry-busy.js.map +0 -1
- package/node_modules/rimraf/dist/commonjs/rimraf-manual.d.ts +0 -3
- package/node_modules/rimraf/dist/commonjs/rimraf-manual.d.ts.map +0 -1
- package/node_modules/rimraf/dist/commonjs/rimraf-manual.js +0 -12
- package/node_modules/rimraf/dist/commonjs/rimraf-manual.js.map +0 -1
- package/node_modules/rimraf/dist/commonjs/rimraf-move-remove.d.ts +0 -4
- package/node_modules/rimraf/dist/commonjs/rimraf-move-remove.d.ts.map +0 -1
- package/node_modules/rimraf/dist/commonjs/rimraf-move-remove.js +0 -192
- package/node_modules/rimraf/dist/commonjs/rimraf-move-remove.js.map +0 -1
- package/node_modules/rimraf/dist/commonjs/rimraf-native.d.ts +0 -4
- package/node_modules/rimraf/dist/commonjs/rimraf-native.d.ts.map +0 -1
- package/node_modules/rimraf/dist/commonjs/rimraf-native.js +0 -24
- package/node_modules/rimraf/dist/commonjs/rimraf-native.js.map +0 -1
- package/node_modules/rimraf/dist/commonjs/rimraf-posix.d.ts +0 -4
- package/node_modules/rimraf/dist/commonjs/rimraf-posix.d.ts.map +0 -1
- package/node_modules/rimraf/dist/commonjs/rimraf-posix.js +0 -123
- package/node_modules/rimraf/dist/commonjs/rimraf-posix.js.map +0 -1
- package/node_modules/rimraf/dist/commonjs/rimraf-windows.d.ts +0 -4
- package/node_modules/rimraf/dist/commonjs/rimraf-windows.d.ts.map +0 -1
- package/node_modules/rimraf/dist/commonjs/rimraf-windows.js +0 -182
- package/node_modules/rimraf/dist/commonjs/rimraf-windows.js.map +0 -1
- package/node_modules/rimraf/dist/commonjs/use-native.d.ts +0 -4
- package/node_modules/rimraf/dist/commonjs/use-native.d.ts.map +0 -1
- package/node_modules/rimraf/dist/commonjs/use-native.js +0 -22
- package/node_modules/rimraf/dist/commonjs/use-native.js.map +0 -1
- package/node_modules/rimraf/dist/esm/bin.d.mts +0 -8
- package/node_modules/rimraf/dist/esm/bin.d.mts.map +0 -1
- package/node_modules/rimraf/dist/esm/bin.mjs +0 -256
- package/node_modules/rimraf/dist/esm/bin.mjs.map +0 -1
- package/node_modules/rimraf/dist/esm/default-tmp.d.ts +0 -3
- package/node_modules/rimraf/dist/esm/default-tmp.d.ts.map +0 -1
- package/node_modules/rimraf/dist/esm/default-tmp.js +0 -55
- package/node_modules/rimraf/dist/esm/default-tmp.js.map +0 -1
- package/node_modules/rimraf/dist/esm/fix-eperm.d.ts +0 -3
- package/node_modules/rimraf/dist/esm/fix-eperm.d.ts.map +0 -1
- package/node_modules/rimraf/dist/esm/fix-eperm.js +0 -53
- package/node_modules/rimraf/dist/esm/fix-eperm.js.map +0 -1
- package/node_modules/rimraf/dist/esm/fs.d.ts +0 -17
- package/node_modules/rimraf/dist/esm/fs.d.ts.map +0 -1
- package/node_modules/rimraf/dist/esm/fs.js +0 -31
- package/node_modules/rimraf/dist/esm/fs.js.map +0 -1
- package/node_modules/rimraf/dist/esm/ignore-enoent.d.ts +0 -3
- package/node_modules/rimraf/dist/esm/ignore-enoent.d.ts.map +0 -1
- package/node_modules/rimraf/dist/esm/ignore-enoent.js +0 -16
- package/node_modules/rimraf/dist/esm/ignore-enoent.js.map +0 -1
- package/node_modules/rimraf/dist/esm/index.d.ts +0 -50
- package/node_modules/rimraf/dist/esm/index.d.ts.map +0 -1
- package/node_modules/rimraf/dist/esm/index.js +0 -70
- package/node_modules/rimraf/dist/esm/index.js.map +0 -1
- package/node_modules/rimraf/dist/esm/opt-arg.d.ts +0 -34
- package/node_modules/rimraf/dist/esm/opt-arg.d.ts.map +0 -1
- package/node_modules/rimraf/dist/esm/opt-arg.js +0 -46
- package/node_modules/rimraf/dist/esm/opt-arg.js.map +0 -1
- package/node_modules/rimraf/dist/esm/package.json +0 -3
- package/node_modules/rimraf/dist/esm/path-arg.d.ts +0 -4
- package/node_modules/rimraf/dist/esm/path-arg.d.ts.map +0 -1
- package/node_modules/rimraf/dist/esm/path-arg.js +0 -47
- package/node_modules/rimraf/dist/esm/path-arg.js.map +0 -1
- package/node_modules/rimraf/dist/esm/platform.d.ts +0 -3
- package/node_modules/rimraf/dist/esm/platform.d.ts.map +0 -1
- package/node_modules/rimraf/dist/esm/platform.js +0 -2
- package/node_modules/rimraf/dist/esm/platform.js.map +0 -1
- package/node_modules/rimraf/dist/esm/readdir-or-error.d.ts +0 -3
- package/node_modules/rimraf/dist/esm/readdir-or-error.d.ts.map +0 -1
- package/node_modules/rimraf/dist/esm/readdir-or-error.js +0 -14
- package/node_modules/rimraf/dist/esm/readdir-or-error.js.map +0 -1
- package/node_modules/rimraf/dist/esm/retry-busy.d.ts +0 -8
- package/node_modules/rimraf/dist/esm/retry-busy.d.ts.map +0 -1
- package/node_modules/rimraf/dist/esm/retry-busy.js +0 -63
- package/node_modules/rimraf/dist/esm/retry-busy.js.map +0 -1
- package/node_modules/rimraf/dist/esm/rimraf-manual.d.ts +0 -3
- package/node_modules/rimraf/dist/esm/rimraf-manual.d.ts.map +0 -1
- package/node_modules/rimraf/dist/esm/rimraf-manual.js +0 -6
- package/node_modules/rimraf/dist/esm/rimraf-manual.js.map +0 -1
- package/node_modules/rimraf/dist/esm/rimraf-move-remove.d.ts +0 -4
- package/node_modules/rimraf/dist/esm/rimraf-move-remove.d.ts.map +0 -1
- package/node_modules/rimraf/dist/esm/rimraf-move-remove.js +0 -187
- package/node_modules/rimraf/dist/esm/rimraf-move-remove.js.map +0 -1
- package/node_modules/rimraf/dist/esm/rimraf-native.d.ts +0 -4
- package/node_modules/rimraf/dist/esm/rimraf-native.d.ts.map +0 -1
- package/node_modules/rimraf/dist/esm/rimraf-native.js +0 -19
- package/node_modules/rimraf/dist/esm/rimraf-native.js.map +0 -1
- package/node_modules/rimraf/dist/esm/rimraf-posix.d.ts +0 -4
- package/node_modules/rimraf/dist/esm/rimraf-posix.d.ts.map +0 -1
- package/node_modules/rimraf/dist/esm/rimraf-posix.js +0 -118
- package/node_modules/rimraf/dist/esm/rimraf-posix.js.map +0 -1
- package/node_modules/rimraf/dist/esm/rimraf-windows.d.ts +0 -4
- package/node_modules/rimraf/dist/esm/rimraf-windows.d.ts.map +0 -1
- package/node_modules/rimraf/dist/esm/rimraf-windows.js +0 -177
- package/node_modules/rimraf/dist/esm/rimraf-windows.js.map +0 -1
- package/node_modules/rimraf/dist/esm/use-native.d.ts +0 -4
- package/node_modules/rimraf/dist/esm/use-native.d.ts.map +0 -1
- package/node_modules/rimraf/dist/esm/use-native.js +0 -16
- package/node_modules/rimraf/dist/esm/use-native.js.map +0 -1
- package/node_modules/rimraf/node_modules/balanced-match/.github/FUNDING.yml +0 -2
- package/node_modules/rimraf/node_modules/balanced-match/LICENSE.md +0 -21
- package/node_modules/rimraf/node_modules/balanced-match/README.md +0 -97
- package/node_modules/rimraf/node_modules/balanced-match/index.js +0 -62
- package/node_modules/rimraf/node_modules/balanced-match/package.json +0 -48
- package/node_modules/rimraf/node_modules/brace-expansion/.github/FUNDING.yml +0 -2
- package/node_modules/rimraf/node_modules/brace-expansion/LICENSE +0 -21
- package/node_modules/rimraf/node_modules/brace-expansion/README.md +0 -135
- package/node_modules/rimraf/node_modules/brace-expansion/index.js +0 -203
- package/node_modules/rimraf/node_modules/brace-expansion/package.json +0 -49
- package/node_modules/rimraf/node_modules/glob/LICENSE +0 -15
- package/node_modules/rimraf/node_modules/glob/README.md +0 -1265
- package/node_modules/rimraf/node_modules/glob/dist/commonjs/glob.d.ts +0 -388
- package/node_modules/rimraf/node_modules/glob/dist/commonjs/glob.d.ts.map +0 -1
- package/node_modules/rimraf/node_modules/glob/dist/commonjs/glob.js +0 -247
- package/node_modules/rimraf/node_modules/glob/dist/commonjs/glob.js.map +0 -1
- package/node_modules/rimraf/node_modules/glob/dist/commonjs/has-magic.d.ts +0 -14
- package/node_modules/rimraf/node_modules/glob/dist/commonjs/has-magic.d.ts.map +0 -1
- package/node_modules/rimraf/node_modules/glob/dist/commonjs/has-magic.js +0 -27
- package/node_modules/rimraf/node_modules/glob/dist/commonjs/has-magic.js.map +0 -1
- package/node_modules/rimraf/node_modules/glob/dist/commonjs/ignore.d.ts +0 -24
- package/node_modules/rimraf/node_modules/glob/dist/commonjs/ignore.d.ts.map +0 -1
- package/node_modules/rimraf/node_modules/glob/dist/commonjs/ignore.js +0 -119
- package/node_modules/rimraf/node_modules/glob/dist/commonjs/ignore.js.map +0 -1
- package/node_modules/rimraf/node_modules/glob/dist/commonjs/index.d.ts +0 -97
- package/node_modules/rimraf/node_modules/glob/dist/commonjs/index.d.ts.map +0 -1
- package/node_modules/rimraf/node_modules/glob/dist/commonjs/index.js +0 -68
- package/node_modules/rimraf/node_modules/glob/dist/commonjs/index.js.map +0 -1
- package/node_modules/rimraf/node_modules/glob/dist/commonjs/package.json +0 -3
- package/node_modules/rimraf/node_modules/glob/dist/commonjs/pattern.d.ts +0 -76
- package/node_modules/rimraf/node_modules/glob/dist/commonjs/pattern.d.ts.map +0 -1
- package/node_modules/rimraf/node_modules/glob/dist/commonjs/pattern.js +0 -219
- package/node_modules/rimraf/node_modules/glob/dist/commonjs/pattern.js.map +0 -1
- package/node_modules/rimraf/node_modules/glob/dist/commonjs/processor.d.ts +0 -59
- package/node_modules/rimraf/node_modules/glob/dist/commonjs/processor.d.ts.map +0 -1
- package/node_modules/rimraf/node_modules/glob/dist/commonjs/processor.js +0 -301
- package/node_modules/rimraf/node_modules/glob/dist/commonjs/processor.js.map +0 -1
- package/node_modules/rimraf/node_modules/glob/dist/commonjs/walker.d.ts +0 -97
- package/node_modules/rimraf/node_modules/glob/dist/commonjs/walker.d.ts.map +0 -1
- package/node_modules/rimraf/node_modules/glob/dist/commonjs/walker.js +0 -387
- package/node_modules/rimraf/node_modules/glob/dist/commonjs/walker.js.map +0 -1
- package/node_modules/rimraf/node_modules/glob/dist/esm/bin.d.mts +0 -3
- package/node_modules/rimraf/node_modules/glob/dist/esm/bin.d.mts.map +0 -1
- package/node_modules/rimraf/node_modules/glob/dist/esm/bin.mjs +0 -346
- package/node_modules/rimraf/node_modules/glob/dist/esm/bin.mjs.map +0 -1
- package/node_modules/rimraf/node_modules/glob/dist/esm/glob.d.ts +0 -388
- package/node_modules/rimraf/node_modules/glob/dist/esm/glob.d.ts.map +0 -1
- package/node_modules/rimraf/node_modules/glob/dist/esm/glob.js +0 -243
- package/node_modules/rimraf/node_modules/glob/dist/esm/glob.js.map +0 -1
- package/node_modules/rimraf/node_modules/glob/dist/esm/has-magic.d.ts +0 -14
- package/node_modules/rimraf/node_modules/glob/dist/esm/has-magic.d.ts.map +0 -1
- package/node_modules/rimraf/node_modules/glob/dist/esm/has-magic.js +0 -23
- package/node_modules/rimraf/node_modules/glob/dist/esm/has-magic.js.map +0 -1
- package/node_modules/rimraf/node_modules/glob/dist/esm/ignore.d.ts +0 -24
- package/node_modules/rimraf/node_modules/glob/dist/esm/ignore.d.ts.map +0 -1
- package/node_modules/rimraf/node_modules/glob/dist/esm/ignore.js +0 -115
- package/node_modules/rimraf/node_modules/glob/dist/esm/ignore.js.map +0 -1
- package/node_modules/rimraf/node_modules/glob/dist/esm/index.d.ts +0 -97
- package/node_modules/rimraf/node_modules/glob/dist/esm/index.d.ts.map +0 -1
- package/node_modules/rimraf/node_modules/glob/dist/esm/index.js +0 -55
- package/node_modules/rimraf/node_modules/glob/dist/esm/index.js.map +0 -1
- package/node_modules/rimraf/node_modules/glob/dist/esm/package.json +0 -3
- package/node_modules/rimraf/node_modules/glob/dist/esm/pattern.d.ts +0 -76
- package/node_modules/rimraf/node_modules/glob/dist/esm/pattern.d.ts.map +0 -1
- package/node_modules/rimraf/node_modules/glob/dist/esm/pattern.js +0 -215
- package/node_modules/rimraf/node_modules/glob/dist/esm/pattern.js.map +0 -1
- package/node_modules/rimraf/node_modules/glob/dist/esm/processor.d.ts +0 -59
- package/node_modules/rimraf/node_modules/glob/dist/esm/processor.d.ts.map +0 -1
- package/node_modules/rimraf/node_modules/glob/dist/esm/processor.js +0 -294
- package/node_modules/rimraf/node_modules/glob/dist/esm/processor.js.map +0 -1
- package/node_modules/rimraf/node_modules/glob/dist/esm/walker.d.ts +0 -97
- package/node_modules/rimraf/node_modules/glob/dist/esm/walker.d.ts.map +0 -1
- package/node_modules/rimraf/node_modules/glob/dist/esm/walker.js +0 -381
- package/node_modules/rimraf/node_modules/glob/dist/esm/walker.js.map +0 -1
- package/node_modules/rimraf/node_modules/glob/package.json +0 -99
- package/node_modules/rimraf/node_modules/lru-cache/LICENSE +0 -15
- package/node_modules/rimraf/node_modules/lru-cache/README.md +0 -331
- package/node_modules/rimraf/node_modules/lru-cache/dist/commonjs/index.d.ts +0 -1277
- package/node_modules/rimraf/node_modules/lru-cache/dist/commonjs/index.d.ts.map +0 -1
- package/node_modules/rimraf/node_modules/lru-cache/dist/commonjs/index.js +0 -1546
- package/node_modules/rimraf/node_modules/lru-cache/dist/commonjs/index.js.map +0 -1
- package/node_modules/rimraf/node_modules/lru-cache/dist/commonjs/index.min.js +0 -2
- package/node_modules/rimraf/node_modules/lru-cache/dist/commonjs/index.min.js.map +0 -7
- package/node_modules/rimraf/node_modules/lru-cache/dist/commonjs/package.json +0 -3
- package/node_modules/rimraf/node_modules/lru-cache/dist/esm/index.d.ts +0 -1277
- package/node_modules/rimraf/node_modules/lru-cache/dist/esm/index.d.ts.map +0 -1
- package/node_modules/rimraf/node_modules/lru-cache/dist/esm/index.js +0 -1542
- package/node_modules/rimraf/node_modules/lru-cache/dist/esm/index.js.map +0 -1
- package/node_modules/rimraf/node_modules/lru-cache/dist/esm/index.min.js +0 -2
- package/node_modules/rimraf/node_modules/lru-cache/dist/esm/index.min.js.map +0 -7
- package/node_modules/rimraf/node_modules/lru-cache/dist/esm/package.json +0 -3
- package/node_modules/rimraf/node_modules/lru-cache/package.json +0 -116
- package/node_modules/rimraf/node_modules/minimatch/LICENSE +0 -15
- package/node_modules/rimraf/node_modules/minimatch/README.md +0 -491
- package/node_modules/rimraf/node_modules/minimatch/dist/commonjs/assert-valid-pattern.d.ts +0 -2
- package/node_modules/rimraf/node_modules/minimatch/dist/commonjs/assert-valid-pattern.d.ts.map +0 -1
- package/node_modules/rimraf/node_modules/minimatch/dist/commonjs/assert-valid-pattern.js +0 -14
- package/node_modules/rimraf/node_modules/minimatch/dist/commonjs/assert-valid-pattern.js.map +0 -1
- package/node_modules/rimraf/node_modules/minimatch/dist/commonjs/ast.d.ts +0 -20
- package/node_modules/rimraf/node_modules/minimatch/dist/commonjs/ast.d.ts.map +0 -1
- package/node_modules/rimraf/node_modules/minimatch/dist/commonjs/ast.js +0 -747
- package/node_modules/rimraf/node_modules/minimatch/dist/commonjs/ast.js.map +0 -1
- package/node_modules/rimraf/node_modules/minimatch/dist/commonjs/brace-expressions.d.ts +0 -8
- package/node_modules/rimraf/node_modules/minimatch/dist/commonjs/brace-expressions.d.ts.map +0 -1
- package/node_modules/rimraf/node_modules/minimatch/dist/commonjs/brace-expressions.js +0 -152
- package/node_modules/rimraf/node_modules/minimatch/dist/commonjs/brace-expressions.js.map +0 -1
- package/node_modules/rimraf/node_modules/minimatch/dist/commonjs/escape.d.ts +0 -12
- package/node_modules/rimraf/node_modules/minimatch/dist/commonjs/escape.d.ts.map +0 -1
- package/node_modules/rimraf/node_modules/minimatch/dist/commonjs/escape.js +0 -22
- package/node_modules/rimraf/node_modules/minimatch/dist/commonjs/escape.js.map +0 -1
- package/node_modules/rimraf/node_modules/minimatch/dist/commonjs/index.d.ts +0 -98
- package/node_modules/rimraf/node_modules/minimatch/dist/commonjs/index.d.ts.map +0 -1
- package/node_modules/rimraf/node_modules/minimatch/dist/commonjs/index.js +0 -1023
- package/node_modules/rimraf/node_modules/minimatch/dist/commonjs/index.js.map +0 -1
- package/node_modules/rimraf/node_modules/minimatch/dist/commonjs/package.json +0 -3
- package/node_modules/rimraf/node_modules/minimatch/dist/commonjs/unescape.d.ts +0 -17
- package/node_modules/rimraf/node_modules/minimatch/dist/commonjs/unescape.d.ts.map +0 -1
- package/node_modules/rimraf/node_modules/minimatch/dist/commonjs/unescape.js +0 -24
- package/node_modules/rimraf/node_modules/minimatch/dist/commonjs/unescape.js.map +0 -1
- package/node_modules/rimraf/node_modules/minimatch/dist/esm/assert-valid-pattern.d.ts +0 -2
- package/node_modules/rimraf/node_modules/minimatch/dist/esm/assert-valid-pattern.d.ts.map +0 -1
- package/node_modules/rimraf/node_modules/minimatch/dist/esm/assert-valid-pattern.js +0 -10
- package/node_modules/rimraf/node_modules/minimatch/dist/esm/assert-valid-pattern.js.map +0 -1
- package/node_modules/rimraf/node_modules/minimatch/dist/esm/ast.d.ts +0 -20
- package/node_modules/rimraf/node_modules/minimatch/dist/esm/ast.d.ts.map +0 -1
- package/node_modules/rimraf/node_modules/minimatch/dist/esm/ast.js +0 -743
- package/node_modules/rimraf/node_modules/minimatch/dist/esm/ast.js.map +0 -1
- package/node_modules/rimraf/node_modules/minimatch/dist/esm/brace-expressions.d.ts +0 -8
- package/node_modules/rimraf/node_modules/minimatch/dist/esm/brace-expressions.d.ts.map +0 -1
- package/node_modules/rimraf/node_modules/minimatch/dist/esm/brace-expressions.js +0 -148
- package/node_modules/rimraf/node_modules/minimatch/dist/esm/brace-expressions.js.map +0 -1
- package/node_modules/rimraf/node_modules/minimatch/dist/esm/escape.d.ts +0 -12
- package/node_modules/rimraf/node_modules/minimatch/dist/esm/escape.d.ts.map +0 -1
- package/node_modules/rimraf/node_modules/minimatch/dist/esm/escape.js +0 -18
- package/node_modules/rimraf/node_modules/minimatch/dist/esm/escape.js.map +0 -1
- package/node_modules/rimraf/node_modules/minimatch/dist/esm/index.d.ts +0 -98
- package/node_modules/rimraf/node_modules/minimatch/dist/esm/index.d.ts.map +0 -1
- package/node_modules/rimraf/node_modules/minimatch/dist/esm/index.js +0 -1007
- package/node_modules/rimraf/node_modules/minimatch/dist/esm/index.js.map +0 -1
- package/node_modules/rimraf/node_modules/minimatch/dist/esm/package.json +0 -3
- package/node_modules/rimraf/node_modules/minimatch/dist/esm/unescape.d.ts +0 -17
- package/node_modules/rimraf/node_modules/minimatch/dist/esm/unescape.d.ts.map +0 -1
- package/node_modules/rimraf/node_modules/minimatch/dist/esm/unescape.js +0 -20
- package/node_modules/rimraf/node_modules/minimatch/dist/esm/unescape.js.map +0 -1
- package/node_modules/rimraf/node_modules/minimatch/package.json +0 -82
- package/node_modules/rimraf/node_modules/path-scurry/LICENSE.md +0 -55
- package/node_modules/rimraf/node_modules/path-scurry/README.md +0 -636
- package/node_modules/rimraf/node_modules/path-scurry/dist/commonjs/index.d.ts +0 -1116
- package/node_modules/rimraf/node_modules/path-scurry/dist/commonjs/index.d.ts.map +0 -1
- package/node_modules/rimraf/node_modules/path-scurry/dist/commonjs/index.js +0 -2014
- package/node_modules/rimraf/node_modules/path-scurry/dist/commonjs/index.js.map +0 -1
- package/node_modules/rimraf/node_modules/path-scurry/dist/commonjs/package.json +0 -3
- package/node_modules/rimraf/node_modules/path-scurry/dist/esm/index.d.ts +0 -1116
- package/node_modules/rimraf/node_modules/path-scurry/dist/esm/index.d.ts.map +0 -1
- package/node_modules/rimraf/node_modules/path-scurry/dist/esm/index.js +0 -1979
- package/node_modules/rimraf/node_modules/path-scurry/dist/esm/index.js.map +0 -1
- package/node_modules/rimraf/node_modules/path-scurry/dist/esm/package.json +0 -3
- package/node_modules/rimraf/node_modules/path-scurry/package.json +0 -89
- package/node_modules/rimraf/package.json +0 -89
- package/node_modules/shebang-command/index.js +0 -19
- package/node_modules/shebang-command/license +0 -9
- package/node_modules/shebang-command/package.json +0 -34
- package/node_modules/shebang-command/readme.md +0 -34
- package/node_modules/shebang-regex/index.d.ts +0 -22
- package/node_modules/shebang-regex/index.js +0 -2
- package/node_modules/shebang-regex/license +0 -9
- package/node_modules/shebang-regex/package.json +0 -35
- package/node_modules/shebang-regex/readme.md +0 -33
- package/node_modules/string-width-cjs/index.d.ts +0 -29
- package/node_modules/string-width-cjs/index.js +0 -47
- package/node_modules/string-width-cjs/license +0 -9
- package/node_modules/string-width-cjs/node_modules/ansi-regex/index.d.ts +0 -37
- package/node_modules/string-width-cjs/node_modules/ansi-regex/index.js +0 -10
- package/node_modules/string-width-cjs/node_modules/ansi-regex/license +0 -9
- package/node_modules/string-width-cjs/node_modules/ansi-regex/package.json +0 -55
- package/node_modules/string-width-cjs/node_modules/ansi-regex/readme.md +0 -78
- package/node_modules/string-width-cjs/node_modules/strip-ansi/index.d.ts +0 -17
- package/node_modules/string-width-cjs/node_modules/strip-ansi/index.js +0 -4
- package/node_modules/string-width-cjs/node_modules/strip-ansi/license +0 -9
- package/node_modules/string-width-cjs/node_modules/strip-ansi/package.json +0 -54
- package/node_modules/string-width-cjs/node_modules/strip-ansi/readme.md +0 -46
- package/node_modules/string-width-cjs/package.json +0 -56
- package/node_modules/string-width-cjs/readme.md +0 -50
- package/node_modules/strip-ansi-cjs/index.d.ts +0 -17
- package/node_modules/strip-ansi-cjs/index.js +0 -4
- package/node_modules/strip-ansi-cjs/license +0 -9
- package/node_modules/strip-ansi-cjs/node_modules/ansi-regex/index.d.ts +0 -37
- package/node_modules/strip-ansi-cjs/node_modules/ansi-regex/index.js +0 -10
- package/node_modules/strip-ansi-cjs/node_modules/ansi-regex/license +0 -9
- package/node_modules/strip-ansi-cjs/node_modules/ansi-regex/package.json +0 -55
- package/node_modules/strip-ansi-cjs/node_modules/ansi-regex/readme.md +0 -78
- package/node_modules/strip-ansi-cjs/package.json +0 -54
- package/node_modules/strip-ansi-cjs/readme.md +0 -46
- package/node_modules/which/CHANGELOG.md +0 -166
- package/node_modules/which/LICENSE +0 -15
- package/node_modules/which/README.md +0 -54
- package/node_modules/which/bin/node-which +0 -52
- package/node_modules/which/package.json +0 -43
- package/node_modules/which/which.js +0 -125
- package/node_modules/wrap-ansi-cjs/index.js +0 -216
- package/node_modules/wrap-ansi-cjs/license +0 -9
- package/node_modules/wrap-ansi-cjs/node_modules/ansi-regex/index.d.ts +0 -37
- package/node_modules/wrap-ansi-cjs/node_modules/ansi-regex/index.js +0 -10
- package/node_modules/wrap-ansi-cjs/node_modules/ansi-regex/license +0 -9
- package/node_modules/wrap-ansi-cjs/node_modules/ansi-regex/package.json +0 -55
- package/node_modules/wrap-ansi-cjs/node_modules/ansi-regex/readme.md +0 -78
- package/node_modules/wrap-ansi-cjs/node_modules/strip-ansi/index.d.ts +0 -17
- package/node_modules/wrap-ansi-cjs/node_modules/strip-ansi/index.js +0 -4
- package/node_modules/wrap-ansi-cjs/node_modules/strip-ansi/license +0 -9
- package/node_modules/wrap-ansi-cjs/node_modules/strip-ansi/package.json +0 -54
- package/node_modules/wrap-ansi-cjs/node_modules/strip-ansi/readme.md +0 -46
- package/node_modules/wrap-ansi-cjs/package.json +0 -62
- package/node_modules/wrap-ansi-cjs/readme.md +0 -91
|
@@ -1,70 +0,0 @@
|
|
|
1
|
-
import { glob, globSync } from 'glob';
|
|
2
|
-
import { optArg, optArgSync, } from './opt-arg.js';
|
|
3
|
-
import pathArg from './path-arg.js';
|
|
4
|
-
import { rimrafManual, rimrafManualSync } from './rimraf-manual.js';
|
|
5
|
-
import { rimrafMoveRemove, rimrafMoveRemoveSync } from './rimraf-move-remove.js';
|
|
6
|
-
import { rimrafNative, rimrafNativeSync } from './rimraf-native.js';
|
|
7
|
-
import { rimrafPosix, rimrafPosixSync } from './rimraf-posix.js';
|
|
8
|
-
import { rimrafWindows, rimrafWindowsSync } from './rimraf-windows.js';
|
|
9
|
-
import { useNative, useNativeSync } from './use-native.js';
|
|
10
|
-
export { assertRimrafOptions, isRimrafOptions, } from './opt-arg.js';
|
|
11
|
-
const wrap = (fn) => async (path, opt) => {
|
|
12
|
-
const options = optArg(opt);
|
|
13
|
-
if (options.glob) {
|
|
14
|
-
path = await glob(path, options.glob);
|
|
15
|
-
}
|
|
16
|
-
if (Array.isArray(path)) {
|
|
17
|
-
return !!(await Promise.all(path.map(p => fn(pathArg(p, options), options)))).reduce((a, b) => a && b, true);
|
|
18
|
-
}
|
|
19
|
-
else {
|
|
20
|
-
return !!(await fn(pathArg(path, options), options));
|
|
21
|
-
}
|
|
22
|
-
};
|
|
23
|
-
const wrapSync = (fn) => (path, opt) => {
|
|
24
|
-
const options = optArgSync(opt);
|
|
25
|
-
if (options.glob) {
|
|
26
|
-
path = globSync(path, options.glob);
|
|
27
|
-
}
|
|
28
|
-
if (Array.isArray(path)) {
|
|
29
|
-
return !!path
|
|
30
|
-
.map(p => fn(pathArg(p, options), options))
|
|
31
|
-
.reduce((a, b) => a && b, true);
|
|
32
|
-
}
|
|
33
|
-
else {
|
|
34
|
-
return !!fn(pathArg(path, options), options);
|
|
35
|
-
}
|
|
36
|
-
};
|
|
37
|
-
export const nativeSync = wrapSync(rimrafNativeSync);
|
|
38
|
-
export const native = Object.assign(wrap(rimrafNative), { sync: nativeSync });
|
|
39
|
-
export const manualSync = wrapSync(rimrafManualSync);
|
|
40
|
-
export const manual = Object.assign(wrap(rimrafManual), { sync: manualSync });
|
|
41
|
-
export const windowsSync = wrapSync(rimrafWindowsSync);
|
|
42
|
-
export const windows = Object.assign(wrap(rimrafWindows), { sync: windowsSync });
|
|
43
|
-
export const posixSync = wrapSync(rimrafPosixSync);
|
|
44
|
-
export const posix = Object.assign(wrap(rimrafPosix), { sync: posixSync });
|
|
45
|
-
export const moveRemoveSync = wrapSync(rimrafMoveRemoveSync);
|
|
46
|
-
export const moveRemove = Object.assign(wrap(rimrafMoveRemove), {
|
|
47
|
-
sync: moveRemoveSync,
|
|
48
|
-
});
|
|
49
|
-
export const rimrafSync = wrapSync((path, opt) => useNativeSync(opt) ?
|
|
50
|
-
rimrafNativeSync(path, opt)
|
|
51
|
-
: rimrafManualSync(path, opt));
|
|
52
|
-
export const sync = rimrafSync;
|
|
53
|
-
const rimraf_ = wrap((path, opt) => useNative(opt) ? rimrafNative(path, opt) : rimrafManual(path, opt));
|
|
54
|
-
export const rimraf = Object.assign(rimraf_, {
|
|
55
|
-
rimraf: rimraf_,
|
|
56
|
-
sync: rimrafSync,
|
|
57
|
-
rimrafSync: rimrafSync,
|
|
58
|
-
manual,
|
|
59
|
-
manualSync,
|
|
60
|
-
native,
|
|
61
|
-
nativeSync,
|
|
62
|
-
posix,
|
|
63
|
-
posixSync,
|
|
64
|
-
windows,
|
|
65
|
-
windowsSync,
|
|
66
|
-
moveRemove,
|
|
67
|
-
moveRemoveSync,
|
|
68
|
-
});
|
|
69
|
-
rimraf.rimraf = rimraf;
|
|
70
|
-
//# source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AAI,EAAE,GAAG,CAAC,CAAC,CAAC,CAAC,YAAY,CAAC,IAAI,EAAE,GAAG,CAAC,CACnE,CAAA;AACD,MAAM,CAAC,MAAM,MAAM,GAAG,MAAM,CAAC,MAAM,CAAC,OAAO,EAAE;IAC3C,MAAM,EAAE,OAAO;IACf,IAAI,EAAE,UAAU;IAChB,UAAU,EAAE,UAAU;IACtB,MAAM;IACN,UAAU;IACV,MAAM;IACN,UAAU;IACV,KAAK;IACL,SAAS;IACT,OAAO;IACP,WAAW;IACX,UAAU;IACV,cAAc;CACf,CAAC,CAAA;AACF,MAAM,CAAC,MAAM,GAAG,MAAM,CAAA","sourcesContent":["import { glob, globSync } from 'glob'\nimport {\n optArg,\n optArgSync,\n RimrafAsyncOptions,\n RimrafSyncOptions,\n} from './opt-arg.js'\nimport pathArg from './path-arg.js'\nimport { rimrafManual, rimrafManualSync } from './rimraf-manual.js'\nimport { rimrafMoveRemove, rimrafMoveRemoveSync } from './rimraf-move-remove.js'\nimport { rimrafNative, rimrafNativeSync } from './rimraf-native.js'\nimport { rimrafPosix, rimrafPosixSync } from './rimraf-posix.js'\nimport { rimrafWindows, rimrafWindowsSync } from './rimraf-windows.js'\nimport { useNative, useNativeSync } from './use-native.js'\n\nexport {\n assertRimrafOptions,\n isRimrafOptions,\n type RimrafAsyncOptions,\n type RimrafOptions,\n type RimrafSyncOptions,\n} from './opt-arg.js'\n\nconst wrap =\n (fn: (p: string, o: RimrafAsyncOptions) => Promise<boolean>) =>\n async (\n path: string | string[],\n opt?: RimrafAsyncOptions,\n ): Promise<boolean> => {\n const options = optArg(opt)\n if (options.glob) {\n path = await glob(path, options.glob)\n }\n if (Array.isArray(path)) {\n return !!(\n await Promise.all(path.map(p => fn(pathArg(p, options), options)))\n ).reduce((a, b) => a && b, true)\n } else {\n return !!(await fn(pathArg(path, options), options))\n }\n }\n\nconst wrapSync =\n (fn: (p: string, o: RimrafSyncOptions) => boolean) =>\n (path: string | string[], opt?: RimrafSyncOptions): boolean => {\n const options = optArgSync(opt)\n if (options.glob) {\n path = globSync(path, options.glob)\n }\n if (Array.isArray(path)) {\n return !!path\n .map(p => fn(pathArg(p, options), options))\n .reduce((a, b) => a && b, true)\n } else {\n return !!fn(pathArg(path, options), options)\n }\n }\n\nexport const nativeSync = wrapSync(rimrafNativeSync)\nexport const native = Object.assign(wrap(rimrafNative), { sync: nativeSync })\n\nexport const manualSync = wrapSync(rimrafManualSync)\nexport const manual = Object.assign(wrap(rimrafManual), { sync: manualSync })\n\nexport const windowsSync = wrapSync(rimrafWindowsSync)\nexport const windows = Object.assign(wrap(rimrafWindows), { sync: windowsSync })\n\nexport const posixSync = wrapSync(rimrafPosixSync)\nexport const posix = Object.assign(wrap(rimrafPosix), { sync: posixSync })\n\nexport const moveRemoveSync = wrapSync(rimrafMoveRemoveSync)\nexport const moveRemove = Object.assign(wrap(rimrafMoveRemove), {\n sync: moveRemoveSync,\n})\n\nexport const rimrafSync = wrapSync((path, opt) =>\n useNativeSync(opt) ?\n rimrafNativeSync(path, opt)\n : rimrafManualSync(path, opt),\n)\nexport const sync = rimrafSync\n\nconst rimraf_ = wrap((path, opt) =>\n useNative(opt) ? rimrafNative(path, opt) : rimrafManual(path, opt),\n)\nexport const rimraf = Object.assign(rimraf_, {\n rimraf: rimraf_,\n sync: rimrafSync,\n rimrafSync: rimrafSync,\n manual,\n manualSync,\n native,\n nativeSync,\n posix,\n posixSync,\n windows,\n windowsSync,\n moveRemove,\n moveRemoveSync,\n})\nrimraf.rimraf = rimraf\n"]}
|
|
@@ -1,34 +0,0 @@
|
|
|
1
|
-
import { Dirent, Stats } from 'fs';
|
|
2
|
-
import { GlobOptions } from 'glob';
|
|
3
|
-
export declare const isRimrafOptions: (o: any) => o is RimrafOptions;
|
|
4
|
-
export declare const assertRimrafOptions: (o: any) => void;
|
|
5
|
-
export interface RimrafAsyncOptions {
|
|
6
|
-
preserveRoot?: boolean;
|
|
7
|
-
tmp?: string;
|
|
8
|
-
maxRetries?: number;
|
|
9
|
-
retryDelay?: number;
|
|
10
|
-
backoff?: number;
|
|
11
|
-
maxBackoff?: number;
|
|
12
|
-
signal?: AbortSignal;
|
|
13
|
-
glob?: boolean | GlobOptions;
|
|
14
|
-
filter?: ((path: string, ent: Dirent | Stats) => boolean) | ((path: string, ent: Dirent | Stats) => Promise<boolean>);
|
|
15
|
-
}
|
|
16
|
-
export interface RimrafSyncOptions extends RimrafAsyncOptions {
|
|
17
|
-
filter?: (path: string, ent: Dirent | Stats) => boolean;
|
|
18
|
-
}
|
|
19
|
-
export type RimrafOptions = RimrafSyncOptions | RimrafAsyncOptions;
|
|
20
|
-
export declare const optArg: (opt?: RimrafAsyncOptions) => (RimrafAsyncOptions & {
|
|
21
|
-
glob: GlobOptions & {
|
|
22
|
-
withFileTypes: false;
|
|
23
|
-
};
|
|
24
|
-
}) | (RimrafAsyncOptions & {
|
|
25
|
-
glob: undefined;
|
|
26
|
-
});
|
|
27
|
-
export declare const optArgSync: (opt?: RimrafSyncOptions) => (RimrafSyncOptions & {
|
|
28
|
-
glob: GlobOptions & {
|
|
29
|
-
withFileTypes: false;
|
|
30
|
-
};
|
|
31
|
-
}) | (RimrafSyncOptions & {
|
|
32
|
-
glob: undefined;
|
|
33
|
-
});
|
|
34
|
-
//# sourceMappingURL=opt-arg.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"opt-arg.d.ts","sourceRoot":"","sources":["../../src/opt-arg.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,EAAE,KAAK,EAAE,MAAM,IAAI,CAAA;AAClC,OAAO,EAAE,WAAW,EAAE,MAAM,MAAM,CAAA;AAKlC,eAAO,MAAM,eAAe,MAAO,GAAG,KAAG,CAAC,IAAI,aAUX,CAAA;AAEnC,eAAO,MAAM,mBAAmB,EAAE,CAAC,CAAC,EAAE,GAAG,KAAK,IAM7C,CAAA;AAED,MAAM,WAAW,kBAAkB;IACjC,YAAY,CAAC,EAAE,OAAO,CAAA;IACtB,GAAG,CAAC,EAAE,MAAM,CAAA;IACZ,UAAU,CAAC,EAAE,MAAM,CAAA;IACnB,UAAU,CAAC,EAAE,MAAM,CAAA;IACnB,OAAO,CAAC,EAAE,MAAM,CAAA;IAChB,UAAU,CAAC,EAAE,MAAM,CAAA;IACnB,MAAM,CAAC,EAAE,WAAW,CAAA;IACpB,IAAI,CAAC,EAAE,OAAO,GAAG,WAAW,CAAA;IAC5B,MAAM,CAAC,EACH,CAAC,CAAC,IAAI,EAAE,MAAM,EAAE,GAAG,EAAE,MAAM,GAAG,KAAK,KAAK,OAAO,CAAC,GAChD,CAAC,CAAC,IAAI,EAAE,MAAM,EAAE,GAAG,EAAE,MAAM,GAAG,KAAK,KAAK,OAAO,CAAC,OAAO,CAAC,CAAC,CAAA;CAC9D;AAED,MAAM,WAAW,iBAAkB,SAAQ,kBAAkB;IAC3D,MAAM,CAAC,EAAE,CAAC,IAAI,EAAE,MAAM,EAAE,GAAG,EAAE,MAAM,GAAG,KAAK,KAAK,OAAO,CAAA;CACxD;AAED,MAAM,MAAM,aAAa,GAAG,iBAAiB,GAAG,kBAAkB,CAAA;AAqClE,eAAO,MAAM,MAAM,SAAS,kBAAkB;UA/BlC,WAAW,GAAG;QAAE,aAAa,EAAE,KAAK,CAAA;KAAE;;UAEjC,SAAS;EA6B0C,CAAA;AACpE,eAAO,MAAM,UAAU,SAAS,iBAAiB;UAhCrC,WAAW,GAAG;QAAE,aAAa,EAAE,KAAK,CAAA;KAAE;;UAEjC,SAAS;EA8B6C,CAAA"}
|
|
@@ -1,46 +0,0 @@
|
|
|
1
|
-
const typeOrUndef = (val, t) => typeof val === 'undefined' || typeof val === t;
|
|
2
|
-
export const isRimrafOptions = (o) => !!o &&
|
|
3
|
-
typeof o === 'object' &&
|
|
4
|
-
typeOrUndef(o.preserveRoot, 'boolean') &&
|
|
5
|
-
typeOrUndef(o.tmp, 'string') &&
|
|
6
|
-
typeOrUndef(o.maxRetries, 'number') &&
|
|
7
|
-
typeOrUndef(o.retryDelay, 'number') &&
|
|
8
|
-
typeOrUndef(o.backoff, 'number') &&
|
|
9
|
-
typeOrUndef(o.maxBackoff, 'number') &&
|
|
10
|
-
(typeOrUndef(o.glob, 'boolean') || (o.glob && typeof o.glob === 'object')) &&
|
|
11
|
-
typeOrUndef(o.filter, 'function');
|
|
12
|
-
export const assertRimrafOptions = (o) => {
|
|
13
|
-
if (!isRimrafOptions(o)) {
|
|
14
|
-
throw new Error('invalid rimraf options');
|
|
15
|
-
}
|
|
16
|
-
};
|
|
17
|
-
const optArgT = (opt) => {
|
|
18
|
-
assertRimrafOptions(opt);
|
|
19
|
-
const { glob, ...options } = opt;
|
|
20
|
-
if (!glob) {
|
|
21
|
-
return options;
|
|
22
|
-
}
|
|
23
|
-
const globOpt = glob === true ?
|
|
24
|
-
opt.signal ?
|
|
25
|
-
{ signal: opt.signal }
|
|
26
|
-
: {}
|
|
27
|
-
: opt.signal ?
|
|
28
|
-
{
|
|
29
|
-
signal: opt.signal,
|
|
30
|
-
...glob,
|
|
31
|
-
}
|
|
32
|
-
: glob;
|
|
33
|
-
return {
|
|
34
|
-
...options,
|
|
35
|
-
glob: {
|
|
36
|
-
...globOpt,
|
|
37
|
-
// always get absolute paths from glob, to ensure
|
|
38
|
-
// that we are referencing the correct thing.
|
|
39
|
-
absolute: true,
|
|
40
|
-
withFileTypes: false,
|
|
41
|
-
},
|
|
42
|
-
};
|
|
43
|
-
};
|
|
44
|
-
export const optArg = (opt = {}) => optArgT(opt);
|
|
45
|
-
export const optArgSync = (opt = {}) => optArgT(opt);
|
|
46
|
-
//# sourceMappingURL=opt-arg.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"opt-arg.js","sourceRoot":"","sources":["../../src/opt-arg.ts"],"names":[],"mappings":"AAGA,MAAM,WAAW,GAAG,CAAC,GAAQ,EAAE,CAAS,EAAE,EAAE,CAC1C,OAAO,GAAG,KAAK,WAAW,IAAI,OAAO,GAAG,KAAK,CA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xB,CAAC,CAAC,EAAE;QACN,CAAC,CAAC,GAAG,CAAC,MAAM,CAAC,CAAC;YACZ;gBACE,MAAM,EAAE,GAAG,CAAC,MAAM;gBAClB,GAAG,IAAI;aACR;YACH,CAAC,CAAC,IAAI,CAAA;IACR,OAAO;QACL,GAAG,OAAO;QACV,IAAI,EAAE;YACJ,GAAG,OAAO;YACV,iDAAiD;YACjD,6CAA6C;YAC7C,QAAQ,EAAE,IAAI;YACd,aAAa,EAAE,KAAK;SACrB;KACsD,CAAA;AAC3D,CAAC,CAAA;AAED,MAAM,CAAC,MAAM,MAAM,GAAG,CAAC,MAA0B,EAAE,EAAE,EAAE,CAAC,OAAO,CAAC,GAAG,CAAC,CAAA;AACpE,MAAM,CAAC,MAAM,UAAU,GAAG,CAAC,MAAyB,EAAE,EAAE,EAAE,CAAC,OAAO,CAAC,GAAG,CAAC,CAAA","sourcesContent":["import { Dirent, Stats } from 'fs'\nimport { GlobOptions } from 'glob'\n\nconst typeOrUndef = (val: any, t: string) =>\n typeof val === 'undefined' || typeof val === t\n\nexport const isRimrafOptions = (o: any): o is RimrafOptions =>\n !!o &&\n typeof o === 'object' &&\n typeOrUndef(o.preserveRoot, 'boolean') &&\n typeOrUndef(o.tmp, 'string') &&\n typeOrUndef(o.maxRetries, 'number') &&\n typeOrUndef(o.retryDelay, 'number') &&\n typeOrUndef(o.backoff, 'number') &&\n typeOrUndef(o.maxBackoff, 'number') &&\n (typeOrUndef(o.glob, 'boolean') || (o.glob && typeof o.glob === 'object')) &&\n typeOrUndef(o.filter, 'function')\n\nexport const assertRimrafOptions: (o: any) => void = (\n o: any,\n): asserts o is RimrafOptions => {\n if (!isRimrafOptions(o)) {\n throw new Error('invalid rimraf options')\n }\n}\n\nexport interface RimrafAsyncOptions {\n preserveRoot?: boolean\n tmp?: string\n maxRetries?: number\n retryDelay?: number\n backoff?: number\n maxBackoff?: number\n signal?: AbortSignal\n glob?: boolean | GlobOptions\n filter?:\n | ((path: string, ent: Dirent | Stats) => boolean)\n | ((path: string, ent: Dirent | Stats) => Promise<boolean>)\n}\n\nexport interface RimrafSyncOptions extends RimrafAsyncOptions {\n filter?: (path: string, ent: Dirent | Stats) => boolean\n}\n\nexport type RimrafOptions = RimrafSyncOptions | RimrafAsyncOptions\n\nconst optArgT = <T extends RimrafOptions>(\n opt: T,\n):\n | (T & {\n glob: GlobOptions & { withFileTypes: false }\n })\n | (T & { glob: undefined }) => {\n assertRimrafOptions(opt)\n const { glob, ...options } = opt\n if (!glob) {\n return options as T & { glob: undefined }\n }\n const globOpt =\n glob === true ?\n opt.signal ?\n { signal: opt.signal }\n : {}\n : opt.signal ?\n {\n signal: opt.signal,\n ...glob,\n }\n : glob\n return {\n ...options,\n glob: {\n ...globOpt,\n // always get absolute paths from glob, to ensure\n // that we are referencing the correct thing.\n absolute: true,\n withFileTypes: false,\n },\n } as T & { glob: GlobOptions & { withFileTypes: false } }\n}\n\nexport const optArg = (opt: RimrafAsyncOptions = {}) => optArgT(opt)\nexport const optArgSync = (opt: RimrafSyncOptions = {}) => optArgT(opt)\n"]}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"path-arg.d.ts","sourceRoot":"","sources":["../../src/path-arg.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,kBAAkB,EAAE,MAAM,YAAY,CAAA;AAG/C,QAAA,MAAM,OAAO,SAAU,MAAM,QAAO,kBAAkB,WAgDrD,CAAA;AAED,eAAe,OAAO,CAAA"}
|
|
@@ -1,47 +0,0 @@
|
|
|
1
|
-
import { parse, resolve } from 'path';
|
|
2
|
-
import { inspect } from 'util';
|
|
3
|
-
import platform from './platform.js';
|
|
4
|
-
const pathArg = (path, opt = {}) => {
|
|
5
|
-
const type = typeof path;
|
|
6
|
-
if (type !== 'string') {
|
|
7
|
-
const ctor = path && type === 'object' && path.constructor;
|
|
8
|
-
const received = ctor && ctor.name ? `an instance of ${ctor.name}`
|
|
9
|
-
: type === 'object' ? inspect(path)
|
|
10
|
-
: `type ${type} ${path}`;
|
|
11
|
-
const msg = 'The "path" argument must be of type string. ' + `Received ${received}`;
|
|
12
|
-
throw Object.assign(new TypeError(msg), {
|
|
13
|
-
path,
|
|
14
|
-
code: 'ERR_INVALID_ARG_TYPE',
|
|
15
|
-
});
|
|
16
|
-
}
|
|
17
|
-
if (/\0/.test(path)) {
|
|
18
|
-
// simulate same failure that node raises
|
|
19
|
-
const msg = 'path must be a string without null bytes';
|
|
20
|
-
throw Object.assign(new TypeError(msg), {
|
|
21
|
-
path,
|
|
22
|
-
code: 'ERR_INVALID_ARG_VALUE',
|
|
23
|
-
});
|
|
24
|
-
}
|
|
25
|
-
path = resolve(path);
|
|
26
|
-
const { root } = parse(path);
|
|
27
|
-
if (path === root && opt.preserveRoot !== false) {
|
|
28
|
-
const msg = 'refusing to remove root directory without preserveRoot:false';
|
|
29
|
-
throw Object.assign(new Error(msg), {
|
|
30
|
-
path,
|
|
31
|
-
code: 'ERR_PRESERVE_ROOT',
|
|
32
|
-
});
|
|
33
|
-
}
|
|
34
|
-
if (platform === 'win32') {
|
|
35
|
-
const badWinChars = /[*|"<>?:]/;
|
|
36
|
-
const { root } = parse(path);
|
|
37
|
-
if (badWinChars.test(path.substring(root.length))) {
|
|
38
|
-
throw Object.assign(new Error('Illegal characters in path.'), {
|
|
39
|
-
path,
|
|
40
|
-
code: 'EINVAL',
|
|
41
|
-
});
|
|
42
|
-
}
|
|
43
|
-
}
|
|
44
|
-
return path;
|
|
45
|
-
};
|
|
46
|
-
export default pathArg;
|
|
47
|
-
//# sourceMappingURL=path-arg.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"path-arg.js","sourceRoot":"","sources":["../../src/path-arg.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,EAAE,OAAO,EAAE,MAAM,MAAM,CAAA;AACrC,OAAO,EAAE,OAAO,EAAE,MAAM,MAAM,CAAA;AAE9B,OAAO,QAAQ,MAAM,eAAe,CAAA;AAEpC,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C,EAAE;YAClC,IAAI;YACJ,IAAI,EAAE,mBAAmB;SAC1B,CAAC,CAAA;IACJ,CAAC;IAED,IAAI,QAAQ,KAAK,OAAO,EAAE,CAAC;QACzB,MAAM,WAAW,GAAG,WAAW,CAAA;QAC/B,MAAM,EAAE,IAAI,EAAE,GAAG,KAAK,CAAC,IAAI,CAAC,CAAA;QAC5B,IAAI,WAAW,CAAC,IAAI,CAAC,IAAI,CAAC,SAAS,CAAC,IAAI,CAAC,MAAM,CAAC,CAAC,EAAE,CAAC;YAClD,MAAM,MAAM,CAAC,MAAM,CAAC,IAAI,KAAK,CAAC,6BAA6B,CAAC,EAAE;gBAC5D,IAAI;gBACJ,IAAI,EAAE,QAAQ;aACf,CAAC,CAAA;QACJ,CAAC;IACH,CAAC;IAED,OAAO,IAAI,CAAA;AACb,CAAC,CAAA;AAED,eAAe,OAAO,CAAA","sourcesContent":["import { parse, resolve } from 'path'\nimport { inspect } from 'util'\nimport { RimrafAsyncOptions } from './index.js'\nimport platform from './platform.js'\n\nconst pathArg = (path: string, opt: RimrafAsyncOptions = {}) => {\n const type = typeof path\n if (type !== 'string') {\n const ctor = path && type === 'object' && path.constructor\n const received =\n ctor && ctor.name ? `an instance of ${ctor.name}`\n : type === 'object' ? inspect(path)\n : `type ${type} ${path}`\n const msg =\n 'The \"path\" argument must be of type string. ' + `Received ${received}`\n throw Object.assign(new TypeError(msg), {\n path,\n code: 'ERR_INVALID_ARG_TYPE',\n })\n }\n\n if (/\\0/.test(path)) {\n // simulate same failure that node raises\n const msg = 'path must be a string without null bytes'\n throw Object.assign(new TypeError(msg), {\n path,\n code: 'ERR_INVALID_ARG_VALUE',\n })\n }\n\n path = resolve(path)\n const { root } = parse(path)\n\n if (path === root && opt.preserveRoot !== false) {\n const msg = 'refusing to remove root directory without preserveRoot:false'\n throw Object.assign(new Error(msg), {\n path,\n code: 'ERR_PRESERVE_ROOT',\n })\n }\n\n if (platform === 'win32') {\n const badWinChars = /[*|\"<>?:]/\n const { root } = parse(path)\n if (badWinChars.test(path.substring(root.length))) {\n throw Object.assign(new Error('Illegal characters in path.'), {\n path,\n code: 'EINVAL',\n })\n }\n }\n\n return path\n}\n\nexport default pathArg\n"]}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"platform.d.ts","sourceRoot":"","sources":["../../src/platform.ts"],"names":[],"mappings":";AAAA,wBAA0E"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"platform.js","sourceRoot":"","sources":["../../src/platform.ts"],"names":[],"mappings":"AAAA,eAAe,OAAO,CAAC,GAAG,CAAC,2BAA2B,IAAI,OAAO,CAAC,QAAQ,CAAA","sourcesContent":["export default process.env.__TESTING_RIMRAF_PLATFORM__ || process.platform\n"]}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"readdir-or-error.d.ts","sourceRoot":"","sources":["../../src/readdir-or-error.ts"],"names":[],"mappings":"AAIA,eAAO,MAAM,cAAc,SAAU,MAAM,2DACa,CAAA;AACxD,eAAO,MAAM,kBAAkB,SAAU,MAAM,kDAM9C,CAAA"}
|
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
// returns an array of entries if readdir() works,
|
|
2
|
-
// or the error that readdir() raised if not.
|
|
3
|
-
import { promises, readdirSync } from './fs.js';
|
|
4
|
-
const { readdir } = promises;
|
|
5
|
-
export const readdirOrError = (path) => readdir(path).catch(er => er);
|
|
6
|
-
export const readdirOrErrorSync = (path) => {
|
|
7
|
-
try {
|
|
8
|
-
return readdirSync(path);
|
|
9
|
-
}
|
|
10
|
-
catch (er) {
|
|
11
|
-
return er;
|
|
12
|
-
}
|
|
13
|
-
};
|
|
14
|
-
//# sourceMappingURL=readdir-or-error.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"readdir-or-error.js","sourceRoot":"","sources":["../../src/readdir-or-error.ts"],"names":[],"mappings":"AAAA,kDAAkD;AAClD,6CAA6C;AAC7C,OAAO,EAAE,QAAQ,EAAE,WAAW,EAAE,MAAM,SAAS,CAAA;AAC/C,MAAM,EAAE,OAAO,EAAE,GAAG,QAAQ,CAAA;AAC5B,MAAM,CAAC,MAAM,cAAc,GAAG,CAAC,IAAY,EAAE,EAAE,CAC7C,OAAO,CAAC,IAAI,CAAC,CAAC,KAAK,CAAC,EAAE,CAAC,EAAE,CAAC,EAA2B,CAAC,CAAA;AACxD,MAAM,CAAC,MAAM,kBAAkB,GAAG,CAAC,IAAY,EAAE,EAAE;IACjD,IAAI,CAAC;QACH,OAAO,WAAW,CAAC,IAAI,CAAC,CAAA;IAC1B,CAAC;IAAC,OAAO,EAAE,EAAE,CAAC;QACZ,OAAO,EAA2B,CAAA;IACpC,CAAC;AACH,CAAC,CAAA","sourcesContent":["// returns an array of entries if readdir() works,\n// or the error that readdir() raised if not.\nimport { promises, readdirSync } from './fs.js'\nconst { readdir } = promises\nexport const readdirOrError = (path: string) =>\n readdir(path).catch(er => er as NodeJS.ErrnoException)\nexport const readdirOrErrorSync = (path: string) => {\n try {\n return readdirSync(path)\n } catch (er) {\n return er as NodeJS.ErrnoException\n }\n}\n"]}
|
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
import { RimrafAsyncOptions, RimrafOptions } from './index.js';
|
|
2
|
-
export declare const MAXBACKOFF = 200;
|
|
3
|
-
export declare const RATE = 1.2;
|
|
4
|
-
export declare const MAXRETRIES = 10;
|
|
5
|
-
export declare const codes: Set<string>;
|
|
6
|
-
export declare const retryBusy: (fn: (path: string) => Promise<any>) => (path: string, opt: RimrafAsyncOptions, backoff?: number, total?: number) => Promise<any>;
|
|
7
|
-
export declare const retryBusySync: (fn: (path: string) => any) => (path: string, opt: RimrafOptions) => any;
|
|
8
|
-
//# sourceMappingURL=retry-busy.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"retry-busy.d.ts","sourceRoot":"","sources":["../../src/retry-busy.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,kBAAkB,EAAE,aAAa,EAAE,MAAM,YAAY,CAAA;AAE9D,eAAO,MAAM,UAAU,MAAM,CAAA;AAC7B,eAAO,MAAM,IAAI,MAAM,CAAA;AACvB,eAAO,MAAM,UAAU,KAAK,CAAA;AAC5B,eAAO,MAAM,KAAK,aAAyC,CAAA;AAE3D,eAAO,MAAM,SAAS,OAAQ,CAAC,IAAI,EAAE,MAAM,KAAK,OAAO,CAAC,GAAG,CAAC,YAElD,MAAM,OACP,kBAAkB,mDAkC1B,CAAA;AAGD,eAAO,MAAM,aAAa,OAAQ,CAAC,IAAI,EAAE,MAAM,KAAK,GAAG,YAC/B,MAAM,OAAO,aAAa,QAsBjD,CAAA"}
|
|
@@ -1,63 +0,0 @@
|
|
|
1
|
-
// note: max backoff is the maximum that any *single* backoff will do
|
|
2
|
-
export const MAXBACKOFF = 200;
|
|
3
|
-
export const RATE = 1.2;
|
|
4
|
-
export const MAXRETRIES = 10;
|
|
5
|
-
export const codes = new Set(['EMFILE', 'ENFILE', 'EBUSY']);
|
|
6
|
-
export const retryBusy = (fn) => {
|
|
7
|
-
const method = async (path, opt, backoff = 1, total = 0) => {
|
|
8
|
-
const mbo = opt.maxBackoff || MAXBACKOFF;
|
|
9
|
-
const rate = opt.backoff || RATE;
|
|
10
|
-
const max = opt.maxRetries || MAXRETRIES;
|
|
11
|
-
let retries = 0;
|
|
12
|
-
while (true) {
|
|
13
|
-
try {
|
|
14
|
-
return await fn(path);
|
|
15
|
-
}
|
|
16
|
-
catch (er) {
|
|
17
|
-
const fer = er;
|
|
18
|
-
if (fer?.path === path && fer?.code && codes.has(fer.code)) {
|
|
19
|
-
backoff = Math.ceil(backoff * rate);
|
|
20
|
-
total = backoff + total;
|
|
21
|
-
if (total < mbo) {
|
|
22
|
-
return new Promise((res, rej) => {
|
|
23
|
-
setTimeout(() => {
|
|
24
|
-
method(path, opt, backoff, total).then(res, rej);
|
|
25
|
-
}, backoff);
|
|
26
|
-
});
|
|
27
|
-
}
|
|
28
|
-
if (retries < max) {
|
|
29
|
-
retries++;
|
|
30
|
-
continue;
|
|
31
|
-
}
|
|
32
|
-
}
|
|
33
|
-
throw er;
|
|
34
|
-
}
|
|
35
|
-
}
|
|
36
|
-
};
|
|
37
|
-
return method;
|
|
38
|
-
};
|
|
39
|
-
// just retries, no async so no backoff
|
|
40
|
-
export const retryBusySync = (fn) => {
|
|
41
|
-
const method = (path, opt) => {
|
|
42
|
-
const max = opt.maxRetries || MAXRETRIES;
|
|
43
|
-
let retries = 0;
|
|
44
|
-
while (true) {
|
|
45
|
-
try {
|
|
46
|
-
return fn(path);
|
|
47
|
-
}
|
|
48
|
-
catch (er) {
|
|
49
|
-
const fer = er;
|
|
50
|
-
if (fer?.path === path &&
|
|
51
|
-
fer?.code &&
|
|
52
|
-
codes.has(fer.code) &&
|
|
53
|
-
retries < max) {
|
|
54
|
-
retries++;
|
|
55
|
-
continue;
|
|
56
|
-
}
|
|
57
|
-
throw er;
|
|
58
|
-
}
|
|
59
|
-
}
|
|
60
|
-
};
|
|
61
|
-
return method;
|
|
62
|
-
};
|
|
63
|
-
//# sourceMappingURL=retry-busy.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"retry-busy.js","sourceRoot":"","sources":["../../src/retry-busy.ts"],"names":[],"mappings":"AAAA,qEAAqE;AAIrE,MAAM,CAAC,MAAM,UAAU,GAAG,GAAG,CAAA;AAC7B,MAAM,CAAC,MAAM,IAAI,GAAG,GAAG,CAAA;AACvB,MAAM,CAAC,MAAM,UAAU,GAAG,EAAE,CAAA;AAC5B,MAAM,CAAC,MAAM,KAAK,GAAG,IAAI,GAAG,CAAC,CAAC,QAAQ,EAAE,QAAQ,EAAE,OAAO,CAAC,CAAC,CAAA;AAE3D,MAAM,CAAC,MAAM,SAAS,GAAG,CAAC,EAAkC,EAAE,EAAE;IAC9D,MAAM,MAAM,GAAG,KAAK,EAClB,IAAY,EACZ,GAAuB,EACvB,OAAO,GAAG,CAAC,EACX,KAAK,GAA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MAAM,aAAa,GAAG,CAAC,EAAyB,EAAE,EAAE;IACzD,MAAM,MAAM,GAAG,CAAC,IAAY,EAAE,GAAkB,EAAE,EAAE;QAClD,MAAM,GAAG,GAAG,GAAG,CAAC,UAAU,IAAI,UAAU,CAAA;QACxC,IAAI,OAAO,GAAG,CAAC,CAAA;QACf,OAAO,IAAI,EAAE,CAAC;YACZ,IAAI,CAAC;gBACH,OAAO,EAAE,CAAC,IAAI,CAAC,CAAA;YACjB,CAAC;YAAC,OAAO,EAAE,EAAE,CAAC;gBACZ,MAAM,GAAG,GAAG,EAA2B,CAAA;gBACvC,IACE,GAAG,EAAE,IAAI,KAAK,IAAI;oBAClB,GAAG,EAAE,IAAI;oBACT,KAAK,CAAC,GAAG,CAAC,GAAG,CAAC,IAAI,CAAC;oBACnB,OAAO,GAAG,GAAG,EACb,CAAC;oBACD,OAAO,EAAE,CAAA;oBACT,SAAQ;gBACV,CAAC;gBACD,MAAM,EAAE,CAAA;YACV,CAAC;QACH,CAAC;IACH,CAAC,CAAA;IACD,OAAO,MAAM,CAAA;AACf,CAAC,CAAA","sourcesContent":["// note: max backoff is the maximum that any *single* backoff will do\n\nimport { RimrafAsyncOptions, RimrafOptions } from './index.js'\n\nexport const MAXBACKOFF = 200\nexport const RATE = 1.2\nexport const MAXRETRIES = 10\nexport const codes = new Set(['EMFILE', 'ENFILE', 'EBUSY'])\n\nexport const retryBusy = (fn: (path: string) => Promise<any>) => {\n const method = async (\n path: string,\n opt: RimrafAsyncOptions,\n backoff = 1,\n total = 0,\n ) => {\n const mbo = opt.maxBackoff || MAXBACKOFF\n const rate = opt.backoff || RATE\n const max = opt.maxRetries || MAXRETRIES\n let retries = 0\n while (true) {\n try {\n return await fn(path)\n } catch (er) {\n const fer = er as NodeJS.ErrnoException\n if (fer?.path === path && fer?.code && codes.has(fer.code)) {\n backoff = Math.ceil(backoff * rate)\n total = backoff + total\n if (total < mbo) {\n return new Promise((res, rej) => {\n setTimeout(() => {\n method(path, opt, backoff, total).then(res, rej)\n }, backoff)\n })\n }\n if (retries < max) {\n retries++\n continue\n }\n }\n throw er\n }\n }\n }\n\n return method\n}\n\n// just retries, no async so no backoff\nexport const retryBusySync = (fn: (path: string) => any) => {\n const method = (path: string, opt: RimrafOptions) => {\n const max = opt.maxRetries || MAXRETRIES\n let retries = 0\n while (true) {\n try {\n return fn(path)\n } catch (er) {\n const fer = er as NodeJS.ErrnoException\n if (\n fer?.path === path &&\n fer?.code &&\n codes.has(fer.code) &&\n retries < max\n ) {\n retries++\n continue\n }\n throw er\n }\n }\n }\n return method\n}\n"]}
|
|
@@ -1,3 +0,0 @@
|
|
|
1
|
-
export declare const rimrafManual: (path: string, opt: import("./opt-arg.js").RimrafAsyncOptions) => Promise<boolean>;
|
|
2
|
-
export declare const rimrafManualSync: (path: string, opt: import("./opt-arg.js").RimrafSyncOptions) => boolean;
|
|
3
|
-
//# sourceMappingURL=rimraf-manual.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"rimraf-manual.d.ts","sourceRoot":"","sources":["../../src/rimraf-manual.ts"],"names":[],"mappings":"AAKA,eAAO,MAAM,YAAY,oFAAqD,CAAA;AAC9E,eAAO,MAAM,gBAAgB,0EAC+B,CAAA"}
|
|
@@ -1,6 +0,0 @@
|
|
|
1
|
-
import platform from './platform.js';
|
|
2
|
-
import { rimrafPosix, rimrafPosixSync } from './rimraf-posix.js';
|
|
3
|
-
import { rimrafWindows, rimrafWindowsSync } from './rimraf-windows.js';
|
|
4
|
-
export const rimrafManual = platform === 'win32' ? rimrafWindows : rimrafPosix;
|
|
5
|
-
export const rimrafManualSync = platform === 'win32' ? rimrafWindowsSync : rimrafPosixSync;
|
|
6
|
-
//# sourceMappingURL=rimraf-manual.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"rimraf-manual.js","sourceRoot":"","sources":["../../src/rimraf-manual.ts"],"names":[],"mappings":"AAAA,OAAO,QAAQ,MAAM,eAAe,CAAA;AAEpC,OAAO,EAAE,WAAW,EAAE,eAAe,EAAE,MAAM,mBAAmB,CAAA;AAChE,OAAO,EAAE,aAAa,EAAE,iBAAiB,EAAE,MAAM,qBAAqB,CAAA;AAEtE,MAAM,CAAC,MAAM,YAAY,GAAG,QAAQ,KAAK,OAAO,CAAC,CAAC,CAAC,aAAa,CAAC,CAAC,CAAC,WAAW,CAAA;AAC9E,MAAM,CAAC,MAAM,gBAAgB,GAC3B,QAAQ,KAAK,OAAO,CAAC,CAAC,CAAC,iBAAiB,CAAC,CAAC,CAAC,eAAe,CAAA","sourcesContent":["import platform from './platform.js'\n\nimport { rimrafPosix, rimrafPosixSync } from './rimraf-posix.js'\nimport { rimrafWindows, rimrafWindowsSync } from './rimraf-windows.js'\n\nexport const rimrafManual = platform === 'win32' ? rimrafWindows : rimrafPosix\nexport const rimrafManualSync =\n platform === 'win32' ? rimrafWindowsSync : rimrafPosixSync\n"]}
|
|
@@ -1,4 +0,0 @@
|
|
|
1
|
-
import { RimrafAsyncOptions, RimrafSyncOptions } from './index.js';
|
|
2
|
-
export declare const rimrafMoveRemove: (path: string, opt: RimrafAsyncOptions) => Promise<boolean>;
|
|
3
|
-
export declare const rimrafMoveRemoveSync: (path: string, opt: RimrafSyncOptions) => boolean;
|
|
4
|
-
//# sourceMappingURL=rimraf-move-remove.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"rimraf-move-remove.d.ts","sourceRoot":"","sources":["../../src/rimraf-move-remove.ts"],"names":[],"mappings":"AA6BA,OAAO,EAAE,kBAAkB,EAAE,iBAAiB,EAAE,MAAM,YAAY,CAAA;AA4ClE,eAAO,MAAM,gBAAgB,SACrB,MAAM,OACP,kBAAkB,qBAWxB,CAAA;AA4ED,eAAO,MAAM,oBAAoB,SAAU,MAAM,OAAO,iBAAiB,YAUxE,CAAA"}
|
|
@@ -1,187 +0,0 @@
|
|
|
1
|
-
// https://youtu.be/uhRWMGBjlO8?t=537
|
|
2
|
-
//
|
|
3
|
-
// 1. readdir
|
|
4
|
-
// 2. for each entry
|
|
5
|
-
// a. if a non-empty directory, recurse
|
|
6
|
-
// b. if an empty directory, move to random hidden file name in $TEMP
|
|
7
|
-
// c. unlink/rmdir $TEMP
|
|
8
|
-
//
|
|
9
|
-
// This works around the fact that unlink/rmdir is non-atomic and takes
|
|
10
|
-
// a non-deterministic amount of time to complete.
|
|
11
|
-
//
|
|
12
|
-
// However, it is HELLA SLOW, like 2-10x slower than a naive recursive rm.
|
|
13
|
-
import { basename, parse, resolve } from 'path';
|
|
14
|
-
import { defaultTmp, defaultTmpSync } from './default-tmp.js';
|
|
15
|
-
import { ignoreENOENT, ignoreENOENTSync } from './ignore-enoent.js';
|
|
16
|
-
import { chmodSync, lstatSync, promises as fsPromises, renameSync, rmdirSync, unlinkSync, } from './fs.js';
|
|
17
|
-
const { lstat, rename, unlink, rmdir, chmod } = fsPromises;
|
|
18
|
-
import { readdirOrError, readdirOrErrorSync } from './readdir-or-error.js';
|
|
19
|
-
// crypto.randomBytes is much slower, and Math.random() is enough here
|
|
20
|
-
const uniqueFilename = (path) => `.${basename(path)}.${Math.random()}`;
|
|
21
|
-
const unlinkFixEPERM = async (path) => unlink(path).catch((er) => {
|
|
22
|
-
if (er.code === 'EPERM') {
|
|
23
|
-
return chmod(path, 0o666).then(() => unlink(path), er2 => {
|
|
24
|
-
if (er2.code === 'ENOENT') {
|
|
25
|
-
return;
|
|
26
|
-
}
|
|
27
|
-
throw er;
|
|
28
|
-
});
|
|
29
|
-
}
|
|
30
|
-
else if (er.code === 'ENOENT') {
|
|
31
|
-
return;
|
|
32
|
-
}
|
|
33
|
-
throw er;
|
|
34
|
-
});
|
|
35
|
-
const unlinkFixEPERMSync = (path) => {
|
|
36
|
-
try {
|
|
37
|
-
unlinkSync(path);
|
|
38
|
-
}
|
|
39
|
-
catch (er) {
|
|
40
|
-
if (er?.code === 'EPERM') {
|
|
41
|
-
try {
|
|
42
|
-
return chmodSync(path, 0o666);
|
|
43
|
-
}
|
|
44
|
-
catch (er2) {
|
|
45
|
-
if (er2?.code === 'ENOENT') {
|
|
46
|
-
return;
|
|
47
|
-
}
|
|
48
|
-
throw er;
|
|
49
|
-
}
|
|
50
|
-
}
|
|
51
|
-
else if (er?.code === 'ENOENT') {
|
|
52
|
-
return;
|
|
53
|
-
}
|
|
54
|
-
throw er;
|
|
55
|
-
}
|
|
56
|
-
};
|
|
57
|
-
export const rimrafMoveRemove = async (path, opt) => {
|
|
58
|
-
if (opt?.signal?.aborted) {
|
|
59
|
-
throw opt.signal.reason;
|
|
60
|
-
}
|
|
61
|
-
try {
|
|
62
|
-
return await rimrafMoveRemoveDir(path, opt, await lstat(path));
|
|
63
|
-
}
|
|
64
|
-
catch (er) {
|
|
65
|
-
if (er?.code === 'ENOENT')
|
|
66
|
-
return true;
|
|
67
|
-
throw er;
|
|
68
|
-
}
|
|
69
|
-
};
|
|
70
|
-
const rimrafMoveRemoveDir = async (path, opt, ent) => {
|
|
71
|
-
if (opt?.signal?.aborted) {
|
|
72
|
-
throw opt.signal.reason;
|
|
73
|
-
}
|
|
74
|
-
if (!opt.tmp) {
|
|
75
|
-
return rimrafMoveRemoveDir(path, { ...opt, tmp: await defaultTmp(path) }, ent);
|
|
76
|
-
}
|
|
77
|
-
if (path === opt.tmp && parse(path).root !== path) {
|
|
78
|
-
throw new Error('cannot delete temp directory used for deletion');
|
|
79
|
-
}
|
|
80
|
-
const entries = ent.isDirectory() ? await readdirOrError(path) : null;
|
|
81
|
-
if (!Array.isArray(entries)) {
|
|
82
|
-
// this can only happen if lstat/readdir lied, or if the dir was
|
|
83
|
-
// swapped out with a file at just the right moment.
|
|
84
|
-
/* c8 ignore start */
|
|
85
|
-
if (entries) {
|
|
86
|
-
if (entries.code === 'ENOENT') {
|
|
87
|
-
return true;
|
|
88
|
-
}
|
|
89
|
-
if (entries.code !== 'ENOTDIR') {
|
|
90
|
-
throw entries;
|
|
91
|
-
}
|
|
92
|
-
}
|
|
93
|
-
/* c8 ignore stop */
|
|
94
|
-
if (opt.filter && !(await opt.filter(path, ent))) {
|
|
95
|
-
return false;
|
|
96
|
-
}
|
|
97
|
-
await ignoreENOENT(tmpUnlink(path, opt.tmp, unlinkFixEPERM));
|
|
98
|
-
return true;
|
|
99
|
-
}
|
|
100
|
-
const removedAll = (await Promise.all(entries.map(ent => rimrafMoveRemoveDir(resolve(path, ent.name), opt, ent)))).reduce((a, b) => a && b, true);
|
|
101
|
-
if (!removedAll) {
|
|
102
|
-
return false;
|
|
103
|
-
}
|
|
104
|
-
// we don't ever ACTUALLY try to unlink /, because that can never work
|
|
105
|
-
// but when preserveRoot is false, we could be operating on it.
|
|
106
|
-
// No need to check if preserveRoot is not false.
|
|
107
|
-
if (opt.preserveRoot === false && path === parse(path).root) {
|
|
108
|
-
return false;
|
|
109
|
-
}
|
|
110
|
-
if (opt.filter && !(await opt.filter(path, ent))) {
|
|
111
|
-
return false;
|
|
112
|
-
}
|
|
113
|
-
await ignoreENOENT(tmpUnlink(path, opt.tmp, rmdir));
|
|
114
|
-
return true;
|
|
115
|
-
};
|
|
116
|
-
const tmpUnlink = async (path, tmp, rm) => {
|
|
117
|
-
const tmpFile = resolve(tmp, uniqueFilename(path));
|
|
118
|
-
await rename(path, tmpFile);
|
|
119
|
-
return await rm(tmpFile);
|
|
120
|
-
};
|
|
121
|
-
export const rimrafMoveRemoveSync = (path, opt) => {
|
|
122
|
-
if (opt?.signal?.aborted) {
|
|
123
|
-
throw opt.signal.reason;
|
|
124
|
-
}
|
|
125
|
-
try {
|
|
126
|
-
return rimrafMoveRemoveDirSync(path, opt, lstatSync(path));
|
|
127
|
-
}
|
|
128
|
-
catch (er) {
|
|
129
|
-
if (er?.code === 'ENOENT')
|
|
130
|
-
return true;
|
|
131
|
-
throw er;
|
|
132
|
-
}
|
|
133
|
-
};
|
|
134
|
-
const rimrafMoveRemoveDirSync = (path, opt, ent) => {
|
|
135
|
-
if (opt?.signal?.aborted) {
|
|
136
|
-
throw opt.signal.reason;
|
|
137
|
-
}
|
|
138
|
-
if (!opt.tmp) {
|
|
139
|
-
return rimrafMoveRemoveDirSync(path, { ...opt, tmp: defaultTmpSync(path) }, ent);
|
|
140
|
-
}
|
|
141
|
-
const tmp = opt.tmp;
|
|
142
|
-
if (path === opt.tmp && parse(path).root !== path) {
|
|
143
|
-
throw new Error('cannot delete temp directory used for deletion');
|
|
144
|
-
}
|
|
145
|
-
const entries = ent.isDirectory() ? readdirOrErrorSync(path) : null;
|
|
146
|
-
if (!Array.isArray(entries)) {
|
|
147
|
-
// this can only happen if lstat/readdir lied, or if the dir was
|
|
148
|
-
// swapped out with a file at just the right moment.
|
|
149
|
-
/* c8 ignore start */
|
|
150
|
-
if (entries) {
|
|
151
|
-
if (entries.code === 'ENOENT') {
|
|
152
|
-
return true;
|
|
153
|
-
}
|
|
154
|
-
if (entries.code !== 'ENOTDIR') {
|
|
155
|
-
throw entries;
|
|
156
|
-
}
|
|
157
|
-
}
|
|
158
|
-
/* c8 ignore stop */
|
|
159
|
-
if (opt.filter && !opt.filter(path, ent)) {
|
|
160
|
-
return false;
|
|
161
|
-
}
|
|
162
|
-
ignoreENOENTSync(() => tmpUnlinkSync(path, tmp, unlinkFixEPERMSync));
|
|
163
|
-
return true;
|
|
164
|
-
}
|
|
165
|
-
let removedAll = true;
|
|
166
|
-
for (const ent of entries) {
|
|
167
|
-
const p = resolve(path, ent.name);
|
|
168
|
-
removedAll = rimrafMoveRemoveDirSync(p, opt, ent) && removedAll;
|
|
169
|
-
}
|
|
170
|
-
if (!removedAll) {
|
|
171
|
-
return false;
|
|
172
|
-
}
|
|
173
|
-
if (opt.preserveRoot === false && path === parse(path).root) {
|
|
174
|
-
return false;
|
|
175
|
-
}
|
|
176
|
-
if (opt.filter && !opt.filter(path, ent)) {
|
|
177
|
-
return false;
|
|
178
|
-
}
|
|
179
|
-
ignoreENOENTSync(() => tmpUnlinkSync(path, tmp, rmdirSync));
|
|
180
|
-
return true;
|
|
181
|
-
};
|
|
182
|
-
const tmpUnlinkSync = (path, tmp, rmSync) => {
|
|
183
|
-
const tmpFile = resolve(tmp, uniqueFilename(path));
|
|
184
|
-
renameSync(path, tmpFile);
|
|
185
|
-
return rmSync(tmpFile);
|
|
186
|
-
};
|
|
187
|
-
//# sourceMappingURL=rimraf-move-remove.js.map
|