@prosopo/cli 3.8.6 → 3.8.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/.turbo/turbo-build$colon$cjs.log +9 -7
- package/.turbo/turbo-build$colon$tsc.log +32 -29
- package/.turbo/turbo-build.log +10 -8
- package/CHANGELOG.md +50 -0
- package/dist/RateLimiter.d.ts +4 -0
- package/dist/RateLimiter.d.ts.map +1 -1
- package/dist/RateLimiter.js +4 -0
- package/dist/RateLimiter.js.map +1 -1
- package/dist/bundle/provider.cli.bundle.js +15723 -14420
- package/dist/cjs/RateLimiter.cjs +4 -0
- package/dist/cjs/commands/siteKeyRegister.cjs +1 -0
- package/dist/cjs/commands/siteKeyRegisterApi.cjs +1 -0
- package/dist/commands/siteKeyRegister.d.ts.map +1 -1
- package/dist/commands/siteKeyRegister.js +2 -1
- package/dist/commands/siteKeyRegister.js.map +1 -1
- package/dist/commands/siteKeyRegisterApi.d.ts.map +1 -1
- package/dist/commands/siteKeyRegisterApi.js +2 -1
- package/dist/commands/siteKeyRegisterApi.js.map +1 -1
- package/package.json +7 -7
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
|
|
2
|
-
> @prosopo/cli@3.8.
|
|
2
|
+
> @prosopo/cli@3.8.8 build:cjs
|
|
3
3
|
> NODE_ENV=${NODE_ENV:-development}; vite build --config vite.cjs.config.ts --mode $NODE_ENV
|
|
4
4
|
|
|
5
5
|
ViteCommonJSConfig: .
|
|
@@ -27,7 +27,8 @@ ViteCommonJSConfig: .
|
|
|
27
27
|
'/home/runner/work/captcha/captcha/packages/captcha-severity/tsconfig.json',
|
|
28
28
|
'/home/runner/work/captcha/captcha/packages/datasets/tsconfig.json',
|
|
29
29
|
'/home/runner/work/captcha/captcha/packages/load-balancer/tsconfig.json',
|
|
30
|
-
'/home/runner/work/captcha/captcha/packages/puzzle-assets/tsconfig.json'
|
|
30
|
+
'/home/runner/work/captcha/captcha/packages/puzzle-assets/tsconfig.json',
|
|
31
|
+
'/home/runner/work/captcha/captcha/packages/web-bot-auth/tsconfig.json'
|
|
31
32
|
]
|
|
32
33
|
}
|
|
33
34
|
{
|
|
@@ -54,7 +55,8 @@ ViteCommonJSConfig: .
|
|
|
54
55
|
'@prosopo/captcha-severity',
|
|
55
56
|
'@prosopo/datasets',
|
|
56
57
|
'@prosopo/load-balancer',
|
|
57
|
-
'@prosopo/puzzle-assets'
|
|
58
|
+
'@prosopo/puzzle-assets',
|
|
59
|
+
'@prosopo/web-bot-auth'
|
|
58
60
|
]
|
|
59
61
|
}
|
|
60
62
|
[33mThe plugin "vite-tsconfig-paths" is detected. Vite now supports tsconfig paths resolution natively via the [1mresolve.tsconfigPaths[22m option. You can remove the plugin and set [1mresolve.tsconfigPaths: true[22m in your Vite config instead.[39m
|
|
@@ -81,10 +83,10 @@ dist/cjs/reloader.cjs 1.87 kB │ gzip: 0.76 kB
|
|
|
81
83
|
dist/cjs/commands/migrateAbuserScoreThreshold.cjs 2.17 kB │ gzip: 0.90 kB
|
|
82
84
|
dist/cjs/argv.cjs 2.30 kB │ gzip: 0.66 kB
|
|
83
85
|
dist/cjs/start.cjs 2.45 kB │ gzip: 0.84 kB
|
|
84
|
-
dist/cjs/commands/siteKeyRegisterApi.cjs 3.
|
|
85
|
-
dist/cjs/commands/siteKeyRegister.cjs 4.
|
|
86
|
+
dist/cjs/commands/siteKeyRegisterApi.cjs 3.77 kB │ gzip: 1.20 kB
|
|
87
|
+
dist/cjs/commands/siteKeyRegister.cjs 4.13 kB │ gzip: 1.24 kB
|
|
86
88
|
dist/cjs/prosopo.config.cjs 4.63 kB │ gzip: 1.47 kB
|
|
87
|
-
dist/cjs/RateLimiter.cjs 5.
|
|
89
|
+
dist/cjs/RateLimiter.cjs 5.78 kB │ gzip: 0.92 kB
|
|
88
90
|
|
|
89
91
|
[33m[33m[EMPTY_IMPORT_META] [0m`import.meta` may not be a valid syntax with the `cjs` output format.
|
|
90
92
|
[38;5;246m╭[0m[38;5;246m─[0m[38;5;246m[[0m src/prosopo.config.ts:56:21 [38;5;246m][0m
|
|
@@ -94,4 +96,4 @@ dist/cjs/RateLimiter.cjs 5.58 kB │ gzip: 0.89 kB
|
|
|
94
96
|
[38;5;240m │[0m ╰─────── 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`.
|
|
95
97
|
[38;5;246m────╯[0m
|
|
96
98
|
[39m
|
|
97
|
-
[32m✓ built in
|
|
99
|
+
[32m✓ built in 60ms[39m
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
|
|
2
|
-
> @prosopo/cli@3.8.
|
|
2
|
+
> @prosopo/cli@3.8.8 build:tsc
|
|
3
3
|
> tsc --build --verbose
|
|
4
4
|
|
|
5
|
-
|
|
5
|
+
11:41:41 AM - Projects in this build:
|
|
6
6
|
* ../../dev/config/tsconfig.json
|
|
7
7
|
* ../locale/tsconfig.json
|
|
8
8
|
* ../util/tsconfig.json
|
|
@@ -26,61 +26,64 @@
|
|
|
26
26
|
* ../datasets/tsconfig.json
|
|
27
27
|
* ../load-balancer/tsconfig.json
|
|
28
28
|
* ../puzzle-assets/tsconfig.json
|
|
29
|
+
* ../web-bot-auth/tsconfig.json
|
|
29
30
|
* ../provider/tsconfig.json
|
|
30
31
|
* ../../dev/workspace/tsconfig.json
|
|
31
32
|
* tsconfig.json
|
|
32
33
|
|
|
33
|
-
|
|
34
|
+
11:41:41 AM - Project '../../dev/config/tsconfig.json' is up to date because newest input '../../dev/config/src/vite/vite.backend.config.ts' is older than output '../../dev/config/tsconfig.tsbuildinfo'
|
|
34
35
|
|
|
35
|
-
|
|
36
|
+
11:41:41 AM - Project '../locale/tsconfig.json' is up to date because newest input '../locale/src/translationKey.ts' is older than output '../locale/tsconfig.tsbuildinfo'
|
|
36
37
|
|
|
37
|
-
|
|
38
|
+
11:41:41 AM - Project '../util/tsconfig.json' is up to date because newest input '../util/src/url.ts' is older than output '../util/tsconfig.tsbuildinfo'
|
|
38
39
|
|
|
39
|
-
|
|
40
|
+
11:41:41 AM - 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'
|
|
40
41
|
|
|
41
|
-
|
|
42
|
+
11:41:41 AM - Project '../types/tsconfig.json' is up to date because newest input '../types/src/types.test-d.ts' is older than output '../types/tsconfig.tsbuildinfo'
|
|
42
43
|
|
|
43
|
-
|
|
44
|
+
11:41:41 AM - Project '../api/tsconfig.json' is up to date because newest input '../api/src/index.ts' is older than output '../api/tsconfig.tsbuildinfo'
|
|
44
45
|
|
|
45
|
-
|
|
46
|
+
11:41:41 AM - Project '../logger/tsconfig.json' is up to date because newest input '../logger/src/index.ts' is older than output '../logger/tsconfig.tsbuildinfo'
|
|
46
47
|
|
|
47
|
-
|
|
48
|
+
11:41:41 AM - Project '../common/tsconfig.json' is up to date because newest input '../common/src/error.ts' is older than output '../common/tsconfig.tsbuildinfo'
|
|
48
49
|
|
|
49
|
-
|
|
50
|
+
11:41:41 AM - Project '../dotenv/tsconfig.json' is up to date because newest input '../dotenv/src/env.ts' is older than output '../dotenv/tsconfig.tsbuildinfo'
|
|
50
51
|
|
|
51
|
-
|
|
52
|
+
11:41:41 AM - Project '../ipinfo/tsconfig.json' is up to date because newest input '../ipinfo/src/types.ts' is older than output '../ipinfo/tsconfig.tsbuildinfo'
|
|
52
53
|
|
|
53
|
-
|
|
54
|
+
11:41:41 AM - 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'
|
|
54
55
|
|
|
55
|
-
|
|
56
|
+
11:41:41 AM - 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'
|
|
56
57
|
|
|
57
|
-
|
|
58
|
+
11:41:41 AM - 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'
|
|
58
59
|
|
|
59
|
-
|
|
60
|
+
11:41:41 AM - Project '../types-database/tsconfig.json' is up to date because newest input '../types-database/src/types/schemas.test.ts' is older than output '../types-database/tsconfig.tsbuildinfo'
|
|
60
61
|
|
|
61
|
-
|
|
62
|
+
11:41:41 AM - Project '../database/tsconfig.json' is up to date because newest input '../database/src/tests/mongoGlobalSetup.ts' is older than output '../database/tsconfig.tsbuildinfo'
|
|
62
63
|
|
|
63
|
-
|
|
64
|
+
11:41:41 AM - Project '../keyring/tsconfig.json' is up to date because newest input '../keyring/src/index.ts' is older than output '../keyring/tsconfig.tsbuildinfo'
|
|
64
65
|
|
|
65
|
-
|
|
66
|
+
11:41:41 AM - 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'
|
|
66
67
|
|
|
67
|
-
|
|
68
|
+
11:41:42 AM - Project '../env/tsconfig.json' is up to date because newest input '../env/src/env.ts' is older than output '../env/tsconfig.tsbuildinfo'
|
|
68
69
|
|
|
69
|
-
|
|
70
|
+
11:41:42 AM - Project '../api-express-router/tsconfig.json' is up to date because newest input '../api-express-router/src/tests/unit/apiExpressDefaultEndpointAdapter.unit.test.ts' is older than output '../api-express-router/tsconfig.tsbuildinfo'
|
|
70
71
|
|
|
71
|
-
|
|
72
|
+
11:41:42 AM - 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'
|
|
72
73
|
|
|
73
|
-
|
|
74
|
+
11:41:42 AM - Project '../datasets/tsconfig.json' is up to date because newest input '../datasets/src/tests/mocks/data/captchas.ts' is older than output '../datasets/tsconfig.tsbuildinfo'
|
|
74
75
|
|
|
75
|
-
|
|
76
|
+
11:41:42 AM - 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'
|
|
76
77
|
|
|
77
|
-
|
|
78
|
+
11:41:42 AM - Project '../puzzle-assets/tsconfig.json' is up to date because newest input '../puzzle-assets/src/types.ts' is older than output '../puzzle-assets/tsconfig.tsbuildinfo'
|
|
78
79
|
|
|
79
|
-
|
|
80
|
+
11:41:42 AM - Project '../web-bot-auth/tsconfig.json' is up to date because newest input '../web-bot-auth/src/base64.ts' is older than output '../web-bot-auth/tsconfig.tsbuildinfo'
|
|
80
81
|
|
|
81
|
-
|
|
82
|
+
11:41:42 AM - Project '../provider/tsconfig.json' is up to date because newest input '../provider/src/utils/devicePlatform.ts' is older than output '../provider/tsconfig.tsbuildinfo'
|
|
82
83
|
|
|
83
|
-
|
|
84
|
+
11:41:42 AM - 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'
|
|
84
85
|
|
|
85
|
-
|
|
86
|
+
11:41:42 AM - Project 'tsconfig.json' is out of date because output file 'tsconfig.tsbuildinfo' does not exist
|
|
87
|
+
|
|
88
|
+
11:41:42 AM - Building project '/home/runner/work/captcha/captcha/packages/cli/tsconfig.json'...
|
|
86
89
|
|
package/.turbo/turbo-build.log
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
|
|
2
|
-
> @prosopo/cli@3.8.
|
|
2
|
+
> @prosopo/cli@3.8.8 build
|
|
3
3
|
> npm run build:cross-env -- --mode ${NODE_ENV:-development}
|
|
4
4
|
|
|
5
5
|
|
|
6
|
-
> @prosopo/cli@3.8.
|
|
6
|
+
> @prosopo/cli@3.8.8 build:cross-env
|
|
7
7
|
> vite build --config vite.esm.config.ts --mode production
|
|
8
8
|
|
|
9
9
|
ViteEsmConfig: .
|
|
@@ -31,7 +31,8 @@ ViteEsmConfig: .
|
|
|
31
31
|
'/home/runner/work/captcha/captcha/packages/captcha-severity/tsconfig.json',
|
|
32
32
|
'/home/runner/work/captcha/captcha/packages/datasets/tsconfig.json',
|
|
33
33
|
'/home/runner/work/captcha/captcha/packages/load-balancer/tsconfig.json',
|
|
34
|
-
'/home/runner/work/captcha/captcha/packages/puzzle-assets/tsconfig.json'
|
|
34
|
+
'/home/runner/work/captcha/captcha/packages/puzzle-assets/tsconfig.json',
|
|
35
|
+
'/home/runner/work/captcha/captcha/packages/web-bot-auth/tsconfig.json'
|
|
35
36
|
]
|
|
36
37
|
}
|
|
37
38
|
{
|
|
@@ -58,7 +59,8 @@ ViteEsmConfig: .
|
|
|
58
59
|
'@prosopo/captcha-severity',
|
|
59
60
|
'@prosopo/datasets',
|
|
60
61
|
'@prosopo/load-balancer',
|
|
61
|
-
'@prosopo/puzzle-assets'
|
|
62
|
+
'@prosopo/puzzle-assets',
|
|
63
|
+
'@prosopo/web-bot-auth'
|
|
62
64
|
]
|
|
63
65
|
}
|
|
64
66
|
[33mThe plugin "vite-tsconfig-paths" is detected. Vite now supports tsconfig paths resolution natively via the [1mresolve.tsconfigPaths[22m option. You can remove the plugin and set [1mresolve.tsconfigPaths: true[22m in your Vite config instead.[39m
|
|
@@ -85,9 +87,9 @@ dist/reloader.js 1.62 kB │ gzip: 0.69 kB
|
|
|
85
87
|
dist/argv.js 1.98 kB │ gzip: 0.59 kB
|
|
86
88
|
dist/commands/migrateAbuserScoreThreshold.js 2.11 kB │ gzip: 0.89 kB
|
|
87
89
|
dist/start.js 2.23 kB │ gzip: 0.82 kB
|
|
88
|
-
dist/commands/siteKeyRegisterApi.js 3.
|
|
89
|
-
dist/commands/siteKeyRegister.js 3.
|
|
90
|
+
dist/commands/siteKeyRegisterApi.js 3.71 kB │ gzip: 1.21 kB
|
|
91
|
+
dist/commands/siteKeyRegister.js 3.99 kB │ gzip: 1.24 kB
|
|
90
92
|
dist/prosopo.config.js 4.49 kB │ gzip: 1.48 kB
|
|
91
|
-
dist/RateLimiter.js 5.
|
|
93
|
+
dist/RateLimiter.js 5.35 kB │ gzip: 0.92 kB
|
|
92
94
|
|
|
93
|
-
[32m✓ built in
|
|
95
|
+
[32m✓ built in 57ms[39m
|
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,55 @@
|
|
|
1
1
|
# @prosopo/cli
|
|
2
2
|
|
|
3
|
+
## 3.8.8
|
|
4
|
+
### Patch Changes
|
|
5
|
+
|
|
6
|
+
- af267c2: Web Bot Auth verifier and an authenticated frictionless flow for pre-verified agents.
|
|
7
|
+
|
|
8
|
+
**`@prosopo/web-bot-auth`** — a new package: an RFC 9421 HTTP Message Signatures verifier built on `@noble/curves/ed25519`, with no Cloudflare dependency. It parses `Signature-Agent` in both its bare-string and dictionary forms, resolves the signer's JWKS at `/.well-known/http-message-signatures-directory` honouring the response's cache-control TTL, and verifies the Ed25519 signature over the RFC 9421 signature base.
|
|
9
|
+
|
|
10
|
+
**Provider fast path.** `/captcha/frictionless` returns `captchaType: authenticated` when a non-`deferToVerify` `AccessPolicyType.Allow` rule matches the request's user scope, and writes a session with `serverChecked: false`, `agent: true` and the issuing IP frozen for verify-time binding. Decrypt, bot score and the decision machine are all skipped. A verified `Signature-Agent` is one way to qualify — the userScope gains a `webBotAuthAgent` field, set only when signature verification succeeded so a rule scoped to a signer can never be matched by a spoofed header — but an IP CIDR, JA4, user agent, ASN or country rule qualifies the same way. A `Block` or `Restrict` on the same match set always wins, because severity outranks Allow.
|
|
11
|
+
|
|
12
|
+
**`/client/authenticated/verify`.** A separate router with mandatory IP binding — the operator must forward the client IP (`API.AUTHENTICATED_IP_REQUIRED`) and it must match the one the session was issued to (`API.AUTHENTICATED_IP_MISMATCH`), so a leaked token cannot be replayed from elsewhere. Single use is enforced through `serverChecked`, and `captchaType` is checked so an ordinary captcha token cannot be redeemed on this route. `clientSessionId` correlation goes through the same `isClientSessionMismatch` helper as pow / image / puzzle, so the authenticated path cannot drift from the others.
|
|
13
|
+
|
|
14
|
+
**Surface.** `AccessPolicyType.Allow` and `CaptchaType.authenticated`; `webBotAuthAgent` on the user scope (indexed, normalised at parse time to a lowercase scheme+host with no trailing slash); `Session.agent` / `Session.webBotAuthAgent` for the Traffic view's "pre-verified pass" filter; `submitAuthenticatedCaptchaVerify` on `ProviderApi` and the matching branch in `@prosopo/server.verifyProvider`; `AuthenticatedBadge` and a dispatch branch in `procaptcha-frictionless`.
|
|
15
|
+
|
|
16
|
+
Three fixes the new end-to-end coverage turned up, each of which broke the flow outright:
|
|
17
|
+
|
|
18
|
+
- `ipMatchesSession` compared the operator's parsed IP against the session's composite halves with `===`. A session read back from Mongo carries BSON (`Decimal128`, or `Long` on pre-migration records), not the `bigint` the type claims, so the comparison was false for every session that had been through the database — every legitimate redemption was rejected as `API.AUTHENTICATED_IP_MISMATCH`. Both halves are now normalised before comparison, and an unparseable half fails closed rather than defaulting to `0n`, so garbage still cannot match garbage.
|
|
19
|
+
- `serverChecked` was never written onto the authenticated session, so "never set" and "consumed" were distinguishable only by an absence. It is now written as `false` at issuance.
|
|
20
|
+
- `serverChecked` was missing from `SESSION_PROJECTION`. Left out, the single-use check reads `undefined` and an authenticated token verifies an unlimited number of times.
|
|
21
|
+
- Updated dependencies [929d99b]
|
|
22
|
+
- Updated dependencies [934fa5d]
|
|
23
|
+
- Updated dependencies [27f525e]
|
|
24
|
+
- Updated dependencies [a0c87c7]
|
|
25
|
+
- Updated dependencies [af267c2]
|
|
26
|
+
- @prosopo/types@5.8.0
|
|
27
|
+
- @prosopo/provider@5.9.0
|
|
28
|
+
- @prosopo/api@4.2.0
|
|
29
|
+
- @prosopo/env@3.6.53
|
|
30
|
+
- @prosopo/keyring@2.9.86
|
|
31
|
+
|
|
32
|
+
## 3.8.7
|
|
33
|
+
### Patch Changes
|
|
34
|
+
|
|
35
|
+
- 162f591: Make the MaxMind fallback answer lookups instead of silently failing all of them.
|
|
36
|
+
|
|
37
|
+
`MaxMindBackend` was configured with `cityDbPath` pointing at `GeoLite2-Country.mmdb` (`MAXMIND_DB_PATH`), and only ever called `city()`. `Reader.open()` accepts any valid `.mmdb`, so the reader opened, `isAvailable()` reported `true`, and the backend advertised itself as a working fallback — but `city()` checks `metadata.databaseType` and throws `BadMethodCallError` against a Country database. The throw was swallowed at `debug` level, `asnReader` was never configured because nothing read a path for it, and every lookup fell through to `{ isValid: false, error: "No MaxMind data available for IP" }`.
|
|
38
|
+
|
|
39
|
+
The failure was invisible for as long as ipapi.is was up, because `IpInfoService` only reaches MaxMind when the ipapi.is lookup fails. When the self-hosted ipapi.is sidecar went down on five production provider nodes, IP lookups did not degrade to MaxMind — they failed outright, and `compareIPs` returned "Failed to lookup both IP addresses" for every request whose challenge IP differed from its solution IP.
|
|
40
|
+
|
|
41
|
+
Three changes:
|
|
42
|
+
|
|
43
|
+
- `MaxMindBackend` latches the database kind on the first `BadMethodCallError` and uses `country()` from then on, so a Country database yields country and country code rather than nothing. The latch means the rejection is constructed once per process, not once per request, and a genuine City database never pays for a second lookup. The mismatch is logged once at `warn` with the offending path, because silent degradation is what let this sit unnoticed.
|
|
44
|
+
- `maxmindAsnDbPath` is read from `MAXMIND_ASN_DB_PATH`. The image has downloaded `GeoLite2-ASN.mmdb` alongside City and Country since the Dockerfile was written, but nothing ever opened it, so the fallback could not name a provider or an AS number.
|
|
45
|
+
- `deepValidateIpAddress` logs `ip1Error` and `ip2Error` alongside the top-level comparison error. "Failed to lookup both IP addresses" on its own does not distinguish an IP that is absent from the database from a backend that is down, and diagnosing the difference meant going onto the host.
|
|
46
|
+
|
|
47
|
+
Deployments should also point `MAXMIND_DB_PATH` at `GeoLite2-City.mmdb`, which the image already ships: country-level data is enough for geoblocking but carries no coordinates, so the IP distance rule cannot run against it.
|
|
48
|
+
- Updated dependencies [162f591]
|
|
49
|
+
- Updated dependencies [9149dff]
|
|
50
|
+
- @prosopo/provider@5.8.1
|
|
51
|
+
- @prosopo/env@3.6.52
|
|
52
|
+
|
|
3
53
|
## 3.8.6
|
|
4
54
|
### Patch Changes
|
|
5
55
|
|
package/dist/RateLimiter.d.ts
CHANGED
|
@@ -103,6 +103,10 @@ export declare const getRateLimitConfig: () => {
|
|
|
103
103
|
windowMs: string | undefined;
|
|
104
104
|
limit: string | undefined;
|
|
105
105
|
};
|
|
106
|
+
"/v1/prosopo/provider/client/authenticated/verify": {
|
|
107
|
+
windowMs: string | undefined;
|
|
108
|
+
limit: string | undefined;
|
|
109
|
+
};
|
|
106
110
|
"/v1/prosopo/provider/admin/dns/event": {
|
|
107
111
|
windowMs: string | undefined;
|
|
108
112
|
limit: string | undefined;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"RateLimiter.d.ts","sourceRoot":"","sources":["../src/RateLimiter.ts"],"names":[],"mappings":"AAeA,eAAO,MAAM,kBAAkB
|
|
1
|
+
{"version":3,"file":"RateLimiter.d.ts","sourceRoot":"","sources":["../src/RateLimiter.ts"],"names":[],"mappings":"AAeA,eAAO,MAAM,kBAAkB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CA2H9B,CAAC"}
|
package/dist/RateLimiter.js
CHANGED
|
@@ -106,6 +106,10 @@ var getRateLimitConfig = () => {
|
|
|
106
106
|
windowMs: process.env.PROSOPO_VERIFY_PUZZLE_CAPTCHA_SOLUTION_WINDOW,
|
|
107
107
|
limit: process.env.PROSOPO_VERIFY_PUZZLE_CAPTCHA_SOLUTION_LIMIT
|
|
108
108
|
},
|
|
109
|
+
[ClientApiPaths.VerifyAuthenticatedSession]: {
|
|
110
|
+
windowMs: process.env.PROSOPO_VERIFY_AUTHENTICATED_SESSION_WINDOW,
|
|
111
|
+
limit: process.env.PROSOPO_VERIFY_AUTHENTICATED_SESSION_LIMIT
|
|
112
|
+
},
|
|
109
113
|
[AdminApiPaths.DnsEvent]: {
|
|
110
114
|
windowMs: process.env.PROSOPO_DNS_EVENT_WINDOW,
|
|
111
115
|
limit: process.env.PROSOPO_DNS_EVENT_LIMIT
|
package/dist/RateLimiter.js.map
CHANGED
|
@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