@prosopo/procaptcha-bundle 2.3.1 → 2.3.2
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 +2 -1
- 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/util/config.d.ts +1 -1
- package/.rollup.cache/home/runner/work/captcha-private/captcha-private/captcha/packages/procaptcha-bundle/dist/bundle/util/config.d.ts.map +1 -1
- package/.rollup.cache/home/runner/work/captcha-private/captcha-private/captcha/packages/procaptcha-bundle/dist/bundle/util/config.js +2 -1
- package/.rollup.cache/home/runner/work/captcha-private/captcha-private/captcha/packages/procaptcha-bundle/dist/bundle/util/config.js.map +1 -1
- package/dist/bundle/{Checkbox-1g4X-3Qk.js → Checkbox-gp52EwUq.js} +2 -2
- package/dist/bundle/{ProcaptchaWidget-Br0TzJXc.js → ProcaptchaWidget-BvScmKhX.js} +5 -5
- package/dist/bundle/{ProcaptchaWidget-weuONHx4.js → ProcaptchaWidget-D2i13eeY.js} +4 -4
- package/dist/bundle/{asU8a-DDBcjges.js → asU8a-BcA17eDA.js} +1 -1
- package/dist/bundle/{bip39-CRbwrDSj.js → bip39-_F7Z5vIE.js} +3 -3
- package/dist/bundle/{hash-B8OCn-ev.js → hash-C7-gVTqE.js} +1 -1
- package/dist/bundle/{index-Cks8mtaG.js → index-BH5dKH-o.js} +3 -3
- package/dist/bundle/{index-43V4q4_w.js → index-BYd5PSRY.js} +4459 -4474
- package/dist/bundle/{index-B2mmLfsC.js → index-BdsUZjbH.js} +5 -5
- package/dist/bundle/index.d.ts.map +1 -1
- package/dist/bundle/procaptcha.bundle.js +1 -1
- package/dist/bundle/{sha256-CxfeEiTA.js → sha256-Bcj1GDss.js} +1 -1
- package/dist/bundle/util/config.d.ts +1 -1
- package/dist/bundle/util/config.d.ts.map +1 -1
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +2 -1
- package/dist/index.js.map +1 -1
- package/dist/util/config.d.ts +1 -1
- package/dist/util/config.d.ts.map +1 -1
- package/dist/util/config.js +2 -1
- package/dist/util/config.js.map +1 -1
- package/package.json +9 -9
- package/stats.html +1 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/index.tsx"],"names":[],"mappings":"AAcA,OAAO,KAAK,EAAE,uBAAuB,EAAE,MAAM,gBAAgB,CAAC;
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/index.tsx"],"names":[],"mappings":"AAcA,OAAO,KAAK,EAAE,uBAAuB,EAAE,MAAM,gBAAgB,CAAC;AA0C9D,eAAO,MAAM,MAAM,YACT,OAAO,iBACD,uBAAuB,SAOtC,CAAC;AAEF,MAAM,CAAC,OAAO,UAAU,KAAK,CAAC,EAAE,EAAE,MAAM,IAAI,QAQ3C;AAGD,OAAO,CAAC,MAAM,CAAC;IACd,UAAU,MAAM;QACf,UAAU,EAAE;YACX,KAAK,EAAE,OAAO,KAAK,CAAC;YACpB,MAAM,EAAE,OAAO,MAAM,CAAC;YACtB,KAAK,EAAE,OAAO,KAAK,CAAC;SACpB,CAAC;KACF;CACD;AA2BD,eAAO,MAAM,KAAK,YAOjB,CAAC"}
|
|
@@ -9,12 +9,13 @@ const implicitRender = () => {
|
|
|
9
9
|
const elements = Array.from(document.getElementsByClassName("procaptcha"));
|
|
10
10
|
if (elements.length) {
|
|
11
11
|
const siteKey = at(elements, 0).getAttribute("data-sitekey");
|
|
12
|
+
const web3 = at(elements, 0).getAttribute("data-web3");
|
|
12
13
|
if (!siteKey) {
|
|
13
14
|
console.error("No siteKey found");
|
|
14
15
|
return;
|
|
15
16
|
}
|
|
16
17
|
const captchaType = getCaptchaType(elements);
|
|
17
|
-
const root = renderLogic(elements, getConfig(siteKey), {
|
|
18
|
+
const root = renderLogic(elements, getConfig(siteKey, !(web3 === "true")), {
|
|
18
19
|
captchaType,
|
|
19
20
|
siteKey,
|
|
20
21
|
});
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/index.tsx"],"names":[],"mappings":"AAeA,OAAO,EAAE,EAAE,EAAE,MAAM,eAAe,CAAC;AAEnC,OAAO,EAAE,cAAc,EAAE,MAAM,uBAAuB,CAAC;AACvD,OAAO,EACN,aAAa,EACb,SAAS,EACT,mBAAmB,GACnB,MAAM,kBAAkB,CAAC;AAC1B,OAAO,EAAE,iBAAiB,EAAE,MAAM,4BAA4B,CAAC;AAC/D,OAAO,EAAE,WAAW,EAAE,MAAM,uBAAuB,CAAC;AAEpD,MAAM,WAAW,GAAG,sBAAsB,CAAC;AAC3C,IAAI,eAAe,GAAW,EAAE,CAAC;AAGjC,MAAM,cAAc,GAAG,GAAG,EAAE;IAE3B,MAAM,QAAQ,GAAc,KAAK,CAAC,IAAI,CACrC,QAAQ,CAAC,sBAAsB,CAAC,YAAY,CAAC,CAC7C,CAAC;IAGF,IAAI,QAAQ,CAAC,MAAM,EAAE,CAAC;QACrB,MAAM,OAAO,GAAG,EAAE,CAAC,QAAQ,EAAE,CAAC,CAAC,CAAC,YAAY,CAAC,cAAc,CAAC,CAAC;QAC7D,IAAI,CAAC,OAAO,EAAE,CAAC;YACd,OAAO,CAAC,KAAK,CAAC,kBAAkB,CAAC,CAAC;YAClC,OAAO;QACR,CAAC;QACD,MAAM,WAAW,GAAG,cAAc,CAAC,QAAQ,CAAC,CAAC;QAE7C,MAAM,IAAI,GAAG,WAAW,CAAC,QAAQ,EAAE,SAAS,CAAC,OAAO,CAAC,EAAE;
|
|
1
|
+
{"version":3,"file":"index.js","sour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B,CAAC;IACF,CAAC;AACF,CAAC,CAAC;AAEF,MAAM,CAAC,MAAM,KAAK,GAAG,GAAG,EAAE;IACzB,KAAK,MAAM,IAAI,IAAI,eAAe,EAAE,CAAC;QACpC,IAAI,CAAC,OAAO,EAAE,CAAC;IAChB,CAAC;IACD,eAAe,GAAG,EAAE,CAAC;IAErB,KAAK,EAAE,CAAC;AACT,CAAC,CAAC;AAGF,MAAM,CAAC,UAAU,GAAG,EAAE,KAAK,EAAE,MAAM,EAAE,KAAK,EAAE,CAAC;AAE7C,KAAK,EAAE,CAAC"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { type ProcaptchaClientConfigOutput } from "@prosopo/types";
|
|
2
|
-
export declare const getConfig: (siteKey?: string) => ProcaptchaClientConfigOutput;
|
|
2
|
+
export declare const getConfig: (siteKey?: string, web2?: boolean) => ProcaptchaClientConfigOutput;
|
|
3
3
|
export declare const getProcaptchaScript: (name: string) => HTMLScriptElement | null;
|
|
4
4
|
export declare const extractParams: (name: string) => {
|
|
5
5
|
onloadUrlCallback: string | undefined;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"config.d.ts","sourceRoot":"","sources":["../../../src/util/config.ts"],"names":[],"mappings":"AAaA,OAAO,EAEN,KAAK,4BAA4B,EAEjC,MAAM,gBAAgB,CAAC;AAExB,eAAO,MAAM,SAAS,
|
|
1
|
+
{"version":3,"file":"config.d.ts","sourceRoot":"","sources":["../../../src/util/config.ts"],"names":[],"mappings":"AAaA,OAAO,EAEN,KAAK,4BAA4B,EAEjC,MAAM,gBAAgB,CAAC;AAExB,eAAO,MAAM,SAAS,aACX,MAAM,qBAEd,4BAkBF,CAAC;AAEF,eAAO,MAAM,mBAAmB,SAAU,MAAM,6BACoB,CAAC;AAErE,eAAO,MAAM,aAAa,SAAU,MAAM;;;CAWzC,CAAC"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { EnvironmentTypesSchema, ProcaptchaConfigSchema, } from "@prosopo/types";
|
|
2
|
-
export const getConfig = (siteKey) => {
|
|
2
|
+
export const getConfig = (siteKey, web2 = true) => {
|
|
3
3
|
if (!siteKey) {
|
|
4
4
|
siteKey = process.env.PROSOPO_SITE_KEY || "";
|
|
5
5
|
}
|
|
@@ -14,6 +14,7 @@ export const getConfig = (siteKey) => {
|
|
|
14
14
|
serverUrl: process.env.PROSOPO_SERVER_URL || "",
|
|
15
15
|
mongoAtlasUri: process.env.PROSOPO_MONGO_EVENTS_URI || "",
|
|
16
16
|
devOnlyWatchEvents: process.env._DEV_ONLY_WATCH_EVENTS === "true" || false,
|
|
17
|
+
web2,
|
|
17
18
|
});
|
|
18
19
|
};
|
|
19
20
|
export const getProcaptchaScript = (name) => document.querySelector(`script[src*="${name}"]`);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"config.js","sourceRoot":"","sources":["../../../src/util/config.ts"],"names":[],"mappings":"AAaA,OAAO,EACN,sBAAsB,EAEtB,sBAAsB,GACtB,MAAM,gBAAgB,CAAC;AAExB,MAAM,CAAC,MAAM,SAAS,GAAG,
|
|
1
|
+
{"version":3,"file":"config.js","sourceRoot":"","sources":["../../../src/util/config.ts"],"names":[],"mappings":"AAaA,OAAO,EACN,sBAAsB,EAEtB,sBAAsB,GACtB,MAAM,gBAAgB,CAAC;AAExB,MAAM,CAAC,MAAM,SAAS,GAAG,CACxB,OAAgB,EAChB,IAAI,GAAG,IAAI,EACoB,EAAE;IACjC,IAAI,CAAC,OAAO,EAAE,CAAC;QACd,OAAO,GAAG,OAAO,CAAC,GAAG,CAAC,gBAAgB,IAAI,EAAE,CAAC;IAC9C,CAAC;IAED,OAAO,sBAAsB,CAAC,KAAK,CAAC;QACnC,kBAAkB,EAAE,OAAO,CAAC,GAAG,CAAC,2BAA2B;YAC1D,CAAC,CAAC,sBAAsB,CAAC,KAAK,CAAC,OAAO,CAAC,GAAG,CAAC,2BAA2B,CAAC;YACvE,CAAC,CAAC,sBAAsB,CAAC,IAAI,C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, s as fe, t as de, d as ge, j as T } from "./index-
|
|
2
|
-
import { q as pe } from "./hash-
|
|
1
|
+
import { u as oe, _ as J, v as K, r as d, w as G, x as ae, y as ie, z as se, i as V, B as ue, D as ce, E as le, F as nn, T as tn, G as rn, H as on, I as an, J as sn, K as un, M as cn, s as fe, t as de, d as ge, j as T } from "./index-BYd5PSRY.js";
|
|
2
|
+
import { q as pe } from "./hash-C7-gVTqE.js";
|
|
3
3
|
const fn = (t) => new Promise((e) => setTimeout(e, t));
|
|
4
4
|
function dn(t) {
|
|
5
5
|
return oe(pe(t));
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { N as W, r as m, s as L, t as P, j as i, d as C, O as _, Q as f, R as A, A as g, P as I, p as F, g as ce, e as le, a as de, b as X, S as ue, i as he, W as pe, C as ge, c as fe, f as me, h as xe, k as Ce, l as be, m as ye, L as Ae, n as we, o as Te, q as Ee } from "./index-
|
|
2
|
-
import { u as q, a as Y, g as Se, b as Ie, s as ve, c as Ne, C as He } from "./Checkbox-
|
|
3
|
-
import { v as ke, x as De, y as $ } from "./hash-
|
|
4
|
-
import { a as Re } from "./asU8a-
|
|
1
|
+
import { N as W, r as m, s as L, t as P, j as i, d as C, O as _, Q as f, R as A, A as g, P as I, p as F, g as ce, e as le, a as de, b as X, S as ue, i as he, W as pe, C as ge, c as fe, f as me, h as xe, k as Ce, l as be, m as ye, L as Ae, n as we, o as Te, q as Ee } from "./index-BYd5PSRY.js";
|
|
2
|
+
import { u as q, a as Y, g as Se, b as Ie, s as ve, c as Ne, C as He } from "./Checkbox-gp52EwUq.js";
|
|
3
|
+
import { v as ke, x as De, y as $ } from "./hash-C7-gVTqE.js";
|
|
4
|
+
import { a as Re } from "./asU8a-BcA17eDA.js";
|
|
5
5
|
const _e = (t) => Array.isArray(t) && t !== null, G = new Array(256), J = new Array(256 * 256);
|
|
6
6
|
for (let t = 0; t < 256; t++)
|
|
7
7
|
G[t] = t.toString(16).padStart(2, "0");
|
|
@@ -535,7 +535,7 @@ function Ye(t, e, n, r, a) {
|
|
|
535
535
|
throw new I("GENERAL.ACCOUNT_NOT_FOUND", {
|
|
536
536
|
context: { error: "Account address has not been set for web3 mode" }
|
|
537
537
|
});
|
|
538
|
-
const h = async (k) => await new (await k())().getAccount(l), y = async () => (await import("./index-
|
|
538
|
+
const h = async (k) => await new (await k())().getAccount(l), y = async () => (await import("./index-BH5dKH-o.js")).ExtensionWeb3, p = async () => (await import("./index-BH5dKH-o.js")).ExtensionWeb2, T = await h(l.web2 ? p : y);
|
|
539
539
|
return j.setAccount(T.account.address), o({ account: T }), U();
|
|
540
540
|
}, U = () => {
|
|
541
541
|
if (!e.account)
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { p as L, P as h, g as k, a as O, A as r, e as U, b as M, r as f, i as j, j as n, W as F, C as B, c as X, d as G, f as K, h as Y, k as q, l as V, m as $, L as z, n as J, o as Q, q as Z, s as ee, t as ne } from "./index-
|
|
2
|
-
import { g as H, b as P, s as te, a as ae, u as oe, c as se, C as re } from "./Checkbox-
|
|
3
|
-
import { s as ce } from "./sha256-
|
|
4
|
-
import { ExtensionWeb2 as ie, ExtensionWeb3 as le } from "./index-
|
|
1
|
+
import { p as L, P as h, g as k, a as O, A as r, e as U, b as M, r as f, i as j, j as n, W as F, C as B, c as X, d as G, f as K, h as Y, k as q, l as V, m as $, L as z, n as J, o as Q, q as Z, s as ee, t as ne } from "./index-BYd5PSRY.js";
|
|
2
|
+
import { g as H, b as P, s as te, a as ae, u as oe, c as se, C as re } from "./Checkbox-gp52EwUq.js";
|
|
3
|
+
import { s as ce } from "./sha256-Bcj1GDss.js";
|
|
4
|
+
import { ExtensionWeb2 as ie, ExtensionWeb3 as le } from "./index-BH5dKH-o.js";
|
|
5
5
|
const ue = (c, e) => {
|
|
6
6
|
let t = 0;
|
|
7
7
|
const l = "0".repeat(e);
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { H as X, s as Z } from "./sha256-
|
|
2
|
-
import { H as ee, h as O, t as F, e as T, b as te, u as t, w as ae, d as re, n as C, a as se, f as q, i as ie, j as oe, p as ne, k as ce, l as le, s as de, m as he, q as G } from "./hash-
|
|
3
|
-
import { r as ue } from "./asU8a-
|
|
1
|
+
import { H as X, s as Z } from "./sha256-Bcj1GDss.js";
|
|
2
|
+
import { H as ee, h as O, t as F, e as T, b as te, u as t, w as ae, d as re, n as C, a as se, f as q, i as ie, j as oe, p as ne, k as ce, l as le, s as de, m as he, q as G } from "./hash-C7-gVTqE.js";
|
|
3
|
+
import { r as ue } from "./asU8a-BcA17eDA.js";
|
|
4
4
|
class P extends ee {
|
|
5
5
|
constructor(e, o) {
|
|
6
6
|
super(), this.finished = !1, this.destroyed = !1, O(e);
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
var Mn = Object.defineProperty;
|
|
2
2
|
var Un = (n, e, t) => e in n ? Mn(n, e, { enumerable: !0, configurable: !0, writable: !0, value: t }) : n[e] = t;
|
|
3
3
|
var y = (n, e, t) => Un(n, typeof e != "symbol" ? e + "" : e, t);
|
|
4
|
-
import { u as Vn } from "./index-
|
|
4
|
+
import { u as Vn } from "./index-BYd5PSRY.js";
|
|
5
5
|
function J(n) {
|
|
6
6
|
if (!Number.isSafeInteger(n) || n < 0)
|
|
7
7
|
throw new Error(`positive integer expected, not ${n}`);
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { u as g, R as i } from "./index-
|
|
2
|
-
import { ah as m, j as l, ai as E, q as f } from "./hash-
|
|
1
|
+
import { u as g, R as i } from "./index-BYd5PSRY.js";
|
|
2
|
+
import { ah as m, j as l, ai as E, q as f } from "./hash-C7-gVTqE.js";
|
|
3
3
|
const h = "dev";
|
|
4
4
|
class y {
|
|
5
5
|
}
|
|
@@ -10,7 +10,7 @@ function x() {
|
|
|
10
10
|
return !0;
|
|
11
11
|
}).catch(() => !1);
|
|
12
12
|
}
|
|
13
|
-
const b = async () => (await import("./fp.esm-C0kLYOiJ.js")).default, N = async () => (await (await (await b()).load()).get()).visitorId, T = async () => (await import("./Signer-DP9drQ55.js")).default, O = async () => (await import("./index-
|
|
13
|
+
const b = async () => (await import("./fp.esm-C0kLYOiJ.js")).default, N = async () => (await (await (await b()).load()).get()).visitorId, T = async () => (await import("./Signer-DP9drQ55.js")).default, O = async () => (await import("./index-BdsUZjbH.js")).Keyring, A = async () => (await import("./bip39-_F7Z5vIE.js").then((a) => a.c)).entropyToMnemonic;
|
|
14
14
|
class D extends y {
|
|
15
15
|
async getAccount(e) {
|
|
16
16
|
const t = await this.createAccount(e), n = await this.createExtension(t);
|