@getsupertab/supertab-js 3.17.4 → 3.17.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/dist/pkg/prod/{browser-ponyfill-vk7z5Pov.js → browser-ponyfill-nA9uso-e.js} +1 -1
- package/dist/pkg/prod/{sentry-TsWat_53.js → sentry-C41zTvOQ.js} +1 -1
- package/dist/pkg/prod/{supertab-D0-lcGul.js → supertab-BSBn2C_g.js} +14 -17
- package/dist/pkg/prod/supertab.js +1 -1
- package/package.json +1 -1
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { r as mu, T as gu, P as _u, a as Su, V as yu } from "./supertab-
|
|
1
|
+
import { r as mu, T as gu, P as _u, a as Su, V as yu } from "./supertab-BSBn2C_g.js";
|
|
2
2
|
const b = typeof __SENTRY_DEBUG__ > "u" || __SENTRY_DEBUG__, q = globalThis, at = "9.40.0";
|
|
3
3
|
function ht() {
|
|
4
4
|
return lr(q), q;
|
|
@@ -4855,7 +4855,7 @@ const oM = sr({
|
|
|
4855
4855
|
VITE_STATIC_REDIRECT_URI: void 0,
|
|
4856
4856
|
VITE_GTM_CONTAINER_ID: "GTM-NG9GT7FM",
|
|
4857
4857
|
VITE_SENTRY_DSN: "https://d08f3f301f364ceba6345c393c538faf@o23455.ingest.us.sentry.io/4507736861573120",
|
|
4858
|
-
VITE_BASE_URL: "https://js.supertab.co/v3.17.
|
|
4858
|
+
VITE_BASE_URL: "https://js.supertab.co/v3.17.5/",
|
|
4859
4859
|
VITE_DEMO_CLIENT_ID: void 0,
|
|
4860
4860
|
VITE_API_BASE_URL: void 0,
|
|
4861
4861
|
VITE_SSO_BASE_URL: void 0,
|
|
@@ -4864,7 +4864,7 @@ const oM = sr({
|
|
|
4864
4864
|
VITE_CHECKOUT_URL: void 0,
|
|
4865
4865
|
TAPPER_ENV: "prod",
|
|
4866
4866
|
PACKAGE_NAME: "@getsupertab/supertab-js",
|
|
4867
|
-
PACKAGE_VERSION: "3.17.
|
|
4867
|
+
PACKAGE_VERSION: "3.17.5",
|
|
4868
4868
|
MONETIZATION_PROVIDER_SCRIPT_URL: void 0
|
|
4869
4869
|
}), M3 = jS === "ctl" || jS === "sbx" || jS === "stg" ? !0 : jS === "prod" && typeof window < "u" && window.location ? new URLSearchParams(window.location.search).has("supertab-enable-logging") : !1, en = {
|
|
4870
4870
|
log: (...o) => {
|
|
@@ -5145,23 +5145,20 @@ class wM {
|
|
|
5145
5145
|
}
|
|
5146
5146
|
get authData() {
|
|
5147
5147
|
try {
|
|
5148
|
-
const a =
|
|
5148
|
+
const a = localStorage.getItem(n9);
|
|
5149
5149
|
return a ? JSON.parse(a) : null;
|
|
5150
5150
|
} catch (a) {
|
|
5151
5151
|
return en.error(
|
|
5152
|
-
"Error retrieving auth data from
|
|
5152
|
+
"Error retrieving auth data from localStorage:",
|
|
5153
5153
|
a
|
|
5154
5154
|
), null;
|
|
5155
5155
|
}
|
|
5156
5156
|
}
|
|
5157
5157
|
set authData(a) {
|
|
5158
5158
|
try {
|
|
5159
|
-
|
|
5159
|
+
localStorage.setItem(n9, JSON.stringify(a));
|
|
5160
5160
|
} catch (s) {
|
|
5161
|
-
en.error(
|
|
5162
|
-
"Error saving auth data to session storage:",
|
|
5163
|
-
s
|
|
5164
|
-
);
|
|
5161
|
+
en.error("Error saving auth data to localStorage:", s);
|
|
5165
5162
|
}
|
|
5166
5163
|
}
|
|
5167
5164
|
get authStatus() {
|
|
@@ -5232,7 +5229,7 @@ class wM {
|
|
|
5232
5229
|
origin: window.location.origin
|
|
5233
5230
|
})
|
|
5234
5231
|
);
|
|
5235
|
-
|
|
5232
|
+
localStorage.setItem(
|
|
5236
5233
|
A3,
|
|
5237
5234
|
JSON.stringify({
|
|
5238
5235
|
verifier: d,
|
|
@@ -5267,7 +5264,7 @@ class wM {
|
|
|
5267
5264
|
if (!f)
|
|
5268
5265
|
throw new eo({ message: "No state parameter received" });
|
|
5269
5266
|
const g = JSON.parse(
|
|
5270
|
-
|
|
5267
|
+
localStorage.getItem(A3) || JSON.stringify({
|
|
5271
5268
|
verifier: null,
|
|
5272
5269
|
state: null
|
|
5273
5270
|
})
|
|
@@ -5283,11 +5280,11 @@ class wM {
|
|
|
5283
5280
|
verifier: g.verifier,
|
|
5284
5281
|
redirectUri: window.location.origin
|
|
5285
5282
|
});
|
|
5286
|
-
|
|
5283
|
+
localStorage.removeItem(A3), this.authData = v;
|
|
5287
5284
|
const C = new URL(window.location.href);
|
|
5288
5285
|
return C.searchParams.delete("code"), C.searchParams.delete("state"), C.searchParams.delete("scope"), window.history.replaceState({}, document.title, C.toString()), en.log("Redirect callback handled successfully"), this.authData;
|
|
5289
5286
|
} catch (a) {
|
|
5290
|
-
if (en.error("Error handling redirect callback:", a),
|
|
5287
|
+
if (en.error("Error handling redirect callback:", a), localStorage.removeItem(A3), a instanceof eo)
|
|
5291
5288
|
throw a;
|
|
5292
5289
|
const s = GC(a);
|
|
5293
5290
|
throw new eo({ message: s });
|
|
@@ -5419,10 +5416,10 @@ class wM {
|
|
|
5419
5416
|
}
|
|
5420
5417
|
clearAuthData() {
|
|
5421
5418
|
try {
|
|
5422
|
-
|
|
5419
|
+
localStorage.removeItem(n9);
|
|
5423
5420
|
} catch (a) {
|
|
5424
5421
|
en.error(
|
|
5425
|
-
"Error clearing auth data from
|
|
5422
|
+
"Error clearing auth data from localStorage:",
|
|
5426
5423
|
a
|
|
5427
5424
|
);
|
|
5428
5425
|
}
|
|
@@ -5561,7 +5558,7 @@ const lr = /* @__PURE__ */ DT(M), eR = /* @__PURE__ */ _P({
|
|
|
5561
5558
|
default: lr
|
|
5562
5559
|
}, [M]), $1 = async (o) => {
|
|
5563
5560
|
if (lM) {
|
|
5564
|
-
const { captureException: a } = await import("./sentry-
|
|
5561
|
+
const { captureException: a } = await import("./sentry-C41zTvOQ.js");
|
|
5565
5562
|
a(o);
|
|
5566
5563
|
}
|
|
5567
5564
|
};
|
|
@@ -64646,7 +64643,7 @@ typeof ActiveXObject == "function" && (typeof global < "u" && global.ActiveXObje
|
|
|
64646
64643
|
typeof n0 != "function" && (n0 = void 0);
|
|
64647
64644
|
if (!n0 && !hk && !M4)
|
|
64648
64645
|
try {
|
|
64649
|
-
import("./browser-ponyfill-
|
|
64646
|
+
import("./browser-ponyfill-nA9uso-e.js").then((o) => o.b).then(function(o) {
|
|
64650
64647
|
n0 = o.default;
|
|
64651
64648
|
}).catch(function() {
|
|
64652
64649
|
});
|