@prosopo/cli 3.8.4 → 3.8.6

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.
@@ -1,5 +1,5 @@
1
1
 
2
- > @prosopo/cli@3.8.4 build:cjs
2
+ > @prosopo/cli@3.8.6 build:cjs
3
3
  > NODE_ENV=${NODE_ENV:-development}; vite build --config vite.cjs.config.ts --mode $NODE_ENV
4
4
 
5
5
  ViteCommonJSConfig: .
@@ -24,6 +24,7 @@ ViteCommonJSConfig: .
24
24
  '/home/runner/work/captcha/captcha/packages/keyring/tsconfig.json',
25
25
  '/home/runner/work/captcha/captcha/packages/provider/tsconfig.json',
26
26
  '/home/runner/work/captcha/captcha/packages/api-express-router/tsconfig.json',
27
+ '/home/runner/work/captcha/captcha/packages/captcha-severity/tsconfig.json',
27
28
  '/home/runner/work/captcha/captcha/packages/datasets/tsconfig.json',
28
29
  '/home/runner/work/captcha/captcha/packages/load-balancer/tsconfig.json',
29
30
  '/home/runner/work/captcha/captcha/packages/puzzle-assets/tsconfig.json'
@@ -50,6 +51,7 @@ ViteCommonJSConfig: .
50
51
  '@prosopo/keyring',
51
52
  '@prosopo/provider',
52
53
  '@prosopo/api-express-router',
54
+ '@prosopo/captcha-severity',
53
55
  '@prosopo/datasets',
54
56
  '@prosopo/load-balancer',
55
57
  '@prosopo/puzzle-assets'
@@ -80,11 +82,10 @@ dist/cjs/commands/migrateAbuserScoreThreshold.cjs 2.17 kB │ gzip: 0.90 kB
80
82
  dist/cjs/argv.cjs 2.30 kB │ gzip: 0.66 kB
81
83
  dist/cjs/start.cjs 2.45 kB │ gzip: 0.84 kB
82
84
  dist/cjs/commands/siteKeyRegisterApi.cjs 3.70 kB │ gzip: 1.19 kB
83
- dist/cjs/commands/siteKeyRegister.cjs 4.29 kB │ gzip: 1.30 kB
84
- dist/cjs/prosopo.config.cjs 4.58 kB │ gzip: 1.46 kB
85
+ dist/cjs/commands/siteKeyRegister.cjs 4.06 kB │ gzip: 1.22 kB
86
+ dist/cjs/prosopo.config.cjs 4.63 kB │ gzip: 1.47 kB
85
87
  dist/cjs/RateLimiter.cjs 5.58 kB │ gzip: 0.89 kB
86
88
 
87
- ✓ built in 48ms
88
89
  [EMPTY_IMPORT_META] `import.meta` may not be a valid syntax with the `cjs` output format.
89
90
  ╭─[ src/prosopo.config.ts:56:21 ]
90
91
  │
@@ -93,3 +94,4 @@ dist/cjs/RateLimiter.cjs 5.58 kB │ gzip: 0.89 kB
93
94
   │ ╰─────── This `import.meta` will be replaced with an empty object (`{}`) automatically. If this is desired, you can suppress this warning by adding `transform.define: { 'import.meta': {} }`. If `import.meta` needs to be kept as-is, you need to set the output format to `esm`.
94
95
  ────╯
95
96
  
97
+ ✓ built in 64ms
@@ -1,8 +1,8 @@
1
1
 
2
- > @prosopo/cli@3.8.4 build:tsc
2
+ > @prosopo/cli@3.8.6 build:tsc
3
3
  > tsc --build --verbose
4
4
 
5
- 1:57:00 PM - Projects in this build:
5
+ 1:16:13 PM - Projects in this build:
6
6
  * ../../dev/config/tsconfig.json
7
7
  * ../locale/tsconfig.json
8
8
  * ../util/tsconfig.json
@@ -22,6 +22,7 @@
22
22
  * ../types-env/tsconfig.json
23
23
  * ../env/tsconfig.json
24
24
  * ../api-express-router/tsconfig.json
25
+ * ../captcha-severity/tsconfig.json
25
26
  * ../datasets/tsconfig.json
26
27
  * ../load-balancer/tsconfig.json
27
28
  * ../puzzle-assets/tsconfig.json
@@ -29,55 +30,57 @@
29
30
  * ../../dev/workspace/tsconfig.json
30
31
  * tsconfig.json
31
32
 
32
- 1:57:00 PM - Project '../../dev/config/tsconfig.json' is up to date because newest input '../../dev/config/src/webpack/webpack.config.ts' is older than output '../../dev/config/tsconfig.tsbuildinfo'
33
+ 1:16:14 PM - Project '../../dev/config/tsconfig.json' is up to date because newest input '../../dev/config/src/webpack/webpack.config.ts' is older than output '../../dev/config/tsconfig.tsbuildinfo'
33
34
 
34
- 1:57:00 PM - Project '../locale/tsconfig.json' is up to date because newest input '../locale/src/translationKey.ts' is older than output '../locale/tsconfig.tsbuildinfo'
35
+ 1:16:14 PM - Project '../locale/tsconfig.json' is up to date because newest input '../locale/src/translationKey.ts' is older than output '../locale/tsconfig.tsbuildinfo'
35
36
 
36
- 1:57:00 PM - Project '../util/tsconfig.json' is up to date because newest input '../util/src/url.ts' is older than output '../util/tsconfig.tsbuildinfo'
37
+ 1:16:14 PM - Project '../util/tsconfig.json' is up to date because newest input '../util/src/url.ts' is older than output '../util/tsconfig.tsbuildinfo'
37
38
 
38
- 1:57:00 PM - Project '../util-crypto/tsconfig.json' is up to date because newest input '../util-crypto/src/types.ts' is older than output '../util-crypto/tsconfig.tsbuildinfo'
39
+ 1:16:14 PM - Project '../util-crypto/tsconfig.json' is up to date because newest input '../util-crypto/src/types.ts' is older than output '../util-crypto/tsconfig.tsbuildinfo'
39
40
 
40
- 1:57:00 PM - Project '../types/tsconfig.json' is up to date because newest input '../types/src/index.ts' is older than output '../types/tsconfig.tsbuildinfo'
41
+ 1:16:14 PM - Project '../types/tsconfig.json' is up to date because newest input '../types/src/types.test-d.ts' is older than output '../types/tsconfig.tsbuildinfo'
41
42
 
42
- 1:57:00 PM - Project '../api/tsconfig.json' is up to date because newest input '../api/src/index.ts' is older than output '../api/tsconfig.tsbuildinfo'
43
+ 1:16:14 PM - Project '../api/tsconfig.json' is up to date because newest input '../api/src/tests/apiHarness.ts' is older than output '../api/tsconfig.tsbuildinfo'
43
44
 
44
- 1:57:00 PM - Project '../logger/tsconfig.json' is up to date because newest input '../logger/src/index.ts' is older than output '../logger/tsconfig.tsbuildinfo'
45
+ 1:16:14 PM - Project '../logger/tsconfig.json' is up to date because newest input '../logger/src/index.ts' is older than output '../logger/tsconfig.tsbuildinfo'
45
46
 
46
- 1:57:00 PM - Project '../common/tsconfig.json' is up to date because newest input '../common/src/index.ts' is older than output '../common/tsconfig.tsbuildinfo'
47
+ 1:16:14 PM - Project '../common/tsconfig.json' is up to date because newest input '../common/src/utils/batches.ts' is older than output '../common/tsconfig.tsbuildinfo'
47
48
 
48
- 1:57:00 PM - Project '../dotenv/tsconfig.json' is up to date because newest input '../dotenv/src/index.ts' is older than output '../dotenv/tsconfig.tsbuildinfo'
49
+ 1:16:14 PM - Project '../dotenv/tsconfig.json' is up to date because newest input '../dotenv/src/env.ts' is older than output '../dotenv/tsconfig.tsbuildinfo'
49
50
 
50
- 1:57:00 PM - Project '../ipinfo/tsconfig.json' is up to date because newest input '../ipinfo/src/IpInfoService.ts' is older than output '../ipinfo/tsconfig.tsbuildinfo'
51
+ 1:16:14 PM - Project '../ipinfo/tsconfig.json' is up to date because newest input '../ipinfo/src/IpInfoService.ts' is older than output '../ipinfo/tsconfig.tsbuildinfo'
51
52
 
52
- 1:57:00 PM - Project '../api-route/tsconfig.json' is up to date because newest input '../api-route/src/index.ts' is older than output '../api-route/tsconfig.tsbuildinfo'
53
+ 1:16:14 PM - Project '../api-route/tsconfig.json' is up to date because newest input '../api-route/src/apiRoutes.ts' is older than output '../api-route/tsconfig.tsbuildinfo'
53
54
 
54
- 1:57:00 PM - Project '../redis-client/tsconfig.json' is up to date because newest input '../redis-client/src/index.ts' is older than output '../redis-client/tsconfig.tsbuildinfo'
55
+ 1:16:14 PM - Project '../redis-client/tsconfig.json' is up to date because newest input '../redis-client/src/index.ts' is older than output '../redis-client/tsconfig.tsbuildinfo'
55
56
 
56
- 1:57:00 PM - Project '../user-access-policy/tsconfig.json' is up to date because newest input '../user-access-policy/src/rule.ts' is older than output '../user-access-policy/tsconfig.tsbuildinfo'
57
+ 1:16:14 PM - Project '../user-access-policy/tsconfig.json' is up to date because newest input '../user-access-policy/src/transformRule.ts' is older than output '../user-access-policy/tsconfig.tsbuildinfo'
57
58
 
58
- 1:57:00 PM - Project '../types-database/tsconfig.json' is up to date because newest input '../types-database/src/index.ts' is older than output '../types-database/tsconfig.tsbuildinfo'
59
+ 1:16:14 PM - Project '../types-database/tsconfig.json' is up to date because newest input '../types-database/src/types.test-d.ts' is older than output '../types-database/tsconfig.tsbuildinfo'
59
60
 
60
- 1:57:00 PM - Project '../database/tsconfig.json' is up to date because newest input '../database/src/tests/mongoGlobalSetup.ts' is older than output '../database/tsconfig.tsbuildinfo'
61
+ 1:16:14 PM - Project '../database/tsconfig.json' is up to date because newest input '../database/src/tests/unit/captchaLabel.unit.test.ts' is older than output '../database/tsconfig.tsbuildinfo'
61
62
 
62
- 1:57:00 PM - Project '../keyring/tsconfig.json' is up to date because newest input '../keyring/src/index.ts' is older than output '../keyring/tsconfig.tsbuildinfo'
63
+ 1:16:14 PM - Project '../keyring/tsconfig.json' is up to date because newest input '../keyring/src/keyring/keyring.test.ts' is older than output '../keyring/tsconfig.tsbuildinfo'
63
64
 
64
- 1:57:00 PM - Project '../types-env/tsconfig.json' is up to date because newest input '../types-env/src/index.ts' is older than output '../types-env/tsconfig.tsbuildinfo'
65
+ 1:16:14 PM - Project '../types-env/tsconfig.json' is up to date because newest input '../types-env/src/env.ts' is older than output '../types-env/tsconfig.tsbuildinfo'
65
66
 
66
- 1:57:00 PM - Project '../env/tsconfig.json' is up to date because newest input '../env/src/index.ts' is older than output '../env/tsconfig.tsbuildinfo'
67
+ 1:16:14 PM - Project '../env/tsconfig.json' is up to date because newest input '../env/src/index.ts' is older than output '../env/tsconfig.tsbuildinfo'
67
68
 
68
- 1:57:00 PM - Project '../api-express-router/tsconfig.json' is up to date because newest input '../api-express-router/src/tests/unit/testDoubles.ts' is older than output '../api-express-router/tsconfig.tsbuildinfo'
69
+ 1:16:14 PM - Project '../api-express-router/tsconfig.json' is up to date because newest input '../api-express-router/src/errorHandler.ts' is older than output '../api-express-router/tsconfig.tsbuildinfo'
69
70
 
70
- 1:57:00 PM - Project '../datasets/tsconfig.json' is up to date because newest input '../datasets/src/index.ts' is older than output '../datasets/tsconfig.tsbuildinfo'
71
+ 1:16:14 PM - Project '../captcha-severity/tsconfig.json' is up to date because newest input '../captcha-severity/src/index.test.ts' is older than output '../captcha-severity/tsconfig.tsbuildinfo'
71
72
 
72
- 1:57:00 PM - Project '../load-balancer/tsconfig.json' is up to date because newest input '../load-balancer/src/balancer.ts' is older than output '../load-balancer/tsconfig.tsbuildinfo'
73
+ 1:16:14 PM - Project '../datasets/tsconfig.json' is up to date because newest input '../datasets/src/tests/dataset.unit.test.ts' is older than output '../datasets/tsconfig.tsbuildinfo'
73
74
 
74
- 1:57:00 PM - Project '../puzzle-assets/tsconfig.json' is up to date because newest input '../puzzle-assets/src/background.ts' is older than output '../puzzle-assets/tsconfig.tsbuildinfo'
75
+ 1:16:14 PM - Project '../load-balancer/tsconfig.json' is up to date because newest input '../load-balancer/src/balancer.ts' is older than output '../load-balancer/tsconfig.tsbuildinfo'
75
76
 
76
- 1:57:00 PM - Project '../provider/tsconfig.json' is up to date because newest input '../provider/src/util.ts' is older than output '../provider/tsconfig.tsbuildinfo'
77
+ 1:16:14 PM - Project '../puzzle-assets/tsconfig.json' is up to date because newest input '../puzzle-assets/src/background.ts' is older than output '../puzzle-assets/tsconfig.tsbuildinfo'
77
78
 
78
- 1:57:00 PM - Project '../../dev/workspace/tsconfig.json' is up to date because newest input '../../dev/workspace/src/index.ts' is older than output '../../dev/workspace/tsconfig.tsbuildinfo'
79
+ 1:16:14 PM - Project '../provider/tsconfig.json' is up to date because newest input '../provider/src/util.ts' is older than output '../provider/tsconfig.tsbuildinfo'
79
80
 
80
- 1:57:00 PM - Project 'tsconfig.json' is out of date because output file 'tsconfig.tsbuildinfo' does not exist
81
+ 1:16:14 PM - Project '../../dev/workspace/tsconfig.json' is up to date because newest input '../../dev/workspace/src/index.ts' is older than output '../../dev/workspace/tsconfig.tsbuildinfo'
81
82
 
82
- 1:57:00 PM - Building project '/home/runner/work/captcha/captcha/packages/cli/tsconfig.json'...
83
+ 1:16:14 PM - Project 'tsconfig.json' is out of date because output file 'tsconfig.tsbuildinfo' does not exist
84
+
85
+ 1:16:14 PM - Building project '/home/runner/work/captcha/captcha/packages/cli/tsconfig.json'...
83
86
 
@@ -1,9 +1,9 @@
1
1
 
2
- > @prosopo/cli@3.8.4 build
2
+ > @prosopo/cli@3.8.6 build
3
3
  > npm run build:cross-env -- --mode ${NODE_ENV:-development}
4
4
 
5
5
 
6
- > @prosopo/cli@3.8.4 build:cross-env
6
+ > @prosopo/cli@3.8.6 build:cross-env
7
7
  > vite build --config vite.esm.config.ts --mode production
8
8
 
9
9
  ViteEsmConfig: .
@@ -28,6 +28,7 @@ ViteEsmConfig: .
28
28
  '/home/runner/work/captcha/captcha/packages/keyring/tsconfig.json',
29
29
  '/home/runner/work/captcha/captcha/packages/provider/tsconfig.json',
30
30
  '/home/runner/work/captcha/captcha/packages/api-express-router/tsconfig.json',
31
+ '/home/runner/work/captcha/captcha/packages/captcha-severity/tsconfig.json',
31
32
  '/home/runner/work/captcha/captcha/packages/datasets/tsconfig.json',
32
33
  '/home/runner/work/captcha/captcha/packages/load-balancer/tsconfig.json',
33
34
  '/home/runner/work/captcha/captcha/packages/puzzle-assets/tsconfig.json'
@@ -54,6 +55,7 @@ ViteEsmConfig: .
54
55
  '@prosopo/keyring',
55
56
  '@prosopo/provider',
56
57
  '@prosopo/api-express-router',
58
+ '@prosopo/captcha-severity',
57
59
  '@prosopo/datasets',
58
60
  '@prosopo/load-balancer',
59
61
  '@prosopo/puzzle-assets'
@@ -84,8 +86,8 @@ dist/argv.js 1.98 kB │ gzip: 0.59 kB
84
86
  dist/commands/migrateAbuserScoreThreshold.js 2.11 kB │ gzip: 0.89 kB
85
87
  dist/start.js 2.23 kB │ gzip: 0.82 kB
86
88
  dist/commands/siteKeyRegisterApi.js 3.63 kB │ gzip: 1.19 kB
87
- dist/commands/siteKeyRegister.js 4.16 kB │ gzip: 1.31 kB
88
- dist/prosopo.config.js 4.43 kB │ gzip: 1.47 kB
89
+ dist/commands/siteKeyRegister.js 3.91 kB │ gzip: 1.22 kB
90
+ dist/prosopo.config.js 4.49 kB │ gzip: 1.48 kB
89
91
  dist/RateLimiter.js 5.16 kB │ gzip: 0.89 kB
90
92
 
91
- ✓ built in 42ms
93
+ ✓ built in 62ms
package/CHANGELOG.md CHANGED
@@ -1,5 +1,91 @@
1
1
  # @prosopo/cli
2
2
 
3
+ ## 3.8.6
4
+ ### Patch Changes
5
+
6
+ - 6f57ee9: chore(deps): bump yargs from 17.7.2 to 18.1.0
7
+ - Updated dependencies [6f57ee9]
8
+ - Updated dependencies [6f57ee9]
9
+ - Updated dependencies [e22d5fb]
10
+ - Updated dependencies [c59f8a6]
11
+ - Updated dependencies [d288371]
12
+ - @prosopo/provider@5.8.0
13
+ - @prosopo/types@5.7.0
14
+ - @prosopo/util@3.3.9
15
+ - @prosopo/env@3.6.51
16
+ - @prosopo/api@4.1.6
17
+ - @prosopo/common@3.1.54
18
+ - @prosopo/dotenv@3.0.55
19
+ - @prosopo/keyring@2.9.85
20
+ - @prosopo/logger@2.0.9
21
+
22
+ ## 3.8.5
23
+ ### Patch Changes
24
+
25
+ - 89dd38a: chore(deps): batch the outstanding dependabot bumps into one upgrade
26
+
27
+ Rolls up dependabot PRs #3112, #3127-#3134 and #3159. Majors: `mongoose`
28
+ 8 -> 9, `bson` 6 -> 7, `@noble/curves` 1 -> 2, `@polkadot/util-crypto`
29
+ 13 -> 14, `@typegoose/auto-increment` 4 -> 5, `@babel/preset-env` 7 -> 8,
30
+ `@types/jsdom` 21 -> 30, `@types/bcrypt` 5 -> 6, `@actions/github` 6 -> 9,
31
+ `testcontainers` 11 -> 12. The rest are minor/patch.
32
+
33
+ Code changes the majors forced:
34
+ - `@noble/curves` v2 requires `.js` specifiers and renamed the point API,
35
+ so `secp256k1.ProjectivePoint.fromHex(...).toRawBytes()` becomes
36
+ `secp256k1.Point.fromBytes(...).toBytes()`, `RistrettoPoint` becomes
37
+ `ristretto255.Point`, and `abstract/utils` moves to `utils.js`.
38
+ - mongoose 9 drops `RootFilterQuery` (now `QueryFilter`), no longer sets
39
+ `background: true` on schema indexes by default, and no longer declares
40
+ `id` on `Document`, which un-hid a mismatch between
41
+ `updateDappUserCommitment`'s `Hash` parameter and the `string` `id` it
42
+ filters on.
43
+ - mongoose 9 rejects an aggregation-pipeline update (an array) unless the
44
+ call passes `updatePipeline: true`, so the six pipeline writes in
45
+ `ProviderDatabase` now opt in explicitly.
46
+ - mongoose 9's `castUpdate` throws on a `$setOnInsert` key inside `$set`.
47
+ `storeUserImageCaptchaSolution` passed its record straight in as the
48
+ update, and mongoose's `moveImmutableProperties` mutates that object on
49
+ an upsert -- adding the very `$setOnInsert` key the record then carried
50
+ into `CentralDbStreamer.streamImageRecord`. Image records stopped
51
+ reaching the central DB (the streamer is fire-and-forget, so it only
52
+ logged) and signup verification returned 500. The update is now an
53
+ explicit `$set` over a shallow copy.
54
+ - `@prosopo/database` moves from mongodb 6.20 to 7.5 to match the driver
55
+ mongoose 9 pulls, so bson 7 is the only copy resolvable in the package.
56
+ - `vitest`/`@vitest/coverage-v8` go to 4.1.11 alongside dependabot's
57
+ `@vitest/spy` bump; leaving them at 4.1.10 installed a second copy of
58
+ `@vitest/spy` and broke type inference in the provider test utils.
59
+ - 8a670d3: Remove the provider-side context validation path.
60
+
61
+ The provider read a per-context baseline out of `clientcontextentropies` on the frictionless path and compared a session's head hash against it. The task that wrote that collection was removed from the provider on 2026-08-21, so the read has returned `undefined` ever since and the branch has been dead in every deployment since then. Computing and applying the baseline now happens off-provider.
62
+
63
+ Removed: `contextAwareValidation.ts`, the decision-machine branch that used it, `getClientContextEntropy` on the provider and its database method, the `clientContextEntropy` table registration, the unused `getRoundsFromSimScore` helper, and the `contextAwareEnabled` parameter threaded into image verification — which logged and then did nothing, its return commented out.
64
+
65
+ Also removes the per-site `settings.contextAware` block that configured it, along with `ContextAwareSchema`, `IContextAware`, `IContexts`, `ContextConfigSchema`, `contextAwareThresholdDefault` and `expandContexts`, the legacy `default`/`webview` context keys and their helpers, and `FrictionlessReason.CONTEXT_AWARE_VALIDATION_FAILED`. The site-key registration CLI no longer writes a `contextAware` default into new sites.
66
+
67
+ `ContextType`, `contextTypeFromSession` and `deviceContextTypes` stay — the off-provider work keys on them. `ClientContextEntropyRecord` and its schema stay for the same reason; only the provider's use of them goes.
68
+
69
+ No behaviour change: every path removed here was already inert.
70
+ - Updated dependencies [7fd6eb2]
71
+ - Updated dependencies [424e467]
72
+ - Updated dependencies [89dd38a]
73
+ - Updated dependencies [4810cb3]
74
+ - Updated dependencies [80f73c1]
75
+ - Updated dependencies [3d2176d]
76
+ - Updated dependencies [8a670d3]
77
+ - @prosopo/provider@5.7.0
78
+ - @prosopo/workspace@3.2.1
79
+ - @prosopo/api@4.1.5
80
+ - @prosopo/common@3.1.53
81
+ - @prosopo/dotenv@3.0.54
82
+ - @prosopo/env@3.6.50
83
+ - @prosopo/keyring@2.9.84
84
+ - @prosopo/locale@3.4.1
85
+ - @prosopo/logger@2.0.8
86
+ - @prosopo/types@5.6.0
87
+ - @prosopo/util@3.3.8
88
+
3
89
  ## 3.8.4
4
90
  ### Patch Changes
5
91
 
@@ -542,7 +542,7 @@ var z;
542
542
  M() && (typeof global < "u" && global.XMLHttpRequest ? z = global.XMLHttpRequest : typeof window < "u" && window.XMLHttpRequest && (z = window.XMLHttpRequest));
543
543
  var B;
544
544
  if (typeof ActiveXObject == "function" && (typeof global < "u" && global.ActiveXObject ? B = global.ActiveXObject : typeof window < "u" && window.ActiveXObject && (B = window.ActiveXObject)), typeof R != "function" && (R = void 0), !R && !z && !B) try {
545
- import("./node-ponyfill-BXKwLYwg.js").then((e) => /* @__PURE__ */ n(e.default, 1)).then(function(e) {
545
+ import("./node-ponyfill-ByScaio2.js").then((e) => /* @__PURE__ */ n(e.default, 1)).then(function(e) {
546
546
  R = e.default;
547
547
  }).catch(function() {});
548
548
  } catch {}
@@ -1,8 +1,8 @@
1
1
  import { a as e, c as t, i as n, l as r, o as i, s as a } from "./provider.cli.bundle.js";
2
2
  import o from "url";
3
3
  import s from "http";
4
- import c from "stream";
5
- import l from "zlib";
4
+ import c from "zlib";
5
+ import l from "stream";
6
6
  import u from "https";
7
7
  //#region ../../node_modules/cross-fetch/node_modules/webidl-conversions/lib/index.js
8
8
  var d = /* @__PURE__ */ n(((e, t) => {
@@ -898,11 +898,11 @@ function b(e) {
898
898
  let i = r === void 0 ? 0 : r;
899
899
  var a = n.timeout;
900
900
  let o = a === void 0 ? 0 : a;
901
- e == null ? e = null : ie(e) ? e = Buffer.from(e.toString()) : S(e) || Buffer.isBuffer(e) || (Object.prototype.toString.call(e) === "[object ArrayBuffer]" ? e = Buffer.from(e) : ArrayBuffer.isView(e) ? e = Buffer.from(e.buffer, e.byteOffset, e.byteLength) : e instanceof c || (e = Buffer.from(String(e)))), this[H] = {
901
+ e == null ? e = null : ie(e) ? e = Buffer.from(e.toString()) : S(e) || Buffer.isBuffer(e) || (Object.prototype.toString.call(e) === "[object ArrayBuffer]" ? e = Buffer.from(e) : ArrayBuffer.isView(e) ? e = Buffer.from(e.buffer, e.byteOffset, e.byteLength) : e instanceof l || (e = Buffer.from(String(e)))), this[H] = {
902
902
  body: e,
903
903
  disturbed: !1,
904
904
  error: null
905
- }, this.size = i, this.timeout = o, e instanceof c && e.on("error", function(e) {
905
+ }, this.size = i, this.timeout = o, e instanceof l && e.on("error", function(e) {
906
906
  let n = e.name === "AbortError" ? e : new y(`Invalid response body while trying to fetch ${t.url}: ${e.message}`, "system", e);
907
907
  t[H].error = n;
908
908
  });
@@ -915,7 +915,7 @@ function x() {
915
915
  if (t === null) return b.Promise.resolve(Buffer.alloc(0));
916
916
  if (S(t) && (t = t.stream()), Buffer.isBuffer(t)) return b.Promise.resolve(t);
917
917
  // istanbul ignore if: should never happen
918
- if (!(t instanceof c)) return b.Promise.resolve(Buffer.alloc(0));
918
+ if (!(t instanceof l)) return b.Promise.resolve(Buffer.alloc(0));
919
919
  let n = [], r = 0, i = !1;
920
920
  return new b.Promise(function(a, o) {
921
921
  let s;
@@ -957,10 +957,10 @@ function S(e) {
957
957
  function ae(e) {
958
958
  let t, n, r = e.body;
959
959
  if (e.bodyUsed) throw Error("cannot clone body after it is used");
960
- return r instanceof c && typeof r.getBoundary != "function" && (t = new U(), n = new U(), r.pipe(t), r.pipe(n), e[H].body = t, r = n), r;
960
+ return r instanceof l && typeof r.getBoundary != "function" && (t = new U(), n = new U(), r.pipe(t), r.pipe(n), e[H].body = t, r = n), r;
961
961
  }
962
962
  function C(e) {
963
- return e === null ? null : typeof e == "string" ? "text/plain;charset=UTF-8" : ie(e) ? "application/x-www-form-urlencoded;charset=UTF-8" : S(e) ? e.type || null : Buffer.isBuffer(e) || Object.prototype.toString.call(e) === "[object ArrayBuffer]" || ArrayBuffer.isView(e) ? null : typeof e.getBoundary == "function" ? `multipart/form-data;boundary=${e.getBoundary()}` : e instanceof c ? null : "text/plain;charset=UTF-8";
963
+ return e === null ? null : typeof e == "string" ? "text/plain;charset=UTF-8" : ie(e) ? "application/x-www-form-urlencoded;charset=UTF-8" : S(e) ? e.type || null : Buffer.isBuffer(e) || Object.prototype.toString.call(e) === "[object ArrayBuffer]" || ArrayBuffer.isView(e) ? null : typeof e.getBoundary == "function" ? `multipart/form-data;boundary=${e.getBoundary()}` : e instanceof l ? null : "text/plain;charset=UTF-8";
964
964
  }
965
965
  function oe(e) {
966
966
  let t = e.body;
@@ -1022,7 +1022,7 @@ function le(e) {
1022
1022
  let t = e[Z].parsedURL, n = new K(e[Z].headers);
1023
1023
  if (n.has("Accept") || n.set("Accept", "*/*"), !t.protocol || !t.hostname) throw TypeError("Only absolute URLs are supported");
1024
1024
  if (!/^https?:$/.test(t.protocol)) throw TypeError("Only HTTP(S) protocols are supported");
1025
- if (e.signal && e.body instanceof c.Readable && !ge) throw Error("Cancellation of streamed requests with AbortSignal is not supported in node < 8");
1025
+ if (e.signal && e.body instanceof l.Readable && !ge) throw Error("Cancellation of streamed requests with AbortSignal is not supported in node < 8");
1026
1026
  let r = null;
1027
1027
  if (e.body == null && /^(POST|PUT)$/i.test(e.method) && (r = "0"), e.body != null) {
1028
1028
  let t = oe(e);
@@ -1044,7 +1044,7 @@ function P(e, t) {
1044
1044
  return b.Promise = P.Promise, new P.Promise(function(n, r) {
1045
1045
  let i = new Q(e, t), a = le(i), o = (a.protocol === "https:" ? u : s).request, d = i.signal, f = null, p = function() {
1046
1046
  let e = new N("The user aborted a request.");
1047
- r(e), i.body && i.body instanceof c.Readable && F(i.body, e), !(!f || !f.body) && f.body.emit("error", e);
1047
+ r(e), i.body && i.body instanceof l.Readable && F(i.body, e), !(!f || !f.body) && f.body.emit("error", e);
1048
1048
  };
1049
1049
  if (d && d.aborted) {
1050
1050
  p();
@@ -1146,25 +1146,25 @@ function P(e, t) {
1146
1146
  f = new X(a, o), n(f);
1147
1147
  return;
1148
1148
  }
1149
- let c = {
1150
- flush: l.Z_SYNC_FLUSH,
1151
- finishFlush: l.Z_SYNC_FLUSH
1149
+ let l = {
1150
+ flush: c.Z_SYNC_FLUSH,
1151
+ finishFlush: c.Z_SYNC_FLUSH
1152
1152
  };
1153
1153
  if (s == "gzip" || s == "x-gzip") {
1154
- a = a.pipe(l.createGunzip(c)), f = new X(a, o), n(f);
1154
+ a = a.pipe(c.createGunzip(l)), f = new X(a, o), n(f);
1155
1155
  return;
1156
1156
  }
1157
1157
  if (s == "deflate" || s == "x-deflate") {
1158
1158
  let t = e.pipe(new _e());
1159
1159
  t.once("data", function(e) {
1160
- a = (e[0] & 15) == 8 ? a.pipe(l.createInflate()) : a.pipe(l.createInflateRaw()), f = new X(a, o), n(f);
1160
+ a = (e[0] & 15) == 8 ? a.pipe(c.createInflate()) : a.pipe(c.createInflateRaw()), f = new X(a, o), n(f);
1161
1161
  }), t.on("end", function() {
1162
1162
  f || (f = new X(a, o), n(f));
1163
1163
  });
1164
1164
  return;
1165
1165
  }
1166
- if (s == "br" && typeof l.createBrotliDecompress == "function") {
1167
- a = a.pipe(l.createBrotliDecompress()), f = new X(a, o), n(f);
1166
+ if (s == "br" && typeof c.createBrotliDecompress == "function") {
1167
+ a = a.pipe(c.createBrotliDecompress()), f = new X(a, o), n(f);
1168
1168
  return;
1169
1169
  }
1170
1170
  f = new X(a, o), n(f);
@@ -1189,7 +1189,7 @@ function F(e, t) {
1189
1189
  e.destroy ? e.destroy(t) : (e.emit("error", t), e.end());
1190
1190
  }
1191
1191
  var I, L, R, z, B, V, H, U, de, W, G, K, q, J, Y, fe, X, Z, pe, me, he, ge, Q, $, _e, ve, ye, be = e((() => {
1192
- I = /* @__PURE__ */ r(ne(), 1), L = c.Readable, R = Symbol("buffer"), z = Symbol("type"), B = class e {
1192
+ I = /* @__PURE__ */ r(ne(), 1), L = l.Readable, R = Symbol("buffer"), z = Symbol("type"), B = class e {
1193
1193
  constructor() {
1194
1194
  this[z] = "";
1195
1195
  let t = arguments[0], n = arguments[1], r = [], i = 0;
@@ -1243,7 +1243,7 @@ var I, L, R, z, B, V, H, U, de, W, G, K, q, J, Y, fe, X, Z, pe, me, he, ge, Q, $
1243
1243
  try {
1244
1244
  V = a("encoding").convert;
1245
1245
  } catch {}
1246
- H = Symbol("Body internals"), U = c.PassThrough, b.prototype = {
1246
+ H = Symbol("Body internals"), U = l.PassThrough, b.prototype = {
1247
1247
  get body() {
1248
1248
  return this[H].body;
1249
1249
  },
@@ -1459,7 +1459,7 @@ var I, L, R, z, B, V, H, U, de, W, G, K, q, J, Y, fe, X, Z, pe, me, he, ge, Q, $
1459
1459
  writable: !1,
1460
1460
  enumerable: !1,
1461
1461
  configurable: !0
1462
- }), Z = Symbol("Request internals"), pe = o.URL || I.URL, me = o.parse, he = o.format, ge = "destroy" in c.Readable.prototype, Q = class e {
1462
+ }), Z = Symbol("Request internals"), pe = o.URL || I.URL, me = o.parse, he = o.format, ge = "destroy" in l.Readable.prototype, Q = class e {
1463
1463
  constructor(e) {
1464
1464
  let t = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}, n;
1465
1465
  j(e) ? n = A(e.url) : (n = e && e.href ? A(e.href) : A(`${e}`), e = {});
@@ -1515,7 +1515,7 @@ var I, L, R, z, B, V, H, U, de, W, G, K, q, J, Y, fe, X, Z, pe, me, he, ge, Q, $
1515
1515
  redirect: { enumerable: !0 },
1516
1516
  clone: { enumerable: !0 },
1517
1517
  signal: { enumerable: !0 }
1518
- }), N.prototype = Object.create(Error.prototype), N.prototype.constructor = N, N.prototype.name = "AbortError", $ = o.URL || I.URL, _e = c.PassThrough, ve = function(e, t) {
1518
+ }), N.prototype = Object.create(Error.prototype), N.prototype.constructor = N, N.prototype.name = "AbortError", $ = o.URL || I.URL, _e = l.PassThrough, ve = function(e, t) {
1519
1519
  let n = new $(t).hostname, r = new $(e).hostname;
1520
1520
  return n === r || n[n.length - r.length - 1] === "." && n.endsWith(r);
1521
1521
  }, ye = function(e, t) {