@prosopo/procaptcha-react 2.9.81 → 2.9.83
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 +21 -0
- package/dist/cjs/components/ProcaptchaWidget.cjs +26 -16
- package/dist/components/ProcaptchaWidget.d.ts.map +1 -1
- package/dist/components/ProcaptchaWidget.js +26 -16
- package/dist/components/ProcaptchaWidget.js.map +1 -1
- package/package.json +4 -4
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
|
|
2
|
-
> @prosopo/procaptcha-react@2.9.
|
|
2
|
+
> @prosopo/procaptcha-react@2.9.83 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.67 kB[22m[1m[22m
|
|
77
76
|
[2mdist/cjs/[22m[36mcomponents/CaptchaWidget.cjs [39m[1m[2m5.94 kB[22m[1m[22m
|
|
77
|
+
[2mdist/cjs/[22m[36mcomponents/ProcaptchaWidget.cjs [39m[1m[2m6.22 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 177ms[39m
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
|
|
2
|
-
> @prosopo/procaptcha-react@2.9.
|
|
2
|
+
> @prosopo/procaptcha-react@2.9.83 build:tsc
|
|
3
3
|
> tsc --build --verbose
|
|
4
4
|
|
|
5
|
-
|
|
5
|
+
8:44:39 AM - 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
|
+
8:44:39 AM - Project '../../dev/config/tsconfig.json' is up to date because newest input '../../dev/config/src/vite/vite.frontend.config.ts' is older than output '../../dev/config/tsconfig.tsbuildinfo'
|
|
26
26
|
|
|
27
|
-
|
|
27
|
+
8:44:39 AM - 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
|
+
8:44:39 AM - Project '../util/tsconfig.json' is up to date because newest input '../util/src/url.ts' is older than output '../util/tsconfig.tsbuildinfo'
|
|
30
30
|
|
|
31
|
-
|
|
31
|
+
8:44:39 AM - Project '../logger/tsconfig.json' is up to date because newest input '../logger/src/logger.ts' is older than output '../logger/tsconfig.tsbuildinfo'
|
|
32
32
|
|
|
33
|
-
|
|
33
|
+
8:44:39 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'
|
|
34
34
|
|
|
35
|
-
|
|
35
|
+
8:44:39 AM - Project '../types/tsconfig.json' is up to date because newest input '../types/src/procaptcha/utils.ts' is older than output '../types/tsconfig.tsbuildinfo'
|
|
36
36
|
|
|
37
|
-
|
|
37
|
+
8:44:39 AM - Project '../common/tsconfig.json' is up to date because newest input '../common/src/utils/batches.ts' is older than output '../common/tsconfig.tsbuildinfo'
|
|
38
38
|
|
|
39
|
-
|
|
39
|
+
8:44:40 AM - Project '../datasets/tsconfig.json' is up to date because newest input '../datasets/src/index.ts' is older than output '../datasets/tsconfig.tsbuildinfo'
|
|
40
40
|
|
|
41
|
-
|
|
41
|
+
8:44:40 AM - 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
|
+
8:44:40 AM - 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
|
+
8:44:40 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'
|
|
46
46
|
|
|
47
|
-
|
|
47
|
+
8:44:40 AM - Project '../fingerprintjs/tsconfig.json' is up to date because newest input '../fingerprintjs/src/sources/timezone.ts' is older than output '../fingerprintjs/tsconfig.tsbuildinfo'
|
|
48
48
|
|
|
49
|
-
|
|
49
|
+
8:44:40 AM - 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
|
+
8:44:40 AM - Project '../keyring/tsconfig.json' is up to date because newest input '../keyring/src/index.ts' is older than output '../keyring/tsconfig.tsbuildinfo'
|
|
52
52
|
|
|
53
|
-
|
|
53
|
+
8:44:40 AM - Project '../account/tsconfig.json' is up to date because newest input '../account/src/workers/index.ts' is older than output '../account/tsconfig.tsbuildinfo'
|
|
54
54
|
|
|
55
|
-
|
|
55
|
+
8:44:40 AM - Project '../procaptcha-common/tsconfig.json' is up to date because newest input '../procaptcha-common/src/tests/form.test.ts' is older than output '../procaptcha-common/tsconfig.tsbuildinfo'
|
|
56
56
|
|
|
57
|
-
|
|
57
|
+
8:44:40 AM - Project '../procaptcha/tsconfig.json' is up to date because newest input '../procaptcha/src/index.ts' is older than output '../procaptcha/tsconfig.tsbuildinfo'
|
|
58
58
|
|
|
59
|
-
|
|
59
|
+
8:44:40 AM - Project 'tsconfig.json' is out of date because output file 'tsconfig.tsbuildinfo' does not exist
|
|
60
60
|
|
|
61
|
-
|
|
61
|
+
8:44:40 AM - 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.83 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.83 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.48 kB[22m[1m[22m
|
|
81
80
|
[2mdist/[22m[36mcomponents/CaptchaWidget.js [39m[1m[2m5.74 kB[22m[1m[22m
|
|
81
|
+
[2mdist/[22m[36mcomponents/ProcaptchaWidget.js [39m[1m[2m6.01 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 274ms[39m
|
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,26 @@
|
|
|
1
1
|
# @prosopo/procaptcha-react
|
|
2
2
|
|
|
3
|
+
## 2.9.83
|
|
4
|
+
### Patch Changes
|
|
5
|
+
|
|
6
|
+
- 18d0287: fix(procaptcha-frictionless,procaptcha-pow,procaptcha-puzzle,procaptcha-react): auto-recover from `CAPTCHA.NO_SESSION_FOUND` on the inner widget without asking the user to click the checkbox a second time, and without dropping the click coordinates that would otherwise land in the solution salt as `(0, 0)`.
|
|
7
|
+
|
|
8
|
+
Motivation. The in-flight dedupe added in the previous change only collapses `/captcha/{type}` POSTs that overlap in flight. A duplicate POST that fires ~1 s after the first has already settled (observed on iPhone WKWebView, incident 2026-07-01 21:23 UTC) still lands on a consumed session and returns `NO_SESSION_FOUND`. The pre-existing recovery for that case was a `setTimeout(restart, 100)` that tore the whole widget down and lost the checkbox click position.
|
|
9
|
+
|
|
10
|
+
- `ProcaptchaProps` gains two optional props: `onSessionInvalidated(x?, y?)` and `startCoords: { x, y }`. Widgets not mounted under a recovery-aware parent still fall back to `frictionlessState.restart()`.
|
|
11
|
+
- `procaptcha-pow`, `procaptcha-puzzle`, and `procaptcha-react` widgets now track the last `manager.start(x, y)` coords in a ref (either from the checkbox click or from `startCoords`) and, on the first `CAPTCHA.NO_SESSION_FOUND`, invoke `onSessionInvalidated(x, y)` instead of calling `restart()`. A per-instance ref makes it strictly one-shot — a second failure falls back to the existing restart path so a persistently broken session doesn't loop.
|
|
12
|
+
- `ProcaptchaFrictionless` wires `onSessionInvalidated` through to each inner widget: it stashes the retry coords in a ref, re-runs its own `start()` (which re-invokes `/frictionless` and mints a fresh sessionId), then re-mounts the inner widget with `autoStart={true}` and `startCoords={x, y}`. The inner widget auto-fires `manager.start(x, y)` on mount so the eventual submit still embeds the real checkbox click position in the salt.
|
|
13
|
+
- The recovery decision (one-shot fire, coord validation — `(0, 0)` and partial pairs are discarded because they're what an `autoStart` mount or an untrusted pointer event emits rather than a real click, and the consume-and-clear pending-coords ref) is extracted into `sessionInvalidatedRecovery.ts` with dedicated unit tests.
|
|
14
|
+
- Updated dependencies [18d0287]
|
|
15
|
+
- @prosopo/types@4.9.3
|
|
16
|
+
- @prosopo/procaptcha@2.10.44
|
|
17
|
+
- @prosopo/procaptcha-common@2.11.4
|
|
18
|
+
|
|
19
|
+
## 2.9.82
|
|
20
|
+
### Patch Changes
|
|
21
|
+
|
|
22
|
+
- @prosopo/procaptcha@2.10.43
|
|
23
|
+
|
|
3
24
|
## 2.9.81
|
|
4
25
|
### Patch Changes
|
|
5
26
|
|
|
@@ -28,6 +28,8 @@ const ProcaptchaWidget = (props) => {
|
|
|
28
28
|
() => hpRef.current?.value || void 0
|
|
29
29
|
)
|
|
30
30
|
);
|
|
31
|
+
const lastCoordsRef = React.useRef(null);
|
|
32
|
+
const sessionInvalidatedFiredRef = React.useRef(false);
|
|
31
33
|
const theme = "light" === props.config.theme ? widgetSkeleton.lightTheme : widgetSkeleton.darkTheme;
|
|
32
34
|
React.useEffect(() => {
|
|
33
35
|
if (config.language) {
|
|
@@ -44,24 +46,31 @@ const ProcaptchaWidget = (props) => {
|
|
|
44
46
|
}
|
|
45
47
|
}, [i18n, config.language]);
|
|
46
48
|
React.useEffect(() => {
|
|
47
|
-
if (props.autoStart)
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
)
|
|
53
|
-
|
|
54
|
-
|
|
49
|
+
if (!props.autoStart) return;
|
|
50
|
+
setLoading(true);
|
|
51
|
+
const coords = props.startCoords;
|
|
52
|
+
lastCoordsRef.current = coords ?? null;
|
|
53
|
+
manager.current.start(coords?.x ?? 0, coords?.y ?? 0).then(
|
|
54
|
+
() => setLoading(false),
|
|
55
|
+
() => setLoading(false)
|
|
56
|
+
);
|
|
57
|
+
}, [props.autoStart, props.startCoords]);
|
|
55
58
|
React.useEffect(() => {
|
|
56
|
-
if (state.error)
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
59
|
+
if (!state.error) return;
|
|
60
|
+
setLoading(false);
|
|
61
|
+
if (state.error.key !== "CAPTCHA.NO_SESSION_FOUND") return;
|
|
62
|
+
if (props.onSessionInvalidated && !sessionInvalidatedFiredRef.current) {
|
|
63
|
+
sessionInvalidatedFiredRef.current = true;
|
|
64
|
+
const coords = lastCoordsRef.current;
|
|
65
|
+
props.onSessionInvalidated(coords?.x, coords?.y);
|
|
66
|
+
return;
|
|
67
|
+
}
|
|
68
|
+
if (frictionlessState) {
|
|
69
|
+
setTimeout(() => {
|
|
70
|
+
frictionlessState.restart();
|
|
71
|
+
}, 100);
|
|
63
72
|
}
|
|
64
|
-
}, [state.error, frictionlessState]);
|
|
73
|
+
}, [state.error, frictionlessState, props.onSessionInvalidated]);
|
|
65
74
|
React.useEffect(() => {
|
|
66
75
|
const handleExecuteEvent = (event) => {
|
|
67
76
|
updateState({
|
|
@@ -143,6 +152,7 @@ const ProcaptchaWidget = (props) => {
|
|
|
143
152
|
x = nativeEvent.clientX;
|
|
144
153
|
y = nativeEvent.clientY;
|
|
145
154
|
}
|
|
155
|
+
lastCoordsRef.current = { x, y };
|
|
146
156
|
await manager.current.start(x, y);
|
|
147
157
|
setLoading(false);
|
|
148
158
|
},
|
|
@@ -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,qDAgM/C,CAAC;AAEF,eAAe,gBAAgB,CAAC"}
|
|
@@ -27,6 +27,8 @@ const ProcaptchaWidget = (props) => {
|
|
|
27
27
|
() => hpRef.current?.value || void 0
|
|
28
28
|
)
|
|
29
29
|
);
|
|
30
|
+
const lastCoordsRef = useRef(null);
|
|
31
|
+
const sessionInvalidatedFiredRef = useRef(false);
|
|
30
32
|
const theme = "light" === props.config.theme ? lightTheme : darkTheme;
|
|
31
33
|
useEffect(() => {
|
|
32
34
|
if (config.language) {
|
|
@@ -43,24 +45,31 @@ const ProcaptchaWidget = (props) => {
|
|
|
43
45
|
}
|
|
44
46
|
}, [i18n, config.language]);
|
|
45
47
|
useEffect(() => {
|
|
46
|
-
if (props.autoStart)
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
)
|
|
52
|
-
|
|
53
|
-
|
|
48
|
+
if (!props.autoStart) return;
|
|
49
|
+
setLoading(true);
|
|
50
|
+
const coords = props.startCoords;
|
|
51
|
+
lastCoordsRef.current = coords ?? null;
|
|
52
|
+
manager.current.start(coords?.x ?? 0, coords?.y ?? 0).then(
|
|
53
|
+
() => setLoading(false),
|
|
54
|
+
() => setLoading(false)
|
|
55
|
+
);
|
|
56
|
+
}, [props.autoStart, props.startCoords]);
|
|
54
57
|
useEffect(() => {
|
|
55
|
-
if (state.error)
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
58
|
+
if (!state.error) return;
|
|
59
|
+
setLoading(false);
|
|
60
|
+
if (state.error.key !== "CAPTCHA.NO_SESSION_FOUND") return;
|
|
61
|
+
if (props.onSessionInvalidated && !sessionInvalidatedFiredRef.current) {
|
|
62
|
+
sessionInvalidatedFiredRef.current = true;
|
|
63
|
+
const coords = lastCoordsRef.current;
|
|
64
|
+
props.onSessionInvalidated(coords?.x, coords?.y);
|
|
65
|
+
return;
|
|
66
|
+
}
|
|
67
|
+
if (frictionlessState) {
|
|
68
|
+
setTimeout(() => {
|
|
69
|
+
frictionlessState.restart();
|
|
70
|
+
}, 100);
|
|
62
71
|
}
|
|
63
|
-
}, [state.error, frictionlessState]);
|
|
72
|
+
}, [state.error, frictionlessState, props.onSessionInvalidated]);
|
|
64
73
|
useEffect(() => {
|
|
65
74
|
const handleExecuteEvent = (event) => {
|
|
66
75
|
updateState({
|
|
@@ -142,6 +151,7 @@ const ProcaptchaWidget = (props) => {
|
|
|
142
151
|
x = nativeEvent.clientX;
|
|
143
152
|
y = nativeEvent.clientY;
|
|
144
153
|
}
|
|
154
|
+
lastCoordsRef.current = { x, y };
|
|
145
155
|
await manager.current.start(x, y);
|
|
146
156
|
setLoading(false);
|
|
147
157
|
},
|
|
@@ -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,M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WAAW,CAAC,OAAO,CAAC;wBACxB,CAAC,GAAG,WAAW,CAAC,OAAO,CAAC;oBACzB,CAAC;oBAED,aAAa,CAAC,OAAO,GAAG,EAAE,CAAC,EAAE,CAAC,EAAE,CAAC;oBACjC,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.83",
|
|
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.43",
|
|
33
33
|
"@prosopo/locale": "3.2.6",
|
|
34
|
-
"@prosopo/procaptcha": "2.10.
|
|
35
|
-
"@prosopo/procaptcha-common": "2.11.
|
|
36
|
-
"@prosopo/types": "4.9.
|
|
34
|
+
"@prosopo/procaptcha": "2.10.44",
|
|
35
|
+
"@prosopo/procaptcha-common": "2.11.4",
|
|
36
|
+
"@prosopo/types": "4.9.3",
|
|
37
37
|
"@prosopo/util": "3.3.3",
|
|
38
38
|
"@prosopo/widget-skeleton": "2.8.4",
|
|
39
39
|
"csstype": "3.1.3",
|