@pnpm/exe 11.0.5 → 11.0.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 +0 -0
- package/dist/node-gyp-bin/node-gyp.cmd +0 -0
- package/dist/node_modules/node-gyp/.release-please-manifest.json +1 -1
- package/dist/node_modules/node-gyp/bin/node-gyp.js +0 -0
- package/dist/node_modules/node-gyp/gyp/.release-please-manifest.json +1 -1
- package/dist/node_modules/node-gyp/gyp/pylib/gyp/MSVSVersion.py +11 -3
- package/dist/node_modules/node-gyp/gyp/pylib/gyp/__init__.py +2 -3
- package/dist/node_modules/node-gyp/gyp/pylib/gyp/generator/msvs.py +1 -1
- package/dist/node_modules/node-gyp/gyp/pylib/gyp/generator/ninja.py +2 -1
- package/dist/node_modules/node-gyp/gyp/pylib/gyp/generator/ninja_test.py +26 -16
- package/dist/node_modules/node-gyp/gyp/pylib/gyp/mac_tool.py +1 -1
- package/dist/node_modules/node-gyp/gyp/pylib/gyp/msvs_emulation.py +1 -1
- package/dist/node_modules/node-gyp/gyp/pylib/gyp/simple_copy.py +2 -2
- package/dist/node_modules/node-gyp/gyp/pylib/packaging/metadata.py +3 -20
- package/dist/node_modules/node-gyp/gyp/pylib/packaging/tags.py +2 -14
- package/dist/node_modules/node-gyp/gyp/pyproject.toml +5 -3
- package/dist/node_modules/node-gyp/lib/download.js +55 -8
- package/dist/node_modules/node-gyp/lib/find-visualstudio.js +1 -1
- package/dist/node_modules/node-gyp/lib/process-release.js +17 -19
- package/dist/node_modules/node-gyp/package.json +3 -3
- package/dist/node_modules/{safer-buffer → undici}/LICENSE +1 -1
- package/dist/node_modules/undici/index-fetch.js +35 -0
- package/dist/node_modules/undici/index.js +169 -0
- package/dist/node_modules/undici/lib/api/abort-signal.js +57 -0
- package/dist/node_modules/undici/lib/api/api-connect.js +108 -0
- package/dist/node_modules/undici/lib/api/api-pipeline.js +251 -0
- package/dist/node_modules/undici/lib/api/api-request.js +214 -0
- package/dist/node_modules/undici/lib/api/api-stream.js +220 -0
- package/dist/node_modules/undici/lib/api/api-upgrade.js +108 -0
- package/dist/node_modules/undici/lib/api/index.js +7 -0
- package/dist/node_modules/undici/lib/api/readable.js +385 -0
- package/dist/node_modules/undici/lib/api/util.js +93 -0
- package/dist/node_modules/undici/lib/core/connect.js +240 -0
- package/dist/node_modules/undici/lib/core/constants.js +118 -0
- package/dist/node_modules/undici/lib/core/diagnostics.js +202 -0
- package/dist/node_modules/undici/lib/core/errors.js +425 -0
- package/dist/node_modules/undici/lib/core/request.js +405 -0
- package/dist/node_modules/undici/lib/core/symbols.js +67 -0
- package/dist/node_modules/undici/lib/core/tree.js +152 -0
- package/dist/node_modules/undici/lib/core/util.js +719 -0
- package/dist/node_modules/undici/lib/dispatcher/agent.js +130 -0
- package/dist/node_modules/undici/lib/dispatcher/balanced-pool.js +209 -0
- package/dist/node_modules/undici/lib/dispatcher/client-h1.js +1370 -0
- package/dist/node_modules/undici/lib/dispatcher/client-h2.js +744 -0
- package/dist/node_modules/undici/lib/dispatcher/client.js +623 -0
- package/dist/node_modules/undici/lib/dispatcher/dispatcher-base.js +198 -0
- package/dist/node_modules/undici/lib/dispatcher/dispatcher.js +65 -0
- package/dist/node_modules/undici/lib/dispatcher/env-http-proxy-agent.js +160 -0
- package/dist/node_modules/undici/lib/dispatcher/fixed-queue.js +117 -0
- package/dist/node_modules/undici/lib/dispatcher/pool-base.js +194 -0
- package/dist/node_modules/undici/lib/dispatcher/pool-stats.js +34 -0
- package/dist/node_modules/undici/lib/dispatcher/pool.js +107 -0
- package/dist/node_modules/undici/lib/dispatcher/proxy-agent.js +274 -0
- package/dist/node_modules/undici/lib/dispatcher/retry-agent.js +35 -0
- package/dist/node_modules/undici/lib/global.js +32 -0
- package/dist/node_modules/undici/lib/handler/decorator-handler.js +44 -0
- package/dist/node_modules/undici/lib/handler/redirect-handler.js +232 -0
- package/dist/node_modules/undici/lib/handler/retry-handler.js +374 -0
- package/dist/node_modules/undici/lib/interceptor/dns.js +375 -0
- package/dist/node_modules/undici/lib/interceptor/dump.js +123 -0
- package/dist/node_modules/undici/lib/interceptor/redirect-interceptor.js +21 -0
- package/dist/node_modules/undici/lib/interceptor/redirect.js +24 -0
- package/dist/node_modules/undici/lib/interceptor/response-error.js +86 -0
- package/dist/node_modules/undici/lib/interceptor/retry.js +19 -0
- package/dist/node_modules/undici/lib/llhttp/.gitkeep +0 -0
- package/dist/node_modules/undici/lib/llhttp/constants.js +278 -0
- package/dist/node_modules/undici/lib/llhttp/llhttp-wasm.js +5 -0
- package/dist/node_modules/undici/lib/llhttp/llhttp_simd-wasm.js +5 -0
- package/dist/node_modules/undici/lib/llhttp/utils.js +15 -0
- package/dist/node_modules/undici/lib/mock/mock-agent.js +160 -0
- package/dist/node_modules/undici/lib/mock/mock-client.js +59 -0
- package/dist/node_modules/undici/lib/mock/mock-errors.js +28 -0
- package/dist/node_modules/undici/lib/mock/mock-interceptor.js +207 -0
- package/dist/node_modules/undici/lib/mock/mock-pool.js +59 -0
- package/dist/node_modules/undici/lib/mock/mock-symbols.js +23 -0
- package/dist/node_modules/undici/lib/mock/mock-utils.js +367 -0
- package/dist/node_modules/undici/lib/mock/pending-interceptors-formatter.js +43 -0
- package/dist/node_modules/undici/lib/mock/pluralizer.js +29 -0
- package/dist/node_modules/undici/lib/util/timers.js +423 -0
- package/dist/node_modules/undici/lib/web/cache/cache.js +859 -0
- package/dist/node_modules/undici/lib/web/cache/cachestorage.js +152 -0
- package/dist/node_modules/undici/lib/web/cache/symbols.js +5 -0
- package/dist/node_modules/undici/lib/web/cache/util.js +45 -0
- package/dist/node_modules/undici/lib/web/cookies/constants.js +12 -0
- package/dist/node_modules/undici/lib/web/cookies/index.js +184 -0
- package/dist/node_modules/undici/lib/web/cookies/parse.js +317 -0
- package/dist/node_modules/undici/lib/web/cookies/util.js +282 -0
- package/dist/node_modules/undici/lib/web/eventsource/eventsource-stream.js +398 -0
- package/dist/node_modules/undici/lib/web/eventsource/eventsource.js +480 -0
- package/dist/node_modules/undici/lib/web/eventsource/util.js +37 -0
- package/dist/node_modules/{@npmcli/redact → undici/lib/web/fetch}/LICENSE +1 -1
- package/dist/node_modules/undici/lib/web/fetch/body.js +529 -0
- package/dist/node_modules/undici/lib/web/fetch/constants.js +124 -0
- package/dist/node_modules/undici/lib/web/fetch/data-url.js +744 -0
- package/dist/node_modules/undici/lib/web/fetch/dispatcher-weakref.js +46 -0
- package/dist/node_modules/undici/lib/web/fetch/file.js +126 -0
- package/dist/node_modules/undici/lib/web/fetch/formdata-parser.js +474 -0
- package/dist/node_modules/undici/lib/web/fetch/formdata.js +252 -0
- package/dist/node_modules/undici/lib/web/fetch/global.js +40 -0
- package/dist/node_modules/undici/lib/web/fetch/headers.js +687 -0
- package/dist/node_modules/undici/lib/web/fetch/index.js +2272 -0
- package/dist/node_modules/undici/lib/web/fetch/request.js +1037 -0
- package/dist/node_modules/undici/lib/web/fetch/response.js +610 -0
- package/dist/node_modules/undici/lib/web/fetch/symbols.js +9 -0
- package/dist/node_modules/undici/lib/web/fetch/util.js +1632 -0
- package/dist/node_modules/undici/lib/web/fetch/webidl.js +695 -0
- package/dist/node_modules/undici/lib/web/fileapi/encoding.js +290 -0
- package/dist/node_modules/undici/lib/web/fileapi/filereader.js +344 -0
- package/dist/node_modules/undici/lib/web/fileapi/progressevent.js +78 -0
- package/dist/node_modules/undici/lib/web/fileapi/symbols.js +10 -0
- package/dist/node_modules/undici/lib/web/fileapi/util.js +391 -0
- package/dist/node_modules/undici/lib/web/websocket/connection.js +371 -0
- package/dist/node_modules/undici/lib/web/websocket/constants.js +66 -0
- package/dist/node_modules/undici/lib/web/websocket/events.js +329 -0
- package/dist/node_modules/undici/lib/web/websocket/frame.js +96 -0
- package/dist/node_modules/undici/lib/web/websocket/permessage-deflate.js +100 -0
- package/dist/node_modules/undici/lib/web/websocket/receiver.js +490 -0
- package/dist/node_modules/undici/lib/web/websocket/sender.js +104 -0
- package/dist/node_modules/undici/lib/web/websocket/symbols.js +12 -0
- package/dist/node_modules/undici/lib/web/websocket/util.js +322 -0
- package/dist/node_modules/undici/lib/web/websocket/websocket.js +592 -0
- package/dist/node_modules/undici/package.json +160 -0
- package/dist/node_modules/undici/scripts/strip-comments.js +8 -0
- package/dist/node_modules/yallist/package.json +51 -12
- package/dist/pnpm.mjs +5915 -5140
- package/dist/worker.js +70 -67
- package/package.json +21 -13
- package/setup.js +17 -3
- package/dist/node_modules/@gar/promise-retry/LICENSE +0 -20
- package/dist/node_modules/@gar/promise-retry/lib/index.js +0 -62
- package/dist/node_modules/@gar/promise-retry/lib/retry.js +0 -109
- package/dist/node_modules/@gar/promise-retry/package.json +0 -45
- package/dist/node_modules/@npmcli/agent/lib/agents.js +0 -206
- package/dist/node_modules/@npmcli/agent/lib/dns.js +0 -53
- package/dist/node_modules/@npmcli/agent/lib/errors.js +0 -61
- package/dist/node_modules/@npmcli/agent/lib/index.js +0 -56
- package/dist/node_modules/@npmcli/agent/lib/options.js +0 -86
- package/dist/node_modules/@npmcli/agent/lib/proxy.js +0 -88
- package/dist/node_modules/@npmcli/agent/package.json +0 -60
- package/dist/node_modules/@npmcli/fs/lib/common/get-options.js +0 -20
- package/dist/node_modules/@npmcli/fs/lib/common/node.js +0 -9
- package/dist/node_modules/@npmcli/fs/lib/cp/LICENSE +0 -15
- package/dist/node_modules/@npmcli/fs/lib/cp/errors.js +0 -129
- package/dist/node_modules/@npmcli/fs/lib/cp/index.js +0 -22
- package/dist/node_modules/@npmcli/fs/lib/cp/polyfill.js +0 -428
- package/dist/node_modules/@npmcli/fs/lib/index.js +0 -13
- package/dist/node_modules/@npmcli/fs/lib/move-file.js +0 -78
- package/dist/node_modules/@npmcli/fs/lib/readdir-scoped.js +0 -20
- package/dist/node_modules/@npmcli/fs/lib/with-temp-dir.js +0 -39
- package/dist/node_modules/@npmcli/fs/package.json +0 -54
- package/dist/node_modules/@npmcli/redact/lib/deep-map.js +0 -71
- package/dist/node_modules/@npmcli/redact/lib/error.js +0 -28
- package/dist/node_modules/@npmcli/redact/lib/index.js +0 -44
- package/dist/node_modules/@npmcli/redact/lib/matchers.js +0 -88
- package/dist/node_modules/@npmcli/redact/lib/server.js +0 -59
- package/dist/node_modules/@npmcli/redact/lib/utils.js +0 -202
- package/dist/node_modules/@npmcli/redact/package.json +0 -52
- package/dist/node_modules/agent-base/LICENSE +0 -22
- package/dist/node_modules/agent-base/dist/helpers.js +0 -66
- package/dist/node_modules/agent-base/dist/index.js +0 -178
- package/dist/node_modules/agent-base/package.json +0 -46
- package/dist/node_modules/balanced-match/dist/commonjs/index.js +0 -59
- package/dist/node_modules/balanced-match/dist/esm/index.js +0 -54
- package/dist/node_modules/balanced-match/package.json +0 -68
- package/dist/node_modules/brace-expansion/LICENSE +0 -23
- package/dist/node_modules/brace-expansion/dist/commonjs/index.js +0 -201
- package/dist/node_modules/brace-expansion/dist/commonjs/package.json +0 -3
- package/dist/node_modules/brace-expansion/dist/esm/index.js +0 -197
- package/dist/node_modules/brace-expansion/dist/esm/package.json +0 -3
- package/dist/node_modules/brace-expansion/package.json +0 -64
- package/dist/node_modules/cacache/lib/content/path.js +0 -29
- package/dist/node_modules/cacache/lib/content/read.js +0 -165
- package/dist/node_modules/cacache/lib/content/rm.js +0 -18
- package/dist/node_modules/cacache/lib/content/write.js +0 -206
- package/dist/node_modules/cacache/lib/entry-index.js +0 -336
- package/dist/node_modules/cacache/lib/get.js +0 -170
- package/dist/node_modules/cacache/lib/index.js +0 -42
- package/dist/node_modules/cacache/lib/memoization.js +0 -72
- package/dist/node_modules/cacache/lib/put.js +0 -80
- package/dist/node_modules/cacache/lib/rm.js +0 -31
- package/dist/node_modules/cacache/lib/util/glob.js +0 -7
- package/dist/node_modules/cacache/lib/util/hash-to-segments.js +0 -7
- package/dist/node_modules/cacache/lib/util/tmp.js +0 -32
- package/dist/node_modules/cacache/lib/verify.js +0 -258
- package/dist/node_modules/cacache/package.json +0 -81
- package/dist/node_modules/debug/LICENSE +0 -20
- package/dist/node_modules/debug/package.json +0 -64
- package/dist/node_modules/debug/src/browser.js +0 -272
- package/dist/node_modules/debug/src/common.js +0 -292
- package/dist/node_modules/debug/src/index.js +0 -10
- package/dist/node_modules/debug/src/node.js +0 -263
- package/dist/node_modules/fs-minipass/LICENSE +0 -15
- package/dist/node_modules/fs-minipass/lib/index.js +0 -443
- package/dist/node_modules/fs-minipass/package.json +0 -54
- package/dist/node_modules/glob/dist/commonjs/glob.js +0 -248
- package/dist/node_modules/glob/dist/commonjs/has-magic.js +0 -27
- package/dist/node_modules/glob/dist/commonjs/ignore.js +0 -119
- package/dist/node_modules/glob/dist/commonjs/index.js +0 -68
- package/dist/node_modules/glob/dist/commonjs/index.min.js +0 -4
- package/dist/node_modules/glob/dist/commonjs/package.json +0 -3
- package/dist/node_modules/glob/dist/commonjs/pattern.js +0 -223
- package/dist/node_modules/glob/dist/commonjs/processor.js +0 -301
- package/dist/node_modules/glob/dist/commonjs/walker.js +0 -387
- package/dist/node_modules/glob/dist/esm/glob.js +0 -244
- package/dist/node_modules/glob/dist/esm/has-magic.js +0 -23
- package/dist/node_modules/glob/dist/esm/ignore.js +0 -115
- package/dist/node_modules/glob/dist/esm/index.js +0 -55
- package/dist/node_modules/glob/dist/esm/index.min.js +0 -4
- package/dist/node_modules/glob/dist/esm/package.json +0 -3
- package/dist/node_modules/glob/dist/esm/pattern.js +0 -219
- package/dist/node_modules/glob/dist/esm/processor.js +0 -294
- package/dist/node_modules/glob/dist/esm/walker.js +0 -381
- package/dist/node_modules/glob/package.json +0 -98
- package/dist/node_modules/http-cache-semantics/LICENSE +0 -9
- package/dist/node_modules/http-cache-semantics/index.js +0 -928
- package/dist/node_modules/http-cache-semantics/package.json +0 -22
- package/dist/node_modules/http-proxy-agent/LICENSE +0 -22
- package/dist/node_modules/http-proxy-agent/dist/index.js +0 -148
- package/dist/node_modules/http-proxy-agent/package.json +0 -47
- package/dist/node_modules/https-proxy-agent/LICENSE +0 -22
- package/dist/node_modules/https-proxy-agent/dist/index.js +0 -180
- package/dist/node_modules/https-proxy-agent/dist/parse-proxy-response.js +0 -101
- package/dist/node_modules/https-proxy-agent/package.json +0 -50
- package/dist/node_modules/iconv-lite/LICENSE +0 -21
- package/dist/node_modules/iconv-lite/encodings/dbcs-codec.js +0 -532
- package/dist/node_modules/iconv-lite/encodings/dbcs-data.js +0 -185
- package/dist/node_modules/iconv-lite/encodings/index.js +0 -23
- package/dist/node_modules/iconv-lite/encodings/internal.js +0 -218
- package/dist/node_modules/iconv-lite/encodings/sbcs-codec.js +0 -75
- package/dist/node_modules/iconv-lite/encodings/sbcs-data-generated.js +0 -451
- package/dist/node_modules/iconv-lite/encodings/sbcs-data.js +0 -178
- package/dist/node_modules/iconv-lite/encodings/tables/big5-added.json +0 -122
- package/dist/node_modules/iconv-lite/encodings/tables/cp936.json +0 -264
- package/dist/node_modules/iconv-lite/encodings/tables/cp949.json +0 -273
- package/dist/node_modules/iconv-lite/encodings/tables/cp950.json +0 -177
- package/dist/node_modules/iconv-lite/encodings/tables/eucjp.json +0 -182
- package/dist/node_modules/iconv-lite/encodings/tables/gb18030-ranges.json +0 -1
- package/dist/node_modules/iconv-lite/encodings/tables/gbk-added.json +0 -56
- package/dist/node_modules/iconv-lite/encodings/tables/shiftjis.json +0 -125
- package/dist/node_modules/iconv-lite/encodings/utf16.js +0 -187
- package/dist/node_modules/iconv-lite/encodings/utf32.js +0 -307
- package/dist/node_modules/iconv-lite/encodings/utf7.js +0 -283
- package/dist/node_modules/iconv-lite/lib/bom-handling.js +0 -48
- package/dist/node_modules/iconv-lite/lib/helpers/merge-exports.js +0 -13
- package/dist/node_modules/iconv-lite/lib/index.js +0 -182
- package/dist/node_modules/iconv-lite/lib/streams.js +0 -105
- package/dist/node_modules/iconv-lite/package.json +0 -70
- package/dist/node_modules/ip-address/LICENSE +0 -19
- package/dist/node_modules/ip-address/dist/address-error.js +0 -12
- package/dist/node_modules/ip-address/dist/common.js +0 -46
- package/dist/node_modules/ip-address/dist/ip-address.js +0 -35
- package/dist/node_modules/ip-address/dist/ipv4.js +0 -360
- package/dist/node_modules/ip-address/dist/ipv6.js +0 -1003
- package/dist/node_modules/ip-address/dist/v4/constants.js +0 -8
- package/dist/node_modules/ip-address/dist/v6/constants.js +0 -76
- package/dist/node_modules/ip-address/dist/v6/helpers.js +0 -45
- package/dist/node_modules/ip-address/dist/v6/regular-expressions.js +0 -95
- package/dist/node_modules/ip-address/package.json +0 -78
- package/dist/node_modules/lru-cache/dist/commonjs/diagnostics-channel.js +0 -10
- package/dist/node_modules/lru-cache/dist/commonjs/index.js +0 -1692
- package/dist/node_modules/lru-cache/dist/commonjs/index.min.js +0 -2
- package/dist/node_modules/lru-cache/dist/commonjs/package.json +0 -3
- package/dist/node_modules/lru-cache/dist/esm/browser/diagnostics-channel.js +0 -4
- package/dist/node_modules/lru-cache/dist/esm/browser/index.js +0 -1688
- package/dist/node_modules/lru-cache/dist/esm/browser/index.min.js +0 -2
- package/dist/node_modules/lru-cache/dist/esm/diagnostics-channel.js +0 -19
- package/dist/node_modules/lru-cache/dist/esm/index.js +0 -1688
- package/dist/node_modules/lru-cache/dist/esm/index.min.js +0 -2
- package/dist/node_modules/lru-cache/dist/esm/node/diagnostics-channel.js +0 -7
- package/dist/node_modules/lru-cache/dist/esm/node/index.js +0 -1688
- package/dist/node_modules/lru-cache/dist/esm/node/index.min.js +0 -2
- package/dist/node_modules/lru-cache/dist/esm/package.json +0 -3
- package/dist/node_modules/lru-cache/package.json +0 -126
- package/dist/node_modules/make-fetch-happen/LICENSE +0 -16
- package/dist/node_modules/make-fetch-happen/lib/cache/entry.js +0 -471
- package/dist/node_modules/make-fetch-happen/lib/cache/errors.js +0 -11
- package/dist/node_modules/make-fetch-happen/lib/cache/index.js +0 -49
- package/dist/node_modules/make-fetch-happen/lib/cache/key.js +0 -17
- package/dist/node_modules/make-fetch-happen/lib/cache/policy.js +0 -161
- package/dist/node_modules/make-fetch-happen/lib/fetch.js +0 -118
- package/dist/node_modules/make-fetch-happen/lib/index.js +0 -41
- package/dist/node_modules/make-fetch-happen/lib/options.js +0 -59
- package/dist/node_modules/make-fetch-happen/lib/pipeline.js +0 -41
- package/dist/node_modules/make-fetch-happen/lib/remote.js +0 -134
- package/dist/node_modules/make-fetch-happen/package.json +0 -75
- package/dist/node_modules/minimatch/dist/commonjs/assert-valid-pattern.js +0 -14
- package/dist/node_modules/minimatch/dist/commonjs/ast.js +0 -845
- package/dist/node_modules/minimatch/dist/commonjs/brace-expressions.js +0 -150
- package/dist/node_modules/minimatch/dist/commonjs/escape.js +0 -30
- package/dist/node_modules/minimatch/dist/commonjs/index.js +0 -1127
- package/dist/node_modules/minimatch/dist/commonjs/package.json +0 -3
- package/dist/node_modules/minimatch/dist/commonjs/unescape.js +0 -38
- package/dist/node_modules/minimatch/dist/esm/assert-valid-pattern.js +0 -10
- package/dist/node_modules/minimatch/dist/esm/ast.js +0 -841
- package/dist/node_modules/minimatch/dist/esm/brace-expressions.js +0 -146
- package/dist/node_modules/minimatch/dist/esm/escape.js +0 -26
- package/dist/node_modules/minimatch/dist/esm/index.js +0 -1114
- package/dist/node_modules/minimatch/dist/esm/package.json +0 -3
- package/dist/node_modules/minimatch/dist/esm/unescape.js +0 -34
- package/dist/node_modules/minimatch/package.json +0 -73
- package/dist/node_modules/minipass-collect/LICENSE +0 -15
- package/dist/node_modules/minipass-collect/index.js +0 -71
- package/dist/node_modules/minipass-collect/package.json +0 -30
- package/dist/node_modules/minipass-fetch/LICENSE +0 -28
- package/dist/node_modules/minipass-fetch/lib/abort-error.js +0 -17
- package/dist/node_modules/minipass-fetch/lib/blob.js +0 -97
- package/dist/node_modules/minipass-fetch/lib/body.js +0 -360
- package/dist/node_modules/minipass-fetch/lib/fetch-error.js +0 -32
- package/dist/node_modules/minipass-fetch/lib/headers.js +0 -267
- package/dist/node_modules/minipass-fetch/lib/index.js +0 -376
- package/dist/node_modules/minipass-fetch/lib/request.js +0 -282
- package/dist/node_modules/minipass-fetch/lib/response.js +0 -90
- package/dist/node_modules/minipass-fetch/package.json +0 -70
- package/dist/node_modules/minipass-flush/index.js +0 -39
- package/dist/node_modules/minipass-flush/node_modules/minipass/LICENSE +0 -15
- package/dist/node_modules/minipass-flush/node_modules/minipass/index.js +0 -649
- package/dist/node_modules/minipass-flush/node_modules/minipass/package.json +0 -56
- package/dist/node_modules/minipass-flush/package.json +0 -42
- package/dist/node_modules/minipass-pipeline/LICENSE +0 -15
- package/dist/node_modules/minipass-pipeline/index.js +0 -128
- package/dist/node_modules/minipass-pipeline/node_modules/minipass/LICENSE +0 -15
- package/dist/node_modules/minipass-pipeline/node_modules/minipass/index.js +0 -649
- package/dist/node_modules/minipass-pipeline/node_modules/minipass/package.json +0 -56
- package/dist/node_modules/minipass-pipeline/package.json +0 -29
- package/dist/node_modules/minipass-sized/LICENSE +0 -15
- package/dist/node_modules/minipass-sized/dist/commonjs/index.js +0 -69
- package/dist/node_modules/minipass-sized/dist/commonjs/package.json +0 -3
- package/dist/node_modules/minipass-sized/dist/esm/index.js +0 -64
- package/dist/node_modules/minipass-sized/dist/esm/package.json +0 -3
- package/dist/node_modules/minipass-sized/package.json +0 -69
- package/dist/node_modules/ms/index.js +0 -162
- package/dist/node_modules/ms/package.json +0 -38
- package/dist/node_modules/negotiator/LICENSE +0 -24
- package/dist/node_modules/negotiator/index.js +0 -83
- package/dist/node_modules/negotiator/lib/charset.js +0 -169
- package/dist/node_modules/negotiator/lib/encoding.js +0 -205
- package/dist/node_modules/negotiator/lib/language.js +0 -179
- package/dist/node_modules/negotiator/lib/mediaType.js +0 -294
- package/dist/node_modules/negotiator/package.json +0 -43
- package/dist/node_modules/p-map/index.js +0 -283
- package/dist/node_modules/p-map/license +0 -9
- package/dist/node_modules/p-map/package.json +0 -57
- package/dist/node_modules/path-scurry/dist/commonjs/index.js +0 -2018
- package/dist/node_modules/path-scurry/dist/commonjs/package.json +0 -3
- package/dist/node_modules/path-scurry/dist/esm/index.js +0 -1983
- package/dist/node_modules/path-scurry/dist/esm/package.json +0 -3
- package/dist/node_modules/path-scurry/package.json +0 -72
- package/dist/node_modules/safer-buffer/dangerous.js +0 -58
- package/dist/node_modules/safer-buffer/package.json +0 -34
- package/dist/node_modules/safer-buffer/safer.js +0 -77
- package/dist/node_modules/safer-buffer/tests.js +0 -406
- package/dist/node_modules/smart-buffer/.prettierrc.yaml +0 -5
- package/dist/node_modules/smart-buffer/LICENSE +0 -20
- package/dist/node_modules/smart-buffer/build/smartbuffer.js +0 -1233
- package/dist/node_modules/smart-buffer/build/utils.js +0 -108
- package/dist/node_modules/smart-buffer/package.json +0 -79
- package/dist/node_modules/socks/.eslintrc.cjs +0 -11
- package/dist/node_modules/socks/.prettierrc.yaml +0 -7
- package/dist/node_modules/socks/LICENSE +0 -20
- package/dist/node_modules/socks/build/client/socksclient.js +0 -793
- package/dist/node_modules/socks/build/common/constants.js +0 -108
- package/dist/node_modules/socks/build/common/helpers.js +0 -167
- package/dist/node_modules/socks/build/common/receivebuffer.js +0 -43
- package/dist/node_modules/socks/build/common/util.js +0 -25
- package/dist/node_modules/socks/build/index.js +0 -18
- package/dist/node_modules/socks/package.json +0 -58
- package/dist/node_modules/socks-proxy-agent/LICENSE +0 -22
- package/dist/node_modules/socks-proxy-agent/dist/index.js +0 -195
- package/dist/node_modules/socks-proxy-agent/package.json +0 -142
- package/dist/node_modules/ssri/lib/index.js +0 -550
- package/dist/node_modules/ssri/package.json +0 -66
- package/dist/node_modules/tar/node_modules/yallist/dist/commonjs/package.json +0 -3
- package/dist/node_modules/tar/node_modules/yallist/dist/esm/package.json +0 -3
- package/dist/node_modules/tar/node_modules/yallist/package.json +0 -68
- package/dist/node_modules/yallist/LICENSE +0 -15
- package/dist/node_modules/yallist/iterator.js +0 -8
- package/dist/node_modules/yallist/yallist.js +0 -426
- /package/dist/node_modules/{tar/node_modules/yallist → yallist}/dist/commonjs/index.js +0 -0
- /package/dist/node_modules/{balanced-match → yallist}/dist/commonjs/package.json +0 -0
- /package/dist/node_modules/{tar/node_modules/yallist → yallist}/dist/esm/index.js +0 -0
- /package/dist/node_modules/{balanced-match → yallist}/dist/esm/package.json +0 -0
|
@@ -1,201 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.EXPANSION_MAX = void 0;
|
|
4
|
-
exports.expand = expand;
|
|
5
|
-
const balanced_match_1 = require("balanced-match");
|
|
6
|
-
const escSlash = '\0SLASH' + Math.random() + '\0';
|
|
7
|
-
const escOpen = '\0OPEN' + Math.random() + '\0';
|
|
8
|
-
const escClose = '\0CLOSE' + Math.random() + '\0';
|
|
9
|
-
const escComma = '\0COMMA' + Math.random() + '\0';
|
|
10
|
-
const escPeriod = '\0PERIOD' + Math.random() + '\0';
|
|
11
|
-
const escSlashPattern = new RegExp(escSlash, 'g');
|
|
12
|
-
const escOpenPattern = new RegExp(escOpen, 'g');
|
|
13
|
-
const escClosePattern = new RegExp(escClose, 'g');
|
|
14
|
-
const escCommaPattern = new RegExp(escComma, 'g');
|
|
15
|
-
const escPeriodPattern = new RegExp(escPeriod, 'g');
|
|
16
|
-
const slashPattern = /\\\\/g;
|
|
17
|
-
const openPattern = /\\{/g;
|
|
18
|
-
const closePattern = /\\}/g;
|
|
19
|
-
const commaPattern = /\\,/g;
|
|
20
|
-
const periodPattern = /\\\./g;
|
|
21
|
-
exports.EXPANSION_MAX = 100_000;
|
|
22
|
-
function numeric(str) {
|
|
23
|
-
return !isNaN(str) ? parseInt(str, 10) : str.charCodeAt(0);
|
|
24
|
-
}
|
|
25
|
-
function escapeBraces(str) {
|
|
26
|
-
return str
|
|
27
|
-
.replace(slashPattern, escSlash)
|
|
28
|
-
.replace(openPattern, escOpen)
|
|
29
|
-
.replace(closePattern, escClose)
|
|
30
|
-
.replace(commaPattern, escComma)
|
|
31
|
-
.replace(periodPattern, escPeriod);
|
|
32
|
-
}
|
|
33
|
-
function unescapeBraces(str) {
|
|
34
|
-
return str
|
|
35
|
-
.replace(escSlashPattern, '\\')
|
|
36
|
-
.replace(escOpenPattern, '{')
|
|
37
|
-
.replace(escClosePattern, '}')
|
|
38
|
-
.replace(escCommaPattern, ',')
|
|
39
|
-
.replace(escPeriodPattern, '.');
|
|
40
|
-
}
|
|
41
|
-
/**
|
|
42
|
-
* Basically just str.split(","), but handling cases
|
|
43
|
-
* where we have nested braced sections, which should be
|
|
44
|
-
* treated as individual members, like {a,{b,c},d}
|
|
45
|
-
*/
|
|
46
|
-
function parseCommaParts(str) {
|
|
47
|
-
if (!str) {
|
|
48
|
-
return [''];
|
|
49
|
-
}
|
|
50
|
-
const parts = [];
|
|
51
|
-
const m = (0, balanced_match_1.balanced)('{', '}', str);
|
|
52
|
-
if (!m) {
|
|
53
|
-
return str.split(',');
|
|
54
|
-
}
|
|
55
|
-
const { pre, body, post } = m;
|
|
56
|
-
const p = pre.split(',');
|
|
57
|
-
p[p.length - 1] += '{' + body + '}';
|
|
58
|
-
const postParts = parseCommaParts(post);
|
|
59
|
-
if (post.length) {
|
|
60
|
-
;
|
|
61
|
-
p[p.length - 1] += postParts.shift();
|
|
62
|
-
p.push.apply(p, postParts);
|
|
63
|
-
}
|
|
64
|
-
parts.push.apply(parts, p);
|
|
65
|
-
return parts;
|
|
66
|
-
}
|
|
67
|
-
function expand(str, options = {}) {
|
|
68
|
-
if (!str) {
|
|
69
|
-
return [];
|
|
70
|
-
}
|
|
71
|
-
const { max = exports.EXPANSION_MAX } = options;
|
|
72
|
-
// I don't know why Bash 4.3 does this, but it does.
|
|
73
|
-
// Anything starting with {} will have the first two bytes preserved
|
|
74
|
-
// but *only* at the top level, so {},a}b will not expand to anything,
|
|
75
|
-
// but a{},b}c will be expanded to [a}c,abc].
|
|
76
|
-
// One could argue that this is a bug in Bash, but since the goal of
|
|
77
|
-
// this module is to match Bash's rules, we escape a leading {}
|
|
78
|
-
if (str.slice(0, 2) === '{}') {
|
|
79
|
-
str = '\\{\\}' + str.slice(2);
|
|
80
|
-
}
|
|
81
|
-
return expand_(escapeBraces(str), max, true).map(unescapeBraces);
|
|
82
|
-
}
|
|
83
|
-
function embrace(str) {
|
|
84
|
-
return '{' + str + '}';
|
|
85
|
-
}
|
|
86
|
-
function isPadded(el) {
|
|
87
|
-
return /^-?0\d/.test(el);
|
|
88
|
-
}
|
|
89
|
-
function lte(i, y) {
|
|
90
|
-
return i <= y;
|
|
91
|
-
}
|
|
92
|
-
function gte(i, y) {
|
|
93
|
-
return i >= y;
|
|
94
|
-
}
|
|
95
|
-
function expand_(str, max, isTop) {
|
|
96
|
-
/** @type {string[]} */
|
|
97
|
-
const expansions = [];
|
|
98
|
-
const m = (0, balanced_match_1.balanced)('{', '}', str);
|
|
99
|
-
if (!m)
|
|
100
|
-
return [str];
|
|
101
|
-
// no need to expand pre, since it is guaranteed to be free of brace-sets
|
|
102
|
-
const pre = m.pre;
|
|
103
|
-
const post = m.post.length ? expand_(m.post, max, false) : [''];
|
|
104
|
-
if (/\$$/.test(m.pre)) {
|
|
105
|
-
for (let k = 0; k < post.length && k < max; k++) {
|
|
106
|
-
const expansion = pre + '{' + m.body + '}' + post[k];
|
|
107
|
-
expansions.push(expansion);
|
|
108
|
-
}
|
|
109
|
-
}
|
|
110
|
-
else {
|
|
111
|
-
const isNumericSequence = /^-?\d+\.\.-?\d+(?:\.\.-?\d+)?$/.test(m.body);
|
|
112
|
-
const isAlphaSequence = /^[a-zA-Z]\.\.[a-zA-Z](?:\.\.-?\d+)?$/.test(m.body);
|
|
113
|
-
const isSequence = isNumericSequence || isAlphaSequence;
|
|
114
|
-
const isOptions = m.body.indexOf(',') >= 0;
|
|
115
|
-
if (!isSequence && !isOptions) {
|
|
116
|
-
// {a},b}
|
|
117
|
-
if (m.post.match(/,(?!,).*\}/)) {
|
|
118
|
-
str = m.pre + '{' + m.body + escClose + m.post;
|
|
119
|
-
return expand_(str, max, true);
|
|
120
|
-
}
|
|
121
|
-
return [str];
|
|
122
|
-
}
|
|
123
|
-
let n;
|
|
124
|
-
if (isSequence) {
|
|
125
|
-
n = m.body.split(/\.\./);
|
|
126
|
-
}
|
|
127
|
-
else {
|
|
128
|
-
n = parseCommaParts(m.body);
|
|
129
|
-
if (n.length === 1 && n[0] !== undefined) {
|
|
130
|
-
// x{{a,b}}y ==> x{a}y x{b}y
|
|
131
|
-
n = expand_(n[0], max, false).map(embrace);
|
|
132
|
-
//XXX is this necessary? Can't seem to hit it in tests.
|
|
133
|
-
/* c8 ignore start */
|
|
134
|
-
if (n.length === 1) {
|
|
135
|
-
return post.map(p => m.pre + n[0] + p);
|
|
136
|
-
}
|
|
137
|
-
/* c8 ignore stop */
|
|
138
|
-
}
|
|
139
|
-
}
|
|
140
|
-
// at this point, n is the parts, and we know it's not a comma set
|
|
141
|
-
// with a single entry.
|
|
142
|
-
let N;
|
|
143
|
-
if (isSequence && n[0] !== undefined && n[1] !== undefined) {
|
|
144
|
-
const x = numeric(n[0]);
|
|
145
|
-
const y = numeric(n[1]);
|
|
146
|
-
const width = Math.max(n[0].length, n[1].length);
|
|
147
|
-
let incr = n.length === 3 && n[2] !== undefined ?
|
|
148
|
-
Math.max(Math.abs(numeric(n[2])), 1)
|
|
149
|
-
: 1;
|
|
150
|
-
let test = lte;
|
|
151
|
-
const reverse = y < x;
|
|
152
|
-
if (reverse) {
|
|
153
|
-
incr *= -1;
|
|
154
|
-
test = gte;
|
|
155
|
-
}
|
|
156
|
-
const pad = n.some(isPadded);
|
|
157
|
-
N = [];
|
|
158
|
-
for (let i = x; test(i, y); i += incr) {
|
|
159
|
-
let c;
|
|
160
|
-
if (isAlphaSequence) {
|
|
161
|
-
c = String.fromCharCode(i);
|
|
162
|
-
if (c === '\\') {
|
|
163
|
-
c = '';
|
|
164
|
-
}
|
|
165
|
-
}
|
|
166
|
-
else {
|
|
167
|
-
c = String(i);
|
|
168
|
-
if (pad) {
|
|
169
|
-
const need = width - c.length;
|
|
170
|
-
if (need > 0) {
|
|
171
|
-
const z = new Array(need + 1).join('0');
|
|
172
|
-
if (i < 0) {
|
|
173
|
-
c = '-' + z + c.slice(1);
|
|
174
|
-
}
|
|
175
|
-
else {
|
|
176
|
-
c = z + c;
|
|
177
|
-
}
|
|
178
|
-
}
|
|
179
|
-
}
|
|
180
|
-
}
|
|
181
|
-
N.push(c);
|
|
182
|
-
}
|
|
183
|
-
}
|
|
184
|
-
else {
|
|
185
|
-
N = [];
|
|
186
|
-
for (let j = 0; j < n.length; j++) {
|
|
187
|
-
N.push.apply(N, expand_(n[j], max, false));
|
|
188
|
-
}
|
|
189
|
-
}
|
|
190
|
-
for (let j = 0; j < N.length; j++) {
|
|
191
|
-
for (let k = 0; k < post.length && expansions.length < max; k++) {
|
|
192
|
-
const expansion = pre + N[j] + post[k];
|
|
193
|
-
if (!isTop || isSequence || expansion) {
|
|
194
|
-
expansions.push(expansion);
|
|
195
|
-
}
|
|
196
|
-
}
|
|
197
|
-
}
|
|
198
|
-
}
|
|
199
|
-
return expansions;
|
|
200
|
-
}
|
|
201
|
-
//# sourceMappingURL=index.js.map
|
|
@@ -1,197 +0,0 @@
|
|
|
1
|
-
import { balanced } from 'balanced-match';
|
|
2
|
-
const escSlash = '\0SLASH' + Math.random() + '\0';
|
|
3
|
-
const escOpen = '\0OPEN' + Math.random() + '\0';
|
|
4
|
-
const escClose = '\0CLOSE' + Math.random() + '\0';
|
|
5
|
-
const escComma = '\0COMMA' + Math.random() + '\0';
|
|
6
|
-
const escPeriod = '\0PERIOD' + Math.random() + '\0';
|
|
7
|
-
const escSlashPattern = new RegExp(escSlash, 'g');
|
|
8
|
-
const escOpenPattern = new RegExp(escOpen, 'g');
|
|
9
|
-
const escClosePattern = new RegExp(escClose, 'g');
|
|
10
|
-
const escCommaPattern = new RegExp(escComma, 'g');
|
|
11
|
-
const escPeriodPattern = new RegExp(escPeriod, 'g');
|
|
12
|
-
const slashPattern = /\\\\/g;
|
|
13
|
-
const openPattern = /\\{/g;
|
|
14
|
-
const closePattern = /\\}/g;
|
|
15
|
-
const commaPattern = /\\,/g;
|
|
16
|
-
const periodPattern = /\\\./g;
|
|
17
|
-
export const EXPANSION_MAX = 100_000;
|
|
18
|
-
function numeric(str) {
|
|
19
|
-
return !isNaN(str) ? parseInt(str, 10) : str.charCodeAt(0);
|
|
20
|
-
}
|
|
21
|
-
function escapeBraces(str) {
|
|
22
|
-
return str
|
|
23
|
-
.replace(slashPattern, escSlash)
|
|
24
|
-
.replace(openPattern, escOpen)
|
|
25
|
-
.replace(closePattern, escClose)
|
|
26
|
-
.replace(commaPattern, escComma)
|
|
27
|
-
.replace(periodPattern, escPeriod);
|
|
28
|
-
}
|
|
29
|
-
function unescapeBraces(str) {
|
|
30
|
-
return str
|
|
31
|
-
.replace(escSlashPattern, '\\')
|
|
32
|
-
.replace(escOpenPattern, '{')
|
|
33
|
-
.replace(escClosePattern, '}')
|
|
34
|
-
.replace(escCommaPattern, ',')
|
|
35
|
-
.replace(escPeriodPattern, '.');
|
|
36
|
-
}
|
|
37
|
-
/**
|
|
38
|
-
* Basically just str.split(","), but handling cases
|
|
39
|
-
* where we have nested braced sections, which should be
|
|
40
|
-
* treated as individual members, like {a,{b,c},d}
|
|
41
|
-
*/
|
|
42
|
-
function parseCommaParts(str) {
|
|
43
|
-
if (!str) {
|
|
44
|
-
return [''];
|
|
45
|
-
}
|
|
46
|
-
const parts = [];
|
|
47
|
-
const m = balanced('{', '}', str);
|
|
48
|
-
if (!m) {
|
|
49
|
-
return str.split(',');
|
|
50
|
-
}
|
|
51
|
-
const { pre, body, post } = m;
|
|
52
|
-
const p = pre.split(',');
|
|
53
|
-
p[p.length - 1] += '{' + body + '}';
|
|
54
|
-
const postParts = parseCommaParts(post);
|
|
55
|
-
if (post.length) {
|
|
56
|
-
;
|
|
57
|
-
p[p.length - 1] += postParts.shift();
|
|
58
|
-
p.push.apply(p, postParts);
|
|
59
|
-
}
|
|
60
|
-
parts.push.apply(parts, p);
|
|
61
|
-
return parts;
|
|
62
|
-
}
|
|
63
|
-
export function expand(str, options = {}) {
|
|
64
|
-
if (!str) {
|
|
65
|
-
return [];
|
|
66
|
-
}
|
|
67
|
-
const { max = EXPANSION_MAX } = options;
|
|
68
|
-
// I don't know why Bash 4.3 does this, but it does.
|
|
69
|
-
// Anything starting with {} will have the first two bytes preserved
|
|
70
|
-
// but *only* at the top level, so {},a}b will not expand to anything,
|
|
71
|
-
// but a{},b}c will be expanded to [a}c,abc].
|
|
72
|
-
// One could argue that this is a bug in Bash, but since the goal of
|
|
73
|
-
// this module is to match Bash's rules, we escape a leading {}
|
|
74
|
-
if (str.slice(0, 2) === '{}') {
|
|
75
|
-
str = '\\{\\}' + str.slice(2);
|
|
76
|
-
}
|
|
77
|
-
return expand_(escapeBraces(str), max, true).map(unescapeBraces);
|
|
78
|
-
}
|
|
79
|
-
function embrace(str) {
|
|
80
|
-
return '{' + str + '}';
|
|
81
|
-
}
|
|
82
|
-
function isPadded(el) {
|
|
83
|
-
return /^-?0\d/.test(el);
|
|
84
|
-
}
|
|
85
|
-
function lte(i, y) {
|
|
86
|
-
return i <= y;
|
|
87
|
-
}
|
|
88
|
-
function gte(i, y) {
|
|
89
|
-
return i >= y;
|
|
90
|
-
}
|
|
91
|
-
function expand_(str, max, isTop) {
|
|
92
|
-
/** @type {string[]} */
|
|
93
|
-
const expansions = [];
|
|
94
|
-
const m = balanced('{', '}', str);
|
|
95
|
-
if (!m)
|
|
96
|
-
return [str];
|
|
97
|
-
// no need to expand pre, since it is guaranteed to be free of brace-sets
|
|
98
|
-
const pre = m.pre;
|
|
99
|
-
const post = m.post.length ? expand_(m.post, max, false) : [''];
|
|
100
|
-
if (/\$$/.test(m.pre)) {
|
|
101
|
-
for (let k = 0; k < post.length && k < max; k++) {
|
|
102
|
-
const expansion = pre + '{' + m.body + '}' + post[k];
|
|
103
|
-
expansions.push(expansion);
|
|
104
|
-
}
|
|
105
|
-
}
|
|
106
|
-
else {
|
|
107
|
-
const isNumericSequence = /^-?\d+\.\.-?\d+(?:\.\.-?\d+)?$/.test(m.body);
|
|
108
|
-
const isAlphaSequence = /^[a-zA-Z]\.\.[a-zA-Z](?:\.\.-?\d+)?$/.test(m.body);
|
|
109
|
-
const isSequence = isNumericSequence || isAlphaSequence;
|
|
110
|
-
const isOptions = m.body.indexOf(',') >= 0;
|
|
111
|
-
if (!isSequence && !isOptions) {
|
|
112
|
-
// {a},b}
|
|
113
|
-
if (m.post.match(/,(?!,).*\}/)) {
|
|
114
|
-
str = m.pre + '{' + m.body + escClose + m.post;
|
|
115
|
-
return expand_(str, max, true);
|
|
116
|
-
}
|
|
117
|
-
return [str];
|
|
118
|
-
}
|
|
119
|
-
let n;
|
|
120
|
-
if (isSequence) {
|
|
121
|
-
n = m.body.split(/\.\./);
|
|
122
|
-
}
|
|
123
|
-
else {
|
|
124
|
-
n = parseCommaParts(m.body);
|
|
125
|
-
if (n.length === 1 && n[0] !== undefined) {
|
|
126
|
-
// x{{a,b}}y ==> x{a}y x{b}y
|
|
127
|
-
n = expand_(n[0], max, false).map(embrace);
|
|
128
|
-
//XXX is this necessary? Can't seem to hit it in tests.
|
|
129
|
-
/* c8 ignore start */
|
|
130
|
-
if (n.length === 1) {
|
|
131
|
-
return post.map(p => m.pre + n[0] + p);
|
|
132
|
-
}
|
|
133
|
-
/* c8 ignore stop */
|
|
134
|
-
}
|
|
135
|
-
}
|
|
136
|
-
// at this point, n is the parts, and we know it's not a comma set
|
|
137
|
-
// with a single entry.
|
|
138
|
-
let N;
|
|
139
|
-
if (isSequence && n[0] !== undefined && n[1] !== undefined) {
|
|
140
|
-
const x = numeric(n[0]);
|
|
141
|
-
const y = numeric(n[1]);
|
|
142
|
-
const width = Math.max(n[0].length, n[1].length);
|
|
143
|
-
let incr = n.length === 3 && n[2] !== undefined ?
|
|
144
|
-
Math.max(Math.abs(numeric(n[2])), 1)
|
|
145
|
-
: 1;
|
|
146
|
-
let test = lte;
|
|
147
|
-
const reverse = y < x;
|
|
148
|
-
if (reverse) {
|
|
149
|
-
incr *= -1;
|
|
150
|
-
test = gte;
|
|
151
|
-
}
|
|
152
|
-
const pad = n.some(isPadded);
|
|
153
|
-
N = [];
|
|
154
|
-
for (let i = x; test(i, y); i += incr) {
|
|
155
|
-
let c;
|
|
156
|
-
if (isAlphaSequence) {
|
|
157
|
-
c = String.fromCharCode(i);
|
|
158
|
-
if (c === '\\') {
|
|
159
|
-
c = '';
|
|
160
|
-
}
|
|
161
|
-
}
|
|
162
|
-
else {
|
|
163
|
-
c = String(i);
|
|
164
|
-
if (pad) {
|
|
165
|
-
const need = width - c.length;
|
|
166
|
-
if (need > 0) {
|
|
167
|
-
const z = new Array(need + 1).join('0');
|
|
168
|
-
if (i < 0) {
|
|
169
|
-
c = '-' + z + c.slice(1);
|
|
170
|
-
}
|
|
171
|
-
else {
|
|
172
|
-
c = z + c;
|
|
173
|
-
}
|
|
174
|
-
}
|
|
175
|
-
}
|
|
176
|
-
}
|
|
177
|
-
N.push(c);
|
|
178
|
-
}
|
|
179
|
-
}
|
|
180
|
-
else {
|
|
181
|
-
N = [];
|
|
182
|
-
for (let j = 0; j < n.length; j++) {
|
|
183
|
-
N.push.apply(N, expand_(n[j], max, false));
|
|
184
|
-
}
|
|
185
|
-
}
|
|
186
|
-
for (let j = 0; j < N.length; j++) {
|
|
187
|
-
for (let k = 0; k < post.length && expansions.length < max; k++) {
|
|
188
|
-
const expansion = pre + N[j] + post[k];
|
|
189
|
-
if (!isTop || isSequence || expansion) {
|
|
190
|
-
expansions.push(expansion);
|
|
191
|
-
}
|
|
192
|
-
}
|
|
193
|
-
}
|
|
194
|
-
}
|
|
195
|
-
return expansions;
|
|
196
|
-
}
|
|
197
|
-
//# sourceMappingURL=index.js.map
|
|
@@ -1,64 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"name": "brace-expansion",
|
|
3
|
-
"description": "Brace expansion as known from sh/bash",
|
|
4
|
-
"version": "5.0.5",
|
|
5
|
-
"files": [
|
|
6
|
-
"dist"
|
|
7
|
-
],
|
|
8
|
-
"exports": {
|
|
9
|
-
"./package.json": "./package.json",
|
|
10
|
-
".": {
|
|
11
|
-
"import": {
|
|
12
|
-
"types": "./dist/esm/index.d.ts",
|
|
13
|
-
"default": "./dist/esm/index.js"
|
|
14
|
-
},
|
|
15
|
-
"require": {
|
|
16
|
-
"types": "./dist/commonjs/index.d.ts",
|
|
17
|
-
"default": "./dist/commonjs/index.js"
|
|
18
|
-
}
|
|
19
|
-
}
|
|
20
|
-
},
|
|
21
|
-
"type": "module",
|
|
22
|
-
"scripts": {
|
|
23
|
-
"preversion": "npm test",
|
|
24
|
-
"postversion": "npm publish",
|
|
25
|
-
"prepublishOnly": "git push origin --follow-tags",
|
|
26
|
-
"prepare": "tshy",
|
|
27
|
-
"pretest": "npm run prepare",
|
|
28
|
-
"presnap": "npm run prepare",
|
|
29
|
-
"test": "tap",
|
|
30
|
-
"snap": "tap",
|
|
31
|
-
"format": "prettier --write .",
|
|
32
|
-
"benchmark": "node benchmark/index.js",
|
|
33
|
-
"typedoc": "typedoc --tsconfig .tshy/esm.json ./src/*.ts"
|
|
34
|
-
},
|
|
35
|
-
"devDependencies": {
|
|
36
|
-
"@types/brace-expansion": "^1.1.2",
|
|
37
|
-
"@types/node": "^25.2.1",
|
|
38
|
-
"mkdirp": "^3.0.1",
|
|
39
|
-
"prettier": "^3.3.2",
|
|
40
|
-
"tap": "^21.6.2",
|
|
41
|
-
"tshy": "^3.0.2",
|
|
42
|
-
"typedoc": "^0.28.5"
|
|
43
|
-
},
|
|
44
|
-
"dependencies": {
|
|
45
|
-
"balanced-match": "^4.0.2"
|
|
46
|
-
},
|
|
47
|
-
"license": "MIT",
|
|
48
|
-
"engines": {
|
|
49
|
-
"node": "18 || 20 || >=22"
|
|
50
|
-
},
|
|
51
|
-
"tshy": {
|
|
52
|
-
"exports": {
|
|
53
|
-
"./package.json": "./package.json",
|
|
54
|
-
".": "./src/index.ts"
|
|
55
|
-
}
|
|
56
|
-
},
|
|
57
|
-
"main": "./dist/commonjs/index.js",
|
|
58
|
-
"types": "./dist/commonjs/index.d.ts",
|
|
59
|
-
"module": "./dist/esm/index.js",
|
|
60
|
-
"repository": {
|
|
61
|
-
"type": "git",
|
|
62
|
-
"url": "git+ssh://git@github.com/juliangruber/brace-expansion.git"
|
|
63
|
-
}
|
|
64
|
-
}
|
|
@@ -1,29 +0,0 @@
|
|
|
1
|
-
'use strict'
|
|
2
|
-
|
|
3
|
-
const contentVer = require('../../package.json')['cache-version'].content
|
|
4
|
-
const hashToSegments = require('../util/hash-to-segments')
|
|
5
|
-
const path = require('path')
|
|
6
|
-
const ssri = require('ssri')
|
|
7
|
-
|
|
8
|
-
// Current format of content file path:
|
|
9
|
-
//
|
|
10
|
-
// sha512-BaSE64Hex= ->
|
|
11
|
-
// ~/.my-cache/content-v2/sha512/ba/da/55deadbeefc0ffee
|
|
12
|
-
//
|
|
13
|
-
module.exports = contentPath
|
|
14
|
-
|
|
15
|
-
function contentPath (cache, integrity) {
|
|
16
|
-
const sri = ssri.parse(integrity, { single: true })
|
|
17
|
-
// contentPath is the *strongest* algo given
|
|
18
|
-
return path.join(
|
|
19
|
-
contentDir(cache),
|
|
20
|
-
sri.algorithm,
|
|
21
|
-
...hashToSegments(sri.hexDigest())
|
|
22
|
-
)
|
|
23
|
-
}
|
|
24
|
-
|
|
25
|
-
module.exports.contentDir = contentDir
|
|
26
|
-
|
|
27
|
-
function contentDir (cache) {
|
|
28
|
-
return path.join(cache, `content-v${contentVer}`)
|
|
29
|
-
}
|
|
@@ -1,165 +0,0 @@
|
|
|
1
|
-
'use strict'
|
|
2
|
-
|
|
3
|
-
const fs = require('fs/promises')
|
|
4
|
-
const fsm = require('fs-minipass')
|
|
5
|
-
const ssri = require('ssri')
|
|
6
|
-
const contentPath = require('./path')
|
|
7
|
-
const Pipeline = require('minipass-pipeline')
|
|
8
|
-
|
|
9
|
-
module.exports = read
|
|
10
|
-
|
|
11
|
-
const MAX_SINGLE_READ_SIZE = 64 * 1024 * 1024
|
|
12
|
-
async function read (cache, integrity, opts = {}) {
|
|
13
|
-
const { size } = opts
|
|
14
|
-
const { stat, cpath, sri } = await withContentSri(cache, integrity, async (cpath, sri) => {
|
|
15
|
-
// get size
|
|
16
|
-
const stat = size ? { size } : await fs.stat(cpath)
|
|
17
|
-
return { stat, cpath, sri }
|
|
18
|
-
})
|
|
19
|
-
|
|
20
|
-
if (stat.size > MAX_SINGLE_READ_SIZE) {
|
|
21
|
-
return readPipeline(cpath, stat.size, sri, new Pipeline()).concat()
|
|
22
|
-
}
|
|
23
|
-
|
|
24
|
-
const data = await fs.readFile(cpath, { encoding: null })
|
|
25
|
-
|
|
26
|
-
if (stat.size !== data.length) {
|
|
27
|
-
throw sizeError(stat.size, data.length)
|
|
28
|
-
}
|
|
29
|
-
|
|
30
|
-
if (!ssri.checkData(data, sri)) {
|
|
31
|
-
throw integrityError(sri, cpath)
|
|
32
|
-
}
|
|
33
|
-
|
|
34
|
-
return data
|
|
35
|
-
}
|
|
36
|
-
|
|
37
|
-
const readPipeline = (cpath, size, sri, stream) => {
|
|
38
|
-
stream.push(
|
|
39
|
-
new fsm.ReadStream(cpath, {
|
|
40
|
-
size,
|
|
41
|
-
readSize: MAX_SINGLE_READ_SIZE,
|
|
42
|
-
}),
|
|
43
|
-
ssri.integrityStream({
|
|
44
|
-
integrity: sri,
|
|
45
|
-
size,
|
|
46
|
-
})
|
|
47
|
-
)
|
|
48
|
-
return stream
|
|
49
|
-
}
|
|
50
|
-
|
|
51
|
-
module.exports.stream = readStream
|
|
52
|
-
module.exports.readStream = readStream
|
|
53
|
-
|
|
54
|
-
function readStream (cache, integrity, opts = {}) {
|
|
55
|
-
const { size } = opts
|
|
56
|
-
const stream = new Pipeline()
|
|
57
|
-
// Set all this up to run on the stream and then just return the stream
|
|
58
|
-
Promise.resolve().then(async () => {
|
|
59
|
-
const { stat, cpath, sri } = await withContentSri(cache, integrity, async (cpath, sri) => {
|
|
60
|
-
// get size
|
|
61
|
-
const stat = size ? { size } : await fs.stat(cpath)
|
|
62
|
-
return { stat, cpath, sri }
|
|
63
|
-
})
|
|
64
|
-
|
|
65
|
-
return readPipeline(cpath, stat.size, sri, stream)
|
|
66
|
-
}).catch(err => stream.emit('error', err))
|
|
67
|
-
|
|
68
|
-
return stream
|
|
69
|
-
}
|
|
70
|
-
|
|
71
|
-
module.exports.copy = copy
|
|
72
|
-
|
|
73
|
-
function copy (cache, integrity, dest) {
|
|
74
|
-
return withContentSri(cache, integrity, (cpath) => {
|
|
75
|
-
return fs.copyFile(cpath, dest)
|
|
76
|
-
})
|
|
77
|
-
}
|
|
78
|
-
|
|
79
|
-
module.exports.hasContent = hasContent
|
|
80
|
-
|
|
81
|
-
async function hasContent (cache, integrity) {
|
|
82
|
-
if (!integrity) {
|
|
83
|
-
return false
|
|
84
|
-
}
|
|
85
|
-
|
|
86
|
-
try {
|
|
87
|
-
return await withContentSri(cache, integrity, async (cpath, sri) => {
|
|
88
|
-
const stat = await fs.stat(cpath)
|
|
89
|
-
return { size: stat.size, sri, stat }
|
|
90
|
-
})
|
|
91
|
-
} catch (err) {
|
|
92
|
-
if (err.code === 'ENOENT') {
|
|
93
|
-
return false
|
|
94
|
-
}
|
|
95
|
-
|
|
96
|
-
if (err.code === 'EPERM') {
|
|
97
|
-
/* istanbul ignore else */
|
|
98
|
-
if (process.platform !== 'win32') {
|
|
99
|
-
throw err
|
|
100
|
-
} else {
|
|
101
|
-
return false
|
|
102
|
-
}
|
|
103
|
-
}
|
|
104
|
-
}
|
|
105
|
-
}
|
|
106
|
-
|
|
107
|
-
async function withContentSri (cache, integrity, fn) {
|
|
108
|
-
const sri = ssri.parse(integrity)
|
|
109
|
-
// If `integrity` has multiple entries, pick the first digest
|
|
110
|
-
// with available local data.
|
|
111
|
-
const algo = sri.pickAlgorithm()
|
|
112
|
-
const digests = sri[algo]
|
|
113
|
-
|
|
114
|
-
if (digests.length <= 1) {
|
|
115
|
-
const cpath = contentPath(cache, digests[0])
|
|
116
|
-
return fn(cpath, digests[0])
|
|
117
|
-
} else {
|
|
118
|
-
// Can't use race here because a generic error can happen before
|
|
119
|
-
// a ENOENT error, and can happen before a valid result
|
|
120
|
-
const results = await Promise.all(digests.map(async (meta) => {
|
|
121
|
-
try {
|
|
122
|
-
return await withContentSri(cache, meta, fn)
|
|
123
|
-
} catch (err) {
|
|
124
|
-
if (err.code === 'ENOENT') {
|
|
125
|
-
return Object.assign(
|
|
126
|
-
new Error('No matching content found for ' + sri.toString()),
|
|
127
|
-
{ code: 'ENOENT' }
|
|
128
|
-
)
|
|
129
|
-
}
|
|
130
|
-
return err
|
|
131
|
-
}
|
|
132
|
-
}))
|
|
133
|
-
// Return the first non error if it is found
|
|
134
|
-
const result = results.find((r) => !(r instanceof Error))
|
|
135
|
-
if (result) {
|
|
136
|
-
return result
|
|
137
|
-
}
|
|
138
|
-
|
|
139
|
-
// Throw the No matching content found error
|
|
140
|
-
const enoentError = results.find((r) => r.code === 'ENOENT')
|
|
141
|
-
if (enoentError) {
|
|
142
|
-
throw enoentError
|
|
143
|
-
}
|
|
144
|
-
|
|
145
|
-
// Throw generic error
|
|
146
|
-
throw results.find((r) => r instanceof Error)
|
|
147
|
-
}
|
|
148
|
-
}
|
|
149
|
-
|
|
150
|
-
function sizeError (expected, found) {
|
|
151
|
-
/* eslint-disable-next-line max-len */
|
|
152
|
-
const err = new Error(`Bad data size: expected inserted data to be ${expected} bytes, but got ${found} instead`)
|
|
153
|
-
err.expected = expected
|
|
154
|
-
err.found = found
|
|
155
|
-
err.code = 'EBADSIZE'
|
|
156
|
-
return err
|
|
157
|
-
}
|
|
158
|
-
|
|
159
|
-
function integrityError (sri, path) {
|
|
160
|
-
const err = new Error(`Integrity verification failed for ${sri} (${path})`)
|
|
161
|
-
err.code = 'EINTEGRITY'
|
|
162
|
-
err.sri = sri
|
|
163
|
-
err.path = path
|
|
164
|
-
return err
|
|
165
|
-
}
|
|
@@ -1,18 +0,0 @@
|
|
|
1
|
-
'use strict'
|
|
2
|
-
|
|
3
|
-
const fs = require('fs/promises')
|
|
4
|
-
const contentPath = require('./path')
|
|
5
|
-
const { hasContent } = require('./read')
|
|
6
|
-
|
|
7
|
-
module.exports = rm
|
|
8
|
-
|
|
9
|
-
async function rm (cache, integrity) {
|
|
10
|
-
const content = await hasContent(cache, integrity)
|
|
11
|
-
// ~pretty~ sure we can't end up with a content lacking sri, but be safe
|
|
12
|
-
if (content && content.sri) {
|
|
13
|
-
await fs.rm(contentPath(cache, content.sri), { recursive: true, force: true })
|
|
14
|
-
return true
|
|
15
|
-
} else {
|
|
16
|
-
return false
|
|
17
|
-
}
|
|
18
|
-
}
|