@prosopo/procaptcha 2.10.57 → 2.10.58

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/procaptcha@2.10.57 build:cjs
2
+ > @prosopo/procaptcha@2.10.58 build:cjs
3
3
  > NODE_ENV=${NODE_ENV:-development}; vite build --config vite.cjs.config.ts --mode $NODE_ENV
4
4
 
5
5
  ViteCommonJSConfig: .
@@ -41,16 +41,17 @@ ViteCommonJSConfig: .
41
41
  '@prosopo/keyring'
42
42
  ]
43
43
  }
44
- vite v6.4.1 building SSR bundle for production...
44
+ The plugin "vite-tsconfig-paths" is detected. Vite now supports tsconfig paths resolution natively via the resolve.tsconfigPaths option. You can remove the plugin and set resolve.tsconfigPaths: true in your Vite config instead.
45
+ vite v8.1.5 building ssr environment for production...
45
46
  Bundle build started
46
- transforming...
47
- Build end
48
- ✓ 5 modules transformed.
49
- Entry module "src/modules/ProsopoCaptchaApi.ts" is using named and default exports together. Consumers of your bundle will have to use `..default` to access the default export, which may not be what you want. Use `output.exports: "named"` to disable this warning.
47
+ 
48
+ ✓ 6 modules transformed.
50
49
  rendering chunks...
51
- dist/cjs/modules/index.cjs  0.39 kB
52
- dist/cjs/index.cjs  0.44 kB
53
- dist/cjs/modules/collector.cjs  2.18 kB
54
- dist/cjs/modules/ProsopoCaptchaApi.cjs  2.48 kB
55
- dist/cjs/modules/Manager.cjs 14.14 kB
56
- ✓ built in 227ms
50
+ computing gzip size...
51
+ dist/cjs/modules/index.cjs 0.34 kB │ gzip: 0.13 kB
52
+ dist/cjs/index.cjs 0.44 kB │ gzip: 0.19 kB
53
+ dist/cjs/modules/collector.cjs 1.83 kB │ gzip: 0.59 kB
54
+ dist/cjs/modules/ProsopoCaptchaApi.cjs 2.16 kB │ gzip: 0.78 kB
55
+ dist/cjs/modules/Manager.cjs 13.45 kB │ gzip: 3.71 kB
56
+
57
+ ✓ built in 59ms
@@ -1,8 +1,8 @@
1
1
 
2
- > @prosopo/procaptcha@2.10.57 build:tsc
2
+ > @prosopo/procaptcha@2.10.58 build:tsc
3
3
  > tsc --build --verbose
4
4
 
5
- 10:22:55 PM - Projects in this build:
5
+ 8:59:31 PM - Projects in this build:
6
6
  * ../../dev/config/tsconfig.json
7
7
  * ../locale/tsconfig.json
8
8
  * ../util/tsconfig.json
@@ -21,39 +21,39 @@
21
21
  * ../procaptcha-common/tsconfig.json
22
22
  * tsconfig.json
23
23
 
24
- 10:22: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'
24
+ 8:59:31 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'
25
25
 
26
- 10:22:55 PM - Project '../locale/tsconfig.json' is up to date because newest input '../locale/src/translationKey.ts' is older than output '../locale/tsconfig.tsbuildinfo'
26
+ 8:59:31 PM - Project '../locale/tsconfig.json' is up to date because newest input '../locale/src/translationKey.ts' is older than output '../locale/tsconfig.tsbuildinfo'
27
27
 
28
- 10:22:56 PM - Project '../util/tsconfig.json' is up to date because newest input '../util/src/url.ts' is older than output '../util/tsconfig.tsbuildinfo'
28
+ 8:59:31 PM - Project '../util/tsconfig.json' is up to date because newest input '../util/src/url.ts' is older than output '../util/tsconfig.tsbuildinfo'
29
29
 
30
- 10:22:56 PM - Project '../logger/tsconfig.json' is up to date because newest input '../logger/src/index.ts' is older than output '../logger/tsconfig.tsbuildinfo'
30
+ 8:59:31 PM - Project '../logger/tsconfig.json' is up to date because newest input '../logger/src/index.ts' is older than output '../logger/tsconfig.tsbuildinfo'
31
31
 
32
- 10:22:56 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'
32
+ 8:59:31 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'
33
33
 
34
- 10:22:56 PM - Project '../types/tsconfig.json' is up to date because newest input '../types/src/procaptcha/api.ts' is older than output '../types/tsconfig.tsbuildinfo'
34
+ 8:59:31 PM - Project '../types/tsconfig.json' is up to date because newest input '../types/src/provider/api.ts' is older than output '../types/tsconfig.tsbuildinfo'
35
35
 
36
- 10:22:56 PM - Project '../common/tsconfig.json' is up to date because newest input '../common/src/error.ts' is older than output '../common/tsconfig.tsbuildinfo'
36
+ 8:59:31 PM - Project '../common/tsconfig.json' is up to date because newest input '../common/src/tests/utils/batches.unit.test.ts' is older than output '../common/tsconfig.tsbuildinfo'
37
37
 
38
- 10:22:56 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'
38
+ 8:59:31 PM - 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'
39
39
 
40
- 10:22:56 PM - Project '../api/tsconfig.json' is up to date because newest input '../api/src/index.ts' is older than output '../api/tsconfig.tsbuildinfo'
40
+ 8:59:31 PM - Project '../api/tsconfig.json' is up to date because newest input '../api/src/index.ts' is older than output '../api/tsconfig.tsbuildinfo'
41
41
 
42
- 10:22:56 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'
42
+ 8:59:31 PM - Project '../load-balancer/tsconfig.json' is up to date because newest input '../load-balancer/src/tests/providers.unit.test.ts' is older than output '../load-balancer/tsconfig.tsbuildinfo'
43
43
 
44
- 10:22:56 PM - Project '../widget-skeleton/tsconfig.json' is up to date because newest input '../widget-skeleton/src/index.ts' is older than output '../widget-skeleton/tsconfig.tsbuildinfo'
44
+ 8:59:31 PM - Project '../widget-skeleton/tsconfig.json' is up to date because newest input '../widget-skeleton/src/index.ts' is older than output '../widget-skeleton/tsconfig.tsbuildinfo'
45
45
 
46
- 10:22:56 PM - Project '../fingerprintjs/tsconfig.json' is up to date because newest input '../fingerprintjs/src/utils/browser.ts' is older than output '../fingerprintjs/tsconfig.tsbuildinfo'
46
+ 8:59:31 PM - Project '../fingerprintjs/tsconfig.json' is up to date because newest input '../fingerprintjs/src/utils/browser.ts' is older than output '../fingerprintjs/tsconfig.tsbuildinfo'
47
47
 
48
- 10:22:56 PM - Project '../fingerprint/tsconfig.json' is up to date because newest input '../fingerprint/src/index.ts' is older than output '../fingerprint/tsconfig.tsbuildinfo'
48
+ 8:59:31 PM - Project '../fingerprint/tsconfig.json' is up to date because newest input '../fingerprint/src/index.ts' is older than output '../fingerprint/tsconfig.tsbuildinfo'
49
49
 
50
- 10:22:56 PM - Project '../keyring/tsconfig.json' is up to date because newest input '../keyring/src/index.ts' is older than output '../keyring/tsconfig.tsbuildinfo'
50
+ 8:59:31 PM - Project '../keyring/tsconfig.json' is up to date because newest input '../keyring/src/keyring/keyring.ts' is older than output '../keyring/tsconfig.tsbuildinfo'
51
51
 
52
- 10:22:56 PM - Project '../account/tsconfig.json' is up to date because newest input '../account/src/custom.d.ts' is older than output '../account/tsconfig.tsbuildinfo'
52
+ 8:59:31 PM - Project '../account/tsconfig.json' is up to date because newest input '../account/src/tests/cryptoWorker.unit.test.ts' is older than output '../account/tsconfig.tsbuildinfo'
53
53
 
54
- 10:22:56 PM - Project '../procaptcha-common/tsconfig.json' is up to date because newest input '../procaptcha-common/src/reactComponents/Honeypot.tsx' is older than output '../procaptcha-common/tsconfig.tsbuildinfo'
54
+ 8:59:31 PM - Project '../procaptcha-common/tsconfig.json' is up to date because newest input '../procaptcha-common/src/tests/defaultEvents.test.ts' is older than output '../procaptcha-common/tsconfig.tsbuildinfo'
55
55
 
56
- 10:22:56 PM - Project 'tsconfig.json' is out of date because output file 'tsconfig.tsbuildinfo' does not exist
56
+ 8:59:31 PM - Project 'tsconfig.json' is out of date because output file 'tsconfig.tsbuildinfo' does not exist
57
57
 
58
- 10:22:56 PM - Building project '/home/runner/work/captcha/captcha/packages/procaptcha/tsconfig.json'...
58
+ 8:59:31 PM - Building project '/home/runner/work/captcha/captcha/packages/procaptcha/tsconfig.json'...
59
59
 
@@ -1,9 +1,9 @@
1
1
 
2
- > @prosopo/procaptcha@2.10.57 build
2
+ > @prosopo/procaptcha@2.10.58 build
3
3
  > npm run build:cross-env -- --mode ${NODE_ENV:-development}
4
4
 
5
5
 
6
- > @prosopo/procaptcha@2.10.57 build:cross-env
6
+ > @prosopo/procaptcha@2.10.58 build:cross-env
7
7
  > vite build --config vite.esm.config.ts --mode production
8
8
 
9
9
  ViteEsmConfig: .
@@ -45,15 +45,18 @@ ViteEsmConfig: .
45
45
  '@prosopo/keyring'
46
46
  ]
47
47
  }
48
- vite v6.4.1 building SSR bundle for production...
48
+ The plugin "vite-tsconfig-paths" is detected. Vite now supports tsconfig paths resolution natively via the resolve.tsconfigPaths option. You can remove the plugin and set resolve.tsconfigPaths: true in your Vite config instead.
49
+ vite v8.1.5 building ssr environment for production...
49
50
  Bundle build started
50
- transforming...
51
- Build end
52
- ✓ 5 modules transformed.
51
+ 
52
+ ✓ 6 modules transformed.
53
53
  rendering chunks...
54
- dist/modules/index.js  0.21 kB
55
- dist/index.js  0.26 kB
56
- dist/modules/collector.js  2.08 kB
57
- dist/modules/ProsopoCaptchaApi.js  2.36 kB
58
- dist/modules/Manager.js 13.89 kB
59
- ✓ built in 219ms
54
+ computing gzip size...
55
+ dist/_virtual/_rolldown/runtime.js 0.04 kB │ gzip: 0.06 kB
56
+ dist/modules/index.js 0.20 kB │ gzip: 0.11 kB
57
+ dist/index.js 0.27 kB │ gzip: 0.14 kB
58
+ dist/modules/collector.js 1.81 kB │ gzip: 0.59 kB
59
+ dist/modules/ProsopoCaptchaApi.js 2.08 kB │ gzip: 0.77 kB
60
+ dist/modules/Manager.js 12.67 kB │ gzip: 3.65 kB
61
+
62
+ ✓ built in 81ms
package/CHANGELOG.md CHANGED
@@ -1,5 +1,39 @@
1
1
  # @prosopo/procaptcha
2
2
 
3
+ ## 2.10.58
4
+ ### Patch Changes
5
+
6
+ - ab3499c: feat(procaptcha): block on SIMD readings at solution submit
7
+
8
+ Solution submit is the last hop the client controls, so it's the last chance to
9
+ attach the catcher's WASM SIMD readings for a session. The image, PoW and puzzle
10
+ managers now wait for the benchmark there via a shared
11
+ `getSimdReadingsForSubmit` helper, capped at 5s, instead of attaching only
12
+ whatever the prefetch happened to have resolved.
13
+
14
+ The helper passes the budget down to the detector *and* races it locally — the
15
+ detector ships prebuilt, so a bundle that ignores `timeoutMs` (or a benchmark
16
+ wedged on a busy main thread) can't hang the submission. It never rejects: a
17
+ missing accessor, a rejection, a synchronous throw and a timeout all resolve to
18
+ `undefined` and the solution is submitted without readings, so a user is never
19
+ failed over telemetry.
20
+
21
+ The earlier frictionless POST and challenge GET hops are unchanged and remain
22
+ non-blocking.
23
+ - e14fce6: chore(deps): bump vite to 6.4.3 and mongoose to 8.24.1, and adjust types for the mongoose 8.24 Document/ObjectId changes
24
+ - Updated dependencies [2c47bb7]
25
+ - Updated dependencies [ab3499c]
26
+ - Updated dependencies [0e1171c]
27
+ - Updated dependencies [103318c]
28
+ - Updated dependencies [270a8d8]
29
+ - Updated dependencies [e14fce6]
30
+ - @prosopo/util@3.3.5
31
+ - @prosopo/procaptcha-common@2.11.18
32
+ - @prosopo/types@4.10.0
33
+ - @prosopo/api@3.5.20
34
+ - @prosopo/common@3.1.48
35
+ - @prosopo/datasets@3.1.55
36
+
3
37
  ## 2.10.57
4
38
  ### Patch Changes
5
39
 
@@ -0,0 +1,3 @@
1
+ import "node:module";
2
+ //#endregion
3
+ export {};
@@ -1,9 +1,7 @@
1
- "use strict";
2
1
  Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
3
- require("./modules/index.cjs");
4
- const Manager = require("./modules/Manager.cjs");
5
- const ProsopoCaptchaApi = require("./modules/ProsopoCaptchaApi.cjs");
6
- const collector = require("./modules/collector.cjs");
7
- exports.Manager = Manager.Manager;
8
- exports.ProsopoCaptchaApi = ProsopoCaptchaApi.ProsopoCaptchaApi;
9
- exports.startCollector = collector.startCollector;
2
+ const require_ProsopoCaptchaApi = require("./modules/ProsopoCaptchaApi.cjs");
3
+ const require_Manager = require("./modules/Manager.cjs");
4
+ const require_collector = require("./modules/collector.cjs");
5
+ exports.Manager = require_Manager.Manager;
6
+ exports.ProsopoCaptchaApi = require_ProsopoCaptchaApi.ProsopoCaptchaApi;
7
+ exports.startCollector = require_collector.startCollector;