@prosopo/procaptcha-pow 2.10.7 → 2.10.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.
@@ -1,5 +1,5 @@
1
1
 
2
- > @prosopo/procaptcha-pow@2.10.7 build:cjs
2
+ > @prosopo/procaptcha-pow@2.10.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: .
@@ -46,7 +46,7 @@ Build end
46
46
  ✓ 4 modules transformed.
47
47
  rendering chunks...
48
48
  dist/cjs/index.cjs  0.25 kB
49
- dist/cjs/components/ProcaptchaPoW.cjs  0.82 kB
49
+ dist/cjs/components/ProcaptchaPoW.cjs  0.70 kB
50
50
  dist/cjs/components/ProcaptchaWidget.cjs  3.98 kB
51
51
  dist/cjs/services/Manager.cjs 10.31 kB
52
- ✓ built in 188ms
52
+ ✓ built in 207ms
@@ -1,8 +1,8 @@
1
1
 
2
- > @prosopo/procaptcha-pow@2.10.7 build:tsc
2
+ > @prosopo/procaptcha-pow@2.10.8 build:tsc
3
3
  > tsc --build --verbose
4
4
 
5
- 11:37:57 AM - Projects in this build:
5
+ 3:10:17 PM - Projects in this build:
6
6
  * ../../dev/config/tsconfig.json
7
7
  * ../locale/tsconfig.json
8
8
  * ../util/tsconfig.json
@@ -20,37 +20,37 @@
20
20
  * ../procaptcha-common/tsconfig.json
21
21
  * tsconfig.json
22
22
 
23
- 11:37:57 AM - 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'
23
+ 3:10:17 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
24
 
25
- 11:37:57 AM - Project '../locale/tsconfig.json' is up to date because newest input '../locale/src/translationKey.ts' is older than output '../locale/tsconfig.tsbuildinfo'
25
+ 3:10:17 PM - Project '../locale/tsconfig.json' is up to date because newest input '../locale/src/translationKey.ts' is older than output '../locale/tsconfig.tsbuildinfo'
26
26
 
27
- 11:37:57 AM - Project '../util/tsconfig.json' is up to date because newest input '../util/src/url.ts' is older than output '../util/tsconfig.tsbuildinfo'
27
+ 3:10:17 PM - Project '../util/tsconfig.json' is up to date because newest input '../util/src/url.ts' is older than output '../util/tsconfig.tsbuildinfo'
28
28
 
29
- 11:37:57 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'
29
+ 3:10:17 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'
30
30
 
31
- 11:37:57 AM - Project '../types/tsconfig.json' is up to date because newest input '../types/src/keyring/keyring/types.ts' is older than output '../types/tsconfig.tsbuildinfo'
31
+ 3:10:17 PM - Project '../types/tsconfig.json' is up to date because newest input '../types/src/procaptcha/api.ts' is older than output '../types/tsconfig.tsbuildinfo'
32
32
 
33
- 11:37:57 AM - Project '../api/tsconfig.json' is up to date because newest input '../api/src/index.ts' is older than output '../api/tsconfig.tsbuildinfo'
33
+ 3:10:17 PM - Project '../api/tsconfig.json' is up to date because newest input '../api/src/index.ts' is older than output '../api/tsconfig.tsbuildinfo'
34
34
 
35
- 11:37:57 AM - Project '../logger/tsconfig.json' is up to date because newest input '../logger/src/index.ts' is older than output '../logger/tsconfig.tsbuildinfo'
35
+ 3:10:17 PM - Project '../logger/tsconfig.json' is up to date because newest input '../logger/src/logger.ts' is older than output '../logger/tsconfig.tsbuildinfo'
36
36
 
37
- 11:37:57 AM - Project '../common/tsconfig.json' is up to date because newest input '../common/src/error.ts' is older than output '../common/tsconfig.tsbuildinfo'
37
+ 3:10:17 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'
38
38
 
39
- 11:37:57 AM - Project '../fingerprintjs/tsconfig.json' is up to date because newest input '../fingerprintjs/src/utils/browser.ts' is older than output '../fingerprintjs/tsconfig.tsbuildinfo'
39
+ 3:10:17 PM - Project '../fingerprintjs/tsconfig.json' is up to date because newest input '../fingerprintjs/src/utils/browser.ts' is older than output '../fingerprintjs/tsconfig.tsbuildinfo'
40
40
 
41
- 11:37:57 AM - Project '../fingerprint/tsconfig.json' is up to date because newest input '../fingerprint/src/index.ts' is older than output '../fingerprint/tsconfig.tsbuildinfo'
41
+ 3:10:18 PM - Project '../fingerprint/tsconfig.json' is up to date because newest input '../fingerprint/src/index.ts' is older than output '../fingerprint/tsconfig.tsbuildinfo'
42
42
 
43
- 11:37:57 AM - Project '../load-balancer/tsconfig.json' is up to date because newest input '../load-balancer/src/index.ts' is older than output '../load-balancer/tsconfig.tsbuildinfo'
43
+ 3:10:18 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'
44
44
 
45
- 11:37:57 AM - 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
+ 3:10:18 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'
46
46
 
47
- 11:37:57 AM - Project '../keyring/tsconfig.json' is up to date because newest input '../keyring/src/keyring/keyring.ts' is older than output '../keyring/tsconfig.tsbuildinfo'
47
+ 3:10:18 PM - Project '../keyring/tsconfig.json' is up to date because newest input '../keyring/src/index.ts' is older than output '../keyring/tsconfig.tsbuildinfo'
48
48
 
49
- 11:37:57 AM - Project '../account/tsconfig.json' is up to date because newest input '../account/src/index.ts' is older than output '../account/tsconfig.tsbuildinfo'
49
+ 3:10:18 PM - Project '../account/tsconfig.json' is up to date because newest input '../account/src/custom.d.ts' is older than output '../account/tsconfig.tsbuildinfo'
50
50
 
51
- 11:37:57 AM - Project '../procaptcha-common/tsconfig.json' is up to date because newest input '../procaptcha-common/src/extensionLoader.ts' is older than output '../procaptcha-common/tsconfig.tsbuildinfo'
51
+ 3:10:18 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'
52
52
 
53
- 11:37:57 AM - Project 'tsconfig.json' is out of date because output file 'tsconfig.tsbuildinfo' does not exist
53
+ 3:10:18 PM - Project 'tsconfig.json' is out of date because output file 'tsconfig.tsbuildinfo' does not exist
54
54
 
55
- 11:37:57 AM - Building project '/home/runner/work/captcha/captcha/packages/procaptcha-pow/tsconfig.json'...
55
+ 3:10:18 PM - Building project '/home/runner/work/captcha/captcha/packages/procaptcha-pow/tsconfig.json'...
56
56
 
@@ -1,9 +1,9 @@
1
1
 
2
- > @prosopo/procaptcha-pow@2.10.7 build
2
+ > @prosopo/procaptcha-pow@2.10.8 build
3
3
  > npm run build:cross-env -- --mode ${NODE_ENV:-development}
4
4
 
5
5
 
6
- > @prosopo/procaptcha-pow@2.10.7 build:cross-env
6
+ > @prosopo/procaptcha-pow@2.10.8 build:cross-env
7
7
  > vite build --config vite.esm.config.ts --mode production
8
8
 
9
9
  ViteEsmConfig: .
@@ -50,7 +50,7 @@ Build end
50
50
  ✓ 4 modules transformed.
51
51
  rendering chunks...
52
52
  dist/index.js  0.13 kB
53
- dist/components/ProcaptchaPoW.js  0.46 kB
53
+ dist/components/ProcaptchaPoW.js  0.33 kB
54
54
  dist/components/ProcaptchaWidget.js  3.84 kB
55
55
  dist/services/Manager.js 10.15 kB
56
- ✓ built in 179ms
56
+ ✓ built in 215ms
package/CHANGELOG.md CHANGED
@@ -1,5 +1,18 @@
1
1
  # @prosopo/procaptcha-pow
2
2
 
3
+ ## 2.10.8
4
+ ### Patch Changes
5
+
6
+ - 0983c51: fix(procaptcha-pow): forward all props through the Suspense wrapper so `onEscalate` and `autoStart` reach the inner widget. The PoW (and puzzle) wrappers were enumerating props by name and silently dropping `onEscalate`, which meant the Manager closure captured `onEscalate=undefined`. When the provider returned a post-PoW escalation envelope, `onEscalate?.()` no-op'd, the frictionless wrapper was never told to swap in the image widget, and the user was left with a spinning PoW checkbox forever. Both wrappers now spread props, matching the image (`Procaptcha`) sibling.
7
+ - Updated dependencies [f9e8c94]
8
+ - Updated dependencies [7a434e0]
9
+ - @prosopo/locale@3.2.6
10
+ - @prosopo/types@4.9.2
11
+ - @prosopo/common@3.1.43
12
+ - @prosopo/api@3.5.8
13
+ - @prosopo/fingerprint@2.7.8
14
+ - @prosopo/procaptcha-common@2.11.3
15
+
3
16
  ## 2.10.7
4
17
  ### Patch Changes
5
18
 
@@ -6,13 +6,5 @@ const _interopNamespaceDefaultOnly = (e) => Object.freeze(Object.defineProperty(
6
6
  const ProcaptchaWidget = react.lazy(
7
7
  async () => Promise.resolve().then(() => /* @__PURE__ */ _interopNamespaceDefaultOnly(require("./ProcaptchaWidget.cjs")))
8
8
  );
9
- const ProcaptchaPow = (props) => /* @__PURE__ */ jsxRuntime.jsx(react.Suspense, { children: /* @__PURE__ */ jsxRuntime.jsx(
10
- ProcaptchaWidget,
11
- {
12
- config: props.config,
13
- callbacks: props.callbacks,
14
- frictionlessState: props.frictionlessState,
15
- i18n: props.i18n
16
- }
17
- ) });
9
+ const ProcaptchaPow = (props) => /* @__PURE__ */ jsxRuntime.jsx(react.Suspense, { children: /* @__PURE__ */ jsxRuntime.jsx(ProcaptchaWidget, { ...props }) });
18
10
  exports.ProcaptchaPow = ProcaptchaPow;
@@ -1 +1 @@
1
- {"version":3,"file":"ProcaptchaPoW.d.ts","sourceRoot":"","sources":["../../src/components/ProcaptchaPoW.tsx"],"names":[],"mappings":"AAcA,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,gBAAgB,CAAC;AActD,eAAO,MAAM,aAAa,UAAW,eAAe,qDASnD,CAAC"}
1
+ {"version":3,"file":"ProcaptchaPoW.d.ts","sourceRoot":"","sources":["../../src/components/ProcaptchaPoW.tsx"],"names":[],"mappings":"AAcA,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,gBAAgB,CAAC;AAoBtD,eAAO,MAAM,aAAa,UAAW,eAAe,qDAInD,CAAC"}
@@ -3,15 +3,7 @@ import { lazy, Suspense } from "react";
3
3
  const ProcaptchaWidget = lazy(
4
4
  async () => import("./ProcaptchaWidget.js")
5
5
  );
6
- const ProcaptchaPow = (props) => /* @__PURE__ */ jsx(Suspense, { children: /* @__PURE__ */ jsx(
7
- ProcaptchaWidget,
8
- {
9
- config: props.config,
10
- callbacks: props.callbacks,
11
- frictionlessState: props.frictionlessState,
12
- i18n: props.i18n
13
- }
14
- ) });
6
+ const ProcaptchaPow = (props) => /* @__PURE__ */ jsx(Suspense, { children: /* @__PURE__ */ jsx(ProcaptchaWidget, { ...props }) });
15
7
  export {
16
8
  ProcaptchaPow
17
9
  };
@@ -1 +1 @@
1
- {"version":3,"file":"ProcaptchaPoW.js","sourceRoot":"","sources":["../../src/components/ProcaptchaPoW.tsx"],"names":[],"mappings":";AAeA,OAAO,EAA4B,QAAQ,EAAE,IAAI,EAAE,MAAM,OAAO,CAAC;AASjE,MAAM,gBAAgB,GAAmD,IAAI,CAC5E,KAAK,IAAI,EAAE,CAAC,MAAM,CAAC,uBAAuB,CAAC,CAC3C,CAAC;AAEF,MAAM,CAAC,MAAM,aAAa,GAAG,CAAC,KAAsB,EAAE,EAAE,CAAC,CACxD,KAAC,QAAQ,cACR,KAAC,gBAAgB,IAChB,MAAM,EAAE,KAAK,CAAC,MAAM,EACpB,SAAS,EAAE,KAAK,CAAC,SAAS,EAC1B,iBAAiB,EAAE,KAAK,CAAC,iBAAiB,EAC1C,IAAI,EAAE,KAAK,CAAC,IAAI,GACf,GACQ,CACX,CAAC"}
1
+ {"version":3,"file":"ProcaptchaPoW.js","sourceRoot":"","sources":["../../src/components/ProcaptchaPoW.tsx"],"names":[],"mappings":";AAeA,OAAO,EAA4B,QAAQ,EAAE,IAAI,EAAE,MAAM,OAAO,CAAC;AASjE,MAAM,gBAAgB,GAAmD,IAAI,CAC5E,KAAK,IAAI,EAAE,CAAC,MAAM,CAAC,uBAAuB,CAAC,CAC3C,CAAC;AAQF,MAAM,CAAC,MAAM,aAAa,GAAG,CAAC,KAAsB,EAAE,EAAE,CAAC,CACxD,KAAC,QAAQ,cACR,KAAC,gBAAgB,OAAK,KAAK,GAAI,GACrB,CACX,CAAC"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@prosopo/procaptcha-pow",
3
- "version": "2.10.7",
3
+ "version": "2.10.8",
4
4
  "author": "PROSOPO LIMITED <info@prosopo.io>",
5
5
  "license": "Apache-2.0",
6
6
  "main": "dist/index.js",
@@ -30,12 +30,12 @@
30
30
  "browserslist": ["> 0.5%, last 2 versions, not dead"],
31
31
  "dependencies": {
32
32
  "@polkadot/util": "13.5.7",
33
- "@prosopo/api": "3.5.7",
34
- "@prosopo/common": "3.1.42",
35
- "@prosopo/fingerprint": "2.7.7",
36
- "@prosopo/locale": "3.2.5",
37
- "@prosopo/procaptcha-common": "2.11.2",
38
- "@prosopo/types": "4.9.1",
33
+ "@prosopo/api": "3.5.8",
34
+ "@prosopo/common": "3.1.43",
35
+ "@prosopo/fingerprint": "2.7.8",
36
+ "@prosopo/locale": "3.2.6",
37
+ "@prosopo/procaptcha-common": "2.11.3",
38
+ "@prosopo/types": "4.9.2",
39
39
  "@prosopo/util": "3.3.3",
40
40
  "@prosopo/util-crypto": "13.5.30",
41
41
  "@prosopo/widget-skeleton": "2.8.4",
@@ -26,13 +26,14 @@ const ProcaptchaWidget: LazyExoticComponent<ProcaptchaWidgetComponent> = lazy(
26
26
  async () => import("./ProcaptchaWidget.js"),
27
27
  );
28
28
 
29
+ // Spread props rather than enumerating: the inner ProcaptchaWidget consumes
30
+ // `onEscalate` (passed by ProcaptchaFrictionless so a route()-escalated PoW
31
+ // solve can mount the image widget) and `autoStart`. Listing props by name
32
+ // silently dropped both, so the Manager closure captured
33
+ // `onEscalate=undefined` and the post-PoW escalation envelope no-op'd in the
34
+ // browser — the user just saw the PoW checkbox spin forever.
29
35
  export const ProcaptchaPow = (props: ProcaptchaProps) => (
30
36
  <Suspense>
31
- <ProcaptchaWidget
32
- config={props.config}
33
- callbacks={props.callbacks}
34
- frictionlessState={props.frictionlessState}
35
- i18n={props.i18n}
36
- />
37
+ <ProcaptchaWidget {...props} />
37
38
  </Suspense>
38
39
  );