@prosopo/api 3.5.2 → 3.5.3

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/api@3.5.2 build:cjs
2
+ > @prosopo/api@3.5.3 build:cjs
3
3
  > NODE_ENV=${NODE_ENV:-development}; vite build --config vite.cjs.config.ts --mode $NODE_ENV
4
4
 
5
5
  ViteCommonJSConfig: .
@@ -32,4 +32,4 @@ rendering chunks...
32
32
  dist/cjs/index.cjs  0.50 kB
33
33
  dist/cjs/api/HttpClientBase.cjs  2.90 kB
34
34
  dist/cjs/api/ProviderApi.cjs 12.96 kB
35
- ✓ built in 226ms
35
+ ✓ built in 196ms
@@ -1,8 +1,8 @@
1
1
 
2
- > @prosopo/api@3.5.2 build:tsc
2
+ > @prosopo/api@3.5.3 build:tsc
3
3
  > tsc --build --verbose
4
4
 
5
- 2:09:55 PM - Projects in this build:
5
+ 9:53:32 PM - Projects in this build:
6
6
  * ../../dev/config/tsconfig.json
7
7
  * ../locale/tsconfig.json
8
8
  * ../util/tsconfig.json
@@ -10,17 +10,17 @@
10
10
  * ../types/tsconfig.json
11
11
  * tsconfig.json
12
12
 
13
- 2:09:55 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'
13
+ 9:53:32 PM - Project '../../dev/config/tsconfig.json' is up to date because newest input '../../dev/config/src/dependencies.ts' is older than output '../../dev/config/tsconfig.tsbuildinfo'
14
14
 
15
- 2:09:55 PM - Project '../locale/tsconfig.json' is up to date because newest input '../locale/src/translationKey.ts' is older than output '../locale/tsconfig.tsbuildinfo'
15
+ 9:53:32 PM - Project '../locale/tsconfig.json' is up to date because newest input '../locale/src/translationKey.ts' is older than output '../locale/tsconfig.tsbuildinfo'
16
16
 
17
- 2:09:55 PM - Project '../util/tsconfig.json' is up to date because newest input '../util/src/url.ts' is older than output '../util/tsconfig.tsbuildinfo'
17
+ 9:53:32 PM - Project '../util/tsconfig.json' is up to date because newest input '../util/src/url.ts' is older than output '../util/tsconfig.tsbuildinfo'
18
18
 
19
- 2:09:55 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'
19
+ 9:53:32 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'
20
20
 
21
- 2:09:55 PM - Project '../types/tsconfig.json' is up to date because newest input '../types/src/procaptcha/api.ts' is older than output '../types/tsconfig.tsbuildinfo'
21
+ 9:53:32 PM - Project '../types/tsconfig.json' is up to date because newest input '../types/src/provider/api.ts' is older than output '../types/tsconfig.tsbuildinfo'
22
22
 
23
- 2:09:55 PM - Project 'tsconfig.json' is out of date because output file 'tsconfig.tsbuildinfo' does not exist
23
+ 9:53:32 PM - Project 'tsconfig.json' is out of date because output file 'tsconfig.tsbuildinfo' does not exist
24
24
 
25
- 2:09:55 PM - Building project '/home/runner/work/captcha/captcha/packages/api/tsconfig.json'...
25
+ 9:53:32 PM - Building project '/home/runner/work/captcha/captcha/packages/api/tsconfig.json'...
26
26
 
@@ -1,9 +1,9 @@
1
1
 
2
- > @prosopo/api@3.5.2 build
2
+ > @prosopo/api@3.5.3 build
3
3
  > npm run build:cross-env -- --mode ${NODE_ENV:-development}
4
4
 
5
5
 
6
- > @prosopo/api@3.5.2 build:cross-env
6
+ > @prosopo/api@3.5.3 build:cross-env
7
7
  > vite build --config vite.esm.config.ts --mode production
8
8
 
9
9
  ViteEsmConfig: .
@@ -35,4 +35,4 @@ rendering chunks...
35
35
  dist/index.js  0.32 kB
36
36
  dist/api/HttpClientBase.js  2.71 kB
37
37
  dist/api/ProviderApi.js 12.56 kB
38
- ✓ built in 240ms
38
+ ✓ built in 198ms
package/CHANGELOG.md CHANGED
@@ -1,5 +1,12 @@
1
1
  # @prosopo/api
2
2
 
3
+ ## 3.5.3
4
+ ### Patch Changes
5
+
6
+ - Updated dependencies [89ab6fc]
7
+ - Updated dependencies [0f3750b]
8
+ - @prosopo/types@4.7.3
9
+
3
10
  ## 3.5.2
4
11
  ### Patch Changes
5
12
 
@@ -62,11 +69,11 @@
62
69
 
63
70
  The dapp-verify recency check used to be `now - challengeTimestamp <= timeout`. The window was issuance→verify, which gave bots room to stockpile pre-solved solutions and redeem them many seconds (sometimes minutes) later from the time they reached the provider.
64
71
 
65
- The check is now `now - challengeRecord.submittedAtTimestamp <= clientSettings.verifiedTimeout`. The window measures from the moment the user's solution actually arrived. Combined with the new lifecycle fields, this measurably tightens the stockpile attack surface — the data showed 1564 records / 21% on Twickets where a correct PoW was submitted but the dapp never verified, p99 issuance→submit of 31s on that cohort, and records up to 1.26 min.
72
+ The check is now `now - challengeRecord.submittedAtTimestamp <= clientSettings.verifiedTimeout`. The window measures from the moment the user's solution actually arrived. Combined with the new lifecycle fields, this tightens the stockpile attack surface.
66
73
 
67
74
  ### Settings move
68
75
 
69
- `verifiedTimeout` moves to `ClientSettingsSchema` (per-client, operator-set via the portal). Default stays at 120000ms for back-compat; auto-submit dapps (Twickets et al.) should set it to ~10000ms.
76
+ `verifiedTimeout` moves to `ClientSettingsSchema` (per-client, operator-set via the portal). Default stays at 120000ms for back-compat; auto-submit dapps should set it to ~10000ms.
70
77
 
71
78
  Removed from request bodies entirely:
72
79
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@prosopo/api",
3
- "version": "3.5.2",
3
+ "version": "3.5.3",
4
4
  "description": "Wrapper for the provider API",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",
@@ -36,7 +36,7 @@
36
36
  },
37
37
  "homepage": "https://github.com/prosopo/captcha#readme",
38
38
  "dependencies": {
39
- "@prosopo/types": "4.7.2"
39
+ "@prosopo/types": "4.7.3"
40
40
  },
41
41
  "devDependencies": {
42
42
  "@prosopo/config": "3.3.2",