@ranty/ranty-sdk 3.21.0-beta.4 → 3.21.0-beta.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.
|
@@ -925,7 +925,7 @@ function _e(t) {
|
|
|
925
925
|
*/
|
|
926
926
|
var Z0;
|
|
927
927
|
((Z0 = window.HTMLSlotElement) === null || Z0 === void 0 ? void 0 : Z0.prototype.assignedElements) != null;
|
|
928
|
-
const Dk = "@ranty/ranty-sdk", Pk = "3.21.0-beta.
|
|
928
|
+
const Dk = "@ranty/ranty-sdk", Pk = "3.21.0-beta.5", Rk = "Ranty sdk", Nk = "dist/index.js", Ok = {
|
|
929
929
|
".": "./dist/index.js"
|
|
930
930
|
}, Lk = "types/index.d.ts", Qk = [
|
|
931
931
|
"dist",
|
|
@@ -12646,7 +12646,7 @@ const D5 = "region-service", B7 = (t, e, n) => pe(void 0, null, function* () {
|
|
|
12646
12646
|
});
|
|
12647
12647
|
class E7 {
|
|
12648
12648
|
constructor() {
|
|
12649
|
-
this._token = "", this._region = "", this.expirationTime = 0, this.key = "", this.lastTokenContext = {}, this.pendingRefresh = null, this.originalCreateTokenParams = null, this.useAmplify = !
|
|
12649
|
+
this._token = "", this._region = "", this.expirationTime = 0, this.key = "", this.lastTokenContext = {}, this.pendingRefresh = null, this.originalCreateTokenParams = null, this.useAmplify = !0;
|
|
12650
12650
|
const e = sessionStorage.getItem("key");
|
|
12651
12651
|
e && (this.key = e);
|
|
12652
12652
|
}
|
|
@@ -12668,24 +12668,24 @@ class E7 {
|
|
|
12668
12668
|
return pe(this, null, function* () {
|
|
12669
12669
|
sessionStorage.setItem("key", e);
|
|
12670
12670
|
try {
|
|
12671
|
-
const { data:
|
|
12671
|
+
const o = yield this.createTokenCaptcha(e), { data: a } = yield ft.instance.post(
|
|
12672
12672
|
"/sdk/signer",
|
|
12673
|
-
{}
|
|
12673
|
+
{},
|
|
12674
12674
|
// ? ANALIZAR SI LO ELIMINAMOS DEFINITIVAMENTE
|
|
12675
|
-
|
|
12676
|
-
), { headers:
|
|
12677
|
-
delete
|
|
12678
|
-
const { data:
|
|
12679
|
-
return this._region =
|
|
12675
|
+
{ headers: { "x-recaptcha-token": o } }
|
|
12676
|
+
), { headers: l, url: d, region: c } = a;
|
|
12677
|
+
delete l.host;
|
|
12678
|
+
const { data: u } = yield lf.post(d, null, { headers: l });
|
|
12679
|
+
return this._region = c, ie.info("signer", {
|
|
12680
12680
|
context: n,
|
|
12681
12681
|
tag: "SIGNER",
|
|
12682
12682
|
is_embedded: r,
|
|
12683
12683
|
contextObject: {
|
|
12684
12684
|
payment_request_id: s,
|
|
12685
|
-
data:
|
|
12685
|
+
data: u,
|
|
12686
12686
|
remaining_attempts: i
|
|
12687
12687
|
}
|
|
12688
|
-
}),
|
|
12688
|
+
}), u;
|
|
12689
12689
|
} catch (o) {
|
|
12690
12690
|
if (i <= 0)
|
|
12691
12691
|
throw ie.error(
|
|
@@ -16526,10 +16526,10 @@ function ZN(t, e, n, r) {
|
|
|
16526
16526
|
}
|
|
16527
16527
|
const Ru = _N(ZN);
|
|
16528
16528
|
_R(ao(), "DD_LOGS", Ru);
|
|
16529
|
-
const $N = "@nx-ranty/ranty-sdk", eO = "3.21.0-beta.
|
|
16529
|
+
const $N = "@nx-ranty/ranty-sdk", eO = "3.21.0-beta.5", tO = 3, nO = !0, rO = {
|
|
16530
16530
|
"": {
|
|
16531
16531
|
name: "@nx-ranty/ranty-sdk",
|
|
16532
|
-
version: "3.21.0-beta.
|
|
16532
|
+
version: "3.21.0-beta.5",
|
|
16533
16533
|
license: "ISC",
|
|
16534
16534
|
dependencies: {
|
|
16535
16535
|
"@datadog/browser-logs": "^6.17.0",
|
|
@@ -42019,15 +42019,15 @@ const c6 = (t) => pe(void 0, null, function* () {
|
|
|
42019
42019
|
const r = `/sdk/payment_request/${t}${e ? "?legacy=false" : ""}`, { data: s } = yield ft.instanceWithRetries.get(r, {});
|
|
42020
42020
|
return u2(s);
|
|
42021
42021
|
}), HL = (t) => pe(void 0, null, function* () {
|
|
42022
|
-
const e = `/sdk/
|
|
42022
|
+
const e = `/sdk/payment-links/${t}`, { data: n } = yield ft.instanceWithRetries.get(e, {});
|
|
42023
42023
|
return u2({ data: { response: n } }.data);
|
|
42024
42024
|
}), qL = (t) => pe(void 0, null, function* () {
|
|
42025
|
-
const e = `/sdk/
|
|
42025
|
+
const e = `/sdk/debt-refs/${t}`, { data: n } = yield ft.instanceWithRetries.get(e, {}), r = { data: { response: n.payment_request } };
|
|
42026
42026
|
return u2(r.data);
|
|
42027
42027
|
}), w_ = {
|
|
42028
42028
|
payment_request: (t, e = !1) => zL(t, e),
|
|
42029
42029
|
token: (t) => HL(t),
|
|
42030
|
-
|
|
42030
|
+
"debt-ref": (t) => qL(t)
|
|
42031
42031
|
}, eo = (t, e = "payment_request", n = !1) => pe(void 0, null, function* () {
|
|
42032
42032
|
var s;
|
|
42033
42033
|
return ((s = w_[e]) != null ? s : w_.payment_request)(t, n);
|
|
@@ -45176,7 +45176,7 @@ let Ci = class t extends tt {
|
|
|
45176
45176
|
try {
|
|
45177
45177
|
const a = (r = (n = [
|
|
45178
45178
|
{ condition: !!this.paymentLinkId, value: "token" },
|
|
45179
|
-
{ condition: !!this.debtRef, value: "
|
|
45179
|
+
{ condition: !!this.debtRef, value: "debt-ref" }
|
|
45180
45180
|
].find((p) => p.condition)) == null ? void 0 : n.value) != null ? r : "payment_request", l = this.paymentLinkId || this.paymentRequestId || this.debtRef, c = window.location.href.includes("walletPayment=true"), u = !c && this.payfacContext.paymentSync, h = yield eo(l, a, u);
|
|
45181
45181
|
this.payfacContext.paymentRequest = (h == null ? void 0 : h.response) || void 0, this.payfacContext.paymentRequest.fraudPreventionOptions = h.response.fraudPreventionOptions || this.setFraudPreventionOption((s = h == null ? void 0 : h.response) == null ? void 0 : s.seller), ie.info("GetPaymentRequest", {
|
|
45182
45182
|
context: this.payfacContext.context,
|
|
@@ -63333,7 +63333,7 @@ function(t) {
|
|
|
63333
63333
|
*/
|
|
63334
63334
|
function(t) {
|
|
63335
63335
|
function e() {
|
|
63336
|
-
return (gt.canvg ? Promise.resolve(gt.canvg) : import("./index.es-
|
|
63336
|
+
return (gt.canvg ? Promise.resolve(gt.canvg) : import("./index.es-bcdd33b7.js")).catch(function(n) {
|
|
63337
63337
|
return Promise.reject(new Error("Could not load canvg: " + n));
|
|
63338
63338
|
}).then(function(n) {
|
|
63339
63339
|
return n.default ? n.default : n;
|
package/dist/index.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { a4 as t, a7 as e, a5 as n, a6 as o, A as r, t as p, G as C, v as i, B as u, a3 as l, R as d, K as m, X as c, J as P, Y as A, Z as I, $ as y, h as D, f, a2 as k, a1 as F, M as S, O as L, T as H, U as M, V as g, C as v, i as x, n as E, a as O, d as b, a0 as Q, s as h, y as B, r as w, o as N, p as j, q, D as z, W as G, E as J, e as K, k as R, b as T, F as U, H as V, I as W, L as X, N as Y, j as Z, w as $, P as _, l as aa, u as sa, x as ta, Q as ea, S as na, z as oa, m as ra } from "./index-
|
|
1
|
+
import { a4 as t, a7 as e, a5 as n, a6 as o, A as r, t as p, G as C, v as i, B as u, a3 as l, R as d, K as m, X as c, J as P, Y as A, Z as I, $ as y, h as D, f, a2 as k, a1 as F, M as S, O as L, T as H, U as M, V as g, C as v, i as x, n as E, a as O, d as b, a0 as Q, s as h, y as B, r as w, o as N, p as j, q, D as z, W as G, E as J, e as K, k as R, b as T, F as U, H as V, I as W, L as X, N as Y, j as Z, w as $, P as _, l as aa, u as sa, x as ta, Q as ea, S as na, z as oa, m as ra } from "./index-140cb73a.js";
|
|
2
2
|
export {
|
|
3
3
|
t as A2AAccountDetails,
|
|
4
4
|
e as A2AFeedbackHome,
|