@pnpm/exe 11.0.6 → 11.0.8
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 +4529 -3898
- package/dist/worker.js +76 -73
- 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,272 +0,0 @@
|
|
|
1
|
-
/* eslint-env browser */
|
|
2
|
-
|
|
3
|
-
/**
|
|
4
|
-
* This is the web browser implementation of `debug()`.
|
|
5
|
-
*/
|
|
6
|
-
|
|
7
|
-
exports.formatArgs = formatArgs;
|
|
8
|
-
exports.save = save;
|
|
9
|
-
exports.load = load;
|
|
10
|
-
exports.useColors = useColors;
|
|
11
|
-
exports.storage = localstorage();
|
|
12
|
-
exports.destroy = (() => {
|
|
13
|
-
let warned = false;
|
|
14
|
-
|
|
15
|
-
return () => {
|
|
16
|
-
if (!warned) {
|
|
17
|
-
warned = true;
|
|
18
|
-
console.warn('Instance method `debug.destroy()` is deprecated and no longer does anything. It will be removed in the next major version of `debug`.');
|
|
19
|
-
}
|
|
20
|
-
};
|
|
21
|
-
})();
|
|
22
|
-
|
|
23
|
-
/**
|
|
24
|
-
* Colors.
|
|
25
|
-
*/
|
|
26
|
-
|
|
27
|
-
exports.colors = [
|
|
28
|
-
'#0000CC',
|
|
29
|
-
'#0000FF',
|
|
30
|
-
'#0033CC',
|
|
31
|
-
'#0033FF',
|
|
32
|
-
'#0066CC',
|
|
33
|
-
'#0066FF',
|
|
34
|
-
'#0099CC',
|
|
35
|
-
'#0099FF',
|
|
36
|
-
'#00CC00',
|
|
37
|
-
'#00CC33',
|
|
38
|
-
'#00CC66',
|
|
39
|
-
'#00CC99',
|
|
40
|
-
'#00CCCC',
|
|
41
|
-
'#00CCFF',
|
|
42
|
-
'#3300CC',
|
|
43
|
-
'#3300FF',
|
|
44
|
-
'#3333CC',
|
|
45
|
-
'#3333FF',
|
|
46
|
-
'#3366CC',
|
|
47
|
-
'#3366FF',
|
|
48
|
-
'#3399CC',
|
|
49
|
-
'#3399FF',
|
|
50
|
-
'#33CC00',
|
|
51
|
-
'#33CC33',
|
|
52
|
-
'#33CC66',
|
|
53
|
-
'#33CC99',
|
|
54
|
-
'#33CCCC',
|
|
55
|
-
'#33CCFF',
|
|
56
|
-
'#6600CC',
|
|
57
|
-
'#6600FF',
|
|
58
|
-
'#6633CC',
|
|
59
|
-
'#6633FF',
|
|
60
|
-
'#66CC00',
|
|
61
|
-
'#66CC33',
|
|
62
|
-
'#9900CC',
|
|
63
|
-
'#9900FF',
|
|
64
|
-
'#9933CC',
|
|
65
|
-
'#9933FF',
|
|
66
|
-
'#99CC00',
|
|
67
|
-
'#99CC33',
|
|
68
|
-
'#CC0000',
|
|
69
|
-
'#CC0033',
|
|
70
|
-
'#CC0066',
|
|
71
|
-
'#CC0099',
|
|
72
|
-
'#CC00CC',
|
|
73
|
-
'#CC00FF',
|
|
74
|
-
'#CC3300',
|
|
75
|
-
'#CC3333',
|
|
76
|
-
'#CC3366',
|
|
77
|
-
'#CC3399',
|
|
78
|
-
'#CC33CC',
|
|
79
|
-
'#CC33FF',
|
|
80
|
-
'#CC6600',
|
|
81
|
-
'#CC6633',
|
|
82
|
-
'#CC9900',
|
|
83
|
-
'#CC9933',
|
|
84
|
-
'#CCCC00',
|
|
85
|
-
'#CCCC33',
|
|
86
|
-
'#FF0000',
|
|
87
|
-
'#FF0033',
|
|
88
|
-
'#FF0066',
|
|
89
|
-
'#FF0099',
|
|
90
|
-
'#FF00CC',
|
|
91
|
-
'#FF00FF',
|
|
92
|
-
'#FF3300',
|
|
93
|
-
'#FF3333',
|
|
94
|
-
'#FF3366',
|
|
95
|
-
'#FF3399',
|
|
96
|
-
'#FF33CC',
|
|
97
|
-
'#FF33FF',
|
|
98
|
-
'#FF6600',
|
|
99
|
-
'#FF6633',
|
|
100
|
-
'#FF9900',
|
|
101
|
-
'#FF9933',
|
|
102
|
-
'#FFCC00',
|
|
103
|
-
'#FFCC33'
|
|
104
|
-
];
|
|
105
|
-
|
|
106
|
-
/**
|
|
107
|
-
* Currently only WebKit-based Web Inspectors, Firefox >= v31,
|
|
108
|
-
* and the Firebug extension (any Firefox version) are known
|
|
109
|
-
* to support "%c" CSS customizations.
|
|
110
|
-
*
|
|
111
|
-
* TODO: add a `localStorage` variable to explicitly enable/disable colors
|
|
112
|
-
*/
|
|
113
|
-
|
|
114
|
-
// eslint-disable-next-line complexity
|
|
115
|
-
function useColors() {
|
|
116
|
-
// NB: In an Electron preload script, document will be defined but not fully
|
|
117
|
-
// initialized. Since we know we're in Chrome, we'll just detect this case
|
|
118
|
-
// explicitly
|
|
119
|
-
if (typeof window !== 'undefined' && window.process && (window.process.type === 'renderer' || window.process.__nwjs)) {
|
|
120
|
-
return true;
|
|
121
|
-
}
|
|
122
|
-
|
|
123
|
-
// Internet Explorer and Edge do not support colors.
|
|
124
|
-
if (typeof navigator !== 'undefined' && navigator.userAgent && navigator.userAgent.toLowerCase().match(/(edge|trident)\/(\d+)/)) {
|
|
125
|
-
return false;
|
|
126
|
-
}
|
|
127
|
-
|
|
128
|
-
let m;
|
|
129
|
-
|
|
130
|
-
// Is webkit? http://stackoverflow.com/a/16459606/376773
|
|
131
|
-
// document is undefined in react-native: https://github.com/facebook/react-native/pull/1632
|
|
132
|
-
// eslint-disable-next-line no-return-assign
|
|
133
|
-
return (typeof document !== 'undefined' && document.documentElement && document.documentElement.style && document.documentElement.style.WebkitAppearance) ||
|
|
134
|
-
// Is firebug? http://stackoverflow.com/a/398120/376773
|
|
135
|
-
(typeof window !== 'undefined' && window.console && (window.console.firebug || (window.console.exception && window.console.table))) ||
|
|
136
|
-
// Is firefox >= v31?
|
|
137
|
-
// https://developer.mozilla.org/en-US/docs/Tools/Web_Console#Styling_messages
|
|
138
|
-
(typeof navigator !== 'undefined' && navigator.userAgent && (m = navigator.userAgent.toLowerCase().match(/firefox\/(\d+)/)) && parseInt(m[1], 10) >= 31) ||
|
|
139
|
-
// Double check webkit in userAgent just in case we are in a worker
|
|
140
|
-
(typeof navigator !== 'undefined' && navigator.userAgent && navigator.userAgent.toLowerCase().match(/applewebkit\/(\d+)/));
|
|
141
|
-
}
|
|
142
|
-
|
|
143
|
-
/**
|
|
144
|
-
* Colorize log arguments if enabled.
|
|
145
|
-
*
|
|
146
|
-
* @api public
|
|
147
|
-
*/
|
|
148
|
-
|
|
149
|
-
function formatArgs(args) {
|
|
150
|
-
args[0] = (this.useColors ? '%c' : '') +
|
|
151
|
-
this.namespace +
|
|
152
|
-
(this.useColors ? ' %c' : ' ') +
|
|
153
|
-
args[0] +
|
|
154
|
-
(this.useColors ? '%c ' : ' ') +
|
|
155
|
-
'+' + module.exports.humanize(this.diff);
|
|
156
|
-
|
|
157
|
-
if (!this.useColors) {
|
|
158
|
-
return;
|
|
159
|
-
}
|
|
160
|
-
|
|
161
|
-
const c = 'color: ' + this.color;
|
|
162
|
-
args.splice(1, 0, c, 'color: inherit');
|
|
163
|
-
|
|
164
|
-
// The final "%c" is somewhat tricky, because there could be other
|
|
165
|
-
// arguments passed either before or after the %c, so we need to
|
|
166
|
-
// figure out the correct index to insert the CSS into
|
|
167
|
-
let index = 0;
|
|
168
|
-
let lastC = 0;
|
|
169
|
-
args[0].replace(/%[a-zA-Z%]/g, match => {
|
|
170
|
-
if (match === '%%') {
|
|
171
|
-
return;
|
|
172
|
-
}
|
|
173
|
-
index++;
|
|
174
|
-
if (match === '%c') {
|
|
175
|
-
// We only are interested in the *last* %c
|
|
176
|
-
// (the user may have provided their own)
|
|
177
|
-
lastC = index;
|
|
178
|
-
}
|
|
179
|
-
});
|
|
180
|
-
|
|
181
|
-
args.splice(lastC, 0, c);
|
|
182
|
-
}
|
|
183
|
-
|
|
184
|
-
/**
|
|
185
|
-
* Invokes `console.debug()` when available.
|
|
186
|
-
* No-op when `console.debug` is not a "function".
|
|
187
|
-
* If `console.debug` is not available, falls back
|
|
188
|
-
* to `console.log`.
|
|
189
|
-
*
|
|
190
|
-
* @api public
|
|
191
|
-
*/
|
|
192
|
-
exports.log = console.debug || console.log || (() => {});
|
|
193
|
-
|
|
194
|
-
/**
|
|
195
|
-
* Save `namespaces`.
|
|
196
|
-
*
|
|
197
|
-
* @param {String} namespaces
|
|
198
|
-
* @api private
|
|
199
|
-
*/
|
|
200
|
-
function save(namespaces) {
|
|
201
|
-
try {
|
|
202
|
-
if (namespaces) {
|
|
203
|
-
exports.storage.setItem('debug', namespaces);
|
|
204
|
-
} else {
|
|
205
|
-
exports.storage.removeItem('debug');
|
|
206
|
-
}
|
|
207
|
-
} catch (error) {
|
|
208
|
-
// Swallow
|
|
209
|
-
// XXX (@Qix-) should we be logging these?
|
|
210
|
-
}
|
|
211
|
-
}
|
|
212
|
-
|
|
213
|
-
/**
|
|
214
|
-
* Load `namespaces`.
|
|
215
|
-
*
|
|
216
|
-
* @return {String} returns the previously persisted debug modes
|
|
217
|
-
* @api private
|
|
218
|
-
*/
|
|
219
|
-
function load() {
|
|
220
|
-
let r;
|
|
221
|
-
try {
|
|
222
|
-
r = exports.storage.getItem('debug') || exports.storage.getItem('DEBUG') ;
|
|
223
|
-
} catch (error) {
|
|
224
|
-
// Swallow
|
|
225
|
-
// XXX (@Qix-) should we be logging these?
|
|
226
|
-
}
|
|
227
|
-
|
|
228
|
-
// If debug isn't set in LS, and we're in Electron, try to load $DEBUG
|
|
229
|
-
if (!r && typeof process !== 'undefined' && 'env' in process) {
|
|
230
|
-
r = process.env.DEBUG;
|
|
231
|
-
}
|
|
232
|
-
|
|
233
|
-
return r;
|
|
234
|
-
}
|
|
235
|
-
|
|
236
|
-
/**
|
|
237
|
-
* Localstorage attempts to return the localstorage.
|
|
238
|
-
*
|
|
239
|
-
* This is necessary because safari throws
|
|
240
|
-
* when a user disables cookies/localstorage
|
|
241
|
-
* and you attempt to access it.
|
|
242
|
-
*
|
|
243
|
-
* @return {LocalStorage}
|
|
244
|
-
* @api private
|
|
245
|
-
*/
|
|
246
|
-
|
|
247
|
-
function localstorage() {
|
|
248
|
-
try {
|
|
249
|
-
// TVMLKit (Apple TV JS Runtime) does not have a window object, just localStorage in the global context
|
|
250
|
-
// The Browser also has localStorage in the global context.
|
|
251
|
-
return localStorage;
|
|
252
|
-
} catch (error) {
|
|
253
|
-
// Swallow
|
|
254
|
-
// XXX (@Qix-) should we be logging these?
|
|
255
|
-
}
|
|
256
|
-
}
|
|
257
|
-
|
|
258
|
-
module.exports = require('./common')(exports);
|
|
259
|
-
|
|
260
|
-
const {formatters} = module.exports;
|
|
261
|
-
|
|
262
|
-
/**
|
|
263
|
-
* Map %j to `JSON.stringify()`, since no Web Inspectors do that by default.
|
|
264
|
-
*/
|
|
265
|
-
|
|
266
|
-
formatters.j = function (v) {
|
|
267
|
-
try {
|
|
268
|
-
return JSON.stringify(v);
|
|
269
|
-
} catch (error) {
|
|
270
|
-
return '[UnexpectedJSONParseError]: ' + error.message;
|
|
271
|
-
}
|
|
272
|
-
};
|
|
@@ -1,292 +0,0 @@
|
|
|
1
|
-
|
|
2
|
-
/**
|
|
3
|
-
* This is the common logic for both the Node.js and web browser
|
|
4
|
-
* implementations of `debug()`.
|
|
5
|
-
*/
|
|
6
|
-
|
|
7
|
-
function setup(env) {
|
|
8
|
-
createDebug.debug = createDebug;
|
|
9
|
-
createDebug.default = createDebug;
|
|
10
|
-
createDebug.coerce = coerce;
|
|
11
|
-
createDebug.disable = disable;
|
|
12
|
-
createDebug.enable = enable;
|
|
13
|
-
createDebug.enabled = enabled;
|
|
14
|
-
createDebug.humanize = require('ms');
|
|
15
|
-
createDebug.destroy = destroy;
|
|
16
|
-
|
|
17
|
-
Object.keys(env).forEach(key => {
|
|
18
|
-
createDebug[key] = env[key];
|
|
19
|
-
});
|
|
20
|
-
|
|
21
|
-
/**
|
|
22
|
-
* The currently active debug mode names, and names to skip.
|
|
23
|
-
*/
|
|
24
|
-
|
|
25
|
-
createDebug.names = [];
|
|
26
|
-
createDebug.skips = [];
|
|
27
|
-
|
|
28
|
-
/**
|
|
29
|
-
* Map of special "%n" handling functions, for the debug "format" argument.
|
|
30
|
-
*
|
|
31
|
-
* Valid key names are a single, lower or upper-case letter, i.e. "n" and "N".
|
|
32
|
-
*/
|
|
33
|
-
createDebug.formatters = {};
|
|
34
|
-
|
|
35
|
-
/**
|
|
36
|
-
* Selects a color for a debug namespace
|
|
37
|
-
* @param {String} namespace The namespace string for the debug instance to be colored
|
|
38
|
-
* @return {Number|String} An ANSI color code for the given namespace
|
|
39
|
-
* @api private
|
|
40
|
-
*/
|
|
41
|
-
function selectColor(namespace) {
|
|
42
|
-
let hash = 0;
|
|
43
|
-
|
|
44
|
-
for (let i = 0; i < namespace.length; i++) {
|
|
45
|
-
hash = ((hash << 5) - hash) + namespace.charCodeAt(i);
|
|
46
|
-
hash |= 0; // Convert to 32bit integer
|
|
47
|
-
}
|
|
48
|
-
|
|
49
|
-
return createDebug.colors[Math.abs(hash) % createDebug.colors.length];
|
|
50
|
-
}
|
|
51
|
-
createDebug.selectColor = selectColor;
|
|
52
|
-
|
|
53
|
-
/**
|
|
54
|
-
* Create a debugger with the given `namespace`.
|
|
55
|
-
*
|
|
56
|
-
* @param {String} namespace
|
|
57
|
-
* @return {Function}
|
|
58
|
-
* @api public
|
|
59
|
-
*/
|
|
60
|
-
function createDebug(namespace) {
|
|
61
|
-
let prevTime;
|
|
62
|
-
let enableOverride = null;
|
|
63
|
-
let namespacesCache;
|
|
64
|
-
let enabledCache;
|
|
65
|
-
|
|
66
|
-
function debug(...args) {
|
|
67
|
-
// Disabled?
|
|
68
|
-
if (!debug.enabled) {
|
|
69
|
-
return;
|
|
70
|
-
}
|
|
71
|
-
|
|
72
|
-
const self = debug;
|
|
73
|
-
|
|
74
|
-
// Set `diff` timestamp
|
|
75
|
-
const curr = Number(new Date());
|
|
76
|
-
const ms = curr - (prevTime || curr);
|
|
77
|
-
self.diff = ms;
|
|
78
|
-
self.prev = prevTime;
|
|
79
|
-
self.curr = curr;
|
|
80
|
-
prevTime = curr;
|
|
81
|
-
|
|
82
|
-
args[0] = createDebug.coerce(args[0]);
|
|
83
|
-
|
|
84
|
-
if (typeof args[0] !== 'string') {
|
|
85
|
-
// Anything else let's inspect with %O
|
|
86
|
-
args.unshift('%O');
|
|
87
|
-
}
|
|
88
|
-
|
|
89
|
-
// Apply any `formatters` transformations
|
|
90
|
-
let index = 0;
|
|
91
|
-
args[0] = args[0].replace(/%([a-zA-Z%])/g, (match, format) => {
|
|
92
|
-
// If we encounter an escaped % then don't increase the array index
|
|
93
|
-
if (match === '%%') {
|
|
94
|
-
return '%';
|
|
95
|
-
}
|
|
96
|
-
index++;
|
|
97
|
-
const formatter = createDebug.formatters[format];
|
|
98
|
-
if (typeof formatter === 'function') {
|
|
99
|
-
const val = args[index];
|
|
100
|
-
match = formatter.call(self, val);
|
|
101
|
-
|
|
102
|
-
// Now we need to remove `args[index]` since it's inlined in the `format`
|
|
103
|
-
args.splice(index, 1);
|
|
104
|
-
index--;
|
|
105
|
-
}
|
|
106
|
-
return match;
|
|
107
|
-
});
|
|
108
|
-
|
|
109
|
-
// Apply env-specific formatting (colors, etc.)
|
|
110
|
-
createDebug.formatArgs.call(self, args);
|
|
111
|
-
|
|
112
|
-
const logFn = self.log || createDebug.log;
|
|
113
|
-
logFn.apply(self, args);
|
|
114
|
-
}
|
|
115
|
-
|
|
116
|
-
debug.namespace = namespace;
|
|
117
|
-
debug.useColors = createDebug.useColors();
|
|
118
|
-
debug.color = createDebug.selectColor(namespace);
|
|
119
|
-
debug.extend = extend;
|
|
120
|
-
debug.destroy = createDebug.destroy; // XXX Temporary. Will be removed in the next major release.
|
|
121
|
-
|
|
122
|
-
Object.defineProperty(debug, 'enabled', {
|
|
123
|
-
enumerable: true,
|
|
124
|
-
configurable: false,
|
|
125
|
-
get: () => {
|
|
126
|
-
if (enableOverride !== null) {
|
|
127
|
-
return enableOverride;
|
|
128
|
-
}
|
|
129
|
-
if (namespacesCache !== createDebug.namespaces) {
|
|
130
|
-
namespacesCache = createDebug.namespaces;
|
|
131
|
-
enabledCache = createDebug.enabled(namespace);
|
|
132
|
-
}
|
|
133
|
-
|
|
134
|
-
return enabledCache;
|
|
135
|
-
},
|
|
136
|
-
set: v => {
|
|
137
|
-
enableOverride = v;
|
|
138
|
-
}
|
|
139
|
-
});
|
|
140
|
-
|
|
141
|
-
// Env-specific initialization logic for debug instances
|
|
142
|
-
if (typeof createDebug.init === 'function') {
|
|
143
|
-
createDebug.init(debug);
|
|
144
|
-
}
|
|
145
|
-
|
|
146
|
-
return debug;
|
|
147
|
-
}
|
|
148
|
-
|
|
149
|
-
function extend(namespace, delimiter) {
|
|
150
|
-
const newDebug = createDebug(this.namespace + (typeof delimiter === 'undefined' ? ':' : delimiter) + namespace);
|
|
151
|
-
newDebug.log = this.log;
|
|
152
|
-
return newDebug;
|
|
153
|
-
}
|
|
154
|
-
|
|
155
|
-
/**
|
|
156
|
-
* Enables a debug mode by namespaces. This can include modes
|
|
157
|
-
* separated by a colon and wildcards.
|
|
158
|
-
*
|
|
159
|
-
* @param {String} namespaces
|
|
160
|
-
* @api public
|
|
161
|
-
*/
|
|
162
|
-
function enable(namespaces) {
|
|
163
|
-
createDebug.save(namespaces);
|
|
164
|
-
createDebug.namespaces = namespaces;
|
|
165
|
-
|
|
166
|
-
createDebug.names = [];
|
|
167
|
-
createDebug.skips = [];
|
|
168
|
-
|
|
169
|
-
const split = (typeof namespaces === 'string' ? namespaces : '')
|
|
170
|
-
.trim()
|
|
171
|
-
.replace(/\s+/g, ',')
|
|
172
|
-
.split(',')
|
|
173
|
-
.filter(Boolean);
|
|
174
|
-
|
|
175
|
-
for (const ns of split) {
|
|
176
|
-
if (ns[0] === '-') {
|
|
177
|
-
createDebug.skips.push(ns.slice(1));
|
|
178
|
-
} else {
|
|
179
|
-
createDebug.names.push(ns);
|
|
180
|
-
}
|
|
181
|
-
}
|
|
182
|
-
}
|
|
183
|
-
|
|
184
|
-
/**
|
|
185
|
-
* Checks if the given string matches a namespace template, honoring
|
|
186
|
-
* asterisks as wildcards.
|
|
187
|
-
*
|
|
188
|
-
* @param {String} search
|
|
189
|
-
* @param {String} template
|
|
190
|
-
* @return {Boolean}
|
|
191
|
-
*/
|
|
192
|
-
function matchesTemplate(search, template) {
|
|
193
|
-
let searchIndex = 0;
|
|
194
|
-
let templateIndex = 0;
|
|
195
|
-
let starIndex = -1;
|
|
196
|
-
let matchIndex = 0;
|
|
197
|
-
|
|
198
|
-
while (searchIndex < search.length) {
|
|
199
|
-
if (templateIndex < template.length && (template[templateIndex] === search[searchIndex] || template[templateIndex] === '*')) {
|
|
200
|
-
// Match character or proceed with wildcard
|
|
201
|
-
if (template[templateIndex] === '*') {
|
|
202
|
-
starIndex = templateIndex;
|
|
203
|
-
matchIndex = searchIndex;
|
|
204
|
-
templateIndex++; // Skip the '*'
|
|
205
|
-
} else {
|
|
206
|
-
searchIndex++;
|
|
207
|
-
templateIndex++;
|
|
208
|
-
}
|
|
209
|
-
} else if (starIndex !== -1) { // eslint-disable-line no-negated-condition
|
|
210
|
-
// Backtrack to the last '*' and try to match more characters
|
|
211
|
-
templateIndex = starIndex + 1;
|
|
212
|
-
matchIndex++;
|
|
213
|
-
searchIndex = matchIndex;
|
|
214
|
-
} else {
|
|
215
|
-
return false; // No match
|
|
216
|
-
}
|
|
217
|
-
}
|
|
218
|
-
|
|
219
|
-
// Handle trailing '*' in template
|
|
220
|
-
while (templateIndex < template.length && template[templateIndex] === '*') {
|
|
221
|
-
templateIndex++;
|
|
222
|
-
}
|
|
223
|
-
|
|
224
|
-
return templateIndex === template.length;
|
|
225
|
-
}
|
|
226
|
-
|
|
227
|
-
/**
|
|
228
|
-
* Disable debug output.
|
|
229
|
-
*
|
|
230
|
-
* @return {String} namespaces
|
|
231
|
-
* @api public
|
|
232
|
-
*/
|
|
233
|
-
function disable() {
|
|
234
|
-
const namespaces = [
|
|
235
|
-
...createDebug.names,
|
|
236
|
-
...createDebug.skips.map(namespace => '-' + namespace)
|
|
237
|
-
].join(',');
|
|
238
|
-
createDebug.enable('');
|
|
239
|
-
return namespaces;
|
|
240
|
-
}
|
|
241
|
-
|
|
242
|
-
/**
|
|
243
|
-
* Returns true if the given mode name is enabled, false otherwise.
|
|
244
|
-
*
|
|
245
|
-
* @param {String} name
|
|
246
|
-
* @return {Boolean}
|
|
247
|
-
* @api public
|
|
248
|
-
*/
|
|
249
|
-
function enabled(name) {
|
|
250
|
-
for (const skip of createDebug.skips) {
|
|
251
|
-
if (matchesTemplate(name, skip)) {
|
|
252
|
-
return false;
|
|
253
|
-
}
|
|
254
|
-
}
|
|
255
|
-
|
|
256
|
-
for (const ns of createDebug.names) {
|
|
257
|
-
if (matchesTemplate(name, ns)) {
|
|
258
|
-
return true;
|
|
259
|
-
}
|
|
260
|
-
}
|
|
261
|
-
|
|
262
|
-
return false;
|
|
263
|
-
}
|
|
264
|
-
|
|
265
|
-
/**
|
|
266
|
-
* Coerce `val`.
|
|
267
|
-
*
|
|
268
|
-
* @param {Mixed} val
|
|
269
|
-
* @return {Mixed}
|
|
270
|
-
* @api private
|
|
271
|
-
*/
|
|
272
|
-
function coerce(val) {
|
|
273
|
-
if (val instanceof Error) {
|
|
274
|
-
return val.stack || val.message;
|
|
275
|
-
}
|
|
276
|
-
return val;
|
|
277
|
-
}
|
|
278
|
-
|
|
279
|
-
/**
|
|
280
|
-
* XXX DO NOT USE. This is a temporary stub function.
|
|
281
|
-
* XXX It WILL be removed in the next major release.
|
|
282
|
-
*/
|
|
283
|
-
function destroy() {
|
|
284
|
-
console.warn('Instance method `debug.destroy()` is deprecated and no longer does anything. It will be removed in the next major version of `debug`.');
|
|
285
|
-
}
|
|
286
|
-
|
|
287
|
-
createDebug.enable(createDebug.load());
|
|
288
|
-
|
|
289
|
-
return createDebug;
|
|
290
|
-
}
|
|
291
|
-
|
|
292
|
-
module.exports = setup;
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Detect Electron renderer / nwjs process, which is node, but we should
|
|
3
|
-
* treat as a browser.
|
|
4
|
-
*/
|
|
5
|
-
|
|
6
|
-
if (typeof process === 'undefined' || process.type === 'renderer' || process.browser === true || process.__nwjs) {
|
|
7
|
-
module.exports = require('./browser.js');
|
|
8
|
-
} else {
|
|
9
|
-
module.exports = require('./node.js');
|
|
10
|
-
}
|