@prosopo/procaptcha-bundle 2.6.3 → 2.6.4

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/CHANGELOG.md CHANGED
@@ -1,5 +1,15 @@
1
1
  # @prosopo/procaptcha-bundle
2
2
 
3
+ ## 2.6.4
4
+
5
+ ### Patch Changes
6
+
7
+ - Updated dependencies [6e1aef6]
8
+ - @prosopo/types@2.7.0
9
+ - @prosopo/procaptcha-frictionless@2.6.4
10
+ - @prosopo/procaptcha-pow@2.6.4
11
+ - @prosopo/procaptcha-react@2.6.4
12
+
3
13
  ## 2.6.3
4
14
 
5
15
  ### Patch Changes
@@ -1,10 +1,10 @@
1
- import { j as c, a as H, P as _, b as T, c as N, g as ae, p as $, d as se, e as ie, E as ce, f as le, C as de } from "./captchaComponentProvider-CJMWWGqv.js";
2
- import { r as f, l as ue, P as X, R as he } from "./emotion-element-5486c51c.browser.esm-F-LKH1Q7.js";
3
- import { b as M, d as D, a as w, A as C, l as pe } from "./index-DXEN8xWW.js";
4
- import { u as q, b as ge, s as fe, a as me, c as xe } from "./useTranslation-DpuHI3Mv.js";
5
- import { r as Ce } from "./index-C30GRfJ0.js";
6
- import { h as U } from "./hash-COecnuJ8.js";
7
- import { r as we } from "./asU8a-OYI2Rcme.js";
1
+ import { j as c, a as H, P as _, b as T, c as N, g as ae, p as $, d as se, e as ie, E as ce, f as le, C as de } from "./captchaComponentProvider-DmV1WTrT.js";
2
+ import { r as f, l as ue, P as X, R as he } from "./emotion-element-5486c51c.browser.esm-C3u8NMUC.js";
3
+ import { b as M, d as D, a as w, A as C, l as pe } from "./index-Wgw2GQWq.js";
4
+ import { u as q, b as ge, s as fe, a as me, c as xe } from "./useTranslation-CJplXtqb.js";
5
+ import { r as Ce } from "./index-DxIFpl6U.js";
6
+ import { h as U } from "./hash-_rWungeW.js";
7
+ import { r as we } from "./asU8a-CJdNkNEq.js";
8
8
  const be = (t) => Array.isArray(t) && t !== null, S = new Array(256), Y = new Array(256 * 256);
9
9
  for (let t = 0; t < 256; t++)
10
10
  S[t] = t.toString(16).padStart(2, "0");
@@ -1,7 +1,7 @@
1
- import { g as W, p as V, c as C, d as j, e as K, E as $, j as Y, C as X } from "./captchaComponentProvider-CJMWWGqv.js";
2
- import { l as q, P as z, r as y, M as D } from "./emotion-element-5486c51c.browser.esm-F-LKH1Q7.js";
3
- import { b as S, a as J, s as Q, u as Z, c as ee } from "./useTranslation-DpuHI3Mv.js";
4
- import { A as p, l as te, b as ne, d as se } from "./index-DXEN8xWW.js";
1
+ import { g as W, p as V, c as C, d as j, e as K, E as $, j as Y, C as X } from "./captchaComponentProvider-DmV1WTrT.js";
2
+ import { l as q, P as z, r as y, M as D } from "./emotion-element-5486c51c.browser.esm-C3u8NMUC.js";
3
+ import { b as S, a as J, s as Q, u as Z, c as ee } from "./useTranslation-CJplXtqb.js";
4
+ import { A as p, l as te, b as ne, d as se } from "./index-Wgw2GQWq.js";
5
5
  function oe(t) {
6
6
  return t instanceof Uint8Array || t != null && typeof t == "object" && t.constructor.name === "Uint8Array";
7
7
  }
@@ -1,4 +1,4 @@
1
- import { ay as r, az as e } from "./hash-COecnuJ8.js";
1
+ import { ay as r, az as e } from "./hash-_rWungeW.js";
2
2
  function n(a = 32) {
3
3
  return e(new Uint8Array(a));
4
4
  }
@@ -1,5 +1,5 @@
1
- import { D as X, C as ue, a6 as Z, a7 as j, M as D, a8 as Ze, a9 as g, aa as ea, ab as w, ac as be, ad as pe, ae as H, af as fe, ag as me, ah as ge, ai as ye, aj as B, ak as U, al as $, am as C, an as q, ao as N, ap as xe, aq as we, H as ve, ar as ee, J as ke, I as R, K as He, as as Ae, a3 as Ie, j as V, at as J, u as W, au as je, l as Ee, i as Se, av as ze, S as Be, aw as Ce, ax as De } from "./hash-COecnuJ8.js";
2
- import { a as Le } from "./asU8a-OYI2Rcme.js";
1
+ import { D as X, C as ue, a6 as Z, a7 as j, M as D, a8 as Ze, a9 as g, aa as ea, ab as w, ac as be, ad as pe, ae as H, af as fe, ag as me, ah as ge, ai as ye, aj as B, ak as U, al as $, am as C, an as q, ao as N, ap as xe, aq as we, H as ve, ar as ee, J as ke, I as R, K as He, as as Ae, a3 as Ie, j as V, at as J, u as W, au as je, l as Ee, i as Se, av as ze, S as Be, aw as Ce, ax as De } from "./hash-_rWungeW.js";
2
+ import { a as Le } from "./asU8a-CJdNkNEq.js";
3
3
  import { s as Y } from "./toU8a-C68WUzs_.js";
4
4
  const _e = /* @__PURE__ */ Uint32Array.from([
5
5
  1116352408,
@@ -1,5 +1,5 @@
1
- import { h as ve, j as x, a as be, b as Se, s as we, w as Ae, r as v, T as Oe, u as Wt, i as Ie, d as Re, e as Fe, g as Ne, m as je, f as C, S as $e, k as Me, A as G, U as le, P as De } from "./emotion-element-5486c51c.browser.esm-F-LKH1Q7.js";
2
- import { a as ze, g as Ke, W as He, A as i, l as Ue, b as We, d as qe, C as V } from "./index-DXEN8xWW.js";
1
+ import { h as ve, j as x, a as be, b as Se, s as we, w as Ae, r as v, T as Oe, u as Wt, i as Ie, d as Re, e as Fe, g as Ne, m as je, f as C, S as $e, k as Me, A as G, U as le, P as De } from "./emotion-element-5486c51c.browser.esm-C3u8NMUC.js";
2
+ import { a as ze, g as Ke, W as He, A as i, l as Ue, b as We, d as qe, C as V } from "./index-Wgw2GQWq.js";
3
3
  import { e as Be } from "./translations-DEL070wJ.js";
4
4
  import { g as Vt } from "./_commonjsHelpers-DaMA6jEr.js";
5
5
  const Ge = { t: (t) => t };
@@ -513,7 +513,7 @@ const at = async (t) => {
513
513
  }, j = (t) => ({
514
514
  ...Ke(void 0),
515
515
  ...t
516
- }), ct = async (t) => t ? (await import("./index-D-5CyFkP.js")).ExtensionWeb2 : (await import("./index-D-5CyFkP.js")).ExtensionWeb3;
516
+ }), ct = async (t) => t ? (await import("./index-Cu5oL_7b.js")).ExtensionWeb2 : (await import("./index-Cu5oL_7b.js")).ExtensionWeb3;
517
517
  function ee() {
518
518
  return ee = Object.assign ? Object.assign.bind() : function(t) {
519
519
  for (var e = 1; e < arguments.length; e++) {
@@ -1130,7 +1130,7 @@ class It extends Ot {
1130
1130
  });
1131
1131
  }
1132
1132
  }
1133
- const Rt = v.lazy(async () => import("./ProcaptchaWidget-DfzlzDL_.js")), Le = (t) => T(v.Suspense, { children: T(Rt, { config: t.config, callbacks: t.callbacks, frictionlessState: t.frictionlessState, i18n: t.i18n }) }), Ft = v.lazy(async () => import("./ProcaptchaWidget---OaFVSu.js")), ke = (t) => T(v.Suspense, { children: T(Ft, { ...t }) }), Nt = async () => (await import("./index-BjRdPnnE.js")).default, jt = async (t) => {
1133
+ const Rt = v.lazy(async () => import("./ProcaptchaWidget-rAM-9Rap.js")), Le = (t) => T(v.Suspense, { children: T(Rt, { config: t.config, callbacks: t.callbacks, frictionlessState: t.frictionlessState, i18n: t.i18n }) }), Ft = v.lazy(async () => import("./ProcaptchaWidget-DrBDhP6X.js")), ke = (t) => T(v.Suspense, { children: T(Ft, { ...t }) }), Nt = async () => (await import("./index-BjRdPnnE.js")).default, jt = async (t) => {
1134
1134
  const r = await (await Nt())(), s = await new (await ct(t.web2))().getAccount(t);
1135
1135
  if (!t.account.address)
1136
1136
  throw new oe("GENERAL.SITE_KEY_MISSING");
@@ -1,5 +1,5 @@
1
- import { P as d, E as C, c as v, j as f, C as R } from "./emotion-element-5486c51c.browser.esm-F-LKH1Q7.js";
2
- import { r as b } from "./index-C30GRfJ0.js";
1
+ import { P as d, E as C, c as v, j as f, C as R } from "./emotion-element-5486c51c.browser.esm-C3u8NMUC.js";
2
+ import { r as b } from "./index-DxIFpl6U.js";
3
3
  import { L as i } from "./translations-DEL070wJ.js";
4
4
  var s, A = b;
5
5
  s = A.createRoot;
@@ -1,5 +1,5 @@
1
1
  import { z as A, n as se, o as l, a as p, b as V, s, c as Ar, u as we, d as rt, f as be, g as nt, e as Te, L as Pr, r as Et, l as ot } from "./translations-DEL070wJ.js";
2
- import { C as Tt, A as c } from "./index-DXEN8xWW.js";
2
+ import { C as Tt, A as c } from "./index-Wgw2GQWq.js";
3
3
  import { g as Or } from "./_commonjsHelpers-DaMA6jEr.js";
4
4
  function kr(e, t) {
5
5
  for (var r = 0; r < t.length; r++) {
@@ -655,12 +655,14 @@ l({
655
655
  l({
656
656
  [c.token]: ar,
657
657
  [c.dappSignature]: s(),
658
- [c.maxVerifiedTime]: p().optional().default(Je)
658
+ [c.maxVerifiedTime]: p().optional().default(Je),
659
+ [c.ip]: s().optional()
659
660
  });
660
661
  l({
661
662
  [c.token]: ar,
662
663
  [c.dappSignature]: s(),
663
- [c.verifiedTimeout]: p().optional().default(Ie)
664
+ [c.verifiedTimeout]: p().optional().default(Ie),
665
+ [c.ip]: s().optional()
664
666
  });
665
667
  l({
666
668
  [c.user]: s(),
@@ -1,7 +1,7 @@
1
1
  var gn = Object.defineProperty;
2
2
  var qn = (n, t, e) => t in n ? gn(n, t, { enumerable: !0, configurable: !0, writable: !0, value: e }) : n[t] = e;
3
3
  var h = (n, t, e) => qn(n, typeof t != "symbol" ? t + "" : t, e);
4
- import { n as Bn } from "./emotion-element-5486c51c.browser.esm-F-LKH1Q7.js";
4
+ import { n as Bn } from "./emotion-element-5486c51c.browser.esm-C3u8NMUC.js";
5
5
  import { e as xn, x as Q, s as hn } from "./toU8a-C68WUzs_.js";
6
6
  const kn = "";
7
7
  function Jn(n, t) {
@@ -2,12 +2,12 @@ var Bo = Object.defineProperty;
2
2
  var Ao = (t, e, r) => e in t ? Bo(t, e, { enumerable: !0, configurable: !0, writable: !0, value: r }) : t[e] = r;
3
3
  var jt = (t, e, r) => Ao(t, typeof e != "symbol" ? e + "" : e, r);
4
4
  import { x as mi, s as re } from "./toU8a-C68WUzs_.js";
5
- import { b as Pr, B as Q, c as ye, d as te, u as C, R as So, e as Io, f as se, g as oe, j as Jt, r as gi, k as ko, l as Ct, i as Vt, s as Uo, m as I0, n as No, o as Ro, p as Oo, q as To, t as Lo, v as qo, x as $o, y as Po, z as Zo, A as Do, C as Ho, D as Co, E as k0, H as Vo, F as Le, G as Pe, I as On, J as zo, K as Tn, L as Yo, M as Qr, N as Xo, O as Ko, P as Wo, Q as jo, S as Go, T as Jo, U as Qo, V as Fo, W as ts, X as es, Y as rs, Z as ns, _ as is, $ as os, a0 as ss, a1 as fs, a2 as as, a3 as cs, a4 as G, a5 as hs } from "./hash-COecnuJ8.js";
5
+ import { b as Pr, B as Q, c as ye, d as te, u as C, R as So, e as Io, f as se, g as oe, j as Jt, r as gi, k as ko, l as Ct, i as Vt, s as Uo, m as I0, n as No, o as Ro, p as Oo, q as To, t as Lo, v as qo, x as $o, y as Po, z as Zo, A as Do, C as Ho, D as Co, E as k0, H as Vo, F as Le, G as Pe, I as On, J as zo, K as Tn, L as Yo, M as Qr, N as Xo, O as Ko, P as Wo, Q as jo, S as Go, T as Jo, U as Qo, V as Fo, W as ts, X as es, Y as rs, Z as ns, _ as is, $ as os, a0 as ss, a1 as fs, a2 as as, a3 as cs, a4 as G, a5 as hs } from "./hash-_rWungeW.js";
6
6
  import { g as ls } from "./_commonjsHelpers-DaMA6jEr.js";
7
- import { h as pi, s as Fr, a as us, b as ds, c as ws, m as ms, v as gs, d as Ln, p as ps, e as yi } from "./bip39-CaW9jcCq.js";
8
- import { a as vi } from "./asU8a-OYI2Rcme.js";
7
+ import { h as pi, s as Fr, a as us, b as ds, c as ws, m as ms, v as gs, d as Ln, p as ps, e as yi } from "./bip39-Du2cANEV.js";
8
+ import { a as vi } from "./asU8a-CJdNkNEq.js";
9
9
  import { o as tn } from "./spread-DEmVz7RJ.js";
10
- import { n as xe } from "./emotion-element-5486c51c.browser.esm-F-LKH1Q7.js";
10
+ import { n as xe } from "./emotion-element-5486c51c.browser.esm-C3u8NMUC.js";
11
11
  const ys = { name: "@polkadot/util", path: import.meta && import.meta.url ? new URL(import.meta.url).pathname.substring(0, new URL(import.meta.url).pathname.lastIndexOf("/") + 1) : "auto", type: "esm", version: "12.6.2" }, vs = "POLKADOTJS_DISABLE_ESM_CJS_WARNING";
12
12
  function xs(t) {
13
13
  const e = mi;
@@ -1,7 +1,7 @@
1
- import { n as g } from "./emotion-element-5486c51c.browser.esm-F-LKH1Q7.js";
2
- import { w as m, i as f, a as l } from "./hash-COecnuJ8.js";
1
+ import { n as g } from "./emotion-element-5486c51c.browser.esm-C3u8NMUC.js";
2
+ import { w as m, i as f, a as l } from "./hash-_rWungeW.js";
3
3
  import { s as E } from "./toU8a-C68WUzs_.js";
4
- import { b as i } from "./captchaComponentProvider-CJMWWGqv.js";
4
+ import { b as i } from "./captchaComponentProvider-DmV1WTrT.js";
5
5
  const b = "dev";
6
6
  class y {
7
7
  }
@@ -12,7 +12,7 @@ function x() {
12
12
  return !0;
13
13
  }).catch(() => !1);
14
14
  }
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-DcOF3IPl.js")).Keyring, A = async () => (await import("./bip39-CaW9jcCq.js").then((r) => r.f)).entropyToMnemonic;
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-BVr9fC_3.js")).Keyring, A = async () => (await import("./bip39-Du2cANEV.js").then((r) => r.f)).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);
@@ -1,5 +1,5 @@
1
1
  import { g as Dc } from "./_commonjsHelpers-DaMA6jEr.js";
2
- import { r as _a } from "./emotion-element-5486c51c.browser.esm-F-LKH1Q7.js";
2
+ import { r as _a } from "./emotion-element-5486c51c.browser.esm-C3u8NMUC.js";
3
3
  var Co = { exports: {} }, ve = {}, xo = { exports: {} }, _o = {};
4
4
  (function(e) {
5
5
  function t(C, z) {
@@ -11,7 +11,7 @@ function k(e, t, o) {
11
11
  }
12
12
  var p;
13
13
  (function(e) {
14
- e.datasetId = "datasetId", e.user = "user", e.dapp = "dapp", e.provider = "provider", e.blockNumber = "blockNumber", e.requestHash = "requestHash", e.captchas = "captchas", e.commitmentId = "commitmentId", e.proof = "proof", e.dappSignature = "dappSignature", e.dappUserSignature = "dappUserSignature", e.providerUrl = "providerUrl", e.procaptchaResponse = "procaptcha-response", e.verifiedTimeout = "verifiedTimeout", e.maxVerifiedTime = "maxVerifiedTime", e.verified = "verified", e.status = "status", e.challenge = "challenge", e.difficulty = "difficulty", e.nonce = "nonce", e.timeouts = "timeouts", e.token = "token", e.secret = "secret", e.timestamp = "timestamp", e.signature = "signature", e.error = "error", e.siteKey = "siteKey", e.captchaType = "captchaType", e.sessionId = "sessionId", e.settings = "settings", e.domains = "domains", e.frictionlessThreshold = "frictionlessThreshold", e.powDifficulty = "powDifficulty", e.score = "score", e.tier = "tier", e.detectorKey = "detectorKey";
14
+ e.datasetId = "datasetId", e.user = "user", e.dapp = "dapp", e.provider = "provider", e.blockNumber = "blockNumber", e.requestHash = "requestHash", e.captchas = "captchas", e.commitmentId = "commitmentId", e.proof = "proof", e.dappSignature = "dappSignature", e.dappUserSignature = "dappUserSignature", e.providerUrl = "providerUrl", e.procaptchaResponse = "procaptcha-response", e.verifiedTimeout = "verifiedTimeout", e.maxVerifiedTime = "maxVerifiedTime", e.verified = "verified", e.status = "status", e.challenge = "challenge", e.difficulty = "difficulty", e.nonce = "nonce", e.timeouts = "timeouts", e.token = "token", e.secret = "secret", e.timestamp = "timestamp", e.signature = "signature", e.error = "error", e.siteKey = "siteKey", e.captchaType = "captchaType", e.sessionId = "sessionId", e.settings = "settings", e.domains = "domains", e.frictionlessThreshold = "frictionlessThreshold", e.powDifficulty = "powDifficulty", e.score = "score", e.tier = "tier", e.detectorKey = "detectorKey", e.ip = "ip";
15
15
  })(p || (p = {}));
16
16
  var g;
17
17
  (function(e) {
@@ -475,7 +475,7 @@ class fe {
475
475
  return this._i18n === null && (this._i18n = await M()), this.captchaRenderer === null && (this.captchaRenderer = await this.createCaptchaRenderer()), this.captchaRenderer;
476
476
  }
477
477
  async createCaptchaRenderer() {
478
- const t = (await import("./captchaRenderer-BmSy0ym0.js")).CaptchaRenderer, o = (await import("./captchaComponentProvider-CJMWWGqv.js").then((n) => n.h)).CaptchaComponentProvider;
478
+ const t = (await import("./captchaRenderer-RIsSZXCC.js")).CaptchaRenderer, o = (await import("./captchaComponentProvider-DmV1WTrT.js").then((n) => n.h)).CaptchaComponentProvider;
479
479
  return new t(new o());
480
480
  }
481
481
  }
@@ -1,4 +1,4 @@
1
- import { c as a, e as s, r as t, f } from "./index-DXEN8xWW.js";
1
+ import { c as a, e as s, r as t, f } from "./index-Wgw2GQWq.js";
2
2
  export {
3
3
  a as default,
4
4
  s as execute,
@@ -1,4 +1,4 @@
1
- import { n as X, r as p } from "./emotion-element-5486c51c.browser.esm-F-LKH1Q7.js";
1
+ import { n as X, r as p } from "./emotion-element-5486c51c.browser.esm-C3u8NMUC.js";
2
2
  import { s as Y } from "./toU8a-C68WUzs_.js";
3
3
  import { g as q, a as B, i as K } from "./i18nFrontend-CsPT71ro.js";
4
4
  function re(e) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@prosopo/procaptcha-bundle",
3
- "version": "2.6.3",
3
+ "version": "2.6.4",
4
4
  "author": "PROSOPO LIMITED <info@prosopo.io>",
5
5
  "license": "Apache-2.0",
6
6
  "main": "./dist/index.js",
@@ -38,10 +38,10 @@
38
38
  "dependencies": {
39
39
  "@prosopo/dotenv": "2.6.0",
40
40
  "@prosopo/locale": "2.6.0",
41
- "@prosopo/procaptcha-frictionless": "2.6.3",
42
- "@prosopo/procaptcha-pow": "2.6.3",
43
- "@prosopo/procaptcha-react": "2.6.3",
44
- "@prosopo/types": "2.6.2",
41
+ "@prosopo/procaptcha-frictionless": "2.6.4",
42
+ "@prosopo/procaptcha-pow": "2.6.4",
43
+ "@prosopo/procaptcha-react": "2.6.4",
44
+ "@prosopo/types": "2.7.0",
45
45
  "@prosopo/util": "2.6.0",
46
46
  "@prosopo/widget-skeleton": "2.6.0",
47
47
  "express": "4.21.2",