@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,12 @@
|
|
|
1
|
+
<?xml version="1.0" encoding="UTF-8"?>
|
|
2
|
+
<module type="WEB_MODULE" version="4">
|
|
3
|
+
<component name="NewModuleRootManager">
|
|
4
|
+
<content url="file://$MODULE_DIR$">
|
|
5
|
+
<excludeFolder url="file://$MODULE_DIR$/temp" />
|
|
6
|
+
<excludeFolder url="file://$MODULE_DIR$/.tmp" />
|
|
7
|
+
<excludeFolder url="file://$MODULE_DIR$/tmp" />
|
|
8
|
+
</content>
|
|
9
|
+
<orderEntry type="inheritedJdk" />
|
|
10
|
+
<orderEntry type="sourceFolder" forTests="false" />
|
|
11
|
+
</component>
|
|
12
|
+
</module>
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
<?xml version="1.0" encoding="UTF-8"?>
|
|
2
|
+
<project version="4">
|
|
3
|
+
<component name="ProjectModuleManager">
|
|
4
|
+
<modules>
|
|
5
|
+
<module fileurl="file://$PROJECT_DIR$/.idea/iconv-lite.iml" filepath="$PROJECT_DIR$/.idea/iconv-lite.iml" />
|
|
6
|
+
</modules>
|
|
7
|
+
</component>
|
|
8
|
+
</project>
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
Copyright (c) 2011 Alexander Shtuchkin
|
|
2
|
+
|
|
3
|
+
Permission is hereby granted, free of charge, to any person obtaining
|
|
4
|
+
a copy of this software and associated documentation files (the
|
|
5
|
+
"Software"), to deal in the Software without restriction, including
|
|
6
|
+
without limitation the rights to use, copy, modify, merge, publish,
|
|
7
|
+
distribute, sublicense, and/or sell copies of the Software, and to
|
|
8
|
+
permit persons to whom the Software is furnished to do so, subject to
|
|
9
|
+
the following conditions:
|
|
10
|
+
|
|
11
|
+
The above copyright notice and this permission notice shall be
|
|
12
|
+
included in all copies or substantial portions of the Software.
|
|
13
|
+
|
|
14
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
|
|
15
|
+
EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
|
|
16
|
+
MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
|
|
17
|
+
NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
|
|
18
|
+
LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
|
|
19
|
+
OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
|
|
20
|
+
WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
|
21
|
+
|
|
@@ -0,0 +1,597 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var Buffer = require("safer-buffer").Buffer;
|
|
3
|
+
|
|
4
|
+
// Multibyte codec. In this scheme, a character is represented by 1 or more bytes.
|
|
5
|
+
// Our codec supports UTF-16 surrogates, extensions for GB18030 and unicode sequences.
|
|
6
|
+
// To save memory and loading time, we read table files only when requested.
|
|
7
|
+
|
|
8
|
+
exports._dbcs = DBCSCodec;
|
|
9
|
+
|
|
10
|
+
var UNASSIGNED = -1,
|
|
11
|
+
GB18030_CODE = -2,
|
|
12
|
+
SEQ_START = -10,
|
|
13
|
+
NODE_START = -1000,
|
|
14
|
+
UNASSIGNED_NODE = new Array(0x100),
|
|
15
|
+
DEF_CHAR = -1;
|
|
16
|
+
|
|
17
|
+
for (var i = 0; i < 0x100; i++)
|
|
18
|
+
UNASSIGNED_NODE[i] = UNASSIGNED;
|
|
19
|
+
|
|
20
|
+
|
|
21
|
+
// Class DBCSCodec reads and initializes mapping tables.
|
|
22
|
+
function DBCSCodec(codecOptions, iconv) {
|
|
23
|
+
this.encodingName = codecOptions.encodingName;
|
|
24
|
+
if (!codecOptions)
|
|
25
|
+
throw new Error("DBCS codec is called without the data.")
|
|
26
|
+
if (!codecOptions.table)
|
|
27
|
+
throw new Error("Encoding '" + this.encodingName + "' has no data.");
|
|
28
|
+
|
|
29
|
+
// Load tables.
|
|
30
|
+
var mappingTable = codecOptions.table();
|
|
31
|
+
|
|
32
|
+
|
|
33
|
+
// Decode tables: MBCS -> Unicode.
|
|
34
|
+
|
|
35
|
+
// decodeTables is a trie, encoded as an array of arrays of integers. Internal arrays are trie nodes and all have len = 256.
|
|
36
|
+
// Trie root is decodeTables[0].
|
|
37
|
+
// Values: >= 0 -> unicode character code. can be > 0xFFFF
|
|
38
|
+
// == UNASSIGNED -> unknown/unassigned sequence.
|
|
39
|
+
// == GB18030_CODE -> this is the end of a GB18030 4-byte sequence.
|
|
40
|
+
// <= NODE_START -> index of the next node in our trie to process next byte.
|
|
41
|
+
// <= SEQ_START -> index of the start of a character code sequence, in decodeTableSeq.
|
|
42
|
+
this.decodeTables = [];
|
|
43
|
+
this.decodeTables[0] = UNASSIGNED_NODE.slice(0); // Create root node.
|
|
44
|
+
|
|
45
|
+
// Sometimes a MBCS char corresponds to a sequence of unicode chars. We store them as arrays of integers here.
|
|
46
|
+
this.decodeTableSeq = [];
|
|
47
|
+
|
|
48
|
+
// Actual mapping tables consist of chunks. Use them to fill up decode tables.
|
|
49
|
+
for (var i = 0; i < mappingTable.length; i++)
|
|
50
|
+
this._addDecodeChunk(mappingTable[i]);
|
|
51
|
+
|
|
52
|
+
// Load & create GB18030 tables when needed.
|
|
53
|
+
if (typeof codecOptions.gb18030 === 'function') {
|
|
54
|
+
this.gb18030 = codecOptions.gb18030(); // Load GB18030 ranges.
|
|
55
|
+
|
|
56
|
+
// Add GB18030 common decode nodes.
|
|
57
|
+
var commonThirdByteNodeIdx = this.decodeTables.length;
|
|
58
|
+
this.decodeTables.push(UNASSIGNED_NODE.slice(0));
|
|
59
|
+
|
|
60
|
+
var commonFourthByteNodeIdx = this.decodeTables.length;
|
|
61
|
+
this.decodeTables.push(UNASSIGNED_NODE.slice(0));
|
|
62
|
+
|
|
63
|
+
// Fill out the tree
|
|
64
|
+
var firstByteNode = this.decodeTables[0];
|
|
65
|
+
for (var i = 0x81; i <= 0xFE; i++) {
|
|
66
|
+
var secondByteNode = this.decodeTables[NODE_START - firstByteNode[i]];
|
|
67
|
+
for (var j = 0x30; j <= 0x39; j++) {
|
|
68
|
+
if (secondByteNode[j] === UNASSIGNED) {
|
|
69
|
+
secondByteNode[j] = NODE_START - commonThirdByteNodeIdx;
|
|
70
|
+
} else if (secondByteNode[j] > NODE_START) {
|
|
71
|
+
throw new Error("gb18030 decode tables conflict at byte 2");
|
|
72
|
+
}
|
|
73
|
+
|
|
74
|
+
var thirdByteNode = this.decodeTables[NODE_START - secondByteNode[j]];
|
|
75
|
+
for (var k = 0x81; k <= 0xFE; k++) {
|
|
76
|
+
if (thirdByteNode[k] === UNASSIGNED) {
|
|
77
|
+
thirdByteNode[k] = NODE_START - commonFourthByteNodeIdx;
|
|
78
|
+
} else if (thirdByteNode[k] === NODE_START - commonFourthByteNodeIdx) {
|
|
79
|
+
continue;
|
|
80
|
+
} else if (thirdByteNode[k] > NODE_START) {
|
|
81
|
+
throw new Error("gb18030 decode tables conflict at byte 3");
|
|
82
|
+
}
|
|
83
|
+
|
|
84
|
+
var fourthByteNode = this.decodeTables[NODE_START - thirdByteNode[k]];
|
|
85
|
+
for (var l = 0x30; l <= 0x39; l++) {
|
|
86
|
+
if (fourthByteNode[l] === UNASSIGNED)
|
|
87
|
+
fourthByteNode[l] = GB18030_CODE;
|
|
88
|
+
}
|
|
89
|
+
}
|
|
90
|
+
}
|
|
91
|
+
}
|
|
92
|
+
}
|
|
93
|
+
|
|
94
|
+
this.defaultCharUnicode = iconv.defaultCharUnicode;
|
|
95
|
+
|
|
96
|
+
|
|
97
|
+
// Encode tables: Unicode -> DBCS.
|
|
98
|
+
|
|
99
|
+
// `encodeTable` is array mapping from unicode char to encoded char. All its values are integers for performance.
|
|
100
|
+
// Because it can be sparse, it is represented as array of buckets by 256 chars each. Bucket can be null.
|
|
101
|
+
// Values: >= 0 -> it is a normal char. Write the value (if <=256 then 1 byte, if <=65536 then 2 bytes, etc.).
|
|
102
|
+
// == UNASSIGNED -> no conversion found. Output a default char.
|
|
103
|
+
// <= SEQ_START -> it's an index in encodeTableSeq, see below. The character starts a sequence.
|
|
104
|
+
this.encodeTable = [];
|
|
105
|
+
|
|
106
|
+
// `encodeTableSeq` is used when a sequence of unicode characters is encoded as a single code. We use a tree of
|
|
107
|
+
// objects where keys correspond to characters in sequence and leafs are the encoded dbcs values. A special DEF_CHAR key
|
|
108
|
+
// means end of sequence (needed when one sequence is a strict subsequence of another).
|
|
109
|
+
// Objects are kept separately from encodeTable to increase performance.
|
|
110
|
+
this.encodeTableSeq = [];
|
|
111
|
+
|
|
112
|
+
// Some chars can be decoded, but need not be encoded.
|
|
113
|
+
var skipEncodeChars = {};
|
|
114
|
+
if (codecOptions.encodeSkipVals)
|
|
115
|
+
for (var i = 0; i < codecOptions.encodeSkipVals.length; i++) {
|
|
116
|
+
var val = codecOptions.encodeSkipVals[i];
|
|
117
|
+
if (typeof val === 'number')
|
|
118
|
+
skipEncodeChars[val] = true;
|
|
119
|
+
else
|
|
120
|
+
for (var j = val.from; j <= val.to; j++)
|
|
121
|
+
skipEncodeChars[j] = true;
|
|
122
|
+
}
|
|
123
|
+
|
|
124
|
+
// Use decode trie to recursively fill out encode tables.
|
|
125
|
+
this._fillEncodeTable(0, 0, skipEncodeChars);
|
|
126
|
+
|
|
127
|
+
// Add more encoding pairs when needed.
|
|
128
|
+
if (codecOptions.encodeAdd) {
|
|
129
|
+
for (var uChar in codecOptions.encodeAdd)
|
|
130
|
+
if (Object.prototype.hasOwnProperty.call(codecOptions.encodeAdd, uChar))
|
|
131
|
+
this._setEncodeChar(uChar.charCodeAt(0), codecOptions.encodeAdd[uChar]);
|
|
132
|
+
}
|
|
133
|
+
|
|
134
|
+
this.defCharSB = this.encodeTable[0][iconv.defaultCharSingleByte.charCodeAt(0)];
|
|
135
|
+
if (this.defCharSB === UNASSIGNED) this.defCharSB = this.encodeTable[0]['?'];
|
|
136
|
+
if (this.defCharSB === UNASSIGNED) this.defCharSB = "?".charCodeAt(0);
|
|
137
|
+
}
|
|
138
|
+
|
|
139
|
+
DBCSCodec.prototype.encoder = DBCSEncoder;
|
|
140
|
+
DBCSCodec.prototype.decoder = DBCSDecoder;
|
|
141
|
+
|
|
142
|
+
// Decoder helpers
|
|
143
|
+
DBCSCodec.prototype._getDecodeTrieNode = function(addr) {
|
|
144
|
+
var bytes = [];
|
|
145
|
+
for (; addr > 0; addr >>>= 8)
|
|
146
|
+
bytes.push(addr & 0xFF);
|
|
147
|
+
if (bytes.length == 0)
|
|
148
|
+
bytes.push(0);
|
|
149
|
+
|
|
150
|
+
var node = this.decodeTables[0];
|
|
151
|
+
for (var i = bytes.length-1; i > 0; i--) { // Traverse nodes deeper into the trie.
|
|
152
|
+
var val = node[bytes[i]];
|
|
153
|
+
|
|
154
|
+
if (val == UNASSIGNED) { // Create new node.
|
|
155
|
+
node[bytes[i]] = NODE_START - this.decodeTables.length;
|
|
156
|
+
this.decodeTables.push(node = UNASSIGNED_NODE.slice(0));
|
|
157
|
+
}
|
|
158
|
+
else if (val <= NODE_START) { // Existing node.
|
|
159
|
+
node = this.decodeTables[NODE_START - val];
|
|
160
|
+
}
|
|
161
|
+
else
|
|
162
|
+
throw new Error("Overwrite byte in " + this.encodingName + ", addr: " + addr.toString(16));
|
|
163
|
+
}
|
|
164
|
+
return node;
|
|
165
|
+
}
|
|
166
|
+
|
|
167
|
+
|
|
168
|
+
DBCSCodec.prototype._addDecodeChunk = function(chunk) {
|
|
169
|
+
// First element of chunk is the hex mbcs code where we start.
|
|
170
|
+
var curAddr = parseInt(chunk[0], 16);
|
|
171
|
+
|
|
172
|
+
// Choose the decoding node where we'll write our chars.
|
|
173
|
+
var writeTable = this._getDecodeTrieNode(curAddr);
|
|
174
|
+
curAddr = curAddr & 0xFF;
|
|
175
|
+
|
|
176
|
+
// Write all other elements of the chunk to the table.
|
|
177
|
+
for (var k = 1; k < chunk.length; k++) {
|
|
178
|
+
var part = chunk[k];
|
|
179
|
+
if (typeof part === "string") { // String, write as-is.
|
|
180
|
+
for (var l = 0; l < part.length;) {
|
|
181
|
+
var code = part.charCodeAt(l++);
|
|
182
|
+
if (0xD800 <= code && code < 0xDC00) { // Decode surrogate
|
|
183
|
+
var codeTrail = part.charCodeAt(l++);
|
|
184
|
+
if (0xDC00 <= codeTrail && codeTrail < 0xE000)
|
|
185
|
+
writeTable[curAddr++] = 0x10000 + (code - 0xD800) * 0x400 + (codeTrail - 0xDC00);
|
|
186
|
+
else
|
|
187
|
+
throw new Error("Incorrect surrogate pair in " + this.encodingName + " at chunk " + chunk[0]);
|
|
188
|
+
}
|
|
189
|
+
else if (0x0FF0 < code && code <= 0x0FFF) { // Character sequence (our own encoding used)
|
|
190
|
+
var len = 0xFFF - code + 2;
|
|
191
|
+
var seq = [];
|
|
192
|
+
for (var m = 0; m < len; m++)
|
|
193
|
+
seq.push(part.charCodeAt(l++)); // Simple variation: don't support surrogates or subsequences in seq.
|
|
194
|
+
|
|
195
|
+
writeTable[curAddr++] = SEQ_START - this.decodeTableSeq.length;
|
|
196
|
+
this.decodeTableSeq.push(seq);
|
|
197
|
+
}
|
|
198
|
+
else
|
|
199
|
+
writeTable[curAddr++] = code; // Basic char
|
|
200
|
+
}
|
|
201
|
+
}
|
|
202
|
+
else if (typeof part === "number") { // Integer, meaning increasing sequence starting with prev character.
|
|
203
|
+
var charCode = writeTable[curAddr - 1] + 1;
|
|
204
|
+
for (var l = 0; l < part; l++)
|
|
205
|
+
writeTable[curAddr++] = charCode++;
|
|
206
|
+
}
|
|
207
|
+
else
|
|
208
|
+
throw new Error("Incorrect type '" + typeof part + "' given in " + this.encodingName + " at chunk " + chunk[0]);
|
|
209
|
+
}
|
|
210
|
+
if (curAddr > 0xFF)
|
|
211
|
+
throw new Error("Incorrect chunk in " + this.encodingName + " at addr " + chunk[0] + ": too long" + curAddr);
|
|
212
|
+
}
|
|
213
|
+
|
|
214
|
+
// Encoder helpers
|
|
215
|
+
DBCSCodec.prototype._getEncodeBucket = function(uCode) {
|
|
216
|
+
var high = uCode >> 8; // This could be > 0xFF because of astral characters.
|
|
217
|
+
if (this.encodeTable[high] === undefined)
|
|
218
|
+
this.encodeTable[high] = UNASSIGNED_NODE.slice(0); // Create bucket on demand.
|
|
219
|
+
return this.encodeTable[high];
|
|
220
|
+
}
|
|
221
|
+
|
|
222
|
+
DBCSCodec.prototype._setEncodeChar = function(uCode, dbcsCode) {
|
|
223
|
+
var bucket = this._getEncodeBucket(uCode);
|
|
224
|
+
var low = uCode & 0xFF;
|
|
225
|
+
if (bucket[low] <= SEQ_START)
|
|
226
|
+
this.encodeTableSeq[SEQ_START-bucket[low]][DEF_CHAR] = dbcsCode; // There's already a sequence, set a single-char subsequence of it.
|
|
227
|
+
else if (bucket[low] == UNASSIGNED)
|
|
228
|
+
bucket[low] = dbcsCode;
|
|
229
|
+
}
|
|
230
|
+
|
|
231
|
+
DBCSCodec.prototype._setEncodeSequence = function(seq, dbcsCode) {
|
|
232
|
+
|
|
233
|
+
// Get the root of character tree according to first character of the sequence.
|
|
234
|
+
var uCode = seq[0];
|
|
235
|
+
var bucket = this._getEncodeBucket(uCode);
|
|
236
|
+
var low = uCode & 0xFF;
|
|
237
|
+
|
|
238
|
+
var node;
|
|
239
|
+
if (bucket[low] <= SEQ_START) {
|
|
240
|
+
// There's already a sequence with - use it.
|
|
241
|
+
node = this.encodeTableSeq[SEQ_START-bucket[low]];
|
|
242
|
+
}
|
|
243
|
+
else {
|
|
244
|
+
// There was no sequence object - allocate a new one.
|
|
245
|
+
node = {};
|
|
246
|
+
if (bucket[low] !== UNASSIGNED) node[DEF_CHAR] = bucket[low]; // If a char was set before - make it a single-char subsequence.
|
|
247
|
+
bucket[low] = SEQ_START - this.encodeTableSeq.length;
|
|
248
|
+
this.encodeTableSeq.push(node);
|
|
249
|
+
}
|
|
250
|
+
|
|
251
|
+
// Traverse the character tree, allocating new nodes as needed.
|
|
252
|
+
for (var j = 1; j < seq.length-1; j++) {
|
|
253
|
+
var oldVal = node[uCode];
|
|
254
|
+
if (typeof oldVal === 'object')
|
|
255
|
+
node = oldVal;
|
|
256
|
+
else {
|
|
257
|
+
node = node[uCode] = {}
|
|
258
|
+
if (oldVal !== undefined)
|
|
259
|
+
node[DEF_CHAR] = oldVal
|
|
260
|
+
}
|
|
261
|
+
}
|
|
262
|
+
|
|
263
|
+
// Set the leaf to given dbcsCode.
|
|
264
|
+
uCode = seq[seq.length-1];
|
|
265
|
+
node[uCode] = dbcsCode;
|
|
266
|
+
}
|
|
267
|
+
|
|
268
|
+
DBCSCodec.prototype._fillEncodeTable = function(nodeIdx, prefix, skipEncodeChars) {
|
|
269
|
+
var node = this.decodeTables[nodeIdx];
|
|
270
|
+
var hasValues = false;
|
|
271
|
+
var subNodeEmpty = {};
|
|
272
|
+
for (var i = 0; i < 0x100; i++) {
|
|
273
|
+
var uCode = node[i];
|
|
274
|
+
var mbCode = prefix + i;
|
|
275
|
+
if (skipEncodeChars[mbCode])
|
|
276
|
+
continue;
|
|
277
|
+
|
|
278
|
+
if (uCode >= 0) {
|
|
279
|
+
this._setEncodeChar(uCode, mbCode);
|
|
280
|
+
hasValues = true;
|
|
281
|
+
} else if (uCode <= NODE_START) {
|
|
282
|
+
var subNodeIdx = NODE_START - uCode;
|
|
283
|
+
if (!subNodeEmpty[subNodeIdx]) { // Skip empty subtrees (they are too large in gb18030).
|
|
284
|
+
var newPrefix = (mbCode << 8) >>> 0; // NOTE: '>>> 0' keeps 32-bit num positive.
|
|
285
|
+
if (this._fillEncodeTable(subNodeIdx, newPrefix, skipEncodeChars))
|
|
286
|
+
hasValues = true;
|
|
287
|
+
else
|
|
288
|
+
subNodeEmpty[subNodeIdx] = true;
|
|
289
|
+
}
|
|
290
|
+
} else if (uCode <= SEQ_START) {
|
|
291
|
+
this._setEncodeSequence(this.decodeTableSeq[SEQ_START - uCode], mbCode);
|
|
292
|
+
hasValues = true;
|
|
293
|
+
}
|
|
294
|
+
}
|
|
295
|
+
return hasValues;
|
|
296
|
+
}
|
|
297
|
+
|
|
298
|
+
|
|
299
|
+
|
|
300
|
+
// == Encoder ==================================================================
|
|
301
|
+
|
|
302
|
+
function DBCSEncoder(options, codec) {
|
|
303
|
+
// Encoder state
|
|
304
|
+
this.leadSurrogate = -1;
|
|
305
|
+
this.seqObj = undefined;
|
|
306
|
+
|
|
307
|
+
// Static data
|
|
308
|
+
this.encodeTable = codec.encodeTable;
|
|
309
|
+
this.encodeTableSeq = codec.encodeTableSeq;
|
|
310
|
+
this.defaultCharSingleByte = codec.defCharSB;
|
|
311
|
+
this.gb18030 = codec.gb18030;
|
|
312
|
+
}
|
|
313
|
+
|
|
314
|
+
DBCSEncoder.prototype.write = function(str) {
|
|
315
|
+
var newBuf = Buffer.alloc(str.length * (this.gb18030 ? 4 : 3)),
|
|
316
|
+
leadSurrogate = this.leadSurrogate,
|
|
317
|
+
seqObj = this.seqObj, nextChar = -1,
|
|
318
|
+
i = 0, j = 0;
|
|
319
|
+
|
|
320
|
+
while (true) {
|
|
321
|
+
// 0. Get next character.
|
|
322
|
+
if (nextChar === -1) {
|
|
323
|
+
if (i == str.length) break;
|
|
324
|
+
var uCode = str.charCodeAt(i++);
|
|
325
|
+
}
|
|
326
|
+
else {
|
|
327
|
+
var uCode = nextChar;
|
|
328
|
+
nextChar = -1;
|
|
329
|
+
}
|
|
330
|
+
|
|
331
|
+
// 1. Handle surrogates.
|
|
332
|
+
if (0xD800 <= uCode && uCode < 0xE000) { // Char is one of surrogates.
|
|
333
|
+
if (uCode < 0xDC00) { // We've got lead surrogate.
|
|
334
|
+
if (leadSurrogate === -1) {
|
|
335
|
+
leadSurrogate = uCode;
|
|
336
|
+
continue;
|
|
337
|
+
} else {
|
|
338
|
+
leadSurrogate = uCode;
|
|
339
|
+
// Double lead surrogate found.
|
|
340
|
+
uCode = UNASSIGNED;
|
|
341
|
+
}
|
|
342
|
+
} else { // We've got trail surrogate.
|
|
343
|
+
if (leadSurrogate !== -1) {
|
|
344
|
+
uCode = 0x10000 + (leadSurrogate - 0xD800) * 0x400 + (uCode - 0xDC00);
|
|
345
|
+
leadSurrogate = -1;
|
|
346
|
+
} else {
|
|
347
|
+
// Incomplete surrogate pair - only trail surrogate found.
|
|
348
|
+
uCode = UNASSIGNED;
|
|
349
|
+
}
|
|
350
|
+
|
|
351
|
+
}
|
|
352
|
+
}
|
|
353
|
+
else if (leadSurrogate !== -1) {
|
|
354
|
+
// Incomplete surrogate pair - only lead surrogate found.
|
|
355
|
+
nextChar = uCode; uCode = UNASSIGNED; // Write an error, then current char.
|
|
356
|
+
leadSurrogate = -1;
|
|
357
|
+
}
|
|
358
|
+
|
|
359
|
+
// 2. Convert uCode character.
|
|
360
|
+
var dbcsCode = UNASSIGNED;
|
|
361
|
+
if (seqObj !== undefined && uCode != UNASSIGNED) { // We are in the middle of the sequence
|
|
362
|
+
var resCode = seqObj[uCode];
|
|
363
|
+
if (typeof resCode === 'object') { // Sequence continues.
|
|
364
|
+
seqObj = resCode;
|
|
365
|
+
continue;
|
|
366
|
+
|
|
367
|
+
} else if (typeof resCode == 'number') { // Sequence finished. Write it.
|
|
368
|
+
dbcsCode = resCode;
|
|
369
|
+
|
|
370
|
+
} else if (resCode == undefined) { // Current character is not part of the sequence.
|
|
371
|
+
|
|
372
|
+
// Try default character for this sequence
|
|
373
|
+
resCode = seqObj[DEF_CHAR];
|
|
374
|
+
if (resCode !== undefined) {
|
|
375
|
+
dbcsCode = resCode; // Found. Write it.
|
|
376
|
+
nextChar = uCode; // Current character will be written too in the next iteration.
|
|
377
|
+
|
|
378
|
+
} else {
|
|
379
|
+
// TODO: What if we have no default? (resCode == undefined)
|
|
380
|
+
// Then, we should write first char of the sequence as-is and try the rest recursively.
|
|
381
|
+
// Didn't do it for now because no encoding has this situation yet.
|
|
382
|
+
// Currently, just skip the sequence and write current char.
|
|
383
|
+
}
|
|
384
|
+
}
|
|
385
|
+
seqObj = undefined;
|
|
386
|
+
}
|
|
387
|
+
else if (uCode >= 0) { // Regular character
|
|
388
|
+
var subtable = this.encodeTable[uCode >> 8];
|
|
389
|
+
if (subtable !== undefined)
|
|
390
|
+
dbcsCode = subtable[uCode & 0xFF];
|
|
391
|
+
|
|
392
|
+
if (dbcsCode <= SEQ_START) { // Sequence start
|
|
393
|
+
seqObj = this.encodeTableSeq[SEQ_START-dbcsCode];
|
|
394
|
+
continue;
|
|
395
|
+
}
|
|
396
|
+
|
|
397
|
+
if (dbcsCode == UNASSIGNED && this.gb18030) {
|
|
398
|
+
// Use GB18030 algorithm to find character(s) to write.
|
|
399
|
+
var idx = findIdx(this.gb18030.uChars, uCode);
|
|
400
|
+
if (idx != -1) {
|
|
401
|
+
var dbcsCode = this.gb18030.gbChars[idx] + (uCode - this.gb18030.uChars[idx]);
|
|
402
|
+
newBuf[j++] = 0x81 + Math.floor(dbcsCode / 12600); dbcsCode = dbcsCode % 12600;
|
|
403
|
+
newBuf[j++] = 0x30 + Math.floor(dbcsCode / 1260); dbcsCode = dbcsCode % 1260;
|
|
404
|
+
newBuf[j++] = 0x81 + Math.floor(dbcsCode / 10); dbcsCode = dbcsCode % 10;
|
|
405
|
+
newBuf[j++] = 0x30 + dbcsCode;
|
|
406
|
+
continue;
|
|
407
|
+
}
|
|
408
|
+
}
|
|
409
|
+
}
|
|
410
|
+
|
|
411
|
+
// 3. Write dbcsCode character.
|
|
412
|
+
if (dbcsCode === UNASSIGNED)
|
|
413
|
+
dbcsCode = this.defaultCharSingleByte;
|
|
414
|
+
|
|
415
|
+
if (dbcsCode < 0x100) {
|
|
416
|
+
newBuf[j++] = dbcsCode;
|
|
417
|
+
}
|
|
418
|
+
else if (dbcsCode < 0x10000) {
|
|
419
|
+
newBuf[j++] = dbcsCode >> 8; // high byte
|
|
420
|
+
newBuf[j++] = dbcsCode & 0xFF; // low byte
|
|
421
|
+
}
|
|
422
|
+
else if (dbcsCode < 0x1000000) {
|
|
423
|
+
newBuf[j++] = dbcsCode >> 16;
|
|
424
|
+
newBuf[j++] = (dbcsCode >> 8) & 0xFF;
|
|
425
|
+
newBuf[j++] = dbcsCode & 0xFF;
|
|
426
|
+
} else {
|
|
427
|
+
newBuf[j++] = dbcsCode >>> 24;
|
|
428
|
+
newBuf[j++] = (dbcsCode >>> 16) & 0xFF;
|
|
429
|
+
newBuf[j++] = (dbcsCode >>> 8) & 0xFF;
|
|
430
|
+
newBuf[j++] = dbcsCode & 0xFF;
|
|
431
|
+
}
|
|
432
|
+
}
|
|
433
|
+
|
|
434
|
+
this.seqObj = seqObj;
|
|
435
|
+
this.leadSurrogate = leadSurrogate;
|
|
436
|
+
return newBuf.slice(0, j);
|
|
437
|
+
}
|
|
438
|
+
|
|
439
|
+
DBCSEncoder.prototype.end = function() {
|
|
440
|
+
if (this.leadSurrogate === -1 && this.seqObj === undefined)
|
|
441
|
+
return; // All clean. Most often case.
|
|
442
|
+
|
|
443
|
+
var newBuf = Buffer.alloc(10), j = 0;
|
|
444
|
+
|
|
445
|
+
if (this.seqObj) { // We're in the sequence.
|
|
446
|
+
var dbcsCode = this.seqObj[DEF_CHAR];
|
|
447
|
+
if (dbcsCode !== undefined) { // Write beginning of the sequence.
|
|
448
|
+
if (dbcsCode < 0x100) {
|
|
449
|
+
newBuf[j++] = dbcsCode;
|
|
450
|
+
}
|
|
451
|
+
else {
|
|
452
|
+
newBuf[j++] = dbcsCode >> 8; // high byte
|
|
453
|
+
newBuf[j++] = dbcsCode & 0xFF; // low byte
|
|
454
|
+
}
|
|
455
|
+
} else {
|
|
456
|
+
// See todo above.
|
|
457
|
+
}
|
|
458
|
+
this.seqObj = undefined;
|
|
459
|
+
}
|
|
460
|
+
|
|
461
|
+
if (this.leadSurrogate !== -1) {
|
|
462
|
+
// Incomplete surrogate pair - only lead surrogate found.
|
|
463
|
+
newBuf[j++] = this.defaultCharSingleByte;
|
|
464
|
+
this.leadSurrogate = -1;
|
|
465
|
+
}
|
|
466
|
+
|
|
467
|
+
return newBuf.slice(0, j);
|
|
468
|
+
}
|
|
469
|
+
|
|
470
|
+
// Export for testing
|
|
471
|
+
DBCSEncoder.prototype.findIdx = findIdx;
|
|
472
|
+
|
|
473
|
+
|
|
474
|
+
// == Decoder ==================================================================
|
|
475
|
+
|
|
476
|
+
function DBCSDecoder(options, codec) {
|
|
477
|
+
// Decoder state
|
|
478
|
+
this.nodeIdx = 0;
|
|
479
|
+
this.prevBytes = [];
|
|
480
|
+
|
|
481
|
+
// Static data
|
|
482
|
+
this.decodeTables = codec.decodeTables;
|
|
483
|
+
this.decodeTableSeq = codec.decodeTableSeq;
|
|
484
|
+
this.defaultCharUnicode = codec.defaultCharUnicode;
|
|
485
|
+
this.gb18030 = codec.gb18030;
|
|
486
|
+
}
|
|
487
|
+
|
|
488
|
+
DBCSDecoder.prototype.write = function(buf) {
|
|
489
|
+
var newBuf = Buffer.alloc(buf.length*2),
|
|
490
|
+
nodeIdx = this.nodeIdx,
|
|
491
|
+
prevBytes = this.prevBytes, prevOffset = this.prevBytes.length,
|
|
492
|
+
seqStart = -this.prevBytes.length, // idx of the start of current parsed sequence.
|
|
493
|
+
uCode;
|
|
494
|
+
|
|
495
|
+
for (var i = 0, j = 0; i < buf.length; i++) {
|
|
496
|
+
var curByte = (i >= 0) ? buf[i] : prevBytes[i + prevOffset];
|
|
497
|
+
|
|
498
|
+
// Lookup in current trie node.
|
|
499
|
+
var uCode = this.decodeTables[nodeIdx][curByte];
|
|
500
|
+
|
|
501
|
+
if (uCode >= 0) {
|
|
502
|
+
// Normal character, just use it.
|
|
503
|
+
}
|
|
504
|
+
else if (uCode === UNASSIGNED) { // Unknown char.
|
|
505
|
+
// TODO: Callback with seq.
|
|
506
|
+
uCode = this.defaultCharUnicode.charCodeAt(0);
|
|
507
|
+
i = seqStart; // Skip one byte ('i' will be incremented by the for loop) and try to parse again.
|
|
508
|
+
}
|
|
509
|
+
else if (uCode === GB18030_CODE) {
|
|
510
|
+
if (i >= 3) {
|
|
511
|
+
var ptr = (buf[i-3]-0x81)*12600 + (buf[i-2]-0x30)*1260 + (buf[i-1]-0x81)*10 + (curByte-0x30);
|
|
512
|
+
} else {
|
|
513
|
+
var ptr = (prevBytes[i-3+prevOffset]-0x81)*12600 +
|
|
514
|
+
(((i-2 >= 0) ? buf[i-2] : prevBytes[i-2+prevOffset])-0x30)*1260 +
|
|
515
|
+
(((i-1 >= 0) ? buf[i-1] : prevBytes[i-1+prevOffset])-0x81)*10 +
|
|
516
|
+
(curByte-0x30);
|
|
517
|
+
}
|
|
518
|
+
var idx = findIdx(this.gb18030.gbChars, ptr);
|
|
519
|
+
uCode = this.gb18030.uChars[idx] + ptr - this.gb18030.gbChars[idx];
|
|
520
|
+
}
|
|
521
|
+
else if (uCode <= NODE_START) { // Go to next trie node.
|
|
522
|
+
nodeIdx = NODE_START - uCode;
|
|
523
|
+
continue;
|
|
524
|
+
}
|
|
525
|
+
else if (uCode <= SEQ_START) { // Output a sequence of chars.
|
|
526
|
+
var seq = this.decodeTableSeq[SEQ_START - uCode];
|
|
527
|
+
for (var k = 0; k < seq.length - 1; k++) {
|
|
528
|
+
uCode = seq[k];
|
|
529
|
+
newBuf[j++] = uCode & 0xFF;
|
|
530
|
+
newBuf[j++] = uCode >> 8;
|
|
531
|
+
}
|
|
532
|
+
uCode = seq[seq.length-1];
|
|
533
|
+
}
|
|
534
|
+
else
|
|
535
|
+
throw new Error("iconv-lite internal error: invalid decoding table value " + uCode + " at " + nodeIdx + "/" + curByte);
|
|
536
|
+
|
|
537
|
+
// Write the character to buffer, handling higher planes using surrogate pair.
|
|
538
|
+
if (uCode >= 0x10000) {
|
|
539
|
+
uCode -= 0x10000;
|
|
540
|
+
var uCodeLead = 0xD800 | (uCode >> 10);
|
|
541
|
+
newBuf[j++] = uCodeLead & 0xFF;
|
|
542
|
+
newBuf[j++] = uCodeLead >> 8;
|
|
543
|
+
|
|
544
|
+
uCode = 0xDC00 | (uCode & 0x3FF);
|
|
545
|
+
}
|
|
546
|
+
newBuf[j++] = uCode & 0xFF;
|
|
547
|
+
newBuf[j++] = uCode >> 8;
|
|
548
|
+
|
|
549
|
+
// Reset trie node.
|
|
550
|
+
nodeIdx = 0; seqStart = i+1;
|
|
551
|
+
}
|
|
552
|
+
|
|
553
|
+
this.nodeIdx = nodeIdx;
|
|
554
|
+
this.prevBytes = (seqStart >= 0)
|
|
555
|
+
? Array.prototype.slice.call(buf, seqStart)
|
|
556
|
+
: prevBytes.slice(seqStart + prevOffset).concat(Array.prototype.slice.call(buf));
|
|
557
|
+
|
|
558
|
+
return newBuf.slice(0, j).toString('ucs2');
|
|
559
|
+
}
|
|
560
|
+
|
|
561
|
+
DBCSDecoder.prototype.end = function() {
|
|
562
|
+
var ret = '';
|
|
563
|
+
|
|
564
|
+
// Try to parse all remaining chars.
|
|
565
|
+
while (this.prevBytes.length > 0) {
|
|
566
|
+
// Skip 1 character in the buffer.
|
|
567
|
+
ret += this.defaultCharUnicode;
|
|
568
|
+
var bytesArr = this.prevBytes.slice(1);
|
|
569
|
+
|
|
570
|
+
// Parse remaining as usual.
|
|
571
|
+
this.prevBytes = [];
|
|
572
|
+
this.nodeIdx = 0;
|
|
573
|
+
if (bytesArr.length > 0)
|
|
574
|
+
ret += this.write(bytesArr);
|
|
575
|
+
}
|
|
576
|
+
|
|
577
|
+
this.prevBytes = [];
|
|
578
|
+
this.nodeIdx = 0;
|
|
579
|
+
return ret;
|
|
580
|
+
}
|
|
581
|
+
|
|
582
|
+
// Binary search for GB18030. Returns largest i such that table[i] <= val.
|
|
583
|
+
function findIdx(table, val) {
|
|
584
|
+
if (table[0] > val)
|
|
585
|
+
return -1;
|
|
586
|
+
|
|
587
|
+
var l = 0, r = table.length;
|
|
588
|
+
while (l < r-1) { // always table[l] <= val < table[r]
|
|
589
|
+
var mid = l + ((r-l+1) >> 1);
|
|
590
|
+
if (table[mid] <= val)
|
|
591
|
+
l = mid;
|
|
592
|
+
else
|
|
593
|
+
r = mid;
|
|
594
|
+
}
|
|
595
|
+
return l;
|
|
596
|
+
}
|
|
597
|
+
|