@rebilly/instruments 9.3.0 → 9.5.0
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 +14 -0
- package/dist/index.js +27 -27
- package/dist/index.min.js +3 -3
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,3 +1,17 @@
|
|
|
1
|
+
## [9.5.0](https://github.com/Rebilly/rebilly/compare/instruments/core-v9.4.0...instruments/core-v9.5.0) (2024-03-01)
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
### Features
|
|
5
|
+
|
|
6
|
+
* **risk-data-collector:** Update Fingerprint JS PRO integration with CloudFront ([#3806](https://github.com/Rebilly/rebilly/issues/3806)) ([35d9d49](https://github.com/Rebilly/rebilly/commit/35d9d496944e02485ba17cc7a0024c95f3450262))
|
|
7
|
+
|
|
8
|
+
## [9.4.0](https://github.com/Rebilly/rebilly/compare/instruments/core-v9.3.0...instruments/core-v9.4.0) (2024-03-01)
|
|
9
|
+
|
|
10
|
+
|
|
11
|
+
### Features
|
|
12
|
+
|
|
13
|
+
* **api-metadata:** Update resources based on latest api definitions ([#3816](https://github.com/Rebilly/rebilly/issues/3816)) ([38779e4](https://github.com/Rebilly/rebilly/commit/38779e48cc0e506fdefa23cbd20e2ed9b4524fb9))
|
|
14
|
+
|
|
1
15
|
## [9.3.0](https://github.com/Rebilly/rebilly/compare/instruments/core-v9.2.1...instruments/core-v9.3.0) (2024-03-01)
|
|
2
16
|
|
|
3
17
|
|
package/dist/index.js
CHANGED
|
@@ -11206,7 +11206,7 @@ function f(t2) {
|
|
|
11206
11206
|
e2 += t2[n2].toUpperCase();
|
|
11207
11207
|
return e2;
|
|
11208
11208
|
}
|
|
11209
|
-
var p2 = "Client timeout", d2 = "Network connection error", v = "Network request aborted", R = "Response cannot be parsed", y = "Blocked by CSP", E = "The endpoint parameter is not a valid URL", g = f("WrongRegion"), m = f("SubscriptionNotActive"), O = f("UnsupportedVersion"), w = f("InstallationMethodRestricted"), _ = f("HostnameRestricted"), I = f("IntegrationFailed"), b = "API key required", S = "API key not found", N = "API key expired", x = "Request cannot be parsed", T2 = "Request failed", L = "Request failed to process", A = "Too many requests, rate limit exceeded", P = "Not available for this origin", k = "Not available with restricted header", D = b, C = S, j = N,
|
|
11209
|
+
var p2 = "Client timeout", d2 = "Network connection error", v = "Network request aborted", R = "Response cannot be parsed", y = "Blocked by CSP", E = "The endpoint parameter is not a valid URL", g = f("WrongRegion"), m = f("SubscriptionNotActive"), O = f("UnsupportedVersion"), w = f("InstallationMethodRestricted"), _ = f("HostnameRestricted"), I = f("IntegrationFailed"), b = "API key required", S = "API key not found", N = "API key expired", x = "Request cannot be parsed", T2 = "Request failed", L = "Request failed to process", A = "Too many requests, rate limit exceeded", P = "Not available for this origin", k = "Not available with restricted header", D = b, C = S, j = N, K = "Failed to load the JS script of the agent", F = "9319";
|
|
11210
11210
|
function M(t2, e2) {
|
|
11211
11211
|
var n2, r2, o2, i2, a2 = [], c2 = (n2 = function(t3) {
|
|
11212
11212
|
var e3 = function(t4, e4, n3) {
|
|
@@ -11229,9 +11229,9 @@ function M(t2, e2) {
|
|
|
11229
11229
|
var i3, a3 = e3 instanceof Error ? e3.message : "";
|
|
11230
11230
|
if (a3 === y || a3 === E)
|
|
11231
11231
|
n2.exclude(), i3 = 0;
|
|
11232
|
-
else if (a3 ===
|
|
11232
|
+
else if (a3 === F)
|
|
11233
11233
|
n2.exclude();
|
|
11234
|
-
else if (a3 ===
|
|
11234
|
+
else if (a3 === K) {
|
|
11235
11235
|
var c3 = Date.now() - t3.getTime() < 50, s3 = n2.current();
|
|
11236
11236
|
s3 && c3 && !o2.has(s3) && (o2.add(s3), i3 = 0), n2.postpone();
|
|
11237
11237
|
} else
|
|
@@ -11308,7 +11308,7 @@ function G2(t2) {
|
|
|
11308
11308
|
}(a2, o2), B);
|
|
11309
11309
|
}).catch(function(t3) {
|
|
11310
11310
|
throw l2(), function(t4) {
|
|
11311
|
-
return t4 instanceof Error && t4.message ===
|
|
11311
|
+
return t4 instanceof Error && t4.message === F ? new Error(K) : t4;
|
|
11312
11312
|
}(t3);
|
|
11313
11313
|
}).then(function(t3) {
|
|
11314
11314
|
var e3 = t3[0], n3 = t3[1];
|
|
@@ -11359,7 +11359,7 @@ function B(t2) {
|
|
|
11359
11359
|
r2.onload = function() {
|
|
11360
11360
|
o2(), e2();
|
|
11361
11361
|
}, r2.onerror = function() {
|
|
11362
|
-
o2(), n2(new Error(
|
|
11362
|
+
o2(), n2(new Error(K));
|
|
11363
11363
|
}, r2.async = true, r2.src = t3, i2.appendChild(r2);
|
|
11364
11364
|
});
|
|
11365
11365
|
}(t2);
|
|
@@ -11371,10 +11371,10 @@ function q() {
|
|
|
11371
11371
|
var n3, r2 = null === (n3 = Object.getOwnPropertyDescriptor) || void 0 === n3 ? void 0 : n3.call(Object, t3, e3);
|
|
11372
11372
|
(null == r2 ? void 0 : r2.configurable) ? delete t3[e3] : r2 && !r2.writable || (t3[e3] = void 0);
|
|
11373
11373
|
}(t2, e2), "function" != typeof (null == n2 ? void 0 : n2.load))
|
|
11374
|
-
throw new Error(
|
|
11374
|
+
throw new Error(F);
|
|
11375
11375
|
return n2;
|
|
11376
11376
|
}
|
|
11377
|
-
var W = { load: G2, defaultScriptUrlPattern: V, ERROR_SCRIPT_LOAD_FAIL:
|
|
11377
|
+
var W = { load: G2, defaultScriptUrlPattern: V, ERROR_SCRIPT_LOAD_FAIL: K, ERROR_API_KEY_EXPIRED: N, ERROR_API_KEY_INVALID: S, ERROR_API_KEY_MISSING: b, ERROR_BAD_REQUEST_FORMAT: x, ERROR_BAD_RESPONSE_FORMAT: R, ERROR_CLIENT_TIMEOUT: p2, ERROR_CSP_BLOCK: y, ERROR_FORBIDDEN_ENDPOINT: _, ERROR_FORBIDDEN_HEADER: k, ERROR_FORBIDDEN_ORIGIN: P, ERROR_GENERAL_SERVER_FAILURE: T2, ERROR_INSTALLATION_METHOD_RESTRICTED: w, ERROR_INTEGRATION_FAILURE: I, ERROR_INVALID_ENDPOINT: E, ERROR_NETWORK_ABORT: v, ERROR_NETWORK_CONNECTION: d2, ERROR_RATE_LIMIT: A, ERROR_SERVER_TIMEOUT: L, ERROR_SUBSCRIPTION_NOT_ACTIVE: m, ERROR_TOKEN_EXPIRED: j, ERROR_TOKEN_INVALID: C, ERROR_TOKEN_MISSING: D, ERROR_UNSUPPORTED_VERSION: O, ERROR_WRONG_REGION: g, defaultEndpoint: l, defaultTlsEndpoint: h }, J = Object.freeze({ __proto__: null, ERROR_API_KEY_EXPIRED: N, ERROR_API_KEY_INVALID: S, ERROR_API_KEY_MISSING: b, ERROR_BAD_REQUEST_FORMAT: x, ERROR_BAD_RESPONSE_FORMAT: R, ERROR_CLIENT_TIMEOUT: p2, ERROR_CSP_BLOCK: y, ERROR_FORBIDDEN_ENDPOINT: _, ERROR_FORBIDDEN_HEADER: k, ERROR_FORBIDDEN_ORIGIN: P, ERROR_GENERAL_SERVER_FAILURE: T2, ERROR_INSTALLATION_METHOD_RESTRICTED: w, ERROR_INTEGRATION_FAILURE: I, ERROR_INVALID_ENDPOINT: E, ERROR_NETWORK_ABORT: v, ERROR_NETWORK_CONNECTION: d2, ERROR_RATE_LIMIT: A, ERROR_SCRIPT_LOAD_FAIL: K, ERROR_SERVER_TIMEOUT: L, ERROR_SUBSCRIPTION_NOT_ACTIVE: m, ERROR_TOKEN_EXPIRED: j, ERROR_TOKEN_INVALID: C, ERROR_TOKEN_MISSING: D, ERROR_UNSUPPORTED_VERSION: O, ERROR_WRONG_REGION: g, default: W, defaultEndpoint: l, defaultScriptUrlPattern: V, defaultTlsEndpoint: h, load: G2 });
|
|
11378
11378
|
const H = "@fpjs@client@", Y = () => Date.now();
|
|
11379
11379
|
class $ {
|
|
11380
11380
|
constructor(t2) {
|
|
@@ -11385,10 +11385,10 @@ class $ {
|
|
|
11385
11385
|
return `${JSON.stringify(this.tag)}__${JSON.stringify(this.linkedId)}__${this.extendedResult}`;
|
|
11386
11386
|
}
|
|
11387
11387
|
}
|
|
11388
|
-
function
|
|
11388
|
+
function z(t2, e2) {
|
|
11389
11389
|
return `${e2}__${t2}`;
|
|
11390
11390
|
}
|
|
11391
|
-
function
|
|
11391
|
+
function X(t2, e2) {
|
|
11392
11392
|
return t2.replace(`${e2}__`, "");
|
|
11393
11393
|
}
|
|
11394
11394
|
class Q {
|
|
@@ -11396,10 +11396,10 @@ class Q {
|
|
|
11396
11396
|
this.prefix = t2;
|
|
11397
11397
|
}
|
|
11398
11398
|
set(t2, e2) {
|
|
11399
|
-
window.localStorage.setItem(
|
|
11399
|
+
window.localStorage.setItem(z(t2, this.prefix), JSON.stringify(e2));
|
|
11400
11400
|
}
|
|
11401
11401
|
get(t2) {
|
|
11402
|
-
const e2 = window.localStorage.getItem(
|
|
11402
|
+
const e2 = window.localStorage.getItem(z(t2, this.prefix));
|
|
11403
11403
|
if (e2)
|
|
11404
11404
|
try {
|
|
11405
11405
|
return JSON.parse(e2);
|
|
@@ -11408,10 +11408,10 @@ class Q {
|
|
|
11408
11408
|
}
|
|
11409
11409
|
}
|
|
11410
11410
|
remove(t2) {
|
|
11411
|
-
window.localStorage.removeItem(
|
|
11411
|
+
window.localStorage.removeItem(z(t2, this.prefix));
|
|
11412
11412
|
}
|
|
11413
11413
|
allKeys() {
|
|
11414
|
-
return Object.keys(window.localStorage).filter((t2) => t2.startsWith(this.prefix)).map((t2) =>
|
|
11414
|
+
return Object.keys(window.localStorage).filter((t2) => t2.startsWith(this.prefix)).map((t2) => X(t2, this.prefix));
|
|
11415
11415
|
}
|
|
11416
11416
|
}
|
|
11417
11417
|
class Z {
|
|
@@ -11419,10 +11419,10 @@ class Z {
|
|
|
11419
11419
|
this.prefix = t2;
|
|
11420
11420
|
}
|
|
11421
11421
|
set(t2, e2) {
|
|
11422
|
-
window.sessionStorage.setItem(
|
|
11422
|
+
window.sessionStorage.setItem(z(t2, this.prefix), JSON.stringify(e2));
|
|
11423
11423
|
}
|
|
11424
11424
|
get(t2) {
|
|
11425
|
-
const e2 = window.sessionStorage.getItem(
|
|
11425
|
+
const e2 = window.sessionStorage.getItem(z(t2, this.prefix));
|
|
11426
11426
|
if (e2)
|
|
11427
11427
|
try {
|
|
11428
11428
|
return JSON.parse(e2);
|
|
@@ -11431,10 +11431,10 @@ class Z {
|
|
|
11431
11431
|
}
|
|
11432
11432
|
}
|
|
11433
11433
|
remove(t2) {
|
|
11434
|
-
window.sessionStorage.removeItem(
|
|
11434
|
+
window.sessionStorage.removeItem(z(t2, this.prefix));
|
|
11435
11435
|
}
|
|
11436
11436
|
allKeys() {
|
|
11437
|
-
return Object.keys(window.sessionStorage).filter((t2) => t2.startsWith(this.prefix)).map((t2) =>
|
|
11437
|
+
return Object.keys(window.sessionStorage).filter((t2) => t2.startsWith(this.prefix)).map((t2) => X(t2, this.prefix));
|
|
11438
11438
|
}
|
|
11439
11439
|
}
|
|
11440
11440
|
class tt {
|
|
@@ -11604,7 +11604,7 @@ function ct() {
|
|
|
11604
11604
|
}
|
|
11605
11605
|
function st() {
|
|
11606
11606
|
return (st = e$1(a.mark(function t2() {
|
|
11607
|
-
var e2, n2, r2, o2;
|
|
11607
|
+
var e2, n2, r2, o2, i2, s2;
|
|
11608
11608
|
return a.wrap(function(t3) {
|
|
11609
11609
|
for (; ; )
|
|
11610
11610
|
switch (t3.prev = t3.next) {
|
|
@@ -11615,18 +11615,18 @@ function st() {
|
|
|
11615
11615
|
}
|
|
11616
11616
|
return t3.abrupt("return", "a-mock-visitor-id");
|
|
11617
11617
|
case 5:
|
|
11618
|
-
return
|
|
11619
|
-
case
|
|
11620
|
-
return t3.next =
|
|
11621
|
-
case 10:
|
|
11622
|
-
return o2 = t3.sent, t3.abrupt("return", o2.visitorId);
|
|
11618
|
+
return o2 = "wyr92st0i7", i2 = new at({ loadOptions: { apiKey: "hpFVJecm7Ni7AjSfvBIW", endpoint: ["".concat(r2 = "https://d2hwnq6cq5q3pi.cloudfront.net", "/").concat(o2, "/").concat("ia1t65gn6i"), l], scriptUrlPattern: ["".concat(r2, "/").concat(o2, "/").concat("db4fuswrza", "?apiKey=<apiKey>&version=<version>&loaderVersion=<loaderVersion>"), V] } }), t3.next = 12, i2.init();
|
|
11619
|
+
case 12:
|
|
11620
|
+
return t3.next = 14, i2.getVisitorData();
|
|
11623
11621
|
case 14:
|
|
11624
|
-
return
|
|
11622
|
+
return s2 = t3.sent, t3.abrupt("return", s2.visitorId);
|
|
11625
11623
|
case 18:
|
|
11624
|
+
return t3.prev = 18, t3.t0 = t3.catch(0), console.log(t3.t0), t3.abrupt("return", "");
|
|
11625
|
+
case 22:
|
|
11626
11626
|
case "end":
|
|
11627
11627
|
return t3.stop();
|
|
11628
11628
|
}
|
|
11629
|
-
}, t2, null, [[0,
|
|
11629
|
+
}, t2, null, [[0, 18]]);
|
|
11630
11630
|
}))).apply(this, arguments);
|
|
11631
11631
|
}
|
|
11632
11632
|
function ut() {
|
|
@@ -24653,7 +24653,7 @@ function handleComputedProperty(options) {
|
|
|
24653
24653
|
var _a;
|
|
24654
24654
|
return Object.assign({}, options, {
|
|
24655
24655
|
_computed: {
|
|
24656
|
-
version: "9.
|
|
24656
|
+
version: "9.4.0",
|
|
24657
24657
|
paymentMethodsUrl: ((_a = options._dev) == null ? void 0 : _a.paymentMethodsUrl) ?? "https://forms.secure-payments.app"
|
|
24658
24658
|
}
|
|
24659
24659
|
});
|
|
@@ -27995,7 +27995,7 @@ class RebillyInstrumentsInstance {
|
|
|
27995
27995
|
await show({ componentName, payload });
|
|
27996
27996
|
}
|
|
27997
27997
|
get version() {
|
|
27998
|
-
return `RebillyInstruments Ver.${"9.
|
|
27998
|
+
return `RebillyInstruments Ver.${"9.4.0"}`;
|
|
27999
27999
|
}
|
|
28000
28000
|
on(eventName, callback) {
|
|
28001
28001
|
on({ eventName, callback });
|