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,24 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.rimrafNativeSync = exports.rimrafNative = void 0;
|
|
4
|
-
const fs_js_1 = require("./fs.js");
|
|
5
|
-
const { rm } = fs_js_1.promises;
|
|
6
|
-
const rimrafNative = async (path, opt) => {
|
|
7
|
-
await rm(path, {
|
|
8
|
-
...opt,
|
|
9
|
-
force: true,
|
|
10
|
-
recursive: true,
|
|
11
|
-
});
|
|
12
|
-
return true;
|
|
13
|
-
};
|
|
14
|
-
exports.rimrafNative = rimrafNative;
|
|
15
|
-
const rimrafNativeSync = (path, opt) => {
|
|
16
|
-
(0, fs_js_1.rmSync)(path, {
|
|
17
|
-
...opt,
|
|
18
|
-
force: true,
|
|
19
|
-
recursive: true,
|
|
20
|
-
});
|
|
21
|
-
return true;
|
|
22
|
-
};
|
|
23
|
-
exports.rimrafNativeSync = rimrafNativeSync;
|
|
24
|
-
//# sourceMappingURL=rimraf-native.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"rimraf-native.js","sourceRoot":"","sources":["../../src/rimraf-native.ts"],"names":[],"mappings":";;;AACA,mCAA0C;AAC1C,MAAM,EAAE,EAAE,EAAE,GAAG,gBAAQ,CAAA;AAEhB,MAAM,YAAY,GAAG,KAAK,EAC/B,IAAY,EACZ,GAAuB,EACL,EAAE;IACpB,MAAM,EAAE,CAAC,IAAI,EAAE;QACb,GAAG,GAAG;QACN,KAAK,EAAE,IAAI;QACX,SAAS,EAAE,IAAI;KAChB,CAAC,CAAA;IACF,OAAO,IAAI,CAAA;AACb,CAAC,CAAA;AAVY,QAAA,YAAY,gBAUxB;AAEM,MAAM,gBAAgB,GAAG,CAC9B,IAAY,EACZ,GAAsB,EACb,EAAE;IACX,IAAA,cAAM,EAAC,IAAI,EAAE;QACX,GAAG,GAAG;QACN,KAAK,EAAE,IAAI;QACX,SAAS,EAAE,IAAI;KAChB,CAAC,CAAA;IACF,OAAO,IAAI,CAAA;AACb,CAAC,CAAA;AAVY,QAAA,gBAAgB,oBAU5B","sourcesContent":["import { RimrafAsyncOptions, RimrafSyncOptions } from './index.js'\nimport { promises, rmSync } from './fs.js'\nconst { rm } = promises\n\nexport const rimrafNative = async (\n path: string,\n opt: RimrafAsyncOptions,\n): Promise<boolean> => {\n await rm(path, {\n ...opt,\n force: true,\n recursive: true,\n })\n return true\n}\n\nexport const rimrafNativeSync = (\n path: string,\n opt: RimrafSyncOptions,\n): boolean => {\n rmSync(path, {\n ...opt,\n force: true,\n recursive: true,\n })\n return true\n}\n"]}
|
|
@@ -1,4 +0,0 @@
|
|
|
1
|
-
import { RimrafAsyncOptions, RimrafSyncOptions } from './index.js';
|
|
2
|
-
export declare const rimrafPosix: (path: string, opt: RimrafAsyncOptions) => Promise<boolean>;
|
|
3
|
-
export declare const rimrafPosixSync: (path: string, opt: RimrafSyncOptions) => boolean;
|
|
4
|
-
//# sourceMappingURL=rimraf-posix.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"rimraf-posix.d.ts","sourceRoot":"","sources":["../../src/rimraf-posix.ts"],"names":[],"mappings":"AAcA,OAAO,EAAE,kBAAkB,EAAE,iBAAiB,EAAE,MAAM,YAAY,CAAA;AAGlE,eAAO,MAAM,WAAW,SAAgB,MAAM,OAAO,kBAAkB,qBAUtE,CAAA;AAED,eAAO,MAAM,eAAe,SAAU,MAAM,OAAO,iBAAiB,YAUnE,CAAA"}
|
|
@@ -1,123 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
// the simple recursive removal, where unlink and rmdir are atomic
|
|
3
|
-
// Note that this approach does NOT work on Windows!
|
|
4
|
-
// We stat first and only unlink if the Dirent isn't a directory,
|
|
5
|
-
// because sunos will let root unlink a directory, and some
|
|
6
|
-
// SUPER weird breakage happens as a result.
|
|
7
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
8
|
-
exports.rimrafPosixSync = exports.rimrafPosix = void 0;
|
|
9
|
-
const fs_js_1 = require("./fs.js");
|
|
10
|
-
const { lstat, rmdir, unlink } = fs_js_1.promises;
|
|
11
|
-
const path_1 = require("path");
|
|
12
|
-
const readdir_or_error_js_1 = require("./readdir-or-error.js");
|
|
13
|
-
const ignore_enoent_js_1 = require("./ignore-enoent.js");
|
|
14
|
-
const rimrafPosix = async (path, opt) => {
|
|
15
|
-
if (opt?.signal?.aborted) {
|
|
16
|
-
throw opt.signal.reason;
|
|
17
|
-
}
|
|
18
|
-
try {
|
|
19
|
-
return await rimrafPosixDir(path, opt, await lstat(path));
|
|
20
|
-
}
|
|
21
|
-
catch (er) {
|
|
22
|
-
if (er?.code === 'ENOENT')
|
|
23
|
-
return true;
|
|
24
|
-
throw er;
|
|
25
|
-
}
|
|
26
|
-
};
|
|
27
|
-
exports.rimrafPosix = rimrafPosix;
|
|
28
|
-
const rimrafPosixSync = (path, opt) => {
|
|
29
|
-
if (opt?.signal?.aborted) {
|
|
30
|
-
throw opt.signal.reason;
|
|
31
|
-
}
|
|
32
|
-
try {
|
|
33
|
-
return rimrafPosixDirSync(path, opt, (0, fs_js_1.lstatSync)(path));
|
|
34
|
-
}
|
|
35
|
-
catch (er) {
|
|
36
|
-
if (er?.code === 'ENOENT')
|
|
37
|
-
return true;
|
|
38
|
-
throw er;
|
|
39
|
-
}
|
|
40
|
-
};
|
|
41
|
-
exports.rimrafPosixSync = rimrafPosixSync;
|
|
42
|
-
const rimrafPosixDir = async (path, opt, ent) => {
|
|
43
|
-
if (opt?.signal?.aborted) {
|
|
44
|
-
throw opt.signal.reason;
|
|
45
|
-
}
|
|
46
|
-
const entries = ent.isDirectory() ? await (0, readdir_or_error_js_1.readdirOrError)(path) : null;
|
|
47
|
-
if (!Array.isArray(entries)) {
|
|
48
|
-
// this can only happen if lstat/readdir lied, or if the dir was
|
|
49
|
-
// swapped out with a file at just the right moment.
|
|
50
|
-
/* c8 ignore start */
|
|
51
|
-
if (entries) {
|
|
52
|
-
if (entries.code === 'ENOENT') {
|
|
53
|
-
return true;
|
|
54
|
-
}
|
|
55
|
-
if (entries.code !== 'ENOTDIR') {
|
|
56
|
-
throw entries;
|
|
57
|
-
}
|
|
58
|
-
}
|
|
59
|
-
/* c8 ignore stop */
|
|
60
|
-
if (opt.filter && !(await opt.filter(path, ent))) {
|
|
61
|
-
return false;
|
|
62
|
-
}
|
|
63
|
-
await (0, ignore_enoent_js_1.ignoreENOENT)(unlink(path));
|
|
64
|
-
return true;
|
|
65
|
-
}
|
|
66
|
-
const removedAll = (await Promise.all(entries.map(ent => rimrafPosixDir((0, path_1.resolve)(path, ent.name), opt, ent)))).reduce((a, b) => a && b, true);
|
|
67
|
-
if (!removedAll) {
|
|
68
|
-
return false;
|
|
69
|
-
}
|
|
70
|
-
// we don't ever ACTUALLY try to unlink /, because that can never work
|
|
71
|
-
// but when preserveRoot is false, we could be operating on it.
|
|
72
|
-
// No need to check if preserveRoot is not false.
|
|
73
|
-
if (opt.preserveRoot === false && path === (0, path_1.parse)(path).root) {
|
|
74
|
-
return false;
|
|
75
|
-
}
|
|
76
|
-
if (opt.filter && !(await opt.filter(path, ent))) {
|
|
77
|
-
return false;
|
|
78
|
-
}
|
|
79
|
-
await (0, ignore_enoent_js_1.ignoreENOENT)(rmdir(path));
|
|
80
|
-
return true;
|
|
81
|
-
};
|
|
82
|
-
const rimrafPosixDirSync = (path, opt, ent) => {
|
|
83
|
-
if (opt?.signal?.aborted) {
|
|
84
|
-
throw opt.signal.reason;
|
|
85
|
-
}
|
|
86
|
-
const entries = ent.isDirectory() ? (0, readdir_or_error_js_1.readdirOrErrorSync)(path) : null;
|
|
87
|
-
if (!Array.isArray(entries)) {
|
|
88
|
-
// this can only happen if lstat/readdir lied, or if the dir was
|
|
89
|
-
// swapped out with a file at just the right moment.
|
|
90
|
-
/* c8 ignore start */
|
|
91
|
-
if (entries) {
|
|
92
|
-
if (entries.code === 'ENOENT') {
|
|
93
|
-
return true;
|
|
94
|
-
}
|
|
95
|
-
if (entries.code !== 'ENOTDIR') {
|
|
96
|
-
throw entries;
|
|
97
|
-
}
|
|
98
|
-
}
|
|
99
|
-
/* c8 ignore stop */
|
|
100
|
-
if (opt.filter && !opt.filter(path, ent)) {
|
|
101
|
-
return false;
|
|
102
|
-
}
|
|
103
|
-
(0, ignore_enoent_js_1.ignoreENOENTSync)(() => (0, fs_js_1.unlinkSync)(path));
|
|
104
|
-
return true;
|
|
105
|
-
}
|
|
106
|
-
let removedAll = true;
|
|
107
|
-
for (const ent of entries) {
|
|
108
|
-
const p = (0, path_1.resolve)(path, ent.name);
|
|
109
|
-
removedAll = rimrafPosixDirSync(p, opt, ent) && removedAll;
|
|
110
|
-
}
|
|
111
|
-
if (opt.preserveRoot === false && path === (0, path_1.parse)(path).root) {
|
|
112
|
-
return false;
|
|
113
|
-
}
|
|
114
|
-
if (!removedAll) {
|
|
115
|
-
return false;
|
|
116
|
-
}
|
|
117
|
-
if (opt.filter && !opt.filter(path, ent)) {
|
|
118
|
-
return false;
|
|
119
|
-
}
|
|
120
|
-
(0, ignore_enoent_js_1.ignoreENOENTSync)(() => (0, fs_js_1.rmdirSync)(path));
|
|
121
|
-
return true;
|
|
122
|
-
};
|
|
123
|
-
//# sourceMappingURL=rimraf-posix.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"rimraf-posix.js","sourceRoot":"","sources":["../../src/rimraf-posix.ts"],"names":[],"mappings":";AAAA,kEAAkE;AAClE,oDAAoD;AACpD,iEAAiE;AACjE,2DAA2D;AAC3D,4CAA4C;;;AAE5C,mCAAoE;AACpE,MAAM,EAAE,KA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AC,IAAI,CAAC,CAAC,CAAA;QACxC,OAAO,IAAI,CAAA;IACb,CAAC;IACD,IAAI,UAAU,GAAY,IAAI,CAAA;IAC9B,KAAK,MAAM,GAAG,IAAI,OAAO,EAAE,CAAC;QAC1B,MAAM,CAAC,GAAG,IAAA,cAAO,EAAC,IAAI,EAAE,GAAG,CAAC,IAAI,CAAC,CAAA;QACjC,UAAU,GAAG,kBAAkB,CAAC,CAAC,EAAE,GAAG,EAAE,GAAG,CAAC,IAAI,UAAU,CAAA;IAC5D,CAAC;IACD,IAAI,GAAG,CAAC,YAAY,KAAK,KAAK,IAAI,IAAI,KAAK,IAAA,YAAK,EAAC,IAAI,CAAC,CAAC,IAAI,EAAE,CAAC;QAC5D,OAAO,KAAK,CAAA;IACd,CAAC;IAED,IAAI,CAAC,UAAU,EAAE,CAAC;QAChB,OAAO,KAAK,CAAA;IACd,CAAC;IAED,IAAI,GAAG,CAAC,MAAM,IAAI,CAAC,GAAG,CAAC,MAAM,CAAC,IAAI,EAAE,GAAG,CAAC,EAAE,CAAC;QACzC,OAAO,KAAK,CAAA;IACd,CAAC;IAED,IAAA,mCAAgB,EAAC,GAAG,EAAE,CAAC,IAAA,iBAAS,EAAC,IAAI,CAAC,CAAC,CAAA;IACvC,OAAO,IAAI,CAAA;AACb,CAAC,CAAA","sourcesContent":["// the simple recursive removal, where unlink and rmdir are atomic\n// Note that this approach does NOT work on Windows!\n// We stat first and only unlink if the Dirent isn't a directory,\n// because sunos will let root unlink a directory, and some\n// SUPER weird breakage happens as a result.\n\nimport { lstatSync, promises, rmdirSync, unlinkSync } from './fs.js'\nconst { lstat, rmdir, unlink } = promises\n\nimport { parse, resolve } from 'path'\n\nimport { readdirOrError, readdirOrErrorSync } from './readdir-or-error.js'\n\nimport { Dirent, Stats } from 'fs'\nimport { RimrafAsyncOptions, RimrafSyncOptions } from './index.js'\nimport { ignoreENOENT, ignoreENOENTSync } from './ignore-enoent.js'\n\nexport const rimrafPosix = async (path: string, opt: RimrafAsyncOptions) => {\n if (opt?.signal?.aborted) {\n throw opt.signal.reason\n }\n try {\n return await rimrafPosixDir(path, opt, await lstat(path))\n } catch (er) {\n if ((er as NodeJS.ErrnoException)?.code === 'ENOENT') return true\n throw er\n }\n}\n\nexport const rimrafPosixSync = (path: string, opt: RimrafSyncOptions) => {\n if (opt?.signal?.aborted) {\n throw opt.signal.reason\n }\n try {\n return rimrafPosixDirSync(path, opt, lstatSync(path))\n } catch (er) {\n if ((er as NodeJS.ErrnoException)?.code === 'ENOENT') return true\n throw er\n }\n}\n\nconst rimrafPosixDir = async (\n path: string,\n opt: RimrafAsyncOptions,\n ent: Dirent | Stats,\n): Promise<boolean> => {\n if (opt?.signal?.aborted) {\n throw opt.signal.reason\n }\n const entries = ent.isDirectory() ? await readdirOrError(path) : null\n if (!Array.isArray(entries)) {\n // this can only happen if lstat/readdir lied, or if the dir was\n // swapped out with a file at just the right moment.\n /* c8 ignore start */\n if (entries) {\n if (entries.code === 'ENOENT') {\n return true\n }\n if (entries.code !== 'ENOTDIR') {\n throw entries\n }\n }\n /* c8 ignore stop */\n if (opt.filter && !(await opt.filter(path, ent))) {\n return false\n }\n await ignoreENOENT(unlink(path))\n return true\n }\n\n const removedAll = (\n await Promise.all(\n entries.map(ent => rimrafPosixDir(resolve(path, ent.name), opt, ent)),\n )\n ).reduce((a, b) => a && b, true)\n\n if (!removedAll) {\n return false\n }\n\n // we don't ever ACTUALLY try to unlink /, because that can never work\n // but when preserveRoot is false, we could be operating on it.\n // No need to check if preserveRoot is not false.\n if (opt.preserveRoot === false && path === parse(path).root) {\n return false\n }\n\n if (opt.filter && !(await opt.filter(path, ent))) {\n return false\n }\n\n await ignoreENOENT(rmdir(path))\n return true\n}\n\nconst rimrafPosixDirSync = (\n path: string,\n opt: RimrafSyncOptions,\n ent: Dirent | Stats,\n): boolean => {\n if (opt?.signal?.aborted) {\n throw opt.signal.reason\n }\n const entries = ent.isDirectory() ? readdirOrErrorSync(path) : null\n if (!Array.isArray(entries)) {\n // this can only happen if lstat/readdir lied, or if the dir was\n // swapped out with a file at just the right moment.\n /* c8 ignore start */\n if (entries) {\n if (entries.code === 'ENOENT') {\n return true\n }\n if (entries.code !== 'ENOTDIR') {\n throw entries\n }\n }\n /* c8 ignore stop */\n if (opt.filter && !opt.filter(path, ent)) {\n return false\n }\n ignoreENOENTSync(() => unlinkSync(path))\n return true\n }\n let removedAll: boolean = true\n for (const ent of entries) {\n const p = resolve(path, ent.name)\n removedAll = rimrafPosixDirSync(p, opt, ent) && removedAll\n }\n if (opt.preserveRoot === false && path === parse(path).root) {\n return false\n }\n\n if (!removedAll) {\n return false\n }\n\n if (opt.filter && !opt.filter(path, ent)) {\n return false\n }\n\n ignoreENOENTSync(() => rmdirSync(path))\n return true\n}\n"]}
|
|
@@ -1,4 +0,0 @@
|
|
|
1
|
-
import { RimrafAsyncOptions, RimrafSyncOptions } from './index.js';
|
|
2
|
-
export declare const rimrafWindows: (path: string, opt: RimrafAsyncOptions) => Promise<boolean>;
|
|
3
|
-
export declare const rimrafWindowsSync: (path: string, opt: RimrafSyncOptions) => boolean;
|
|
4
|
-
//# sourceMappingURL=rimraf-windows.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"rimraf-windows.d.ts","sourceRoot":"","sources":["../../src/rimraf-windows.ts"],"names":[],"mappings":"AAYA,OAAO,EAAE,kBAAkB,EAAE,iBAAiB,EAAE,MAAM,YAAY,CAAA;AA2DlE,eAAO,MAAM,aAAa,SAAgB,MAAM,OAAO,kBAAkB,qBAUxE,CAAA;AAED,eAAO,MAAM,iBAAiB,SAAU,MAAM,OAAO,iBAAiB,YAUrE,CAAA"}
|
|
@@ -1,182 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
// This is the same as rimrafPosix, with the following changes:
|
|
3
|
-
//
|
|
4
|
-
// 1. EBUSY, ENFILE, EMFILE trigger retries and/or exponential backoff
|
|
5
|
-
// 2. All non-directories are removed first and then all directories are
|
|
6
|
-
// removed in a second sweep.
|
|
7
|
-
// 3. If we hit ENOTEMPTY in the second sweep, fall back to move-remove on
|
|
8
|
-
// the that folder.
|
|
9
|
-
//
|
|
10
|
-
// Note: "move then remove" is 2-10 times slower, and just as unreliable.
|
|
11
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
12
|
-
exports.rimrafWindowsSync = exports.rimrafWindows = void 0;
|
|
13
|
-
const path_1 = require("path");
|
|
14
|
-
const fix_eperm_js_1 = require("./fix-eperm.js");
|
|
15
|
-
const fs_js_1 = require("./fs.js");
|
|
16
|
-
const ignore_enoent_js_1 = require("./ignore-enoent.js");
|
|
17
|
-
const readdir_or_error_js_1 = require("./readdir-or-error.js");
|
|
18
|
-
const retry_busy_js_1 = require("./retry-busy.js");
|
|
19
|
-
const rimraf_move_remove_js_1 = require("./rimraf-move-remove.js");
|
|
20
|
-
const { unlink, rmdir, lstat } = fs_js_1.promises;
|
|
21
|
-
const rimrafWindowsFile = (0, retry_busy_js_1.retryBusy)((0, fix_eperm_js_1.fixEPERM)(unlink));
|
|
22
|
-
const rimrafWindowsFileSync = (0, retry_busy_js_1.retryBusySync)((0, fix_eperm_js_1.fixEPERMSync)(fs_js_1.unlinkSync));
|
|
23
|
-
const rimrafWindowsDirRetry = (0, retry_busy_js_1.retryBusy)((0, fix_eperm_js_1.fixEPERM)(rmdir));
|
|
24
|
-
const rimrafWindowsDirRetrySync = (0, retry_busy_js_1.retryBusySync)((0, fix_eperm_js_1.fixEPERMSync)(fs_js_1.rmdirSync));
|
|
25
|
-
const rimrafWindowsDirMoveRemoveFallback = async (path, opt) => {
|
|
26
|
-
/* c8 ignore start */
|
|
27
|
-
if (opt?.signal?.aborted) {
|
|
28
|
-
throw opt.signal.reason;
|
|
29
|
-
}
|
|
30
|
-
/* c8 ignore stop */
|
|
31
|
-
// already filtered, remove from options so we don't call unnecessarily
|
|
32
|
-
const { filter, ...options } = opt;
|
|
33
|
-
try {
|
|
34
|
-
return await rimrafWindowsDirRetry(path, options);
|
|
35
|
-
}
|
|
36
|
-
catch (er) {
|
|
37
|
-
if (er?.code === 'ENOTEMPTY') {
|
|
38
|
-
return await (0, rimraf_move_remove_js_1.rimrafMoveRemove)(path, options);
|
|
39
|
-
}
|
|
40
|
-
throw er;
|
|
41
|
-
}
|
|
42
|
-
};
|
|
43
|
-
const rimrafWindowsDirMoveRemoveFallbackSync = (path, opt) => {
|
|
44
|
-
if (opt?.signal?.aborted) {
|
|
45
|
-
throw opt.signal.reason;
|
|
46
|
-
}
|
|
47
|
-
// already filtered, remove from options so we don't call unnecessarily
|
|
48
|
-
const { filter, ...options } = opt;
|
|
49
|
-
try {
|
|
50
|
-
return rimrafWindowsDirRetrySync(path, options);
|
|
51
|
-
}
|
|
52
|
-
catch (er) {
|
|
53
|
-
const fer = er;
|
|
54
|
-
if (fer?.code === 'ENOTEMPTY') {
|
|
55
|
-
return (0, rimraf_move_remove_js_1.rimrafMoveRemoveSync)(path, options);
|
|
56
|
-
}
|
|
57
|
-
throw er;
|
|
58
|
-
}
|
|
59
|
-
};
|
|
60
|
-
const START = Symbol('start');
|
|
61
|
-
const CHILD = Symbol('child');
|
|
62
|
-
const FINISH = Symbol('finish');
|
|
63
|
-
const rimrafWindows = async (path, opt) => {
|
|
64
|
-
if (opt?.signal?.aborted) {
|
|
65
|
-
throw opt.signal.reason;
|
|
66
|
-
}
|
|
67
|
-
try {
|
|
68
|
-
return await rimrafWindowsDir(path, opt, await lstat(path), START);
|
|
69
|
-
}
|
|
70
|
-
catch (er) {
|
|
71
|
-
if (er?.code === 'ENOENT')
|
|
72
|
-
return true;
|
|
73
|
-
throw er;
|
|
74
|
-
}
|
|
75
|
-
};
|
|
76
|
-
exports.rimrafWindows = rimrafWindows;
|
|
77
|
-
const rimrafWindowsSync = (path, opt) => {
|
|
78
|
-
if (opt?.signal?.aborted) {
|
|
79
|
-
throw opt.signal.reason;
|
|
80
|
-
}
|
|
81
|
-
try {
|
|
82
|
-
return rimrafWindowsDirSync(path, opt, (0, fs_js_1.lstatSync)(path), START);
|
|
83
|
-
}
|
|
84
|
-
catch (er) {
|
|
85
|
-
if (er?.code === 'ENOENT')
|
|
86
|
-
return true;
|
|
87
|
-
throw er;
|
|
88
|
-
}
|
|
89
|
-
};
|
|
90
|
-
exports.rimrafWindowsSync = rimrafWindowsSync;
|
|
91
|
-
const rimrafWindowsDir = async (path, opt, ent, state = START) => {
|
|
92
|
-
if (opt?.signal?.aborted) {
|
|
93
|
-
throw opt.signal.reason;
|
|
94
|
-
}
|
|
95
|
-
const entries = ent.isDirectory() ? await (0, readdir_or_error_js_1.readdirOrError)(path) : null;
|
|
96
|
-
if (!Array.isArray(entries)) {
|
|
97
|
-
// this can only happen if lstat/readdir lied, or if the dir was
|
|
98
|
-
// swapped out with a file at just the right moment.
|
|
99
|
-
/* c8 ignore start */
|
|
100
|
-
if (entries) {
|
|
101
|
-
if (entries.code === 'ENOENT') {
|
|
102
|
-
return true;
|
|
103
|
-
}
|
|
104
|
-
if (entries.code !== 'ENOTDIR') {
|
|
105
|
-
throw entries;
|
|
106
|
-
}
|
|
107
|
-
}
|
|
108
|
-
/* c8 ignore stop */
|
|
109
|
-
if (opt.filter && !(await opt.filter(path, ent))) {
|
|
110
|
-
return false;
|
|
111
|
-
}
|
|
112
|
-
// is a file
|
|
113
|
-
await (0, ignore_enoent_js_1.ignoreENOENT)(rimrafWindowsFile(path, opt));
|
|
114
|
-
return true;
|
|
115
|
-
}
|
|
116
|
-
const s = state === START ? CHILD : state;
|
|
117
|
-
const removedAll = (await Promise.all(entries.map(ent => rimrafWindowsDir((0, path_1.resolve)(path, ent.name), opt, ent, s)))).reduce((a, b) => a && b, true);
|
|
118
|
-
if (state === START) {
|
|
119
|
-
return rimrafWindowsDir(path, opt, ent, FINISH);
|
|
120
|
-
}
|
|
121
|
-
else if (state === FINISH) {
|
|
122
|
-
if (opt.preserveRoot === false && path === (0, path_1.parse)(path).root) {
|
|
123
|
-
return false;
|
|
124
|
-
}
|
|
125
|
-
if (!removedAll) {
|
|
126
|
-
return false;
|
|
127
|
-
}
|
|
128
|
-
if (opt.filter && !(await opt.filter(path, ent))) {
|
|
129
|
-
return false;
|
|
130
|
-
}
|
|
131
|
-
await (0, ignore_enoent_js_1.ignoreENOENT)(rimrafWindowsDirMoveRemoveFallback(path, opt));
|
|
132
|
-
}
|
|
133
|
-
return true;
|
|
134
|
-
};
|
|
135
|
-
const rimrafWindowsDirSync = (path, opt, ent, state = START) => {
|
|
136
|
-
const entries = ent.isDirectory() ? (0, readdir_or_error_js_1.readdirOrErrorSync)(path) : null;
|
|
137
|
-
if (!Array.isArray(entries)) {
|
|
138
|
-
// this can only happen if lstat/readdir lied, or if the dir was
|
|
139
|
-
// swapped out with a file at just the right moment.
|
|
140
|
-
/* c8 ignore start */
|
|
141
|
-
if (entries) {
|
|
142
|
-
if (entries.code === 'ENOENT') {
|
|
143
|
-
return true;
|
|
144
|
-
}
|
|
145
|
-
if (entries.code !== 'ENOTDIR') {
|
|
146
|
-
throw entries;
|
|
147
|
-
}
|
|
148
|
-
}
|
|
149
|
-
/* c8 ignore stop */
|
|
150
|
-
if (opt.filter && !opt.filter(path, ent)) {
|
|
151
|
-
return false;
|
|
152
|
-
}
|
|
153
|
-
// is a file
|
|
154
|
-
(0, ignore_enoent_js_1.ignoreENOENTSync)(() => rimrafWindowsFileSync(path, opt));
|
|
155
|
-
return true;
|
|
156
|
-
}
|
|
157
|
-
let removedAll = true;
|
|
158
|
-
for (const ent of entries) {
|
|
159
|
-
const s = state === START ? CHILD : state;
|
|
160
|
-
const p = (0, path_1.resolve)(path, ent.name);
|
|
161
|
-
removedAll = rimrafWindowsDirSync(p, opt, ent, s) && removedAll;
|
|
162
|
-
}
|
|
163
|
-
if (state === START) {
|
|
164
|
-
return rimrafWindowsDirSync(path, opt, ent, FINISH);
|
|
165
|
-
}
|
|
166
|
-
else if (state === FINISH) {
|
|
167
|
-
if (opt.preserveRoot === false && path === (0, path_1.parse)(path).root) {
|
|
168
|
-
return false;
|
|
169
|
-
}
|
|
170
|
-
if (!removedAll) {
|
|
171
|
-
return false;
|
|
172
|
-
}
|
|
173
|
-
if (opt.filter && !opt.filter(path, ent)) {
|
|
174
|
-
return false;
|
|
175
|
-
}
|
|
176
|
-
(0, ignore_enoent_js_1.ignoreENOENTSync)(() => {
|
|
177
|
-
rimrafWindowsDirMoveRemoveFallbackSync(path, opt);
|
|
178
|
-
});
|
|
179
|
-
}
|
|
180
|
-
return true;
|
|
181
|
-
};
|
|
182
|
-
//# sourceMappingURL=rimraf-windows.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"rimraf-windows.js","sourceRoot":"","sources":["../../src/rimraf-windows.ts"],"names":[],"mappings":";AAAA,+DAA+D;AAC/D,EAAE;AACF,sEAAsE;AACtE,wEAAwE;AACxE,gCAAgC;AAChC,0EAA0E;AAC1E,sBAAsB;AACtB,EAAE;AACF,yEAAyE;;;AAGzE,+BAAqC;AAErC,iDAAuD;AACvD,mCAAoE;AACpE,yDAAmE;AACnE,+DAA0E;AAC1E,mDAA0D;AAC1D,mEAAgF;AAChF,MAAM,EAAE,MAAM,EAAE,KAAK,EAAE,KAAK,EAAE,GAAG,gBAAQ,CAAA;AAEzC,MAAM,iBAAiB,GAAG,IAAA,yBAAS,EAAC,IAAA,uBAAQ,EAAC,MAAM,CAAC,CAAC,CAAA;AACrD,MAAM,qBAAqB,GAAG,IAAA,6BAAa,EAAC,IAAA,2BAAY,EAAC,kBAAU,CAAC,CAAC,CAAA;AACrE,MAAM,qBAAqB,GAAG,IAAA,yBAAS,EAAC,IAAA,uBAAQ,EAAC,KAAK,CAAC,CAAC,CAAA;AACxD,MAAM,yBAAyB,GAAG,IAAA,6BAAa,EAAC,IAAA,2BAAY,EAAC,iBAAS,CAAC,CAAC,CAAA;AAExE,MAAM,kCAAkC,GAAG,KAAK,EAC9C,IAAY,EACZ,GAAuB,EACL,EAAE;IACpB,qBAAqB;IACrB,IAAI,GAAG,EAAE,MA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EAAE,GAAG,CAAC,CAAA;QACnD,CAAC,CAAC,CAAA;IACJ,CAAC;IACD,OAAO,IAAI,CAAA;AACb,CAAC,CAAA","sourcesContent":["// This is the same as rimrafPosix, with the following changes:\n//\n// 1. EBUSY, ENFILE, EMFILE trigger retries and/or exponential backoff\n// 2. All non-directories are removed first and then all directories are\n// removed in a second sweep.\n// 3. If we hit ENOTEMPTY in the second sweep, fall back to move-remove on\n// the that folder.\n//\n// Note: \"move then remove\" is 2-10 times slower, and just as unreliable.\n\nimport { Dirent, Stats } from 'fs'\nimport { parse, resolve } from 'path'\nimport { RimrafAsyncOptions, RimrafSyncOptions } from './index.js'\nimport { fixEPERM, fixEPERMSync } from './fix-eperm.js'\nimport { lstatSync, promises, rmdirSync, unlinkSync } from './fs.js'\nimport { ignoreENOENT, ignoreENOENTSync } from './ignore-enoent.js'\nimport { readdirOrError, readdirOrErrorSync } from './readdir-or-error.js'\nimport { retryBusy, retryBusySync } from './retry-busy.js'\nimport { rimrafMoveRemove, rimrafMoveRemoveSync } from './rimraf-move-remove.js'\nconst { unlink, rmdir, lstat } = promises\n\nconst rimrafWindowsFile = retryBusy(fixEPERM(unlink))\nconst rimrafWindowsFileSync = retryBusySync(fixEPERMSync(unlinkSync))\nconst rimrafWindowsDirRetry = retryBusy(fixEPERM(rmdir))\nconst rimrafWindowsDirRetrySync = retryBusySync(fixEPERMSync(rmdirSync))\n\nconst rimrafWindowsDirMoveRemoveFallback = async (\n path: string,\n opt: RimrafAsyncOptions,\n): Promise<boolean> => {\n /* c8 ignore start */\n if (opt?.signal?.aborted) {\n throw opt.signal.reason\n }\n /* c8 ignore stop */\n // already filtered, remove from options so we don't call unnecessarily\n const { filter, ...options } = opt\n try {\n return await rimrafWindowsDirRetry(path, options)\n } catch (er) {\n if ((er as NodeJS.ErrnoException)?.code === 'ENOTEMPTY') {\n return await rimrafMoveRemove(path, options)\n }\n throw er\n }\n}\n\nconst rimrafWindowsDirMoveRemoveFallbackSync = (\n path: string,\n opt: RimrafSyncOptions,\n): boolean => {\n if (opt?.signal?.aborted) {\n throw opt.signal.reason\n }\n // already filtered, remove from options so we don't call unnecessarily\n const { filter, ...options } = opt\n try {\n return rimrafWindowsDirRetrySync(path, options)\n } catch (er) {\n const fer = er as NodeJS.ErrnoException\n if (fer?.code === 'ENOTEMPTY') {\n return rimrafMoveRemoveSync(path, options)\n }\n throw er\n }\n}\n\nconst START = Symbol('start')\nconst CHILD = Symbol('child')\nconst FINISH = Symbol('finish')\n\nexport const rimrafWindows = async (path: string, opt: RimrafAsyncOptions) => {\n if (opt?.signal?.aborted) {\n throw opt.signal.reason\n }\n try {\n return await rimrafWindowsDir(path, opt, await lstat(path), START)\n } catch (er) {\n if ((er as NodeJS.ErrnoException)?.code === 'ENOENT') return true\n throw er\n }\n}\n\nexport const rimrafWindowsSync = (path: string, opt: RimrafSyncOptions) => {\n if (opt?.signal?.aborted) {\n throw opt.signal.reason\n }\n try {\n return rimrafWindowsDirSync(path, opt, lstatSync(path), START)\n } catch (er) {\n if ((er as NodeJS.ErrnoException)?.code === 'ENOENT') return true\n throw er\n }\n}\n\nconst rimrafWindowsDir = async (\n path: string,\n opt: RimrafAsyncOptions,\n ent: Dirent | Stats,\n state = START,\n): Promise<boolean> => {\n if (opt?.signal?.aborted) {\n throw opt.signal.reason\n }\n\n const entries = ent.isDirectory() ? await readdirOrError(path) : null\n if (!Array.isArray(entries)) {\n // this can only happen if lstat/readdir lied, or if the dir was\n // swapped out with a file at just the right moment.\n /* c8 ignore start */\n if (entries) {\n if (entries.code === 'ENOENT') {\n return true\n }\n if (entries.code !== 'ENOTDIR') {\n throw entries\n }\n }\n /* c8 ignore stop */\n if (opt.filter && !(await opt.filter(path, ent))) {\n return false\n }\n // is a file\n await ignoreENOENT(rimrafWindowsFile(path, opt))\n return true\n }\n\n const s = state === START ? CHILD : state\n const removedAll = (\n await Promise.all(\n entries.map(ent =>\n rimrafWindowsDir(resolve(path, ent.name), opt, ent, s),\n ),\n )\n ).reduce((a, b) => a && b, true)\n\n if (state === START) {\n return rimrafWindowsDir(path, opt, ent, FINISH)\n } else if (state === FINISH) {\n if (opt.preserveRoot === false && path === parse(path).root) {\n return false\n }\n if (!removedAll) {\n return false\n }\n if (opt.filter && !(await opt.filter(path, ent))) {\n return false\n }\n await ignoreENOENT(rimrafWindowsDirMoveRemoveFallback(path, opt))\n }\n return true\n}\n\nconst rimrafWindowsDirSync = (\n path: string,\n opt: RimrafSyncOptions,\n ent: Dirent | Stats,\n state = START,\n): boolean => {\n const entries = ent.isDirectory() ? readdirOrErrorSync(path) : null\n if (!Array.isArray(entries)) {\n // this can only happen if lstat/readdir lied, or if the dir was\n // swapped out with a file at just the right moment.\n /* c8 ignore start */\n if (entries) {\n if (entries.code === 'ENOENT') {\n return true\n }\n if (entries.code !== 'ENOTDIR') {\n throw entries\n }\n }\n /* c8 ignore stop */\n if (opt.filter && !opt.filter(path, ent)) {\n return false\n }\n // is a file\n ignoreENOENTSync(() => rimrafWindowsFileSync(path, opt))\n return true\n }\n\n let removedAll = true\n for (const ent of entries) {\n const s = state === START ? CHILD : state\n const p = resolve(path, ent.name)\n removedAll = rimrafWindowsDirSync(p, opt, ent, s) && removedAll\n }\n\n if (state === START) {\n return rimrafWindowsDirSync(path, opt, ent, FINISH)\n } else if (state === FINISH) {\n if (opt.preserveRoot === false && path === parse(path).root) {\n return false\n }\n if (!removedAll) {\n return false\n }\n if (opt.filter && !opt.filter(path, ent)) {\n return false\n }\n ignoreENOENTSync(() => {\n rimrafWindowsDirMoveRemoveFallbackSync(path, opt)\n })\n }\n return true\n}\n"]}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"use-native.d.ts","sourceRoot":"","sources":["../../src/use-native.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,kBAAkB,EAAE,aAAa,EAAE,MAAM,YAAY,CAAA;AAa9D,eAAO,MAAM,SAAS,EAAE,CAAC,GAAG,CAAC,EAAE,kBAAkB,KAAK,OAGf,CAAA;AACvC,eAAO,MAAM,aAAa,EAAE,CAAC,GAAG,CAAC,EAAE,aAAa,KAAK,OAGd,CAAA"}
|
|
@@ -1,22 +0,0 @@
|
|
|
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.useNativeSync = exports.useNative = void 0;
|
|
7
|
-
const platform_js_1 = __importDefault(require("./platform.js"));
|
|
8
|
-
const version = process.env.__TESTING_RIMRAF_NODE_VERSION__ || process.version;
|
|
9
|
-
const versArr = version.replace(/^v/, '').split('.');
|
|
10
|
-
/* c8 ignore start */
|
|
11
|
-
const [major = 0, minor = 0] = versArr.map(v => parseInt(v, 10));
|
|
12
|
-
/* c8 ignore stop */
|
|
13
|
-
const hasNative = major > 14 || (major === 14 && minor >= 14);
|
|
14
|
-
// we do NOT use native by default on Windows, because Node's native
|
|
15
|
-
// rm implementation is less advanced. Change this code if that changes.
|
|
16
|
-
exports.useNative = !hasNative || platform_js_1.default === 'win32' ?
|
|
17
|
-
() => false
|
|
18
|
-
: opt => !opt?.signal && !opt?.filter;
|
|
19
|
-
exports.useNativeSync = !hasNative || platform_js_1.default === 'win32' ?
|
|
20
|
-
() => false
|
|
21
|
-
: opt => !opt?.signal && !opt?.filter;
|
|
22
|
-
//# sourceMappingURL=use-native.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"use-native.js","sourceRoot":"","sources":["../../src/use-native.ts"],"names":[],"mappings":";;;;;;AACA,gEAAoC;AAEpC,MAAM,OAAO,GAAG,OAAO,CAAC,GAAG,CAAC,+BAA+B,IAAI,OAAO,CAAC,OAAO,CAAA;AAC9E,MAAM,OAAO,GAAG,OAAO,CAAC,OAAO,CAAC,IAAI,EAAE,EAAE,CAAC,CAAC,KAAK,CAAC,GAAG,CAAC,CAAA;AAEpD,qBAAqB;AACrB,MAAM,CAAC,KAAK,GAAG,CAAC,EAAE,KAAK,GAAG,CAAC,CAAC,GAAG,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,EAAE,CAAC,QAAQ,CAAC,CAAC,EAAE,EAAE,CAAC,CAAC,CAAA;AAChE,oBAAoB;AACpB,MAAM,SAAS,GAAG,KAAK,GAAG,EAAE,IAAI,CAAC,KAAK,KAAK,EAAE,IAAI,KAAK,IAAI,EAAE,CAAC,CAAA;AAE7D,oEAAoE;AACpE,yEAAyE;AAC5D,QAAA,SAAS,GACpB,CAAC,SAAS,IAAI,qBAAQ,KAAK,OAAO,CAAC,CAAC;IAClC,GAAG,EAAE,CAAC,KAAK;IACb,CAAC,CAAC,GAAG,CAAC,EAAE,CAAC,CAAC,GAAG,EAAE,MAAM,IAAI,CAAC,GAAG,EAAE,MAAM,CAAA;AAC1B,QAAA,aAAa,GACxB,CAAC,SAAS,IAAI,qBAAQ,KAAK,OAAO,CAAC,CAAC;IAClC,GAAG,EAAE,CAAC,KAAK;IACb,CAAC,CAAC,GAAG,CAAC,EAAE,CAAC,CAAC,GAAG,EAAE,MAAM,IAAI,CAAC,GAAG,EAAE,MAAM,CAAA","sourcesContent":["import { RimrafAsyncOptions, RimrafOptions } from './index.js'\nimport platform from './platform.js'\n\nconst version = process.env.__TESTING_RIMRAF_NODE_VERSION__ || process.version\nconst versArr = version.replace(/^v/, '').split('.')\n\n/* c8 ignore start */\nconst [major = 0, minor = 0] = versArr.map(v => parseInt(v, 10))\n/* c8 ignore stop */\nconst hasNative = major > 14 || (major === 14 && minor >= 14)\n\n// we do NOT use native by default on Windows, because Node's native\n// rm implementation is less advanced. Change this code if that changes.\nexport const useNative: (opt?: RimrafAsyncOptions) => boolean =\n !hasNative || platform === 'win32' ?\n () => false\n : opt => !opt?.signal && !opt?.filter\nexport const useNativeSync: (opt?: RimrafOptions) => boolean =\n !hasNative || platform === 'win32' ?\n () => false\n : opt => !opt?.signal && !opt?.filter\n"]}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"bin.d.mts","sourceRoot":"","sources":["../../src/bin.mts"],"names":[],"mappings":";AAcA,eAAO,MAAM,IAAI,QAkChB,CAAA;AA8ED,QAAA,MAAM,IAAI;cAAmB,MAAM,EAAE;;CAoIpC,CAAA;AAGD,eAAe,IAAI,CAAA"}
|