@pnpm/exe 11.0.0-alpha.5 → 11.0.0-alpha.7
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/dist/node-gyp-bin/node-gyp +6 -0
- package/dist/node-gyp-bin/node-gyp.cmd +5 -0
- package/dist/node_modules/@isaacs/cliui/dist/commonjs/ansi-regex/index.js +16 -0
- package/dist/node_modules/@isaacs/cliui/dist/commonjs/ansi-styles/index.js +170 -0
- package/dist/node_modules/@isaacs/cliui/dist/commonjs/eastasianwidth/index.js +307 -0
- package/dist/node_modules/@isaacs/cliui/dist/commonjs/emoji-regex/index.js +7 -0
- package/dist/node_modules/@isaacs/cliui/dist/commonjs/index.js +322 -0
- package/dist/node_modules/@isaacs/cliui/dist/commonjs/index.min.js +12 -0
- package/dist/node_modules/@isaacs/cliui/dist/commonjs/package.json +3 -0
- package/dist/node_modules/@isaacs/cliui/dist/commonjs/string-width/index.js +49 -0
- package/dist/node_modules/@isaacs/cliui/dist/commonjs/strip-ansi/index.js +8 -0
- package/dist/node_modules/@isaacs/cliui/dist/commonjs/wrap-ansi/index.js +176 -0
- package/dist/node_modules/@isaacs/cliui/dist/esm/ansi-regex/index.js +12 -0
- package/dist/node_modules/@isaacs/cliui/dist/esm/ansi-styles/index.js +167 -0
- package/dist/node_modules/@isaacs/cliui/dist/esm/eastasianwidth/index.js +299 -0
- package/dist/node_modules/@isaacs/cliui/dist/esm/emoji-regex/index.js +3 -0
- package/dist/node_modules/@isaacs/cliui/dist/esm/index.js +317 -0
- package/dist/node_modules/@isaacs/cliui/dist/esm/index.min.js +12 -0
- package/dist/node_modules/@isaacs/cliui/dist/esm/package.json +3 -0
- package/dist/node_modules/@isaacs/cliui/dist/esm/string-width/index.js +46 -0
- package/dist/node_modules/@isaacs/cliui/dist/esm/strip-ansi/index.js +4 -0
- package/dist/node_modules/@isaacs/cliui/dist/esm/wrap-ansi/index.js +172 -0
- package/dist/node_modules/@isaacs/cliui/package.json +163 -0
- package/dist/node_modules/@isaacs/fs-minipass/LICENSE +15 -0
- package/dist/node_modules/@isaacs/fs-minipass/dist/commonjs/index.js +430 -0
- package/dist/node_modules/@isaacs/fs-minipass/dist/commonjs/package.json +3 -0
- package/dist/node_modules/@isaacs/fs-minipass/dist/esm/index.js +420 -0
- package/dist/node_modules/@isaacs/fs-minipass/dist/esm/package.json +3 -0
- package/dist/node_modules/@isaacs/fs-minipass/package.json +72 -0
- package/dist/node_modules/@npmcli/agent/lib/agents.js +206 -0
- package/dist/node_modules/@npmcli/agent/lib/dns.js +53 -0
- package/dist/node_modules/@npmcli/agent/lib/errors.js +61 -0
- package/dist/node_modules/@npmcli/agent/lib/index.js +56 -0
- package/dist/node_modules/@npmcli/agent/lib/options.js +86 -0
- package/dist/node_modules/@npmcli/agent/lib/proxy.js +88 -0
- package/dist/node_modules/@npmcli/agent/package.json +60 -0
- package/dist/node_modules/@npmcli/fs/lib/common/get-options.js +20 -0
- package/dist/node_modules/@npmcli/fs/lib/common/node.js +9 -0
- package/dist/node_modules/@npmcli/fs/lib/cp/LICENSE +15 -0
- package/dist/node_modules/@npmcli/fs/lib/cp/errors.js +129 -0
- package/dist/node_modules/@npmcli/fs/lib/cp/index.js +22 -0
- package/dist/node_modules/@npmcli/fs/lib/cp/polyfill.js +428 -0
- package/dist/node_modules/@npmcli/fs/lib/index.js +13 -0
- package/dist/node_modules/@npmcli/fs/lib/move-file.js +78 -0
- package/dist/node_modules/@npmcli/fs/lib/readdir-scoped.js +20 -0
- package/dist/node_modules/@npmcli/fs/lib/with-temp-dir.js +39 -0
- package/dist/node_modules/@npmcli/fs/package.json +54 -0
- package/dist/node_modules/abbrev/LICENSE +46 -0
- package/dist/node_modules/abbrev/lib/index.js +53 -0
- package/dist/node_modules/abbrev/package.json +45 -0
- package/dist/node_modules/agent-base/LICENSE +22 -0
- package/dist/node_modules/agent-base/dist/helpers.js +66 -0
- package/dist/node_modules/agent-base/dist/index.js +178 -0
- package/dist/node_modules/agent-base/package.json +46 -0
- package/dist/node_modules/balanced-match/dist/commonjs/index.js +59 -0
- package/dist/node_modules/balanced-match/dist/commonjs/package.json +3 -0
- package/dist/node_modules/balanced-match/dist/esm/index.js +54 -0
- package/dist/node_modules/balanced-match/dist/esm/package.json +3 -0
- package/dist/node_modules/balanced-match/package.json +71 -0
- package/dist/node_modules/brace-expansion/LICENSE +23 -0
- package/dist/node_modules/brace-expansion/dist/commonjs/index.js +199 -0
- package/dist/node_modules/brace-expansion/dist/commonjs/package.json +3 -0
- package/dist/node_modules/brace-expansion/dist/esm/index.js +195 -0
- package/dist/node_modules/brace-expansion/dist/esm/package.json +3 -0
- package/dist/node_modules/brace-expansion/package.json +64 -0
- package/dist/node_modules/cacache/lib/content/path.js +29 -0
- package/dist/node_modules/cacache/lib/content/read.js +165 -0
- package/dist/node_modules/cacache/lib/content/rm.js +18 -0
- package/dist/node_modules/cacache/lib/content/write.js +206 -0
- package/dist/node_modules/cacache/lib/entry-index.js +336 -0
- package/dist/node_modules/cacache/lib/get.js +170 -0
- package/dist/node_modules/cacache/lib/index.js +42 -0
- package/dist/node_modules/cacache/lib/memoization.js +72 -0
- package/dist/node_modules/cacache/lib/put.js +80 -0
- package/dist/node_modules/cacache/lib/rm.js +31 -0
- package/dist/node_modules/cacache/lib/util/glob.js +7 -0
- package/dist/node_modules/cacache/lib/util/hash-to-segments.js +7 -0
- package/dist/node_modules/cacache/lib/util/tmp.js +26 -0
- package/dist/node_modules/cacache/lib/verify.js +258 -0
- package/dist/node_modules/cacache/package.json +83 -0
- package/dist/node_modules/chownr/dist/commonjs/index.js +93 -0
- package/dist/node_modules/chownr/dist/commonjs/package.json +3 -0
- package/dist/node_modules/chownr/dist/esm/index.js +85 -0
- package/dist/node_modules/chownr/dist/esm/package.json +3 -0
- package/dist/node_modules/chownr/package.json +69 -0
- package/dist/node_modules/cross-spawn/LICENSE +21 -0
- package/dist/node_modules/cross-spawn/index.js +39 -0
- package/dist/node_modules/cross-spawn/lib/enoent.js +59 -0
- package/dist/node_modules/cross-spawn/lib/parse.js +91 -0
- package/dist/node_modules/cross-spawn/lib/util/escape.js +47 -0
- package/dist/node_modules/cross-spawn/lib/util/readShebang.js +23 -0
- package/dist/node_modules/cross-spawn/lib/util/resolveCommand.js +52 -0
- package/dist/node_modules/cross-spawn/package.json +73 -0
- package/dist/node_modules/debug/LICENSE +20 -0
- package/dist/node_modules/debug/package.json +64 -0
- package/dist/node_modules/debug/src/browser.js +272 -0
- package/dist/node_modules/debug/src/common.js +292 -0
- package/dist/node_modules/debug/src/index.js +10 -0
- package/dist/node_modules/debug/src/node.js +263 -0
- package/dist/node_modules/encoding/.prettierrc.js +8 -0
- package/dist/node_modules/encoding/LICENSE +16 -0
- package/dist/node_modules/encoding/lib/encoding.js +83 -0
- package/dist/node_modules/encoding/package.json +18 -0
- package/dist/node_modules/env-paths/index.js +74 -0
- package/dist/node_modules/env-paths/license +9 -0
- package/dist/node_modules/env-paths/package.json +45 -0
- package/dist/node_modules/err-code/.eslintrc.json +7 -0
- package/dist/node_modules/err-code/bower.json +30 -0
- package/dist/node_modules/err-code/index.js +47 -0
- package/dist/node_modules/err-code/index.umd.js +51 -0
- package/dist/node_modules/err-code/package.json +34 -0
- package/dist/node_modules/exponential-backoff/LICENSE +202 -0
- package/dist/node_modules/exponential-backoff/dist/backoff.js +124 -0
- package/dist/node_modules/exponential-backoff/dist/delay/always/always.delay.js +25 -0
- package/dist/node_modules/exponential-backoff/dist/delay/delay.base.js +45 -0
- package/dist/node_modules/exponential-backoff/dist/delay/delay.factory.js +17 -0
- package/dist/node_modules/exponential-backoff/dist/delay/delay.interface.js +3 -0
- package/dist/node_modules/exponential-backoff/dist/delay/skip-first/skip-first.delay.js +82 -0
- package/dist/node_modules/exponential-backoff/dist/jitter/full/full.jitter.js +8 -0
- package/dist/node_modules/exponential-backoff/dist/jitter/jitter.factory.js +15 -0
- package/dist/node_modules/exponential-backoff/dist/jitter/no/no.jitter.js +7 -0
- package/dist/node_modules/exponential-backoff/dist/options.js +31 -0
- package/dist/node_modules/exponential-backoff/package.json +62 -0
- package/dist/node_modules/fdir/LICENSE +7 -0
- package/dist/node_modules/fdir/dist/index.cjs +588 -0
- package/dist/node_modules/fdir/dist/index.d.cts +155 -0
- package/dist/node_modules/fdir/dist/index.d.mts +155 -0
- package/dist/node_modules/fdir/dist/index.mjs +570 -0
- package/dist/node_modules/fdir/package.json +103 -0
- package/dist/node_modules/foreground-child/LICENSE +15 -0
- package/dist/node_modules/foreground-child/dist/commonjs/all-signals.js +58 -0
- package/dist/node_modules/foreground-child/dist/commonjs/index.js +123 -0
- package/dist/node_modules/foreground-child/dist/commonjs/package.json +3 -0
- package/dist/node_modules/foreground-child/dist/commonjs/proxy-signals.js +38 -0
- package/dist/node_modules/foreground-child/dist/commonjs/watchdog.js +50 -0
- package/dist/node_modules/foreground-child/dist/esm/all-signals.js +52 -0
- package/dist/node_modules/foreground-child/dist/esm/index.js +115 -0
- package/dist/node_modules/foreground-child/dist/esm/package.json +3 -0
- package/dist/node_modules/foreground-child/dist/esm/proxy-signals.js +34 -0
- package/dist/node_modules/foreground-child/dist/esm/watchdog.js +46 -0
- package/dist/node_modules/foreground-child/package.json +106 -0
- package/dist/node_modules/fs-minipass/LICENSE +15 -0
- package/dist/node_modules/fs-minipass/lib/index.js +443 -0
- package/dist/node_modules/fs-minipass/package.json +54 -0
- package/dist/node_modules/glob/dist/commonjs/glob.js +247 -0
- package/dist/node_modules/glob/dist/commonjs/has-magic.js +27 -0
- package/dist/node_modules/glob/dist/commonjs/ignore.js +119 -0
- package/dist/node_modules/glob/dist/commonjs/index.js +68 -0
- package/dist/node_modules/glob/dist/commonjs/package.json +3 -0
- package/dist/node_modules/glob/dist/commonjs/pattern.js +219 -0
- package/dist/node_modules/glob/dist/commonjs/processor.js +301 -0
- package/dist/node_modules/glob/dist/commonjs/walker.js +387 -0
- package/dist/node_modules/glob/dist/esm/bin.d.mts +3 -0
- package/dist/node_modules/glob/dist/esm/bin.mjs +346 -0
- package/dist/node_modules/glob/dist/esm/glob.js +243 -0
- package/dist/node_modules/glob/dist/esm/has-magic.js +23 -0
- package/dist/node_modules/glob/dist/esm/ignore.js +115 -0
- package/dist/node_modules/glob/dist/esm/index.js +55 -0
- package/dist/node_modules/glob/dist/esm/package.json +3 -0
- package/dist/node_modules/glob/dist/esm/pattern.js +215 -0
- package/dist/node_modules/glob/dist/esm/processor.js +294 -0
- package/dist/node_modules/glob/dist/esm/walker.js +381 -0
- package/dist/node_modules/glob/package.json +97 -0
- package/dist/node_modules/graceful-fs/LICENSE +15 -0
- package/dist/node_modules/graceful-fs/clone.js +23 -0
- package/dist/node_modules/graceful-fs/graceful-fs.js +448 -0
- package/dist/node_modules/graceful-fs/legacy-streams.js +118 -0
- package/dist/node_modules/graceful-fs/package.json +53 -0
- package/dist/node_modules/graceful-fs/polyfills.js +355 -0
- package/dist/node_modules/http-cache-semantics/LICENSE +9 -0
- package/dist/node_modules/http-cache-semantics/index.js +928 -0
- package/dist/node_modules/http-cache-semantics/package.json +22 -0
- package/dist/node_modules/http-proxy-agent/LICENSE +22 -0
- package/dist/node_modules/http-proxy-agent/dist/index.js +148 -0
- package/dist/node_modules/http-proxy-agent/package.json +47 -0
- package/dist/node_modules/https-proxy-agent/LICENSE +22 -0
- package/dist/node_modules/https-proxy-agent/dist/index.js +180 -0
- package/dist/node_modules/https-proxy-agent/dist/parse-proxy-response.js +101 -0
- package/dist/node_modules/https-proxy-agent/package.json +50 -0
- package/dist/node_modules/iconv-lite/.github/dependabot.yml +11 -0
- package/dist/node_modules/iconv-lite/.idea/codeStyles/Project.xml +47 -0
- package/dist/node_modules/iconv-lite/.idea/codeStyles/codeStyleConfig.xml +5 -0
- package/dist/node_modules/iconv-lite/.idea/iconv-lite.iml +12 -0
- package/dist/node_modules/iconv-lite/.idea/inspectionProfiles/Project_Default.xml +6 -0
- package/dist/node_modules/iconv-lite/.idea/modules.xml +8 -0
- package/dist/node_modules/iconv-lite/.idea/vcs.xml +6 -0
- package/dist/node_modules/iconv-lite/LICENSE +21 -0
- package/dist/node_modules/iconv-lite/encodings/dbcs-codec.js +597 -0
- package/dist/node_modules/iconv-lite/encodings/dbcs-data.js +188 -0
- package/dist/node_modules/iconv-lite/encodings/index.js +23 -0
- package/dist/node_modules/iconv-lite/encodings/internal.js +198 -0
- package/dist/node_modules/iconv-lite/encodings/sbcs-codec.js +72 -0
- package/dist/node_modules/iconv-lite/encodings/sbcs-data-generated.js +451 -0
- package/dist/node_modules/iconv-lite/encodings/sbcs-data.js +179 -0
- package/dist/node_modules/iconv-lite/encodings/tables/big5-added.json +122 -0
- package/dist/node_modules/iconv-lite/encodings/tables/cp936.json +264 -0
- package/dist/node_modules/iconv-lite/encodings/tables/cp949.json +273 -0
- package/dist/node_modules/iconv-lite/encodings/tables/cp950.json +177 -0
- package/dist/node_modules/iconv-lite/encodings/tables/eucjp.json +182 -0
- package/dist/node_modules/iconv-lite/encodings/tables/gb18030-ranges.json +1 -0
- package/dist/node_modules/iconv-lite/encodings/tables/gbk-added.json +56 -0
- package/dist/node_modules/iconv-lite/encodings/tables/shiftjis.json +125 -0
- package/dist/node_modules/iconv-lite/encodings/utf16.js +197 -0
- package/dist/node_modules/iconv-lite/encodings/utf32.js +319 -0
- package/dist/node_modules/iconv-lite/encodings/utf7.js +290 -0
- package/dist/node_modules/iconv-lite/lib/bom-handling.js +52 -0
- package/dist/node_modules/iconv-lite/lib/index.js +180 -0
- package/dist/node_modules/iconv-lite/lib/streams.js +109 -0
- package/dist/node_modules/iconv-lite/package.json +44 -0
- package/dist/node_modules/imurmurhash/imurmurhash.js +138 -0
- package/dist/node_modules/imurmurhash/imurmurhash.min.js +12 -0
- package/dist/node_modules/imurmurhash/package.json +40 -0
- package/dist/node_modules/ip-address/LICENSE +19 -0
- package/dist/node_modules/ip-address/dist/address-error.js +12 -0
- package/dist/node_modules/ip-address/dist/common.js +46 -0
- package/dist/node_modules/ip-address/dist/ip-address.js +35 -0
- package/dist/node_modules/ip-address/dist/ipv4.js +360 -0
- package/dist/node_modules/ip-address/dist/ipv6.js +1003 -0
- package/dist/node_modules/ip-address/dist/v4/constants.js +8 -0
- package/dist/node_modules/ip-address/dist/v6/constants.js +76 -0
- package/dist/node_modules/ip-address/dist/v6/helpers.js +45 -0
- package/dist/node_modules/ip-address/dist/v6/regular-expressions.js +95 -0
- package/dist/node_modules/ip-address/package.json +78 -0
- package/dist/node_modules/isexe/LICENSE +15 -0
- package/dist/node_modules/isexe/index.js +57 -0
- package/dist/node_modules/isexe/mode.js +41 -0
- package/dist/node_modules/isexe/package.json +31 -0
- package/dist/node_modules/isexe/windows.js +42 -0
- package/dist/node_modules/jackspeak/dist/commonjs/index.js +944 -0
- package/dist/node_modules/jackspeak/dist/commonjs/index.min.js +33 -0
- package/dist/node_modules/jackspeak/dist/commonjs/package.json +3 -0
- package/dist/node_modules/jackspeak/dist/esm/index.js +936 -0
- package/dist/node_modules/jackspeak/dist/esm/index.min.js +33 -0
- package/dist/node_modules/jackspeak/dist/esm/package.json +3 -0
- package/dist/node_modules/jackspeak/package.json +115 -0
- package/dist/node_modules/lru-cache/LICENSE +15 -0
- package/dist/node_modules/lru-cache/dist/commonjs/index.js +1546 -0
- package/dist/node_modules/lru-cache/dist/commonjs/index.min.js +2 -0
- package/dist/node_modules/lru-cache/dist/commonjs/package.json +3 -0
- package/dist/node_modules/lru-cache/dist/esm/index.js +1542 -0
- package/dist/node_modules/lru-cache/dist/esm/index.min.js +2 -0
- package/dist/node_modules/lru-cache/dist/esm/package.json +3 -0
- package/dist/node_modules/lru-cache/package.json +116 -0
- package/dist/node_modules/make-fetch-happen/LICENSE +16 -0
- package/dist/node_modules/make-fetch-happen/lib/cache/entry.js +471 -0
- package/dist/node_modules/make-fetch-happen/lib/cache/errors.js +11 -0
- package/dist/node_modules/make-fetch-happen/lib/cache/index.js +49 -0
- package/dist/node_modules/make-fetch-happen/lib/cache/key.js +17 -0
- package/dist/node_modules/make-fetch-happen/lib/cache/policy.js +161 -0
- package/dist/node_modules/make-fetch-happen/lib/fetch.js +118 -0
- package/dist/node_modules/make-fetch-happen/lib/index.js +41 -0
- package/dist/node_modules/make-fetch-happen/lib/options.js +59 -0
- package/dist/node_modules/make-fetch-happen/lib/pipeline.js +41 -0
- package/dist/node_modules/make-fetch-happen/lib/remote.js +132 -0
- package/dist/node_modules/make-fetch-happen/package.json +74 -0
- package/dist/node_modules/minimatch/dist/commonjs/assert-valid-pattern.js +14 -0
- package/dist/node_modules/minimatch/dist/commonjs/ast.js +601 -0
- package/dist/node_modules/minimatch/dist/commonjs/brace-expressions.js +150 -0
- package/dist/node_modules/minimatch/dist/commonjs/escape.js +30 -0
- package/dist/node_modules/minimatch/dist/commonjs/index.js +1035 -0
- package/dist/node_modules/minimatch/dist/commonjs/package.json +3 -0
- package/dist/node_modules/minimatch/dist/commonjs/unescape.js +38 -0
- package/dist/node_modules/minimatch/dist/esm/assert-valid-pattern.js +10 -0
- package/dist/node_modules/minimatch/dist/esm/ast.js +597 -0
- package/dist/node_modules/minimatch/dist/esm/brace-expressions.js +146 -0
- package/dist/node_modules/minimatch/dist/esm/escape.js +26 -0
- package/dist/node_modules/minimatch/dist/esm/index.js +1022 -0
- package/dist/node_modules/minimatch/dist/esm/package.json +3 -0
- package/dist/node_modules/minimatch/dist/esm/unescape.js +34 -0
- package/dist/node_modules/minimatch/package.json +67 -0
- package/dist/node_modules/minipass/LICENSE +15 -0
- package/dist/node_modules/minipass/dist/commonjs/index.js +1028 -0
- package/dist/node_modules/minipass/dist/commonjs/package.json +3 -0
- package/dist/node_modules/minipass/dist/esm/index.js +1018 -0
- package/dist/node_modules/minipass/dist/esm/package.json +3 -0
- package/dist/node_modules/minipass/package.json +82 -0
- package/dist/node_modules/minipass-collect/LICENSE +15 -0
- package/dist/node_modules/minipass-collect/index.js +71 -0
- package/dist/node_modules/minipass-collect/package.json +30 -0
- package/dist/node_modules/minipass-fetch/LICENSE +28 -0
- package/dist/node_modules/minipass-fetch/lib/abort-error.js +17 -0
- package/dist/node_modules/minipass-fetch/lib/blob.js +97 -0
- package/dist/node_modules/minipass-fetch/lib/body.js +350 -0
- package/dist/node_modules/minipass-fetch/lib/fetch-error.js +32 -0
- package/dist/node_modules/minipass-fetch/lib/headers.js +267 -0
- package/dist/node_modules/minipass-fetch/lib/index.js +376 -0
- package/dist/node_modules/minipass-fetch/lib/request.js +282 -0
- package/dist/node_modules/minipass-fetch/lib/response.js +90 -0
- package/dist/node_modules/minipass-fetch/package.json +70 -0
- package/dist/node_modules/minipass-flush/LICENSE +15 -0
- package/dist/node_modules/minipass-flush/index.js +39 -0
- package/dist/node_modules/minipass-flush/node_modules/minipass/LICENSE +15 -0
- package/dist/node_modules/minipass-flush/node_modules/minipass/index.js +649 -0
- package/dist/node_modules/minipass-flush/node_modules/minipass/package.json +56 -0
- package/dist/node_modules/minipass-flush/package.json +39 -0
- package/dist/node_modules/minipass-pipeline/LICENSE +15 -0
- package/dist/node_modules/minipass-pipeline/index.js +128 -0
- package/dist/node_modules/minipass-pipeline/node_modules/minipass/LICENSE +15 -0
- package/dist/node_modules/minipass-pipeline/node_modules/minipass/index.js +649 -0
- package/dist/node_modules/minipass-pipeline/node_modules/minipass/package.json +56 -0
- package/dist/node_modules/minipass-pipeline/package.json +29 -0
- package/dist/node_modules/minipass-sized/LICENSE +15 -0
- package/dist/node_modules/minipass-sized/index.js +67 -0
- package/dist/node_modules/minipass-sized/node_modules/minipass/LICENSE +15 -0
- package/dist/node_modules/minipass-sized/node_modules/minipass/index.js +649 -0
- package/dist/node_modules/minipass-sized/node_modules/minipass/package.json +56 -0
- package/dist/node_modules/minipass-sized/package-lock.json +3464 -0
- package/dist/node_modules/minipass-sized/package.json +39 -0
- package/dist/node_modules/minizlib/LICENSE +26 -0
- package/dist/node_modules/minizlib/dist/commonjs/constants.js +123 -0
- package/dist/node_modules/minizlib/dist/commonjs/index.js +416 -0
- package/dist/node_modules/minizlib/dist/commonjs/package.json +3 -0
- package/dist/node_modules/minizlib/dist/esm/constants.js +117 -0
- package/dist/node_modules/minizlib/dist/esm/index.js +363 -0
- package/dist/node_modules/minizlib/dist/esm/package.json +3 -0
- package/dist/node_modules/minizlib/package.json +80 -0
- package/dist/node_modules/ms/index.js +162 -0
- package/dist/node_modules/ms/package.json +38 -0
- package/dist/node_modules/negotiator/LICENSE +24 -0
- package/dist/node_modules/negotiator/index.js +83 -0
- package/dist/node_modules/negotiator/lib/charset.js +169 -0
- package/dist/node_modules/negotiator/lib/encoding.js +205 -0
- package/dist/node_modules/negotiator/lib/language.js +179 -0
- package/dist/node_modules/negotiator/lib/mediaType.js +294 -0
- package/dist/node_modules/negotiator/package.json +43 -0
- package/dist/node_modules/node-gyp/.release-please-manifest.json +3 -0
- package/dist/node_modules/node-gyp/LICENSE +24 -0
- package/dist/node_modules/node-gyp/addon.gypi +204 -0
- package/dist/node_modules/node-gyp/bin/node-gyp.js +138 -0
- package/dist/node_modules/node-gyp/eslint.config.js +3 -0
- package/dist/node_modules/node-gyp/gyp/.release-please-manifest.json +3 -0
- package/dist/node_modules/node-gyp/gyp/LICENSE +28 -0
- package/dist/node_modules/node-gyp/gyp/data/ninja/build.ninja +4 -0
- package/dist/node_modules/node-gyp/gyp/data/win/large-pdb-shim.cc +12 -0
- package/dist/node_modules/node-gyp/gyp/gyp +8 -0
- package/dist/node_modules/node-gyp/gyp/gyp.bat +5 -0
- package/dist/node_modules/node-gyp/gyp/gyp_main.py +45 -0
- package/dist/node_modules/node-gyp/gyp/pylib/gyp/MSVSNew.py +365 -0
- package/dist/node_modules/node-gyp/gyp/pylib/gyp/MSVSProject.py +206 -0
- package/dist/node_modules/node-gyp/gyp/pylib/gyp/MSVSSettings.py +1283 -0
- package/dist/node_modules/node-gyp/gyp/pylib/gyp/MSVSSettings_test.py +1545 -0
- package/dist/node_modules/node-gyp/gyp/pylib/gyp/MSVSToolFile.py +59 -0
- package/dist/node_modules/node-gyp/gyp/pylib/gyp/MSVSUserFile.py +152 -0
- package/dist/node_modules/node-gyp/gyp/pylib/gyp/MSVSUtil.py +270 -0
- package/dist/node_modules/node-gyp/gyp/pylib/gyp/MSVSVersion.py +574 -0
- package/dist/node_modules/node-gyp/gyp/pylib/gyp/__init__.py +707 -0
- package/dist/node_modules/node-gyp/gyp/pylib/gyp/common.py +725 -0
- package/dist/node_modules/node-gyp/gyp/pylib/gyp/common_test.py +186 -0
- package/dist/node_modules/node-gyp/gyp/pylib/gyp/easy_xml.py +170 -0
- package/dist/node_modules/node-gyp/gyp/pylib/gyp/easy_xml_test.py +113 -0
- package/dist/node_modules/node-gyp/gyp/pylib/gyp/flock_tool.py +55 -0
- package/dist/node_modules/node-gyp/gyp/pylib/gyp/generator/__init__.py +0 -0
- package/dist/node_modules/node-gyp/gyp/pylib/gyp/generator/analyzer.py +805 -0
- package/dist/node_modules/node-gyp/gyp/pylib/gyp/generator/android.py +1169 -0
- package/dist/node_modules/node-gyp/gyp/pylib/gyp/generator/cmake.py +1316 -0
- package/dist/node_modules/node-gyp/gyp/pylib/gyp/generator/compile_commands_json.py +128 -0
- package/dist/node_modules/node-gyp/gyp/pylib/gyp/generator/dump_dependency_json.py +104 -0
- package/dist/node_modules/node-gyp/gyp/pylib/gyp/generator/eclipse.py +461 -0
- package/dist/node_modules/node-gyp/gyp/pylib/gyp/generator/gypd.py +88 -0
- package/dist/node_modules/node-gyp/gyp/pylib/gyp/generator/gypsh.py +55 -0
- package/dist/node_modules/node-gyp/gyp/pylib/gyp/generator/make.py +2755 -0
- package/dist/node_modules/node-gyp/gyp/pylib/gyp/generator/msvs.py +3970 -0
- package/dist/node_modules/node-gyp/gyp/pylib/gyp/generator/msvs_test.py +44 -0
- package/dist/node_modules/node-gyp/gyp/pylib/gyp/generator/ninja.py +2957 -0
- package/dist/node_modules/node-gyp/gyp/pylib/gyp/generator/ninja_test.py +67 -0
- package/dist/node_modules/node-gyp/gyp/pylib/gyp/generator/xcode.py +1389 -0
- package/dist/node_modules/node-gyp/gyp/pylib/gyp/generator/xcode_test.py +26 -0
- package/dist/node_modules/node-gyp/gyp/pylib/gyp/input.py +3097 -0
- package/dist/node_modules/node-gyp/gyp/pylib/gyp/input_test.py +99 -0
- package/dist/node_modules/node-gyp/gyp/pylib/gyp/mac_tool.py +765 -0
- package/dist/node_modules/node-gyp/gyp/pylib/gyp/msvs_emulation.py +1255 -0
- package/dist/node_modules/node-gyp/gyp/pylib/gyp/ninja_syntax.py +174 -0
- package/dist/node_modules/node-gyp/gyp/pylib/gyp/simple_copy.py +61 -0
- package/dist/node_modules/node-gyp/gyp/pylib/gyp/win_tool.py +371 -0
- package/dist/node_modules/node-gyp/gyp/pylib/gyp/xcode_emulation.py +1936 -0
- package/dist/node_modules/node-gyp/gyp/pylib/gyp/xcode_emulation_test.py +54 -0
- package/dist/node_modules/node-gyp/gyp/pylib/gyp/xcode_ninja.py +301 -0
- package/dist/node_modules/node-gyp/gyp/pylib/gyp/xcodeproj_file.py +3180 -0
- package/dist/node_modules/node-gyp/gyp/pylib/gyp/xml_fix.py +64 -0
- package/dist/node_modules/node-gyp/gyp/pylib/packaging/LICENSE +3 -0
- package/dist/node_modules/node-gyp/gyp/pylib/packaging/LICENSE.APACHE +177 -0
- package/dist/node_modules/node-gyp/gyp/pylib/packaging/LICENSE.BSD +23 -0
- package/dist/node_modules/node-gyp/gyp/pylib/packaging/__init__.py +15 -0
- package/dist/node_modules/node-gyp/gyp/pylib/packaging/_elffile.py +107 -0
- package/dist/node_modules/node-gyp/gyp/pylib/packaging/_manylinux.py +252 -0
- package/dist/node_modules/node-gyp/gyp/pylib/packaging/_musllinux.py +83 -0
- package/dist/node_modules/node-gyp/gyp/pylib/packaging/_parser.py +359 -0
- package/dist/node_modules/node-gyp/gyp/pylib/packaging/_structures.py +61 -0
- package/dist/node_modules/node-gyp/gyp/pylib/packaging/_tokenizer.py +192 -0
- package/dist/node_modules/node-gyp/gyp/pylib/packaging/markers.py +251 -0
- package/dist/node_modules/node-gyp/gyp/pylib/packaging/metadata.py +824 -0
- package/dist/node_modules/node-gyp/gyp/pylib/packaging/py.typed +0 -0
- package/dist/node_modules/node-gyp/gyp/pylib/packaging/requirements.py +90 -0
- package/dist/node_modules/node-gyp/gyp/pylib/packaging/specifiers.py +1030 -0
- package/dist/node_modules/node-gyp/gyp/pylib/packaging/tags.py +553 -0
- package/dist/node_modules/node-gyp/gyp/pylib/packaging/utils.py +172 -0
- package/dist/node_modules/node-gyp/gyp/pylib/packaging/version.py +563 -0
- package/dist/node_modules/node-gyp/gyp/pyproject.toml +114 -0
- package/dist/node_modules/node-gyp/gyp/release-please-config.json +11 -0
- package/dist/node_modules/node-gyp/gyp/test_gyp.py +260 -0
- package/dist/node_modules/node-gyp/lib/Find-VisualStudio.cs +250 -0
- package/dist/node_modules/node-gyp/lib/build.js +230 -0
- package/dist/node_modules/node-gyp/lib/clean.js +15 -0
- package/dist/node_modules/node-gyp/lib/configure.js +328 -0
- package/dist/node_modules/node-gyp/lib/create-config-gypi.js +153 -0
- package/dist/node_modules/node-gyp/lib/download.js +39 -0
- package/dist/node_modules/node-gyp/lib/find-node-directory.js +63 -0
- package/dist/node_modules/node-gyp/lib/find-python.js +310 -0
- package/dist/node_modules/node-gyp/lib/find-visualstudio.js +600 -0
- package/dist/node_modules/node-gyp/lib/install.js +411 -0
- package/dist/node_modules/node-gyp/lib/list.js +26 -0
- package/dist/node_modules/node-gyp/lib/log.js +168 -0
- package/dist/node_modules/node-gyp/lib/node-gyp.js +199 -0
- package/dist/node_modules/node-gyp/lib/process-release.js +146 -0
- package/dist/node_modules/node-gyp/lib/rebuild.js +12 -0
- package/dist/node_modules/node-gyp/lib/remove.js +43 -0
- package/dist/node_modules/node-gyp/lib/util.js +81 -0
- package/dist/node_modules/node-gyp/macOS_Catalina_acid_test.sh +21 -0
- package/dist/node_modules/node-gyp/node_modules/isexe/dist/commonjs/index.js +56 -0
- package/dist/node_modules/node-gyp/node_modules/isexe/dist/commonjs/index.min.js +2 -0
- package/dist/node_modules/node-gyp/node_modules/isexe/dist/commonjs/options.js +3 -0
- package/dist/node_modules/node-gyp/node_modules/isexe/dist/commonjs/package.json +3 -0
- package/dist/node_modules/node-gyp/node_modules/isexe/dist/commonjs/posix.js +67 -0
- package/dist/node_modules/node-gyp/node_modules/isexe/dist/commonjs/win32.js +63 -0
- package/dist/node_modules/node-gyp/node_modules/isexe/dist/esm/index.js +16 -0
- package/dist/node_modules/node-gyp/node_modules/isexe/dist/esm/index.min.js +2 -0
- package/dist/node_modules/node-gyp/node_modules/isexe/dist/esm/options.js +2 -0
- package/dist/node_modules/node-gyp/node_modules/isexe/dist/esm/package.json +3 -0
- package/dist/node_modules/node-gyp/node_modules/isexe/dist/esm/posix.js +62 -0
- package/dist/node_modules/node-gyp/node_modules/isexe/dist/esm/win32.js +58 -0
- package/dist/node_modules/node-gyp/node_modules/isexe/package.json +78 -0
- package/dist/node_modules/node-gyp/node_modules/which/LICENSE +15 -0
- package/dist/node_modules/node-gyp/node_modules/which/bin/which.js +52 -0
- package/dist/node_modules/node-gyp/node_modules/which/lib/index.js +111 -0
- package/dist/node_modules/node-gyp/node_modules/which/package.json +52 -0
- package/dist/node_modules/node-gyp/package.json +52 -0
- package/dist/node_modules/node-gyp/release-please-config.json +40 -0
- package/dist/node_modules/node-gyp/src/win_delay_load_hook.cc +41 -0
- package/dist/node_modules/nopt/LICENSE +15 -0
- package/dist/node_modules/nopt/bin/nopt.js +29 -0
- package/dist/node_modules/nopt/lib/debug.js +5 -0
- package/dist/node_modules/nopt/lib/nopt-lib.js +514 -0
- package/dist/node_modules/nopt/lib/nopt.js +34 -0
- package/dist/node_modules/nopt/lib/type-defs.js +91 -0
- package/dist/node_modules/nopt/package.json +52 -0
- package/dist/node_modules/p-map/index.js +283 -0
- package/dist/node_modules/p-map/license +9 -0
- package/dist/node_modules/p-map/package.json +57 -0
- package/dist/node_modules/package-json-from-dist/dist/commonjs/index.js +134 -0
- package/dist/node_modules/package-json-from-dist/dist/commonjs/package.json +3 -0
- package/dist/node_modules/package-json-from-dist/dist/esm/index.js +129 -0
- package/dist/node_modules/package-json-from-dist/dist/esm/package.json +3 -0
- package/dist/node_modules/package-json-from-dist/package.json +68 -0
- package/dist/node_modules/path-key/index.js +16 -0
- package/dist/node_modules/path-key/license +9 -0
- package/dist/node_modules/path-key/package.json +39 -0
- package/dist/node_modules/path-scurry/dist/commonjs/index.js +2018 -0
- package/dist/node_modules/path-scurry/dist/commonjs/package.json +3 -0
- package/dist/node_modules/path-scurry/dist/esm/index.js +1983 -0
- package/dist/node_modules/path-scurry/dist/esm/package.json +3 -0
- package/dist/node_modules/path-scurry/node_modules/lru-cache/dist/commonjs/index.js +1589 -0
- package/dist/node_modules/path-scurry/node_modules/lru-cache/dist/commonjs/index.min.js +2 -0
- package/dist/node_modules/path-scurry/node_modules/lru-cache/dist/commonjs/package.json +3 -0
- package/dist/node_modules/path-scurry/node_modules/lru-cache/dist/esm/index.js +1585 -0
- package/dist/node_modules/path-scurry/node_modules/lru-cache/dist/esm/index.min.js +2 -0
- package/dist/node_modules/path-scurry/node_modules/lru-cache/dist/esm/package.json +3 -0
- package/dist/node_modules/path-scurry/node_modules/lru-cache/package.json +101 -0
- package/dist/node_modules/path-scurry/package.json +88 -0
- package/dist/node_modules/picomatch/LICENSE +21 -0
- package/dist/node_modules/picomatch/index.js +17 -0
- package/dist/node_modules/picomatch/lib/constants.js +180 -0
- package/dist/node_modules/picomatch/lib/parse.js +1085 -0
- package/dist/node_modules/picomatch/lib/picomatch.js +341 -0
- package/dist/node_modules/picomatch/lib/scan.js +391 -0
- package/dist/node_modules/picomatch/lib/utils.js +72 -0
- package/dist/node_modules/picomatch/package.json +83 -0
- package/dist/node_modules/picomatch/posix.js +3 -0
- package/dist/node_modules/proc-log/LICENSE +15 -0
- package/dist/node_modules/proc-log/lib/index.js +153 -0
- package/dist/node_modules/proc-log/package.json +46 -0
- package/dist/node_modules/promise-retry/LICENSE +19 -0
- package/dist/node_modules/promise-retry/index.js +52 -0
- package/dist/node_modules/promise-retry/package.json +37 -0
- package/dist/node_modules/retry/License +21 -0
- package/dist/node_modules/retry/equation.gif +0 -0
- package/dist/node_modules/retry/index.js +1 -0
- package/dist/node_modules/retry/lib/retry.js +100 -0
- package/dist/node_modules/retry/lib/retry_operation.js +158 -0
- package/dist/node_modules/retry/package.json +32 -0
- package/dist/node_modules/safer-buffer/LICENSE +21 -0
- package/dist/node_modules/safer-buffer/dangerous.js +58 -0
- package/dist/node_modules/safer-buffer/package.json +34 -0
- package/dist/node_modules/safer-buffer/safer.js +77 -0
- package/dist/node_modules/safer-buffer/tests.js +406 -0
- package/dist/node_modules/semver/LICENSE +15 -0
- package/dist/node_modules/semver/bin/semver.js +191 -0
- package/dist/node_modules/semver/classes/comparator.js +143 -0
- package/dist/node_modules/semver/classes/index.js +7 -0
- package/dist/node_modules/semver/classes/range.js +557 -0
- package/dist/node_modules/semver/classes/semver.js +333 -0
- package/dist/node_modules/semver/functions/clean.js +8 -0
- package/dist/node_modules/semver/functions/cmp.js +54 -0
- package/dist/node_modules/semver/functions/coerce.js +62 -0
- package/dist/node_modules/semver/functions/compare-build.js +9 -0
- package/dist/node_modules/semver/functions/compare-loose.js +5 -0
- package/dist/node_modules/semver/functions/compare.js +7 -0
- package/dist/node_modules/semver/functions/diff.js +60 -0
- package/dist/node_modules/semver/functions/eq.js +5 -0
- package/dist/node_modules/semver/functions/gt.js +5 -0
- package/dist/node_modules/semver/functions/gte.js +5 -0
- package/dist/node_modules/semver/functions/inc.js +21 -0
- package/dist/node_modules/semver/functions/lt.js +5 -0
- package/dist/node_modules/semver/functions/lte.js +5 -0
- package/dist/node_modules/semver/functions/major.js +5 -0
- package/dist/node_modules/semver/functions/minor.js +5 -0
- package/dist/node_modules/semver/functions/neq.js +5 -0
- package/dist/node_modules/semver/functions/parse.js +18 -0
- package/dist/node_modules/semver/functions/patch.js +5 -0
- package/dist/node_modules/semver/functions/prerelease.js +8 -0
- package/dist/node_modules/semver/functions/rcompare.js +5 -0
- package/dist/node_modules/semver/functions/rsort.js +5 -0
- package/dist/node_modules/semver/functions/satisfies.js +12 -0
- package/dist/node_modules/semver/functions/sort.js +5 -0
- package/dist/node_modules/semver/functions/valid.js +8 -0
- package/dist/node_modules/semver/index.js +91 -0
- package/dist/node_modules/semver/internal/constants.js +37 -0
- package/dist/node_modules/semver/internal/debug.js +11 -0
- package/dist/node_modules/semver/internal/identifiers.js +29 -0
- package/dist/node_modules/semver/internal/lrucache.js +42 -0
- package/dist/node_modules/semver/internal/parse-options.js +17 -0
- package/dist/node_modules/semver/internal/re.js +223 -0
- package/dist/node_modules/semver/package.json +78 -0
- package/dist/node_modules/semver/preload.js +4 -0
- package/dist/node_modules/semver/range.bnf +16 -0
- package/dist/node_modules/semver/ranges/gtr.js +6 -0
- package/dist/node_modules/semver/ranges/intersects.js +9 -0
- package/dist/node_modules/semver/ranges/ltr.js +6 -0
- package/dist/node_modules/semver/ranges/max-satisfying.js +27 -0
- package/dist/node_modules/semver/ranges/min-satisfying.js +26 -0
- package/dist/node_modules/semver/ranges/min-version.js +63 -0
- package/dist/node_modules/semver/ranges/outside.js +82 -0
- package/dist/node_modules/semver/ranges/simplify.js +49 -0
- package/dist/node_modules/semver/ranges/subset.js +249 -0
- package/dist/node_modules/semver/ranges/to-comparators.js +10 -0
- package/dist/node_modules/semver/ranges/valid.js +13 -0
- package/dist/node_modules/shebang-command/index.js +19 -0
- package/dist/node_modules/shebang-command/license +9 -0
- package/dist/node_modules/shebang-command/package.json +34 -0
- package/dist/node_modules/shebang-regex/index.js +2 -0
- package/dist/node_modules/shebang-regex/license +9 -0
- package/dist/node_modules/shebang-regex/package.json +35 -0
- package/dist/node_modules/signal-exit/LICENSE.txt +16 -0
- package/dist/node_modules/signal-exit/dist/cjs/browser.js +10 -0
- package/dist/node_modules/signal-exit/dist/cjs/index.js +279 -0
- package/dist/node_modules/signal-exit/dist/cjs/package.json +3 -0
- package/dist/node_modules/signal-exit/dist/cjs/signals.js +42 -0
- package/dist/node_modules/signal-exit/dist/mjs/browser.js +4 -0
- package/dist/node_modules/signal-exit/dist/mjs/index.js +275 -0
- package/dist/node_modules/signal-exit/dist/mjs/package.json +3 -0
- package/dist/node_modules/signal-exit/dist/mjs/signals.js +39 -0
- package/dist/node_modules/signal-exit/package.json +106 -0
- package/dist/node_modules/smart-buffer/.prettierrc.yaml +5 -0
- package/dist/node_modules/smart-buffer/LICENSE +20 -0
- package/dist/node_modules/smart-buffer/build/smartbuffer.js +1233 -0
- package/dist/node_modules/smart-buffer/build/utils.js +108 -0
- package/dist/node_modules/smart-buffer/package.json +79 -0
- package/dist/node_modules/socks/.eslintrc.cjs +11 -0
- package/dist/node_modules/socks/.prettierrc.yaml +7 -0
- package/dist/node_modules/socks/LICENSE +20 -0
- package/dist/node_modules/socks/build/client/socksclient.js +793 -0
- package/dist/node_modules/socks/build/common/constants.js +108 -0
- package/dist/node_modules/socks/build/common/helpers.js +167 -0
- package/dist/node_modules/socks/build/common/receivebuffer.js +43 -0
- package/dist/node_modules/socks/build/common/util.js +25 -0
- package/dist/node_modules/socks/build/index.js +18 -0
- package/dist/node_modules/socks/package.json +58 -0
- package/dist/node_modules/socks-proxy-agent/LICENSE +22 -0
- package/dist/node_modules/socks-proxy-agent/dist/index.js +195 -0
- package/dist/node_modules/socks-proxy-agent/package.json +142 -0
- package/dist/node_modules/ssri/lib/index.js +580 -0
- package/dist/node_modules/ssri/package.json +66 -0
- package/dist/node_modules/tar/dist/commonjs/create.js +83 -0
- package/dist/node_modules/tar/dist/commonjs/cwd-error.js +18 -0
- package/dist/node_modules/tar/dist/commonjs/extract.js +88 -0
- package/dist/node_modules/tar/dist/commonjs/get-write-flag.js +29 -0
- package/dist/node_modules/tar/dist/commonjs/header.js +325 -0
- package/dist/node_modules/tar/dist/commonjs/index.js +64 -0
- package/dist/node_modules/tar/dist/commonjs/index.min.js +4 -0
- package/dist/node_modules/tar/dist/commonjs/large-numbers.js +99 -0
- package/dist/node_modules/tar/dist/commonjs/list.js +150 -0
- package/dist/node_modules/tar/dist/commonjs/make-command.js +61 -0
- package/dist/node_modules/tar/dist/commonjs/mkdir.js +188 -0
- package/dist/node_modules/tar/dist/commonjs/mode-fix.js +29 -0
- package/dist/node_modules/tar/dist/commonjs/normalize-unicode.js +38 -0
- package/dist/node_modules/tar/dist/commonjs/normalize-windows-path.js +12 -0
- package/dist/node_modules/tar/dist/commonjs/options.js +66 -0
- package/dist/node_modules/tar/dist/commonjs/pack.js +516 -0
- package/dist/node_modules/tar/dist/commonjs/package.json +3 -0
- package/dist/node_modules/tar/dist/commonjs/parse.js +620 -0
- package/dist/node_modules/tar/dist/commonjs/path-reservations.js +170 -0
- package/dist/node_modules/tar/dist/commonjs/pax.js +158 -0
- package/dist/node_modules/tar/dist/commonjs/process-umask.js +7 -0
- package/dist/node_modules/tar/dist/commonjs/read-entry.js +140 -0
- package/dist/node_modules/tar/dist/commonjs/replace.js +232 -0
- package/dist/node_modules/tar/dist/commonjs/strip-absolute-path.js +29 -0
- package/dist/node_modules/tar/dist/commonjs/strip-trailing-slashes.js +18 -0
- package/dist/node_modules/tar/dist/commonjs/symlink-error.js +19 -0
- package/dist/node_modules/tar/dist/commonjs/types.js +50 -0
- package/dist/node_modules/tar/dist/commonjs/unpack.js +957 -0
- package/dist/node_modules/tar/dist/commonjs/update.js +33 -0
- package/dist/node_modules/tar/dist/commonjs/warn-method.js +31 -0
- package/dist/node_modules/tar/dist/commonjs/winchars.js +14 -0
- package/dist/node_modules/tar/dist/commonjs/write-entry.js +699 -0
- package/dist/node_modules/tar/dist/esm/create.js +77 -0
- package/dist/node_modules/tar/dist/esm/cwd-error.js +14 -0
- package/dist/node_modules/tar/dist/esm/extract.js +49 -0
- package/dist/node_modules/tar/dist/esm/get-write-flag.js +23 -0
- package/dist/node_modules/tar/dist/esm/header.js +288 -0
- package/dist/node_modules/tar/dist/esm/index.js +20 -0
- package/dist/node_modules/tar/dist/esm/index.min.js +4 -0
- package/dist/node_modules/tar/dist/esm/large-numbers.js +94 -0
- package/dist/node_modules/tar/dist/esm/list.js +110 -0
- package/dist/node_modules/tar/dist/esm/make-command.js +57 -0
- package/dist/node_modules/tar/dist/esm/mkdir.js +180 -0
- package/dist/node_modules/tar/dist/esm/mode-fix.js +25 -0
- package/dist/node_modules/tar/dist/esm/normalize-unicode.js +34 -0
- package/dist/node_modules/tar/dist/esm/normalize-windows-path.js +9 -0
- package/dist/node_modules/tar/dist/esm/options.js +54 -0
- package/dist/node_modules/tar/dist/esm/pack.js +474 -0
- package/dist/node_modules/tar/dist/esm/package.json +3 -0
- package/dist/node_modules/tar/dist/esm/parse.js +616 -0
- package/dist/node_modules/tar/dist/esm/path-reservations.js +166 -0
- package/dist/node_modules/tar/dist/esm/pax.js +154 -0
- package/dist/node_modules/tar/dist/esm/process-umask.js +3 -0
- package/dist/node_modules/tar/dist/esm/read-entry.js +136 -0
- package/dist/node_modules/tar/dist/esm/replace.js +226 -0
- package/dist/node_modules/tar/dist/esm/strip-absolute-path.js +25 -0
- package/dist/node_modules/tar/dist/esm/strip-trailing-slashes.js +14 -0
- package/dist/node_modules/tar/dist/esm/symlink-error.js +15 -0
- package/dist/node_modules/tar/dist/esm/types.js +45 -0
- package/dist/node_modules/tar/dist/esm/unpack.js +916 -0
- package/dist/node_modules/tar/dist/esm/update.js +30 -0
- package/dist/node_modules/tar/dist/esm/warn-method.js +27 -0
- package/dist/node_modules/tar/dist/esm/winchars.js +9 -0
- package/dist/node_modules/tar/dist/esm/write-entry.js +657 -0
- package/dist/node_modules/tar/node_modules/yallist/dist/commonjs/index.js +384 -0
- package/dist/node_modules/tar/node_modules/yallist/dist/commonjs/package.json +3 -0
- package/dist/node_modules/tar/node_modules/yallist/dist/esm/index.js +379 -0
- package/dist/node_modules/tar/node_modules/yallist/dist/esm/package.json +3 -0
- package/dist/node_modules/tar/node_modules/yallist/package.json +68 -0
- package/dist/node_modules/tar/package.json +292 -0
- package/dist/node_modules/tinyglobby/LICENSE +21 -0
- package/dist/node_modules/tinyglobby/dist/index.cjs +350 -0
- package/dist/node_modules/tinyglobby/dist/index.d.cts +147 -0
- package/dist/node_modules/tinyglobby/dist/index.d.mts +147 -0
- package/dist/node_modules/tinyglobby/dist/index.mjs +318 -0
- package/dist/node_modules/tinyglobby/package.json +73 -0
- package/dist/node_modules/unique-filename/LICENSE +5 -0
- package/dist/node_modules/unique-filename/lib/index.js +7 -0
- package/dist/node_modules/unique-filename/package.json +53 -0
- package/dist/node_modules/unique-slug/LICENSE +15 -0
- package/dist/node_modules/unique-slug/lib/index.js +11 -0
- package/dist/node_modules/unique-slug/package.json +49 -0
- package/{LICENSE → dist/node_modules/v8-compile-cache/LICENSE} +1 -2
- package/dist/node_modules/v8-compile-cache/package.json +34 -0
- package/dist/node_modules/v8-compile-cache/v8-compile-cache.js +373 -0
- package/dist/node_modules/which/LICENSE +15 -0
- package/dist/node_modules/which/bin/node-which +52 -0
- package/dist/node_modules/which/package.json +43 -0
- package/dist/node_modules/which/which.js +125 -0
- package/dist/node_modules/yallist/LICENSE +15 -0
- package/dist/node_modules/yallist/iterator.js +8 -0
- package/dist/node_modules/yallist/package.json +29 -0
- package/dist/node_modules/yallist/yallist.js +426 -0
- package/dist/pnpm.mjs +231795 -0
- package/dist/pnpmrc +2 -0
- package/dist/templates/completion.bash +31 -0
- package/dist/templates/completion.fish +22 -0
- package/dist/templates/completion.ps1 +193 -0
- package/dist/templates/completion.zsh +27 -0
- package/dist/vendor/fastlist-0.3.0-x64.exe +0 -0
- package/dist/vendor/fastlist-0.3.0-x86.exe +0 -0
- package/dist/worker.js +11930 -0
- package/package.json +17 -9
- package/setup.js +2 -1
- package/CHANGELOG.md +0 -15
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.assertValidPattern = void 0;
|
|
4
|
+
const MAX_PATTERN_LENGTH = 1024 * 64;
|
|
5
|
+
const assertValidPattern = (pattern) => {
|
|
6
|
+
if (typeof pattern !== 'string') {
|
|
7
|
+
throw new TypeError('invalid pattern');
|
|
8
|
+
}
|
|
9
|
+
if (pattern.length > MAX_PATTERN_LENGTH) {
|
|
10
|
+
throw new TypeError('pattern is too long');
|
|
11
|
+
}
|
|
12
|
+
};
|
|
13
|
+
exports.assertValidPattern = assertValidPattern;
|
|
14
|
+
//# sourceMappingURL=assert-valid-pattern.js.map
|
|
@@ -0,0 +1,601 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
// parse a single path portion
|
|
3
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
4
|
+
exports.AST = void 0;
|
|
5
|
+
const brace_expressions_js_1 = require("./brace-expressions.js");
|
|
6
|
+
const unescape_js_1 = require("./unescape.js");
|
|
7
|
+
const types = new Set(['!', '?', '+', '*', '@']);
|
|
8
|
+
const isExtglobType = (c) => types.has(c);
|
|
9
|
+
// Patterns that get prepended to bind to the start of either the
|
|
10
|
+
// entire string, or just a single path portion, to prevent dots
|
|
11
|
+
// and/or traversal patterns, when needed.
|
|
12
|
+
// Exts don't need the ^ or / bit, because the root binds that already.
|
|
13
|
+
const startNoTraversal = '(?!(?:^|/)\\.\\.?(?:$|/))';
|
|
14
|
+
const startNoDot = '(?!\\.)';
|
|
15
|
+
// characters that indicate a start of pattern needs the "no dots" bit,
|
|
16
|
+
// because a dot *might* be matched. ( is not in the list, because in
|
|
17
|
+
// the case of a child extglob, it will handle the prevention itself.
|
|
18
|
+
const addPatternStart = new Set(['[', '.']);
|
|
19
|
+
// cases where traversal is A-OK, no dot prevention needed
|
|
20
|
+
const justDots = new Set(['..', '.']);
|
|
21
|
+
const reSpecials = new Set('().*{}+?[]^$\\!');
|
|
22
|
+
const regExpEscape = (s) => s.replace(/[-[\]{}()*+?.,\\^$|#\s]/g, '\\$&');
|
|
23
|
+
// any single thing other than /
|
|
24
|
+
const qmark = '[^/]';
|
|
25
|
+
// * => any number of characters
|
|
26
|
+
const star = qmark + '*?';
|
|
27
|
+
// use + when we need to ensure that *something* matches, because the * is
|
|
28
|
+
// the only thing in the path portion.
|
|
29
|
+
const starNoEmpty = qmark + '+?';
|
|
30
|
+
// remove the \ chars that we added if we end up doing a nonmagic compare
|
|
31
|
+
// const deslash = (s: string) => s.replace(/\\(.)/g, '$1')
|
|
32
|
+
class AST {
|
|
33
|
+
type;
|
|
34
|
+
#root;
|
|
35
|
+
#hasMagic;
|
|
36
|
+
#uflag = false;
|
|
37
|
+
#parts = [];
|
|
38
|
+
#parent;
|
|
39
|
+
#parentIndex;
|
|
40
|
+
#negs;
|
|
41
|
+
#filledNegs = false;
|
|
42
|
+
#options;
|
|
43
|
+
#toString;
|
|
44
|
+
// set to true if it's an extglob with no children
|
|
45
|
+
// (which really means one child of '')
|
|
46
|
+
#emptyExt = false;
|
|
47
|
+
constructor(type, parent, options = {}) {
|
|
48
|
+
this.type = type;
|
|
49
|
+
// extglobs are inherently magical
|
|
50
|
+
if (type)
|
|
51
|
+
this.#hasMagic = true;
|
|
52
|
+
this.#parent = parent;
|
|
53
|
+
this.#root = this.#parent ? this.#parent.#root : this;
|
|
54
|
+
this.#options = this.#root === this ? options : this.#root.#options;
|
|
55
|
+
this.#negs = this.#root === this ? [] : this.#root.#negs;
|
|
56
|
+
if (type === '!' && !this.#root.#filledNegs)
|
|
57
|
+
this.#negs.push(this);
|
|
58
|
+
this.#parentIndex = this.#parent ? this.#parent.#parts.length : 0;
|
|
59
|
+
}
|
|
60
|
+
get hasMagic() {
|
|
61
|
+
/* c8 ignore start */
|
|
62
|
+
if (this.#hasMagic !== undefined)
|
|
63
|
+
return this.#hasMagic;
|
|
64
|
+
/* c8 ignore stop */
|
|
65
|
+
for (const p of this.#parts) {
|
|
66
|
+
if (typeof p === 'string')
|
|
67
|
+
continue;
|
|
68
|
+
if (p.type || p.hasMagic)
|
|
69
|
+
return (this.#hasMagic = true);
|
|
70
|
+
}
|
|
71
|
+
// note: will be undefined until we generate the regexp src and find out
|
|
72
|
+
return this.#hasMagic;
|
|
73
|
+
}
|
|
74
|
+
// reconstructs the pattern
|
|
75
|
+
toString() {
|
|
76
|
+
if (this.#toString !== undefined)
|
|
77
|
+
return this.#toString;
|
|
78
|
+
if (!this.type) {
|
|
79
|
+
return (this.#toString = this.#parts.map(p => String(p)).join(''));
|
|
80
|
+
}
|
|
81
|
+
else {
|
|
82
|
+
return (this.#toString =
|
|
83
|
+
this.type + '(' + this.#parts.map(p => String(p)).join('|') + ')');
|
|
84
|
+
}
|
|
85
|
+
}
|
|
86
|
+
#fillNegs() {
|
|
87
|
+
/* c8 ignore start */
|
|
88
|
+
if (this !== this.#root)
|
|
89
|
+
throw new Error('should only call on root');
|
|
90
|
+
if (this.#filledNegs)
|
|
91
|
+
return this;
|
|
92
|
+
/* c8 ignore stop */
|
|
93
|
+
// call toString() once to fill this out
|
|
94
|
+
this.toString();
|
|
95
|
+
this.#filledNegs = true;
|
|
96
|
+
let n;
|
|
97
|
+
while ((n = this.#negs.pop())) {
|
|
98
|
+
if (n.type !== '!')
|
|
99
|
+
continue;
|
|
100
|
+
// walk up the tree, appending everthing that comes AFTER parentIndex
|
|
101
|
+
let p = n;
|
|
102
|
+
let pp = p.#parent;
|
|
103
|
+
while (pp) {
|
|
104
|
+
for (let i = p.#parentIndex + 1; !pp.type && i < pp.#parts.length; i++) {
|
|
105
|
+
for (const part of n.#parts) {
|
|
106
|
+
/* c8 ignore start */
|
|
107
|
+
if (typeof part === 'string') {
|
|
108
|
+
throw new Error('string part in extglob AST??');
|
|
109
|
+
}
|
|
110
|
+
/* c8 ignore stop */
|
|
111
|
+
part.copyIn(pp.#parts[i]);
|
|
112
|
+
}
|
|
113
|
+
}
|
|
114
|
+
p = pp;
|
|
115
|
+
pp = p.#parent;
|
|
116
|
+
}
|
|
117
|
+
}
|
|
118
|
+
return this;
|
|
119
|
+
}
|
|
120
|
+
push(...parts) {
|
|
121
|
+
for (const p of parts) {
|
|
122
|
+
if (p === '')
|
|
123
|
+
continue;
|
|
124
|
+
/* c8 ignore start */
|
|
125
|
+
if (typeof p !== 'string' &&
|
|
126
|
+
!(p instanceof AST && p.#parent === this)) {
|
|
127
|
+
throw new Error('invalid part: ' + p);
|
|
128
|
+
}
|
|
129
|
+
/* c8 ignore stop */
|
|
130
|
+
this.#parts.push(p);
|
|
131
|
+
}
|
|
132
|
+
}
|
|
133
|
+
toJSON() {
|
|
134
|
+
const ret = this.type === null ?
|
|
135
|
+
this.#parts
|
|
136
|
+
.slice()
|
|
137
|
+
.map(p => (typeof p === 'string' ? p : p.toJSON()))
|
|
138
|
+
: [this.type, ...this.#parts.map(p => p.toJSON())];
|
|
139
|
+
if (this.isStart() && !this.type)
|
|
140
|
+
ret.unshift([]);
|
|
141
|
+
if (this.isEnd() &&
|
|
142
|
+
(this === this.#root ||
|
|
143
|
+
(this.#root.#filledNegs && this.#parent?.type === '!'))) {
|
|
144
|
+
ret.push({});
|
|
145
|
+
}
|
|
146
|
+
return ret;
|
|
147
|
+
}
|
|
148
|
+
isStart() {
|
|
149
|
+
if (this.#root === this)
|
|
150
|
+
return true;
|
|
151
|
+
// if (this.type) return !!this.#parent?.isStart()
|
|
152
|
+
if (!this.#parent?.isStart())
|
|
153
|
+
return false;
|
|
154
|
+
if (this.#parentIndex === 0)
|
|
155
|
+
return true;
|
|
156
|
+
// if everything AHEAD of this is a negation, then it's still the "start"
|
|
157
|
+
const p = this.#parent;
|
|
158
|
+
for (let i = 0; i < this.#parentIndex; i++) {
|
|
159
|
+
const pp = p.#parts[i];
|
|
160
|
+
if (!(pp instanceof AST && pp.type === '!')) {
|
|
161
|
+
return false;
|
|
162
|
+
}
|
|
163
|
+
}
|
|
164
|
+
return true;
|
|
165
|
+
}
|
|
166
|
+
isEnd() {
|
|
167
|
+
if (this.#root === this)
|
|
168
|
+
return true;
|
|
169
|
+
if (this.#parent?.type === '!')
|
|
170
|
+
return true;
|
|
171
|
+
if (!this.#parent?.isEnd())
|
|
172
|
+
return false;
|
|
173
|
+
if (!this.type)
|
|
174
|
+
return this.#parent?.isEnd();
|
|
175
|
+
// if not root, it'll always have a parent
|
|
176
|
+
/* c8 ignore start */
|
|
177
|
+
const pl = this.#parent ? this.#parent.#parts.length : 0;
|
|
178
|
+
/* c8 ignore stop */
|
|
179
|
+
return this.#parentIndex === pl - 1;
|
|
180
|
+
}
|
|
181
|
+
copyIn(part) {
|
|
182
|
+
if (typeof part === 'string')
|
|
183
|
+
this.push(part);
|
|
184
|
+
else
|
|
185
|
+
this.push(part.clone(this));
|
|
186
|
+
}
|
|
187
|
+
clone(parent) {
|
|
188
|
+
const c = new AST(this.type, parent);
|
|
189
|
+
for (const p of this.#parts) {
|
|
190
|
+
c.copyIn(p);
|
|
191
|
+
}
|
|
192
|
+
return c;
|
|
193
|
+
}
|
|
194
|
+
static #parseAST(str, ast, pos, opt) {
|
|
195
|
+
let escaping = false;
|
|
196
|
+
let inBrace = false;
|
|
197
|
+
let braceStart = -1;
|
|
198
|
+
let braceNeg = false;
|
|
199
|
+
if (ast.type === null) {
|
|
200
|
+
// outside of a extglob, append until we find a start
|
|
201
|
+
let i = pos;
|
|
202
|
+
let acc = '';
|
|
203
|
+
while (i < str.length) {
|
|
204
|
+
const c = str.charAt(i++);
|
|
205
|
+
// still accumulate escapes at this point, but we do ignore
|
|
206
|
+
// starts that are escaped
|
|
207
|
+
if (escaping || c === '\\') {
|
|
208
|
+
escaping = !escaping;
|
|
209
|
+
acc += c;
|
|
210
|
+
continue;
|
|
211
|
+
}
|
|
212
|
+
if (inBrace) {
|
|
213
|
+
if (i === braceStart + 1) {
|
|
214
|
+
if (c === '^' || c === '!') {
|
|
215
|
+
braceNeg = true;
|
|
216
|
+
}
|
|
217
|
+
}
|
|
218
|
+
else if (c === ']' && !(i === braceStart + 2 && braceNeg)) {
|
|
219
|
+
inBrace = false;
|
|
220
|
+
}
|
|
221
|
+
acc += c;
|
|
222
|
+
continue;
|
|
223
|
+
}
|
|
224
|
+
else if (c === '[') {
|
|
225
|
+
inBrace = true;
|
|
226
|
+
braceStart = i;
|
|
227
|
+
braceNeg = false;
|
|
228
|
+
acc += c;
|
|
229
|
+
continue;
|
|
230
|
+
}
|
|
231
|
+
if (!opt.noext && isExtglobType(c) && str.charAt(i) === '(') {
|
|
232
|
+
ast.push(acc);
|
|
233
|
+
acc = '';
|
|
234
|
+
const ext = new AST(c, ast);
|
|
235
|
+
i = AST.#parseAST(str, ext, i, opt);
|
|
236
|
+
ast.push(ext);
|
|
237
|
+
continue;
|
|
238
|
+
}
|
|
239
|
+
acc += c;
|
|
240
|
+
}
|
|
241
|
+
ast.push(acc);
|
|
242
|
+
return i;
|
|
243
|
+
}
|
|
244
|
+
// some kind of extglob, pos is at the (
|
|
245
|
+
// find the next | or )
|
|
246
|
+
let i = pos + 1;
|
|
247
|
+
let part = new AST(null, ast);
|
|
248
|
+
const parts = [];
|
|
249
|
+
let acc = '';
|
|
250
|
+
while (i < str.length) {
|
|
251
|
+
const c = str.charAt(i++);
|
|
252
|
+
// still accumulate escapes at this point, but we do ignore
|
|
253
|
+
// starts that are escaped
|
|
254
|
+
if (escaping || c === '\\') {
|
|
255
|
+
escaping = !escaping;
|
|
256
|
+
acc += c;
|
|
257
|
+
continue;
|
|
258
|
+
}
|
|
259
|
+
if (inBrace) {
|
|
260
|
+
if (i === braceStart + 1) {
|
|
261
|
+
if (c === '^' || c === '!') {
|
|
262
|
+
braceNeg = true;
|
|
263
|
+
}
|
|
264
|
+
}
|
|
265
|
+
else if (c === ']' && !(i === braceStart + 2 && braceNeg)) {
|
|
266
|
+
inBrace = false;
|
|
267
|
+
}
|
|
268
|
+
acc += c;
|
|
269
|
+
continue;
|
|
270
|
+
}
|
|
271
|
+
else if (c === '[') {
|
|
272
|
+
inBrace = true;
|
|
273
|
+
braceStart = i;
|
|
274
|
+
braceNeg = false;
|
|
275
|
+
acc += c;
|
|
276
|
+
continue;
|
|
277
|
+
}
|
|
278
|
+
if (isExtglobType(c) && str.charAt(i) === '(') {
|
|
279
|
+
part.push(acc);
|
|
280
|
+
acc = '';
|
|
281
|
+
const ext = new AST(c, part);
|
|
282
|
+
part.push(ext);
|
|
283
|
+
i = AST.#parseAST(str, ext, i, opt);
|
|
284
|
+
continue;
|
|
285
|
+
}
|
|
286
|
+
if (c === '|') {
|
|
287
|
+
part.push(acc);
|
|
288
|
+
acc = '';
|
|
289
|
+
parts.push(part);
|
|
290
|
+
part = new AST(null, ast);
|
|
291
|
+
continue;
|
|
292
|
+
}
|
|
293
|
+
if (c === ')') {
|
|
294
|
+
if (acc === '' && ast.#parts.length === 0) {
|
|
295
|
+
ast.#emptyExt = true;
|
|
296
|
+
}
|
|
297
|
+
part.push(acc);
|
|
298
|
+
acc = '';
|
|
299
|
+
ast.push(...parts, part);
|
|
300
|
+
return i;
|
|
301
|
+
}
|
|
302
|
+
acc += c;
|
|
303
|
+
}
|
|
304
|
+
// unfinished extglob
|
|
305
|
+
// if we got here, it was a malformed extglob! not an extglob, but
|
|
306
|
+
// maybe something else in there.
|
|
307
|
+
ast.type = null;
|
|
308
|
+
ast.#hasMagic = undefined;
|
|
309
|
+
ast.#parts = [str.substring(pos - 1)];
|
|
310
|
+
return i;
|
|
311
|
+
}
|
|
312
|
+
static fromGlob(pattern, options = {}) {
|
|
313
|
+
const ast = new AST(null, undefined, options);
|
|
314
|
+
AST.#parseAST(pattern, ast, 0, options);
|
|
315
|
+
return ast;
|
|
316
|
+
}
|
|
317
|
+
// returns the regular expression if there's magic, or the unescaped
|
|
318
|
+
// string if not.
|
|
319
|
+
toMMPattern() {
|
|
320
|
+
// should only be called on root
|
|
321
|
+
/* c8 ignore start */
|
|
322
|
+
if (this !== this.#root)
|
|
323
|
+
return this.#root.toMMPattern();
|
|
324
|
+
/* c8 ignore stop */
|
|
325
|
+
const glob = this.toString();
|
|
326
|
+
const [re, body, hasMagic, uflag] = this.toRegExpSource();
|
|
327
|
+
// if we're in nocase mode, and not nocaseMagicOnly, then we do
|
|
328
|
+
// still need a regular expression if we have to case-insensitively
|
|
329
|
+
// match capital/lowercase characters.
|
|
330
|
+
const anyMagic = hasMagic ||
|
|
331
|
+
this.#hasMagic ||
|
|
332
|
+
(this.#options.nocase &&
|
|
333
|
+
!this.#options.nocaseMagicOnly &&
|
|
334
|
+
glob.toUpperCase() !== glob.toLowerCase());
|
|
335
|
+
if (!anyMagic) {
|
|
336
|
+
return body;
|
|
337
|
+
}
|
|
338
|
+
const flags = (this.#options.nocase ? 'i' : '') + (uflag ? 'u' : '');
|
|
339
|
+
return Object.assign(new RegExp(`^${re}$`, flags), {
|
|
340
|
+
_src: re,
|
|
341
|
+
_glob: glob,
|
|
342
|
+
});
|
|
343
|
+
}
|
|
344
|
+
get options() {
|
|
345
|
+
return this.#options;
|
|
346
|
+
}
|
|
347
|
+
// returns the string match, the regexp source, whether there's magic
|
|
348
|
+
// in the regexp (so a regular expression is required) and whether or
|
|
349
|
+
// not the uflag is needed for the regular expression (for posix classes)
|
|
350
|
+
// TODO: instead of injecting the start/end at this point, just return
|
|
351
|
+
// the BODY of the regexp, along with the start/end portions suitable
|
|
352
|
+
// for binding the start/end in either a joined full-path makeRe context
|
|
353
|
+
// (where we bind to (^|/), or a standalone matchPart context (where
|
|
354
|
+
// we bind to ^, and not /). Otherwise slashes get duped!
|
|
355
|
+
//
|
|
356
|
+
// In part-matching mode, the start is:
|
|
357
|
+
// - if not isStart: nothing
|
|
358
|
+
// - if traversal possible, but not allowed: ^(?!\.\.?$)
|
|
359
|
+
// - if dots allowed or not possible: ^
|
|
360
|
+
// - if dots possible and not allowed: ^(?!\.)
|
|
361
|
+
// end is:
|
|
362
|
+
// - if not isEnd(): nothing
|
|
363
|
+
// - else: $
|
|
364
|
+
//
|
|
365
|
+
// In full-path matching mode, we put the slash at the START of the
|
|
366
|
+
// pattern, so start is:
|
|
367
|
+
// - if first pattern: same as part-matching mode
|
|
368
|
+
// - if not isStart(): nothing
|
|
369
|
+
// - if traversal possible, but not allowed: /(?!\.\.?(?:$|/))
|
|
370
|
+
// - if dots allowed or not possible: /
|
|
371
|
+
// - if dots possible and not allowed: /(?!\.)
|
|
372
|
+
// end is:
|
|
373
|
+
// - if last pattern, same as part-matching mode
|
|
374
|
+
// - else nothing
|
|
375
|
+
//
|
|
376
|
+
// Always put the (?:$|/) on negated tails, though, because that has to be
|
|
377
|
+
// there to bind the end of the negated pattern portion, and it's easier to
|
|
378
|
+
// just stick it in now rather than try to inject it later in the middle of
|
|
379
|
+
// the pattern.
|
|
380
|
+
//
|
|
381
|
+
// We can just always return the same end, and leave it up to the caller
|
|
382
|
+
// to know whether it's going to be used joined or in parts.
|
|
383
|
+
// And, if the start is adjusted slightly, can do the same there:
|
|
384
|
+
// - if not isStart: nothing
|
|
385
|
+
// - if traversal possible, but not allowed: (?:/|^)(?!\.\.?$)
|
|
386
|
+
// - if dots allowed or not possible: (?:/|^)
|
|
387
|
+
// - if dots possible and not allowed: (?:/|^)(?!\.)
|
|
388
|
+
//
|
|
389
|
+
// But it's better to have a simpler binding without a conditional, for
|
|
390
|
+
// performance, so probably better to return both start options.
|
|
391
|
+
//
|
|
392
|
+
// Then the caller just ignores the end if it's not the first pattern,
|
|
393
|
+
// and the start always gets applied.
|
|
394
|
+
//
|
|
395
|
+
// But that's always going to be $ if it's the ending pattern, or nothing,
|
|
396
|
+
// so the caller can just attach $ at the end of the pattern when building.
|
|
397
|
+
//
|
|
398
|
+
// So the todo is:
|
|
399
|
+
// - better detect what kind of start is needed
|
|
400
|
+
// - return both flavors of starting pattern
|
|
401
|
+
// - attach $ at the end of the pattern when creating the actual RegExp
|
|
402
|
+
//
|
|
403
|
+
// Ah, but wait, no, that all only applies to the root when the first pattern
|
|
404
|
+
// is not an extglob. If the first pattern IS an extglob, then we need all
|
|
405
|
+
// that dot prevention biz to live in the extglob portions, because eg
|
|
406
|
+
// +(*|.x*) can match .xy but not .yx.
|
|
407
|
+
//
|
|
408
|
+
// So, return the two flavors if it's #root and the first child is not an
|
|
409
|
+
// AST, otherwise leave it to the child AST to handle it, and there,
|
|
410
|
+
// use the (?:^|/) style of start binding.
|
|
411
|
+
//
|
|
412
|
+
// Even simplified further:
|
|
413
|
+
// - Since the start for a join is eg /(?!\.) and the start for a part
|
|
414
|
+
// is ^(?!\.), we can just prepend (?!\.) to the pattern (either root
|
|
415
|
+
// or start or whatever) and prepend ^ or / at the Regexp construction.
|
|
416
|
+
toRegExpSource(allowDot) {
|
|
417
|
+
const dot = allowDot ?? !!this.#options.dot;
|
|
418
|
+
if (this.#root === this)
|
|
419
|
+
this.#fillNegs();
|
|
420
|
+
if (!this.type) {
|
|
421
|
+
const noEmpty = this.isStart() &&
|
|
422
|
+
this.isEnd() &&
|
|
423
|
+
!this.#parts.some(s => typeof s !== 'string');
|
|
424
|
+
const src = this.#parts
|
|
425
|
+
.map(p => {
|
|
426
|
+
const [re, _, hasMagic, uflag] = typeof p === 'string' ?
|
|
427
|
+
AST.#parseGlob(p, this.#hasMagic, noEmpty)
|
|
428
|
+
: p.toRegExpSource(allowDot);
|
|
429
|
+
this.#hasMagic = this.#hasMagic || hasMagic;
|
|
430
|
+
this.#uflag = this.#uflag || uflag;
|
|
431
|
+
return re;
|
|
432
|
+
})
|
|
433
|
+
.join('');
|
|
434
|
+
let start = '';
|
|
435
|
+
if (this.isStart()) {
|
|
436
|
+
if (typeof this.#parts[0] === 'string') {
|
|
437
|
+
// this is the string that will match the start of the pattern,
|
|
438
|
+
// so we need to protect against dots and such.
|
|
439
|
+
// '.' and '..' cannot match unless the pattern is that exactly,
|
|
440
|
+
// even if it starts with . or dot:true is set.
|
|
441
|
+
const dotTravAllowed = this.#parts.length === 1 && justDots.has(this.#parts[0]);
|
|
442
|
+
if (!dotTravAllowed) {
|
|
443
|
+
const aps = addPatternStart;
|
|
444
|
+
// check if we have a possibility of matching . or ..,
|
|
445
|
+
// and prevent that.
|
|
446
|
+
const needNoTrav =
|
|
447
|
+
// dots are allowed, and the pattern starts with [ or .
|
|
448
|
+
(dot && aps.has(src.charAt(0))) ||
|
|
449
|
+
// the pattern starts with \., and then [ or .
|
|
450
|
+
(src.startsWith('\\.') && aps.has(src.charAt(2))) ||
|
|
451
|
+
// the pattern starts with \.\., and then [ or .
|
|
452
|
+
(src.startsWith('\\.\\.') && aps.has(src.charAt(4)));
|
|
453
|
+
// no need to prevent dots if it can't match a dot, or if a
|
|
454
|
+
// sub-pattern will be preventing it anyway.
|
|
455
|
+
const needNoDot = !dot && !allowDot && aps.has(src.charAt(0));
|
|
456
|
+
start =
|
|
457
|
+
needNoTrav ? startNoTraversal
|
|
458
|
+
: needNoDot ? startNoDot
|
|
459
|
+
: '';
|
|
460
|
+
}
|
|
461
|
+
}
|
|
462
|
+
}
|
|
463
|
+
// append the "end of path portion" pattern to negation tails
|
|
464
|
+
let end = '';
|
|
465
|
+
if (this.isEnd() &&
|
|
466
|
+
this.#root.#filledNegs &&
|
|
467
|
+
this.#parent?.type === '!') {
|
|
468
|
+
end = '(?:$|\\/)';
|
|
469
|
+
}
|
|
470
|
+
const final = start + src + end;
|
|
471
|
+
return [
|
|
472
|
+
final,
|
|
473
|
+
(0, unescape_js_1.unescape)(src),
|
|
474
|
+
(this.#hasMagic = !!this.#hasMagic),
|
|
475
|
+
this.#uflag,
|
|
476
|
+
];
|
|
477
|
+
}
|
|
478
|
+
// We need to calculate the body *twice* if it's a repeat pattern
|
|
479
|
+
// at the start, once in nodot mode, then again in dot mode, so a
|
|
480
|
+
// pattern like *(?) can match 'x.y'
|
|
481
|
+
const repeated = this.type === '*' || this.type === '+';
|
|
482
|
+
// some kind of extglob
|
|
483
|
+
const start = this.type === '!' ? '(?:(?!(?:' : '(?:';
|
|
484
|
+
let body = this.#partsToRegExp(dot);
|
|
485
|
+
if (this.isStart() && this.isEnd() && !body && this.type !== '!') {
|
|
486
|
+
// invalid extglob, has to at least be *something* present, if it's
|
|
487
|
+
// the entire path portion.
|
|
488
|
+
const s = this.toString();
|
|
489
|
+
this.#parts = [s];
|
|
490
|
+
this.type = null;
|
|
491
|
+
this.#hasMagic = undefined;
|
|
492
|
+
return [s, (0, unescape_js_1.unescape)(this.toString()), false, false];
|
|
493
|
+
}
|
|
494
|
+
// XXX abstract out this map method
|
|
495
|
+
let bodyDotAllowed = !repeated || allowDot || dot || !startNoDot ?
|
|
496
|
+
''
|
|
497
|
+
: this.#partsToRegExp(true);
|
|
498
|
+
if (bodyDotAllowed === body) {
|
|
499
|
+
bodyDotAllowed = '';
|
|
500
|
+
}
|
|
501
|
+
if (bodyDotAllowed) {
|
|
502
|
+
body = `(?:${body})(?:${bodyDotAllowed})*?`;
|
|
503
|
+
}
|
|
504
|
+
// an empty !() is exactly equivalent to a starNoEmpty
|
|
505
|
+
let final = '';
|
|
506
|
+
if (this.type === '!' && this.#emptyExt) {
|
|
507
|
+
final = (this.isStart() && !dot ? startNoDot : '') + starNoEmpty;
|
|
508
|
+
}
|
|
509
|
+
else {
|
|
510
|
+
const close = this.type === '!' ?
|
|
511
|
+
// !() must match something,but !(x) can match ''
|
|
512
|
+
'))' +
|
|
513
|
+
(this.isStart() && !dot && !allowDot ? startNoDot : '') +
|
|
514
|
+
star +
|
|
515
|
+
')'
|
|
516
|
+
: this.type === '@' ? ')'
|
|
517
|
+
: this.type === '?' ? ')?'
|
|
518
|
+
: this.type === '+' && bodyDotAllowed ? ')'
|
|
519
|
+
: this.type === '*' && bodyDotAllowed ? `)?`
|
|
520
|
+
: `)${this.type}`;
|
|
521
|
+
final = start + body + close;
|
|
522
|
+
}
|
|
523
|
+
return [
|
|
524
|
+
final,
|
|
525
|
+
(0, unescape_js_1.unescape)(body),
|
|
526
|
+
(this.#hasMagic = !!this.#hasMagic),
|
|
527
|
+
this.#uflag,
|
|
528
|
+
];
|
|
529
|
+
}
|
|
530
|
+
#partsToRegExp(dot) {
|
|
531
|
+
return this.#parts
|
|
532
|
+
.map(p => {
|
|
533
|
+
// extglob ASTs should only contain parent ASTs
|
|
534
|
+
/* c8 ignore start */
|
|
535
|
+
if (typeof p === 'string') {
|
|
536
|
+
throw new Error('string type in extglob ast??');
|
|
537
|
+
}
|
|
538
|
+
/* c8 ignore stop */
|
|
539
|
+
// can ignore hasMagic, because extglobs are already always magic
|
|
540
|
+
const [re, _, _hasMagic, uflag] = p.toRegExpSource(dot);
|
|
541
|
+
this.#uflag = this.#uflag || uflag;
|
|
542
|
+
return re;
|
|
543
|
+
})
|
|
544
|
+
.filter(p => !(this.isStart() && this.isEnd()) || !!p)
|
|
545
|
+
.join('|');
|
|
546
|
+
}
|
|
547
|
+
static #parseGlob(glob, hasMagic, noEmpty = false) {
|
|
548
|
+
let escaping = false;
|
|
549
|
+
let re = '';
|
|
550
|
+
let uflag = false;
|
|
551
|
+
// multiple stars that aren't globstars coalesce into one *
|
|
552
|
+
let inStar = false;
|
|
553
|
+
for (let i = 0; i < glob.length; i++) {
|
|
554
|
+
const c = glob.charAt(i);
|
|
555
|
+
if (escaping) {
|
|
556
|
+
escaping = false;
|
|
557
|
+
re += (reSpecials.has(c) ? '\\' : '') + c;
|
|
558
|
+
continue;
|
|
559
|
+
}
|
|
560
|
+
if (c === '*') {
|
|
561
|
+
if (inStar)
|
|
562
|
+
continue;
|
|
563
|
+
inStar = true;
|
|
564
|
+
re += noEmpty && /^[*]+$/.test(glob) ? starNoEmpty : star;
|
|
565
|
+
hasMagic = true;
|
|
566
|
+
continue;
|
|
567
|
+
}
|
|
568
|
+
else {
|
|
569
|
+
inStar = false;
|
|
570
|
+
}
|
|
571
|
+
if (c === '\\') {
|
|
572
|
+
if (i === glob.length - 1) {
|
|
573
|
+
re += '\\\\';
|
|
574
|
+
}
|
|
575
|
+
else {
|
|
576
|
+
escaping = true;
|
|
577
|
+
}
|
|
578
|
+
continue;
|
|
579
|
+
}
|
|
580
|
+
if (c === '[') {
|
|
581
|
+
const [src, needUflag, consumed, magic] = (0, brace_expressions_js_1.parseClass)(glob, i);
|
|
582
|
+
if (consumed) {
|
|
583
|
+
re += src;
|
|
584
|
+
uflag = uflag || needUflag;
|
|
585
|
+
i += consumed - 1;
|
|
586
|
+
hasMagic = hasMagic || magic;
|
|
587
|
+
continue;
|
|
588
|
+
}
|
|
589
|
+
}
|
|
590
|
+
if (c === '?') {
|
|
591
|
+
re += qmark;
|
|
592
|
+
hasMagic = true;
|
|
593
|
+
continue;
|
|
594
|
+
}
|
|
595
|
+
re += regExpEscape(c);
|
|
596
|
+
}
|
|
597
|
+
return [re, (0, unescape_js_1.unescape)(glob), !!hasMagic, uflag];
|
|
598
|
+
}
|
|
599
|
+
}
|
|
600
|
+
exports.AST = AST;
|
|
601
|
+
//# sourceMappingURL=ast.js.map
|