@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.
- package/.turbo/turbo-build$colon$cjs.log +3 -3
- package/.turbo/turbo-build$colon$tsc.log +19 -19
- package/.turbo/turbo-build.log +4 -4
- package/CHANGELOG.md +13 -0
- package/dist/cjs/components/ProcaptchaPoW.cjs +1 -9
- package/dist/components/ProcaptchaPoW.d.ts.map +1 -1
- package/dist/components/ProcaptchaPoW.js +1 -9
- package/dist/components/ProcaptchaPoW.js.map +1 -1
- package/package.json +7 -7
- package/src/components/ProcaptchaPoW.tsx +7 -6
- package/tsconfig.tsbuildinfo +1 -1
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
|
|
2
|
-
> @prosopo/procaptcha-pow@2.10.
|
|
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
|
[32m✓[39m 4 modules transformed.
|
|
47
47
|
rendering chunks...
|
|
48
48
|
[2mdist/cjs/[22m[36mindex.cjs [39m[1m[2m 0.25 kB[22m[1m[22m
|
|
49
|
-
[2mdist/cjs/[22m[36mcomponents/ProcaptchaPoW.cjs [39m[1m[2m 0.
|
|
49
|
+
[2mdist/cjs/[22m[36mcomponents/ProcaptchaPoW.cjs [39m[1m[2m 0.70 kB[22m[1m[22m
|
|
50
50
|
[2mdist/cjs/[22m[36mcomponents/ProcaptchaWidget.cjs [39m[1m[2m 3.98 kB[22m[1m[22m
|
|
51
51
|
[2mdist/cjs/[22m[36mservices/Manager.cjs [39m[1m[2m10.31 kB[22m[1m[22m
|
|
52
|
-
[32m✓ built in
|
|
52
|
+
[32m✓ built in 207ms[39m
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
|
|
2
|
-
> @prosopo/procaptcha-pow@2.10.
|
|
2
|
+
> @prosopo/procaptcha-pow@2.10.8 build:tsc
|
|
3
3
|
> tsc --build --verbose
|
|
4
4
|
|
|
5
|
-
|
|
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
|
-
|
|
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
|
-
|
|
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
|
-
|
|
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
|
-
|
|
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
|
-
|
|
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
|
-
|
|
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
|
-
|
|
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
|
-
|
|
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
|
-
|
|
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
|
-
|
|
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
|
-
|
|
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
|
-
|
|
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
|
-
|
|
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
|
-
|
|
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
|
-
|
|
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
|
-
|
|
53
|
+
3:10:18 PM - Project 'tsconfig.json' is out of date because output file 'tsconfig.tsbuildinfo' does not exist
|
|
54
54
|
|
|
55
|
-
|
|
55
|
+
3:10:18 PM - Building project '/home/runner/work/captcha/captcha/packages/procaptcha-pow/tsconfig.json'...
|
|
56
56
|
|
package/.turbo/turbo-build.log
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
|
|
2
|
-
> @prosopo/procaptcha-pow@2.10.
|
|
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.
|
|
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
|
[32m✓[39m 4 modules transformed.
|
|
51
51
|
rendering chunks...
|
|
52
52
|
[2mdist/[22m[36mindex.js [39m[1m[2m 0.13 kB[22m[1m[22m
|
|
53
|
-
[2mdist/[22m[36mcomponents/ProcaptchaPoW.js [39m[1m[2m 0.
|
|
53
|
+
[2mdist/[22m[36mcomponents/ProcaptchaPoW.js [39m[1m[2m 0.33 kB[22m[1m[22m
|
|
54
54
|
[2mdist/[22m[36mcomponents/ProcaptchaWidget.js [39m[1m[2m 3.84 kB[22m[1m[22m
|
|
55
55
|
[2mdist/[22m[36mservices/Manager.js [39m[1m[2m10.15 kB[22m[1m[22m
|
|
56
|
-
[32m✓ built in
|
|
56
|
+
[32m✓ built in 215ms[39m
|
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;
|
|
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;
|
|
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.
|
|
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.
|
|
34
|
-
"@prosopo/common": "3.1.
|
|
35
|
-
"@prosopo/fingerprint": "2.7.
|
|
36
|
-
"@prosopo/locale": "3.2.
|
|
37
|
-
"@prosopo/procaptcha-common": "2.11.
|
|
38
|
-
"@prosopo/types": "4.9.
|
|
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
|
);
|