@prosopo/procaptcha-bundle 2.6.7 → 2.6.9
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/.rollup.cache/home/runner/work/captcha/captcha/packages/procaptcha-bundle/dist/bundle/util/captcha/captchaComponentProvider.d.ts +0 -1
- package/.rollup.cache/home/runner/work/captcha/captcha/packages/procaptcha-bundle/dist/bundle/util/captcha/captchaComponentProvider.d.ts.map +1 -1
- package/.rollup.cache/home/runner/work/captcha/captcha/packages/procaptcha-bundle/dist/bundle/util/captcha/captchaComponentsList.d.ts +0 -1
- package/.rollup.cache/home/runner/work/captcha/captcha/packages/procaptcha-bundle/dist/bundle/util/captcha/captchaComponentsList.d.ts.map +1 -1
- package/.rollup.cache/home/runner/work/captcha/captcha/packages/procaptcha-bundle/dist/bundle/util/captcha/captchaRenderer.d.ts +0 -1
- package/.rollup.cache/home/runner/work/captcha/captcha/packages/procaptcha-bundle/dist/bundle/util/captcha/captchaRenderer.d.ts.map +1 -1
- package/CHANGELOG.md +20 -0
- package/dist/bundle/ProcaptchaWidget-DPyDGPiI.js +156 -0
- package/dist/bundle/{ProcaptchaWidget-DrBDhP6X.js → ProcaptchaWidget-DoqUlwHS.js} +7 -7
- package/dist/bundle/{asU8a-CJdNkNEq.js → asU8a-BixKX-w0.js} +1 -1
- package/dist/bundle/bip39-D7YSihxf.js +260 -0
- package/dist/bundle/{browser-ponyfill-Dy1JBTMg.js → browser-ponyfill-Bctlk3uB.js} +30 -31
- package/dist/bundle/{captchaComponentProvider-DmV1WTrT.js → captchaComponentProvider-BL18T1UE.js} +4 -4
- package/dist/bundle/{captchaRenderer-RIsSZXCC.js → captchaRenderer-BAMErqQN.js} +2 -2
- package/dist/bundle/{emotion-element-5486c51c.browser.esm-C3u8NMUC.js → emotion-element-5486c51c.browser.esm-Bjt1gs1F.js} +1 -1
- package/dist/bundle/{hash-_rWungeW.js → hash-CrwduMDb.js} +483 -796
- package/dist/bundle/{i18nFrontend-CsPT71ro.js → i18nFrontend-DCv3P9jv.js} +1 -1
- package/dist/bundle/{index-Wgw2GQWq.js → index-1qH2dz7u.js} +2 -2
- package/dist/bundle/index-BeN3et18.js +4844 -0
- package/dist/bundle/{index-DxIFpl6U.js → index-ByKGlSkE.js} +1 -1
- package/dist/bundle/{index-Cu5oL_7b.js → index-CBquknc2.js} +5 -5
- package/dist/bundle/locales/ar/translation.json +1 -2
- package/dist/bundle/locales/az/translation.json +1 -2
- package/dist/bundle/locales/cs/translation.json +1 -2
- package/dist/bundle/locales/de/translation.json +1 -2
- package/dist/bundle/locales/el/translation.json +1 -2
- package/dist/bundle/locales/en/translation.json +1 -2
- package/dist/bundle/locales/es/translation.json +1 -2
- package/dist/bundle/locales/fi/translation.json +1 -2
- package/dist/bundle/locales/fr/translation.json +1 -2
- package/dist/bundle/locales/hi/translation.json +1 -2
- package/dist/bundle/locales/hu/translation.json +1 -2
- package/dist/bundle/locales/id/translation.json +1 -2
- package/dist/bundle/locales/it/translation.json +1 -2
- package/dist/bundle/locales/ja/translation.json +1 -2
- package/dist/bundle/locales/jv/translation.json +1 -2
- package/dist/bundle/locales/ko/translation.json +1 -2
- package/dist/bundle/locales/ml/translation.json +1 -2
- package/dist/bundle/locales/ms/translation.json +1 -2
- package/dist/bundle/locales/nl/translation.json +1 -2
- package/dist/bundle/locales/no/translation.json +1 -2
- package/dist/bundle/locales/pl/translation.json +1 -2
- package/dist/bundle/locales/pt/translation.json +1 -2
- package/dist/bundle/locales/pt-br/translation.json +1 -2
- package/dist/bundle/locales/ro/translation.json +1 -2
- package/dist/bundle/locales/ru/translation.json +1 -2
- package/dist/bundle/locales/sr/translation.json +1 -2
- package/dist/bundle/locales/sv/translation.json +1 -2
- package/dist/bundle/locales/th/translation.json +1 -2
- package/dist/bundle/locales/tr/translation.json +1 -2
- package/dist/bundle/locales/uk/translation.json +1 -2
- package/dist/bundle/locales/vi/translation.json +1 -2
- package/dist/bundle/locales/zh-cn/translation.json +1 -2
- package/dist/bundle/procaptcha.bundle.js +1 -1
- package/dist/bundle/sha256-CGE_4eEY.js +171 -0
- package/dist/bundle/toU8a-CPMbkkSw.js +109 -0
- package/dist/bundle/{useTranslation-CJplXtqb.js → useTranslation-BJsfZyOx.js} +3 -3
- package/dist/bundle/util/captcha/captchaComponentProvider.d.ts +0 -1
- package/dist/bundle/util/captcha/captchaComponentProvider.d.ts.map +1 -1
- package/dist/bundle/util/captcha/captchaComponentsList.d.ts +0 -1
- package/dist/bundle/util/captcha/captchaComponentsList.d.ts.map +1 -1
- package/dist/bundle/util/captcha/captchaRenderer.d.ts +0 -1
- package/dist/bundle/util/captcha/captchaRenderer.d.ts.map +1 -1
- package/package.json +10 -13
- package/stats.html +1 -1
- package/dist/bundle/ProcaptchaWidget-rAM-9Rap.js +0 -360
- package/dist/bundle/bip39-Du2cANEV.js +0 -365
- package/dist/bundle/index-BVr9fC_3.js +0 -4386
- package/dist/bundle/toU8a-C68WUzs_.js +0 -24
|
@@ -0,0 +1,109 @@
|
|
|
1
|
+
function s(t) {
|
|
2
|
+
if (!Number.isSafeInteger(t) || t < 0)
|
|
3
|
+
throw new Error(`positive integer expected, not ${t}`);
|
|
4
|
+
}
|
|
5
|
+
function a(t) {
|
|
6
|
+
return t instanceof Uint8Array || t != null && typeof t == "object" && t.constructor.name === "Uint8Array";
|
|
7
|
+
}
|
|
8
|
+
function u(t, ...e) {
|
|
9
|
+
if (!a(t))
|
|
10
|
+
throw new Error("Uint8Array expected");
|
|
11
|
+
if (e.length > 0 && !e.includes(t.length))
|
|
12
|
+
throw new Error(`Uint8Array expected of length ${e}, not of length=${t.length}`);
|
|
13
|
+
}
|
|
14
|
+
function x(t) {
|
|
15
|
+
if (typeof t != "function" || typeof t.create != "function")
|
|
16
|
+
throw new Error("Hash should be wrapped by utils.wrapConstructor");
|
|
17
|
+
s(t.outputLen), s(t.blockLen);
|
|
18
|
+
}
|
|
19
|
+
function L(t, e = !0) {
|
|
20
|
+
if (t.destroyed)
|
|
21
|
+
throw new Error("Hash instance has been destroyed");
|
|
22
|
+
if (e && t.finished)
|
|
23
|
+
throw new Error("Hash#digest() has already been called");
|
|
24
|
+
}
|
|
25
|
+
function E(t, e) {
|
|
26
|
+
u(t);
|
|
27
|
+
const n = e.outputLen;
|
|
28
|
+
if (t.length < n)
|
|
29
|
+
throw new Error(`digestInto() expects output buffer of length at least ${n}`);
|
|
30
|
+
}
|
|
31
|
+
const A = (t) => new Uint32Array(t.buffer, t.byteOffset, Math.floor(t.byteLength / 4)), T = (t) => new DataView(t.buffer, t.byteOffset, t.byteLength), U = (t, e) => t << 32 - e | t >>> e, k = (t, e) => t << e | t >>> 32 - e >>> 0, l = new Uint8Array(new Uint32Array([287454020]).buffer)[0] === 68, f = (t) => t << 24 & 4278190080 | t << 8 & 16711680 | t >>> 8 & 65280 | t >>> 24 & 255, m = l ? (t) => t : (t) => f(t);
|
|
32
|
+
function O(t) {
|
|
33
|
+
for (let e = 0; e < t.length; e++)
|
|
34
|
+
t[e] = f(t[e]);
|
|
35
|
+
}
|
|
36
|
+
function p(t) {
|
|
37
|
+
if (typeof t != "string")
|
|
38
|
+
throw new Error(`utf8ToBytes expected string, got ${typeof t}`);
|
|
39
|
+
return new Uint8Array(new TextEncoder().encode(t));
|
|
40
|
+
}
|
|
41
|
+
function c(t) {
|
|
42
|
+
return typeof t == "string" && (t = p(t)), u(t), t;
|
|
43
|
+
}
|
|
44
|
+
class S {
|
|
45
|
+
// Safe version that clones internal state
|
|
46
|
+
clone() {
|
|
47
|
+
return this._cloneInto();
|
|
48
|
+
}
|
|
49
|
+
}
|
|
50
|
+
const d = {}.toString;
|
|
51
|
+
function $(t, e) {
|
|
52
|
+
if (e !== void 0 && d.call(e) !== "[object Object]")
|
|
53
|
+
throw new Error("Options should be object or undefined");
|
|
54
|
+
return Object.assign(t, e);
|
|
55
|
+
}
|
|
56
|
+
function j(t) {
|
|
57
|
+
const e = (o) => t().update(c(o)).digest(), n = t();
|
|
58
|
+
return e.outputLen = n.outputLen, e.blockLen = n.blockLen, e.create = () => t(), e;
|
|
59
|
+
}
|
|
60
|
+
function B(t) {
|
|
61
|
+
const e = (o, r) => t(r).update(c(o)).digest(), n = t({});
|
|
62
|
+
return e.outputLen = n.outputLen, e.blockLen = n.blockLen, e.create = (o) => t(o), e;
|
|
63
|
+
}
|
|
64
|
+
function H(t) {
|
|
65
|
+
const e = (o, r) => t(r).update(c(o)).digest(), n = t({});
|
|
66
|
+
return e.outputLen = n.outputLen, e.blockLen = n.blockLen, e.create = (o) => t(o), e;
|
|
67
|
+
}
|
|
68
|
+
function y(t) {
|
|
69
|
+
return t("return this");
|
|
70
|
+
}
|
|
71
|
+
const i = typeof globalThis < "u" ? globalThis : typeof global < "u" ? global : typeof self < "u" ? self : typeof window < "u" ? window : y(Function);
|
|
72
|
+
function w(t, e) {
|
|
73
|
+
return typeof i[t] > "u" ? e : i[t];
|
|
74
|
+
}
|
|
75
|
+
let b = class {
|
|
76
|
+
encode(e) {
|
|
77
|
+
const n = e.length, o = new Uint8Array(n);
|
|
78
|
+
for (let r = 0; r < n; r++)
|
|
79
|
+
o[r] = e.charCodeAt(r);
|
|
80
|
+
return o;
|
|
81
|
+
}
|
|
82
|
+
};
|
|
83
|
+
const g = /* @__PURE__ */ w("TextEncoder", b), h = new g();
|
|
84
|
+
function C(t) {
|
|
85
|
+
return t ? h.encode(t.toString()) : new Uint8Array();
|
|
86
|
+
}
|
|
87
|
+
export {
|
|
88
|
+
S as H,
|
|
89
|
+
m as a,
|
|
90
|
+
O as b,
|
|
91
|
+
w as c,
|
|
92
|
+
j as d,
|
|
93
|
+
L as e,
|
|
94
|
+
H as f,
|
|
95
|
+
u as g,
|
|
96
|
+
$ as h,
|
|
97
|
+
l as i,
|
|
98
|
+
x as j,
|
|
99
|
+
T as k,
|
|
100
|
+
U as l,
|
|
101
|
+
s as n,
|
|
102
|
+
E as o,
|
|
103
|
+
k as r,
|
|
104
|
+
C as s,
|
|
105
|
+
c as t,
|
|
106
|
+
A as u,
|
|
107
|
+
B as w,
|
|
108
|
+
i as x
|
|
109
|
+
};
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { n as X, r as p } from "./emotion-element-5486c51c.browser.esm-
|
|
2
|
-
import { s as Y } from "./toU8a-
|
|
3
|
-
import { g as q, a as B, i as K } from "./i18nFrontend-
|
|
1
|
+
import { n as X, r as p } from "./emotion-element-5486c51c.browser.esm-Bjt1gs1F.js";
|
|
2
|
+
import { s as Y } from "./toU8a-CPMbkkSw.js";
|
|
3
|
+
import { g as q, a as B, i as K } from "./i18nFrontend-DCv3P9jv.js";
|
|
4
4
|
function re(e) {
|
|
5
5
|
return X(Y(e));
|
|
6
6
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"captchaComponentProvider.d.ts","sourceRoot":"","sources":["../../../../src/util/captcha/captchaComponentProvider.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"captchaComponentProvider.d.ts","sourceRoot":"","sources":["../../../../src/util/captcha/captchaComponentProvider.tsx"],"names":[],"mappings":"AAeA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AAEvC,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,mBAAmB,CAAC;AAEtD,cAAM,wBAAwB;IACtB,mBAAmB,CACzB,WAAW,EAAE,WAAW,EACxB,YAAY,EAAE,YAAY,GACxB,SAAS;CAaZ;AAED,OAAO,EAAE,wBAAwB,EAAE,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"captchaComponentsList.d.ts","sourceRoot":"","sources":["../../../../src/util/captcha/captchaComponentsList.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"captchaComponentsList.d.ts","sourceRoot":"","sources":["../../../../src/util/captcha/captchaComponentsList.ts"],"names":[],"mappings":"AAeA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAC/B,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,mBAAmB,CAAC;AAKtD,QAAA,MAAM,qBAAqB,EAAE,MAAM,CAClC,WAAW,EACX,KAAK,CAAC,aAAa,CAAC,YAAY,CAAC,CAKjC,CAAC;AAEF,OAAO,EAAE,qBAAqB,EAAE,CAAC"}
|
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
import { type EmotionCache } from "@emotion/cache";
|
|
2
2
|
import type { Ti18n } from "@prosopo/locale";
|
|
3
3
|
import type { Callbacks, ProcaptchaClientConfigOutput, ProcaptchaRenderOptions } from "@prosopo/types";
|
|
4
|
-
import type { CaptchaType } from "@prosopo/types";
|
|
5
4
|
import type { ReactNode } from "react";
|
|
6
5
|
import { type Root } from "react-dom/client";
|
|
7
6
|
import type { CaptchaComponentProvider } from "./captchaComponentProvider.js";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"captchaRenderer.d.ts","sourceRoot":"","sources":["../../../../src/util/captcha/captchaRenderer.tsx"],"names":[],"mappings":"AAcA,OAAoB,EAAE,KAAK,YAAY,EAAE,MAAM,gBAAgB,CAAC;AAEhE,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,iBAAiB,CAAC;AAC7C,OAAO,KAAK,EACX,SAAS,EACT,4BAA4B,EAC5B,uBAAuB,EACvB,MAAM,gBAAgB,CAAC;
|
|
1
|
+
{"version":3,"file":"captchaRenderer.d.ts","sourceRoot":"","sources":["../../../../src/util/captcha/captchaRenderer.tsx"],"names":[],"mappings":"AAcA,OAAoB,EAAE,KAAK,YAAY,EAAE,MAAM,gBAAgB,CAAC;AAEhE,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,iBAAiB,CAAC;AAC7C,OAAO,KAAK,EACX,SAAS,EACT,4BAA4B,EAC5B,uBAAuB,EACvB,MAAM,gBAAgB,CAAC;AAExB,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AACvC,OAAO,EAAE,KAAK,IAAI,EAAc,MAAM,kBAAkB,CAAC;AAIzD,OAAO,KAAK,EAAE,wBAAwB,EAAE,MAAM,+BAA+B,CAAC;AAE9E,UAAU,cAAc;IACvB,gBAAgB,EAAE,MAAM,CAAC;IACzB,eAAe,EAAE,MAAM,CAAC;IACxB,eAAe,EAAE,MAAM,CAAC;IACxB,kBAAkB,EAAE,WAAW,CAAC;CAChC;AAED,cAAM,eAAe;IACpB,OAAO,CAAC,QAAQ,CAAC,wBAAwB,CAA2B;gBAExD,wBAAwB,EAAE,wBAAwB;IAIvD,aAAa,CACnB,QAAQ,EAAE,cAAc,EACxB,SAAS,EAAE,WAAW,EACtB,aAAa,EAAE,uBAAuB,EACtC,SAAS,EAAE,SAAS,EACpB,MAAM,EAAE,OAAO,EACf,IAAI,EAAE,KAAK,EACX,SAAS,UAAQ,GACf,IAAI;IAsCP,SAAS,CAAC,uBAAuB,CAChC,OAAO,EAAE,OAAO,EAChB,MAAM,EAAE,4BAA4B,EACpC,aAAa,EAAE,uBAAuB,GACpC,IAAI;IAKP,SAAS,CAAC,gBAAgB,CACzB,QAAQ,EAAE,MAAM,EAChB,SAAS,EAAE,WAAW,GACpB,YAAY;IAQf,SAAS,CAAC,eAAe,CACxB,SAAS,EAAE,WAAW,EACtB,gBAAgB,EAAE,MAAM,GACtB,IAAI;IAMP,SAAS,CAAC,sBAAsB,CAC/B,SAAS,EAAE,IAAI,EACf,YAAY,EAAE,YAAY,EAC1B,gBAAgB,EAAE,SAAS,GACzB,IAAI;CAKP;AAED,OAAO,EAAE,eAAe,EAAE,CAAC"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@prosopo/procaptcha-bundle",
|
|
3
|
-
"version": "2.6.
|
|
3
|
+
"version": "2.6.9",
|
|
4
4
|
"author": "PROSOPO LIMITED <info@prosopo.io>",
|
|
5
5
|
"license": "Apache-2.0",
|
|
6
6
|
"main": "./dist/index.js",
|
|
@@ -32,26 +32,23 @@
|
|
|
32
32
|
"bundle:webpack": "NODE_ENV=${NODE_ENV:-production}; webpack build --config webpack.config.cjs --mode $NODE_ENV",
|
|
33
33
|
"serve": "NODE_ENV=${NODE_ENV:-development}; vite serve --config vite.serve.config.ts --mode $NODE_ENV --host"
|
|
34
34
|
},
|
|
35
|
-
"browserslist": [
|
|
36
|
-
"> 0.5%, last 2 versions, not dead"
|
|
37
|
-
],
|
|
35
|
+
"browserslist": ["> 0.5%, last 2 versions, not dead"],
|
|
38
36
|
"dependencies": {
|
|
39
|
-
"@prosopo/dotenv": "2.6.
|
|
37
|
+
"@prosopo/dotenv": "2.6.1",
|
|
40
38
|
"@prosopo/locale": "2.6.0",
|
|
41
|
-
"@prosopo/procaptcha-frictionless": "2.6.
|
|
42
|
-
"@prosopo/procaptcha-pow": "2.6.
|
|
43
|
-
"@prosopo/procaptcha-react": "2.6.
|
|
44
|
-
"@prosopo/types": "2.7.0",
|
|
45
|
-
"@prosopo/util": "2.6.0",
|
|
39
|
+
"@prosopo/procaptcha-frictionless": "2.6.9",
|
|
40
|
+
"@prosopo/procaptcha-pow": "2.6.9",
|
|
41
|
+
"@prosopo/procaptcha-react": "2.6.9",
|
|
46
42
|
"@prosopo/widget-skeleton": "2.6.0",
|
|
43
|
+
"@prosopo/types": "2.7.1",
|
|
44
|
+
"@prosopo/util": "2.6.0",
|
|
47
45
|
"express": "4.21.2",
|
|
48
46
|
"react": "18.3.1",
|
|
49
47
|
"react-dom": "18.3.1"
|
|
50
48
|
},
|
|
51
49
|
"repository": {
|
|
52
50
|
"type": "git",
|
|
53
|
-
"url": "git+https://github.com/prosopo/captcha.git"
|
|
54
|
-
"directory": "packages/procaptcha-bundle"
|
|
51
|
+
"url": "git+https://github.com/prosopo/captcha.git"
|
|
55
52
|
},
|
|
56
53
|
"bugs": {
|
|
57
54
|
"url": "https://github.com/prosopo/captcha/issues"
|
|
@@ -64,8 +61,8 @@
|
|
|
64
61
|
"devDependencies": {
|
|
65
62
|
"@prosopo/config": "2.6.0",
|
|
66
63
|
"@types/jsdom": "21.1.7",
|
|
67
|
-
"@types/react": "18.3.1",
|
|
68
64
|
"@types/react-dom": "18.3.1",
|
|
65
|
+
"@types/react": "18.3.1",
|
|
69
66
|
"@vitest/coverage-v8": "3.0.9",
|
|
70
67
|
"concurrently": "9.0.1",
|
|
71
68
|
"del-cli": "6.0.0",
|