@prosopo/procaptcha-react 2.9.77 → 2.9.78
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 +21 -21
- package/.turbo/turbo-build.log +4 -4
- package/CHANGELOG.md +18 -0
- package/dist/cjs/components/ProcaptchaWidget.cjs +24 -22
- package/dist/components/ProcaptchaWidget.d.ts.map +1 -1
- package/dist/components/ProcaptchaWidget.js +24 -22
- package/dist/components/ProcaptchaWidget.js.map +1 -1
- package/package.json +5 -5
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
|
|
2
|
-
> @prosopo/procaptcha-react@2.9.
|
|
2
|
+
> @prosopo/procaptcha-react@2.9.78 build:cjs
|
|
3
3
|
> NODE_ENV=${NODE_ENV:-development}; vite build --config vite.cjs.config.ts --mode $NODE_ENV
|
|
4
4
|
|
|
5
5
|
▲ [WARNING] The condition "types" here will never be used as it comes after both "import" and "require" [package.json]
|
|
@@ -73,7 +73,7 @@ rendering chunks...
|
|
|
73
73
|
[2mdist/cjs/[22m[36mcomponents/Procaptcha.cjs [39m[1m[2m0.61 kB[22m[1m[22m
|
|
74
74
|
[2mdist/cjs/[22m[36mcomponents/Modal.cjs [39m[1m[2m1.36 kB[22m[1m[22m
|
|
75
75
|
[2mdist/cjs/[22m[36mcomponents/Button.cjs [39m[1m[2m2.38 kB[22m[1m[22m
|
|
76
|
-
[2mdist/cjs/[22m[36mcomponents/ProcaptchaWidget.cjs [39m[1m[2m5.
|
|
76
|
+
[2mdist/cjs/[22m[36mcomponents/ProcaptchaWidget.cjs [39m[1m[2m5.67 kB[22m[1m[22m
|
|
77
77
|
[2mdist/cjs/[22m[36mcomponents/CaptchaWidget.cjs [39m[1m[2m5.94 kB[22m[1m[22m
|
|
78
78
|
[2mdist/cjs/[22m[36mcomponents/CaptchaComponent.cjs [39m[1m[2m8.81 kB[22m[1m[22m
|
|
79
|
-
[32m✓ built in
|
|
79
|
+
[32m✓ built in 150ms[39m
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
|
|
2
|
-
> @prosopo/procaptcha-react@2.9.
|
|
2
|
+
> @prosopo/procaptcha-react@2.9.78 build:tsc
|
|
3
3
|
> tsc --build --verbose
|
|
4
4
|
|
|
5
|
-
|
|
5
|
+
7:02:46 PM - Projects in this build:
|
|
6
6
|
* ../../dev/config/tsconfig.json
|
|
7
7
|
* ../locale/tsconfig.json
|
|
8
8
|
* ../util/tsconfig.json
|
|
@@ -22,41 +22,41 @@
|
|
|
22
22
|
* ../procaptcha/tsconfig.json
|
|
23
23
|
* tsconfig.json
|
|
24
24
|
|
|
25
|
-
|
|
25
|
+
7:02:46 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'
|
|
26
26
|
|
|
27
|
-
|
|
27
|
+
7:02:46 PM - Project '../locale/tsconfig.json' is up to date because newest input '../locale/src/translationKey.ts' is older than output '../locale/tsconfig.tsbuildinfo'
|
|
28
28
|
|
|
29
|
-
|
|
29
|
+
7:02:46 PM - Project '../util/tsconfig.json' is up to date because newest input '../util/src/version.ts' is older than output '../util/tsconfig.tsbuildinfo'
|
|
30
30
|
|
|
31
|
-
|
|
31
|
+
7:02:46 PM - Project '../logger/tsconfig.json' is up to date because newest input '../logger/src/index.ts' is older than output '../logger/tsconfig.tsbuildinfo'
|
|
32
32
|
|
|
33
|
-
|
|
33
|
+
7:02:46 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'
|
|
34
34
|
|
|
35
|
-
|
|
35
|
+
7:02:46 PM - Project '../types/tsconfig.json' is up to date because newest input '../types/src/procaptcha/api.ts' is older than output '../types/tsconfig.tsbuildinfo'
|
|
36
36
|
|
|
37
|
-
|
|
37
|
+
7:02:46 PM - Project '../common/tsconfig.json' is up to date because newest input '../common/src/index.ts' is older than output '../common/tsconfig.tsbuildinfo'
|
|
38
38
|
|
|
39
|
-
|
|
39
|
+
7:02:46 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'
|
|
40
40
|
|
|
41
|
-
|
|
41
|
+
7:02:46 PM - Project '../api/tsconfig.json' is up to date because newest input '../api/src/index.ts' is older than output '../api/tsconfig.tsbuildinfo'
|
|
42
42
|
|
|
43
|
-
|
|
43
|
+
7:02:46 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
|
+
7:02:46 PM - Project '../widget-skeleton/tsconfig.json' is up to date because newest input '../widget-skeleton/src/constants.ts' is older than output '../widget-skeleton/tsconfig.tsbuildinfo'
|
|
46
46
|
|
|
47
|
-
|
|
47
|
+
7:02:46 PM - Project '../fingerprintjs/tsconfig.json' is up to date because newest input '../fingerprintjs/src/utils/browser.ts' is older than output '../fingerprintjs/tsconfig.tsbuildinfo'
|
|
48
48
|
|
|
49
|
-
|
|
49
|
+
7:02:47 PM - Project '../fingerprint/tsconfig.json' is up to date because newest input '../fingerprint/src/index.ts' is older than output '../fingerprint/tsconfig.tsbuildinfo'
|
|
50
50
|
|
|
51
|
-
|
|
51
|
+
7:02:47 PM - Project '../keyring/tsconfig.json' is up to date because newest input '../keyring/src/pair/decode.ts' is older than output '../keyring/tsconfig.tsbuildinfo'
|
|
52
52
|
|
|
53
|
-
|
|
53
|
+
7:02:47 PM - Project '../account/tsconfig.json' is up to date because newest input '../account/src/workers/cryptoWorker.ts' is older than output '../account/tsconfig.tsbuildinfo'
|
|
54
54
|
|
|
55
|
-
|
|
55
|
+
7:02:47 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'
|
|
56
56
|
|
|
57
|
-
|
|
57
|
+
7:02:47 PM - Project '../procaptcha/tsconfig.json' is up to date because newest input '../procaptcha/src/modules/Manager.ts' is older than output '../procaptcha/tsconfig.tsbuildinfo'
|
|
58
58
|
|
|
59
|
-
|
|
59
|
+
7:02:47 PM - Project 'tsconfig.json' is out of date because output file 'tsconfig.tsbuildinfo' does not exist
|
|
60
60
|
|
|
61
|
-
|
|
61
|
+
7:02:47 PM - Building project '/home/runner/work/captcha/captcha/packages/procaptcha-react/tsconfig.json'...
|
|
62
62
|
|
package/.turbo/turbo-build.log
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
|
|
2
|
-
> @prosopo/procaptcha-react@2.9.
|
|
2
|
+
> @prosopo/procaptcha-react@2.9.78 build
|
|
3
3
|
> npm run build:cross-env -- --mode ${NODE_ENV:-development}
|
|
4
4
|
|
|
5
5
|
|
|
6
|
-
> @prosopo/procaptcha-react@2.9.
|
|
6
|
+
> @prosopo/procaptcha-react@2.9.78 build:cross-env
|
|
7
7
|
> vite build --config vite.esm.config.ts --mode production
|
|
8
8
|
|
|
9
9
|
▲ [WARNING] The condition "types" here will never be used as it comes after both "import" and "require" [package.json]
|
|
@@ -77,7 +77,7 @@ rendering chunks...
|
|
|
77
77
|
[2mdist/[22m[36mutil/index.js [39m[1m[2m0.44 kB[22m[1m[22m
|
|
78
78
|
[2mdist/[22m[36mcomponents/Modal.js [39m[1m[2m1.31 kB[22m[1m[22m
|
|
79
79
|
[2mdist/[22m[36mcomponents/Button.js [39m[1m[2m2.33 kB[22m[1m[22m
|
|
80
|
-
[2mdist/[22m[36mcomponents/ProcaptchaWidget.js [39m[1m[2m5.
|
|
80
|
+
[2mdist/[22m[36mcomponents/ProcaptchaWidget.js [39m[1m[2m5.48 kB[22m[1m[22m
|
|
81
81
|
[2mdist/[22m[36mcomponents/CaptchaWidget.js [39m[1m[2m5.74 kB[22m[1m[22m
|
|
82
82
|
[2mdist/[22m[36mcomponents/CaptchaComponent.js [39m[1m[2m8.48 kB[22m[1m[22m
|
|
83
|
-
[32m✓ built in
|
|
83
|
+
[32m✓ built in 249ms[39m
|
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,23 @@
|
|
|
1
1
|
# @prosopo/procaptcha-react
|
|
2
2
|
|
|
3
|
+
## 2.9.78
|
|
4
|
+
### Patch Changes
|
|
5
|
+
|
|
6
|
+
- 005b817: fix(procaptcha-react): hold image-captcha Manager in a useRef
|
|
7
|
+
|
|
8
|
+
Image widget rebuilt the Manager on every render, so the closure
|
|
9
|
+
variables that hold the checkbox click coords (set on start) were
|
|
10
|
+
overwritten by `(0, 0)` on the next render — including the re-render
|
|
11
|
+
that fires immediately after `setLoading(true)` in the click handler.
|
|
12
|
+
By the time `submit()` ran, it was on a newer Manager instance that
|
|
13
|
+
had never seen the click, so every captcha persisted
|
|
14
|
+
`coords[0] = [[0, 0]]`. Matches the pattern PoW and Puzzle already use.
|
|
15
|
+
- Updated dependencies [12cd0a6]
|
|
16
|
+
- Updated dependencies [12cd0a6]
|
|
17
|
+
- @prosopo/procaptcha-common@2.11.0
|
|
18
|
+
- @prosopo/types@4.8.0
|
|
19
|
+
- @prosopo/procaptcha@2.10.39
|
|
20
|
+
|
|
3
21
|
## 2.9.77
|
|
4
22
|
### Patch Changes
|
|
5
23
|
|
|
@@ -18,13 +18,15 @@ const ProcaptchaWidget = (props) => {
|
|
|
18
18
|
const [state, updateState] = procaptchaCommon.useProcaptcha(React.useState, React.useRef);
|
|
19
19
|
const [loading, setLoading] = React.useState(false);
|
|
20
20
|
const hpRef = React.useRef(null);
|
|
21
|
-
const manager =
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
21
|
+
const manager = React.useRef(
|
|
22
|
+
procaptcha.Manager(
|
|
23
|
+
config,
|
|
24
|
+
state,
|
|
25
|
+
updateState,
|
|
26
|
+
callbacks,
|
|
27
|
+
frictionlessState,
|
|
28
|
+
() => hpRef.current?.value || void 0
|
|
29
|
+
)
|
|
28
30
|
);
|
|
29
31
|
const theme = "light" === props.config.theme ? widgetSkeleton.lightTheme : widgetSkeleton.darkTheme;
|
|
30
32
|
React.useEffect(() => {
|
|
@@ -44,7 +46,7 @@ const ProcaptchaWidget = (props) => {
|
|
|
44
46
|
React.useEffect(() => {
|
|
45
47
|
if (props.autoStart) {
|
|
46
48
|
setLoading(true);
|
|
47
|
-
manager.start().then(
|
|
49
|
+
manager.current.start().then(
|
|
48
50
|
() => setLoading(false),
|
|
49
51
|
() => setLoading(false)
|
|
50
52
|
);
|
|
@@ -65,10 +67,10 @@ const ProcaptchaWidget = (props) => {
|
|
|
65
67
|
updateState({
|
|
66
68
|
showModal: true
|
|
67
69
|
});
|
|
68
|
-
if (!state.challenge && manager.start) {
|
|
70
|
+
if (!state.challenge && manager.current.start) {
|
|
69
71
|
console.log("No challenge set, attempting to start verification");
|
|
70
72
|
try {
|
|
71
|
-
manager.start();
|
|
73
|
+
manager.current.start();
|
|
72
74
|
} catch (error) {
|
|
73
75
|
console.error("Error starting verification:", error);
|
|
74
76
|
}
|
|
@@ -81,7 +83,7 @@ const ProcaptchaWidget = (props) => {
|
|
|
81
83
|
handleExecuteEvent
|
|
82
84
|
);
|
|
83
85
|
};
|
|
84
|
-
}, [
|
|
86
|
+
}, [state.challenge, updateState]);
|
|
85
87
|
const honeypot = frictionlessState?.hp ? /* @__PURE__ */ jsxRuntime.jsx(procaptchaCommon.Honeypot, { ref: hpRef, encodedQuestion: frictionlessState.hp }) : null;
|
|
86
88
|
if (config.mode === "invisible") {
|
|
87
89
|
return /* @__PURE__ */ jsxRuntime.jsxs(jsxRuntime.Fragment, { children: [
|
|
@@ -92,11 +94,11 @@ const ProcaptchaWidget = (props) => {
|
|
|
92
94
|
challenge: state.challenge,
|
|
93
95
|
index: state.index,
|
|
94
96
|
solutions: state.solutions,
|
|
95
|
-
onSubmit: manager.submit,
|
|
96
|
-
onCancel: manager.cancel,
|
|
97
|
-
onClick: manager.select,
|
|
98
|
-
onNext: manager.nextRound,
|
|
99
|
-
onReload: manager.reload,
|
|
97
|
+
onSubmit: manager.current.submit,
|
|
98
|
+
onCancel: manager.current.cancel,
|
|
99
|
+
onClick: manager.current.select,
|
|
100
|
+
onNext: manager.current.nextRound,
|
|
101
|
+
onReload: manager.current.reload,
|
|
100
102
|
themeColor: config.theme ?? "light"
|
|
101
103
|
}
|
|
102
104
|
) : null })
|
|
@@ -110,11 +112,11 @@ const ProcaptchaWidget = (props) => {
|
|
|
110
112
|
challenge: state.challenge,
|
|
111
113
|
index: state.index,
|
|
112
114
|
solutions: state.solutions,
|
|
113
|
-
onSubmit: manager.submit,
|
|
114
|
-
onCancel: manager.cancel,
|
|
115
|
-
onClick: manager.select,
|
|
116
|
-
onNext: manager.nextRound,
|
|
117
|
-
onReload: manager.reload,
|
|
115
|
+
onSubmit: manager.current.submit,
|
|
116
|
+
onCancel: manager.current.cancel,
|
|
117
|
+
onClick: manager.current.select,
|
|
118
|
+
onNext: manager.current.nextRound,
|
|
119
|
+
onReload: manager.current.reload,
|
|
118
120
|
themeColor: config.theme ?? "light"
|
|
119
121
|
}
|
|
120
122
|
) : /* @__PURE__ */ jsxRuntime.jsx("div", { children: "No challenge set." }) }),
|
|
@@ -141,7 +143,7 @@ const ProcaptchaWidget = (props) => {
|
|
|
141
143
|
x = nativeEvent.clientX;
|
|
142
144
|
y = nativeEvent.clientY;
|
|
143
145
|
}
|
|
144
|
-
await manager.start(x, y);
|
|
146
|
+
await manager.current.start(x, y);
|
|
145
147
|
setLoading(false);
|
|
146
148
|
},
|
|
147
149
|
checked: state.isHuman,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ProcaptchaWidget.d.ts","sourceRoot":"","sources":["../../src/components/ProcaptchaWidget.tsx"],"names":[],"mappings":"AAwBA,OAAO,EAA0B,KAAK,eAAe,EAAE,MAAM,gBAAgB,CAAC;AAS9E,QAAA,MAAM,gBAAgB,UAAW,eAAe,
|
|
1
|
+
{"version":3,"file":"ProcaptchaWidget.d.ts","sourceRoot":"","sources":["../../src/components/ProcaptchaWidget.tsx"],"names":[],"mappings":"AAwBA,OAAO,EAA0B,KAAK,eAAe,EAAE,MAAM,gBAAgB,CAAC;AAS9E,QAAA,MAAM,gBAAgB,UAAW,eAAe,qDAqL/C,CAAC;AAEF,eAAe,gBAAgB,CAAC"}
|
|
@@ -17,13 +17,15 @@ const ProcaptchaWidget = (props) => {
|
|
|
17
17
|
const [state, updateState] = useProcaptcha(useState, useRef);
|
|
18
18
|
const [loading, setLoading] = useState(false);
|
|
19
19
|
const hpRef = useRef(null);
|
|
20
|
-
const manager =
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
20
|
+
const manager = useRef(
|
|
21
|
+
Manager(
|
|
22
|
+
config,
|
|
23
|
+
state,
|
|
24
|
+
updateState,
|
|
25
|
+
callbacks,
|
|
26
|
+
frictionlessState,
|
|
27
|
+
() => hpRef.current?.value || void 0
|
|
28
|
+
)
|
|
27
29
|
);
|
|
28
30
|
const theme = "light" === props.config.theme ? lightTheme : darkTheme;
|
|
29
31
|
useEffect(() => {
|
|
@@ -43,7 +45,7 @@ const ProcaptchaWidget = (props) => {
|
|
|
43
45
|
useEffect(() => {
|
|
44
46
|
if (props.autoStart) {
|
|
45
47
|
setLoading(true);
|
|
46
|
-
manager.start().then(
|
|
48
|
+
manager.current.start().then(
|
|
47
49
|
() => setLoading(false),
|
|
48
50
|
() => setLoading(false)
|
|
49
51
|
);
|
|
@@ -64,10 +66,10 @@ const ProcaptchaWidget = (props) => {
|
|
|
64
66
|
updateState({
|
|
65
67
|
showModal: true
|
|
66
68
|
});
|
|
67
|
-
if (!state.challenge && manager.start) {
|
|
69
|
+
if (!state.challenge && manager.current.start) {
|
|
68
70
|
console.log("No challenge set, attempting to start verification");
|
|
69
71
|
try {
|
|
70
|
-
manager.start();
|
|
72
|
+
manager.current.start();
|
|
71
73
|
} catch (error) {
|
|
72
74
|
console.error("Error starting verification:", error);
|
|
73
75
|
}
|
|
@@ -80,7 +82,7 @@ const ProcaptchaWidget = (props) => {
|
|
|
80
82
|
handleExecuteEvent
|
|
81
83
|
);
|
|
82
84
|
};
|
|
83
|
-
}, [
|
|
85
|
+
}, [state.challenge, updateState]);
|
|
84
86
|
const honeypot = frictionlessState?.hp ? /* @__PURE__ */ jsx(Honeypot, { ref: hpRef, encodedQuestion: frictionlessState.hp }) : null;
|
|
85
87
|
if (config.mode === "invisible") {
|
|
86
88
|
return /* @__PURE__ */ jsxs(Fragment, { children: [
|
|
@@ -91,11 +93,11 @@ const ProcaptchaWidget = (props) => {
|
|
|
91
93
|
challenge: state.challenge,
|
|
92
94
|
index: state.index,
|
|
93
95
|
solutions: state.solutions,
|
|
94
|
-
onSubmit: manager.submit,
|
|
95
|
-
onCancel: manager.cancel,
|
|
96
|
-
onClick: manager.select,
|
|
97
|
-
onNext: manager.nextRound,
|
|
98
|
-
onReload: manager.reload,
|
|
96
|
+
onSubmit: manager.current.submit,
|
|
97
|
+
onCancel: manager.current.cancel,
|
|
98
|
+
onClick: manager.current.select,
|
|
99
|
+
onNext: manager.current.nextRound,
|
|
100
|
+
onReload: manager.current.reload,
|
|
99
101
|
themeColor: config.theme ?? "light"
|
|
100
102
|
}
|
|
101
103
|
) : null })
|
|
@@ -109,11 +111,11 @@ const ProcaptchaWidget = (props) => {
|
|
|
109
111
|
challenge: state.challenge,
|
|
110
112
|
index: state.index,
|
|
111
113
|
solutions: state.solutions,
|
|
112
|
-
onSubmit: manager.submit,
|
|
113
|
-
onCancel: manager.cancel,
|
|
114
|
-
onClick: manager.select,
|
|
115
|
-
onNext: manager.nextRound,
|
|
116
|
-
onReload: manager.reload,
|
|
114
|
+
onSubmit: manager.current.submit,
|
|
115
|
+
onCancel: manager.current.cancel,
|
|
116
|
+
onClick: manager.current.select,
|
|
117
|
+
onNext: manager.current.nextRound,
|
|
118
|
+
onReload: manager.current.reload,
|
|
117
119
|
themeColor: config.theme ?? "light"
|
|
118
120
|
}
|
|
119
121
|
) : /* @__PURE__ */ jsx("div", { children: "No challenge set." }) }),
|
|
@@ -140,7 +142,7 @@ const ProcaptchaWidget = (props) => {
|
|
|
140
142
|
x = nativeEvent.clientX;
|
|
141
143
|
y = nativeEvent.clientY;
|
|
142
144
|
}
|
|
143
|
-
await manager.start(x, y);
|
|
145
|
+
await manager.current.start(x, y);
|
|
144
146
|
setLoading(false);
|
|
145
147
|
},
|
|
146
148
|
checked: state.isHuman,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ProcaptchaWidget.js","sourceRoot":"","sources":["../../src/components/ProcaptchaWidget.tsx"],"names":[],"mappings":";AAgBA,OAAO,EAAE,WAAW,EAAE,cAAc,EAAE,MAAM,iBAAiB,CAAC;AAC9D,OAAO,EAAE,OAAO,EAAE,MAAM,qBAAqB,CAAC;AAC9C,OAAO,EACN,QAAQ,EACR,QAAQ,EACR,cAAc,EACd,aAAa,GACb,MAAM,4BAA4B,CAAC;AACpC,OAAO,EAAE,sBAAsB,EAAwB,MAAM,gBAAgB,CAAC;AAC9E,OAAO,EAAE,SAAS,EAAE,UAAU,EAAE,MAAM,0BAA0B,CAAC;AACjE,OAAO,EAAE,SAAS,EAAE,MAAM,EAAE,QAAQ,EAAE,MAAM,OAAO,CAAC;AACpD,OAAO,gBAAgB,MAAM,uBAAuB,CAAC;AACrD,OAAO,KAAK,MAAM,YAAY,CAAC;AAG/B,MAAM,wBAAwB,GAAG,oBAAoB,CAAC;AAEtD,MAAM,gBAAgB,GAAG,CAAC,KAAsB,EAAE,EAAE;IACnD,MAAM,EAAE,CAAC,EAAE,KAAK,EAAE,kBAAkB,EAAE,GAAG,cAAc,EAAE,CAAC;IAC1D,MAAM,MAAM,GAAG,sBAAsB,CAAC,KAAK,CAAC,KAAK,CAAC,MAAM,CAAC,CAAC;IAC1D,MAAM,iBAAiB,GAAG,KAA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AAC,GAAG,WAAW,CAAC,OAAO,CAAC,CAAC,CAAC,CAAC,OAAO,CAAC;wBACnC,CAAC,GAAG,WAAW,CAAC,OAAO,CAAC,CAAC,CAAC,CAAC,OAAO,CAAC;oBACpC,CAAC;yBAAM,IAAI,SAAS,IAAI,WAAW,IAAI,SAAS,IAAI,WAAW,EAAE,CAAC;wBACjE,CAAC,GAAG,WAAW,CAAC,OAAO,CAAC;wBACxB,CAAC,GAAG,WAAW,CAAC,OAAO,CAAC;oBACzB,CAAC;oBAED,MAAM,OAAO,CAAC,OAAO,CAAC,KAAK,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC;oBAClC,UAAU,CAAC,KAAK,CAAC,CAAC;gBACnB,CAAC,EACD,OAAO,EAAE,KAAK,CAAC,OAAO,EACtB,SAAS,EAAE,kBAAkB,CAAC,CAAC,CAAC,CAAC,CAAC,mBAAmB,CAAC,CAAC,CAAC,CAAC,EAAE,EAC3D,KAAK,EAAE,KAAK,CAAC,KAAK,EAAE,OAAO,gBAChB,gBAAgB,EAC3B,OAAO,EAAE,OAAO,GACf,IACG,CACN,CAAC;AACH,CAAC,CAAC;AAEF,eAAe,gBAAgB,CAAC"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@prosopo/procaptcha-react",
|
|
3
|
-
"version": "2.9.
|
|
3
|
+
"version": "2.9.78",
|
|
4
4
|
"author": "PROSOPO LIMITED <info@prosopo.io>",
|
|
5
5
|
"license": "Apache-2.0",
|
|
6
6
|
"main": "dist/index.js",
|
|
@@ -31,9 +31,9 @@
|
|
|
31
31
|
"dependencies": {
|
|
32
32
|
"@prosopo/common": "3.1.40",
|
|
33
33
|
"@prosopo/locale": "3.2.5",
|
|
34
|
-
"@prosopo/procaptcha": "2.10.
|
|
35
|
-
"@prosopo/procaptcha-common": "2.
|
|
36
|
-
"@prosopo/types": "4.
|
|
34
|
+
"@prosopo/procaptcha": "2.10.39",
|
|
35
|
+
"@prosopo/procaptcha-common": "2.11.0",
|
|
36
|
+
"@prosopo/types": "4.8.0",
|
|
37
37
|
"@prosopo/util": "3.3.1",
|
|
38
38
|
"@prosopo/widget-skeleton": "2.8.3",
|
|
39
39
|
"csstype": "3.1.3",
|
|
@@ -41,7 +41,7 @@
|
|
|
41
41
|
"react-dom": "18.3.1"
|
|
42
42
|
},
|
|
43
43
|
"devDependencies": {
|
|
44
|
-
"@prosopo/config": "3.3.
|
|
44
|
+
"@prosopo/config": "3.3.3",
|
|
45
45
|
"@emotion/react": "11.11.1",
|
|
46
46
|
"@types/node": "22.10.2",
|
|
47
47
|
"@types/react-dom": "18.3.1",
|