@prosopo/procaptcha-bundle 2.5.3 → 2.5.5
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-private/captcha-private/captcha/packages/procaptcha-bundle/dist/bundle/index.d.ts.map +1 -1
- package/.rollup.cache/home/runner/work/captcha-private/captcha-private/captcha/packages/procaptcha-bundle/dist/bundle/index.js +15 -17
- package/.rollup.cache/home/runner/work/captcha-private/captcha-private/captcha/packages/procaptcha-bundle/dist/bundle/index.js.map +1 -1
- package/.rollup.cache/home/runner/work/captcha-private/captcha-private/captcha/packages/procaptcha-bundle/dist/bundle/tests/util/renderLogic.test.js +23 -27
- package/.rollup.cache/home/runner/work/captcha-private/captcha-private/captcha/packages/procaptcha-bundle/dist/bundle/tests/util/renderLogic.test.js.map +1 -1
- package/.rollup.cache/home/runner/work/captcha-private/captcha-private/captcha/packages/procaptcha-bundle/dist/bundle/util/captcha/captchaRenderer.d.ts +2 -2
- package/.rollup.cache/home/runner/work/captcha-private/captcha-private/captcha/packages/procaptcha-bundle/dist/bundle/util/captcha/captchaRenderer.d.ts.map +1 -1
- package/.rollup.cache/home/runner/work/captcha-private/captcha-private/captcha/packages/procaptcha-bundle/dist/bundle/util/captcha/captchaRenderer.js +4 -7
- package/.rollup.cache/home/runner/work/captcha-private/captcha-private/captcha/packages/procaptcha-bundle/dist/bundle/util/captcha/captchaRenderer.js.map +1 -1
- package/.rollup.cache/home/runner/work/captcha-private/captcha-private/captcha/packages/procaptcha-bundle/dist/bundle/util/widgetFactory.d.ts +2 -2
- package/.rollup.cache/home/runner/work/captcha-private/captcha-private/captcha/packages/procaptcha-bundle/dist/bundle/util/widgetFactory.d.ts.map +1 -1
- package/.rollup.cache/home/runner/work/captcha-private/captcha-private/captcha/packages/procaptcha-bundle/dist/bundle/util/widgetFactory.js +9 -4
- package/.rollup.cache/home/runner/work/captcha-private/captcha-private/captcha/packages/procaptcha-bundle/dist/bundle/util/widgetFactory.js.map +1 -1
- package/dist/bundle/ProcaptchaWidget-CCSN3Dxj.js +636 -0
- package/dist/bundle/{ProcaptchaWidget-Dnwno-4N.js → ProcaptchaWidget-Dfex8hc8.js} +4 -4
- package/dist/bundle/{asU8a-JliaME7-.js → asU8a-CAsEnbuP.js} +1 -1
- package/dist/bundle/{bip39-CFjno8fK.js → bip39-DCaMcFzo.js} +2 -2
- package/dist/bundle/{captchaComponentProvider-dcMua0p9.js → captchaComponentProvider-Dm44AMrY.js} +23 -18
- package/dist/bundle/captchaRenderer-BBodRhQu.js +70 -0
- package/dist/bundle/{emotion-element-5486c51c.browser.esm-Bywq83R5.js → emotion-element-5486c51c.browser.esm-CQHFV-dS.js} +711 -746
- package/dist/bundle/{fp.esm-C0kLYOiJ.js → fp.esm-DYWeNGcH.js} +17 -0
- package/dist/bundle/{hash-CtL1HOjf.js → hash-D-64Vz5z.js} +1 -1
- package/dist/bundle/{captchaRenderer-D-du50M4.js → index-9I1Aae33.js} +1293 -1355
- package/dist/bundle/index-DCHEbWAs.js +1242 -0
- package/dist/bundle/{index-DcG_c-Na.js → index-DkQ4njKa.js} +12 -12
- package/dist/bundle/{index-BTlHNFX8.js → index-DxswvPTy.js} +285 -183
- package/dist/bundle/{index-BMjJnq60.js → index-nNwZuute.js} +252 -252
- package/dist/bundle/index.d.ts.map +1 -1
- package/dist/bundle/locales/de/translation.json +55 -405
- package/dist/bundle/locales/en/translation.json +55 -405
- package/dist/bundle/locales/es/translation.json +55 -405
- package/dist/bundle/locales/fr/translation.json +55 -405
- package/dist/bundle/locales/it/translation.json +55 -405
- package/dist/bundle/locales/pt/translation.json +55 -405
- package/dist/bundle/locales/pt-BR/translation.json +55 -405
- package/dist/bundle/procaptcha.bundle.js +1 -1
- package/dist/bundle/{useTranslation-7b6JJ18N.js → useTranslation-CEt2t9kE.js} +1 -1
- package/dist/bundle/util/captcha/captchaRenderer.d.ts +2 -2
- package/dist/bundle/util/captcha/captchaRenderer.d.ts.map +1 -1
- package/dist/bundle/util/widgetFactory.d.ts +2 -2
- package/dist/bundle/util/widgetFactory.d.ts.map +1 -1
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +15 -17
- package/dist/index.js.map +1 -1
- package/dist/tests/util/renderLogic.test.js +23 -27
- package/dist/tests/util/renderLogic.test.js.map +1 -1
- package/dist/util/captcha/captchaRenderer.d.ts +2 -2
- package/dist/util/captcha/captchaRenderer.d.ts.map +1 -1
- package/dist/util/captcha/captchaRenderer.js +4 -7
- package/dist/util/captcha/captchaRenderer.js.map +1 -1
- package/dist/util/widgetFactory.d.ts +2 -2
- package/dist/util/widgetFactory.d.ts.map +1 -1
- package/dist/util/widgetFactory.js +9 -4
- package/dist/util/widgetFactory.js.map +1 -1
- package/package.json +20 -14
- package/stats.html +1 -1
- package/vite.config.ts +18 -3
- package/vite.serve.config.ts +24 -0
- package/dist/bundle/ProcaptchaWidget-BlWWnPeB.js +0 -615
- package/dist/bundle/index-B8oMghZ3.js +0 -1120
|
@@ -1,18 +1,18 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { w as
|
|
1
|
+
import { m } from "./emotion-element-5486c51c.browser.esm-CQHFV-dS.js";
|
|
2
|
+
import { w as g, i as f, a as l } from "./hash-D-64Vz5z.js";
|
|
3
3
|
import { s as E } from "./toU8a-BWKf-2UU.js";
|
|
4
|
-
import { b as i } from "./captchaComponentProvider-
|
|
4
|
+
import { b as i } from "./captchaComponentProvider-Dm44AMrY.js";
|
|
5
5
|
const b = "dev";
|
|
6
6
|
class y {
|
|
7
7
|
}
|
|
8
8
|
function x() {
|
|
9
|
-
return
|
|
9
|
+
return g().then(() => {
|
|
10
10
|
if (!f())
|
|
11
11
|
throw new Error("Unable to initialize @polkadot/util-crypto");
|
|
12
12
|
return !0;
|
|
13
13
|
}).catch(() => !1);
|
|
14
14
|
}
|
|
15
|
-
const h = async () => (await import("./fp.esm-
|
|
15
|
+
const h = async () => (await import("./fp.esm-DYWeNGcH.js")).default, N = async () => (await (await (await h()).load()).get()).visitorId, T = async () => (await import("./Signer-DP9drQ55.js")).default, O = async () => (await import("./index-nNwZuute.js")).Keyring, A = async () => (await import("./bip39-DCaMcFzo.js").then((r) => r.c)).entropyToMnemonic;
|
|
16
16
|
class W extends y {
|
|
17
17
|
async getAccount(e) {
|
|
18
18
|
const t = await this.createAccount(e), n = await this.createExtension(t);
|
|
@@ -28,7 +28,7 @@ class W extends y {
|
|
|
28
28
|
const o = e.keypair.sign(a.data);
|
|
29
29
|
return {
|
|
30
30
|
id: 1,
|
|
31
|
-
signature:
|
|
31
|
+
signature: m(o)
|
|
32
32
|
};
|
|
33
33
|
}, {
|
|
34
34
|
accounts: {
|
|
@@ -43,13 +43,13 @@ class W extends y {
|
|
|
43
43
|
}
|
|
44
44
|
async createAccount(e) {
|
|
45
45
|
await x();
|
|
46
|
-
const t = await O(), n = await N(), a = l(n, 128).slice(2), o = E(a), u = (await A())(o), s = "sr25519",
|
|
46
|
+
const t = await O(), n = await N(), a = l(n, 128).slice(2), o = E(a), u = (await A())(o), s = "sr25519", d = new t({
|
|
47
47
|
type: s
|
|
48
|
-
}).addFromMnemonic(u),
|
|
48
|
+
}).addFromMnemonic(u), p = d.address;
|
|
49
49
|
return {
|
|
50
|
-
address:
|
|
51
|
-
name:
|
|
52
|
-
keypair:
|
|
50
|
+
address: p,
|
|
51
|
+
name: p,
|
|
52
|
+
keypair: d
|
|
53
53
|
};
|
|
54
54
|
}
|
|
55
55
|
}
|
|
@@ -65,7 +65,7 @@ class _ extends y {
|
|
|
65
65
|
if (o.length === 0)
|
|
66
66
|
throw new i("WIDGET.NO_EXTENSION_FOUND");
|
|
67
67
|
for (const c of o) {
|
|
68
|
-
const s = (await c.accounts.get()).find((
|
|
68
|
+
const s = (await c.accounts.get()).find((w) => w.address === n);
|
|
69
69
|
if (s)
|
|
70
70
|
return { account: s, extension: c };
|
|
71
71
|
}
|