@stytch/vanilla-js 3.2.2 → 3.2.3
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 +8 -0
- package/dist/b2b/index.esm.js +61 -41
- package/dist/b2b/index.headless.esm.js +26 -16
- package/dist/b2b/index.headless.js +26 -16
- package/dist/b2b/index.js +263 -243
- package/dist/index.esm.js +43 -35
- package/dist/index.headless.esm.js +25 -15
- package/dist/index.headless.js +25 -15
- package/dist/index.js +1 -1
- package/package.json +2 -2
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,13 @@
|
|
|
1
1
|
# @stytch/vanilla-js
|
|
2
2
|
|
|
3
|
+
## 3.2.3
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- 2f46248: Add an updated config object for logging members in directly when they have a single membership
|
|
8
|
+
- Updated dependencies [2f46248]
|
|
9
|
+
- @stytch/core@1.4.2
|
|
10
|
+
|
|
3
11
|
## 3.2.2
|
|
4
12
|
|
|
5
13
|
### Patch Changes
|
package/dist/b2b/index.esm.js
CHANGED
|
@@ -25,7 +25,7 @@ function _assertThisInitialized(self) { if (self === void 0) { throw new Referen
|
|
|
25
25
|
function _wrapNativeSuper(Class) { var _cache = typeof Map === "function" ? new Map() : undefined; _wrapNativeSuper = function _wrapNativeSuper(Class) { if (Class === null || !_isNativeFunction(Class)) return Class; if (typeof Class !== "function") { throw new TypeError("Super expression must either be null or a function"); } if (typeof _cache !== "undefined") { if (_cache.has(Class)) return _cache.get(Class); _cache.set(Class, Wrapper); } function Wrapper() { return _construct(Class, arguments, _getPrototypeOf(this).constructor); } Wrapper.prototype = Object.create(Class.prototype, { constructor: { value: Wrapper, enumerable: false, writable: true, configurable: true } }); return _setPrototypeOf(Wrapper, Class); }; return _wrapNativeSuper(Class); }
|
|
26
26
|
function _construct(Parent, args, Class) { if (_isNativeReflectConstruct()) { _construct = Reflect.construct.bind(); } else { _construct = function _construct(Parent, args, Class) { var a = [null]; a.push.apply(a, args); var Constructor = Function.bind.apply(Parent, a); var instance = new Constructor(); if (Class) _setPrototypeOf(instance, Class.prototype); return instance; }; } return _construct.apply(null, arguments); }
|
|
27
27
|
function _isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); return true; } catch (e) { return false; } }
|
|
28
|
-
function _isNativeFunction(fn) { return Function.toString.call(fn).indexOf("[native code]") !== -1; }
|
|
28
|
+
function _isNativeFunction(fn) { try { return Function.toString.call(fn).indexOf("[native code]") !== -1; } catch (e) { return typeof fn === "function"; } }
|
|
29
29
|
function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
|
|
30
30
|
function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf.bind() : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
|
|
31
31
|
function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o; }, _typeof(o); }
|
|
@@ -442,24 +442,29 @@ function u(e) {
|
|
|
442
442
|
function d(e) {
|
|
443
443
|
var t = "function" == typeof Map ? new Map() : void 0;
|
|
444
444
|
return d = function d(e) {
|
|
445
|
-
if (null === e || (
|
|
446
|
-
|
|
445
|
+
if (null === e || !function (e) {
|
|
446
|
+
try {
|
|
447
|
+
return -1 !== Function.toString.call(e).indexOf("[native code]");
|
|
448
|
+
} catch (t) {
|
|
449
|
+
return "function" == typeof e;
|
|
450
|
+
}
|
|
451
|
+
}(e)) return e;
|
|
447
452
|
if ("function" != typeof e) throw new TypeError("Super expression must either be null or a function");
|
|
448
453
|
if (void 0 !== t) {
|
|
449
454
|
if (t.has(e)) return t.get(e);
|
|
450
|
-
t.set(e,
|
|
455
|
+
t.set(e, n);
|
|
451
456
|
}
|
|
452
|
-
function
|
|
457
|
+
function n() {
|
|
453
458
|
return f(e, arguments, m(this).constructor);
|
|
454
459
|
}
|
|
455
|
-
return
|
|
460
|
+
return n.prototype = Object.create(e.prototype, {
|
|
456
461
|
constructor: {
|
|
457
|
-
value:
|
|
462
|
+
value: n,
|
|
458
463
|
enumerable: !1,
|
|
459
464
|
writable: !0,
|
|
460
465
|
configurable: !0
|
|
461
466
|
}
|
|
462
|
-
}), h(
|
|
467
|
+
}), h(n, e);
|
|
463
468
|
}, d(e);
|
|
464
469
|
}
|
|
465
470
|
function f(e, t, n) {
|
|
@@ -2890,7 +2895,7 @@ var Re = /*#__PURE__*/function () {
|
|
|
2890
2895
|
},
|
|
2891
2896
|
sdk: {
|
|
2892
2897
|
identifier: "Stytch.js Javascript SDK",
|
|
2893
|
-
version: "3.2.
|
|
2898
|
+
version: "3.2.3"
|
|
2894
2899
|
}
|
|
2895
2900
|
});
|
|
2896
2901
|
}
|
|
@@ -10596,24 +10601,29 @@ function Vh(e) {
|
|
|
10596
10601
|
function Wh(e) {
|
|
10597
10602
|
var t = "function" == typeof Map ? new Map() : void 0;
|
|
10598
10603
|
return Wh = function Wh(e) {
|
|
10599
|
-
if (null === e || (
|
|
10600
|
-
|
|
10604
|
+
if (null === e || !function (e) {
|
|
10605
|
+
try {
|
|
10606
|
+
return -1 !== Function.toString.call(e).indexOf("[native code]");
|
|
10607
|
+
} catch (t) {
|
|
10608
|
+
return "function" == typeof e;
|
|
10609
|
+
}
|
|
10610
|
+
}(e)) return e;
|
|
10601
10611
|
if ("function" != typeof e) throw new TypeError("Super expression must either be null or a function");
|
|
10602
10612
|
if (void 0 !== t) {
|
|
10603
10613
|
if (t.has(e)) return t.get(e);
|
|
10604
|
-
t.set(e,
|
|
10614
|
+
t.set(e, n);
|
|
10605
10615
|
}
|
|
10606
|
-
function
|
|
10616
|
+
function n() {
|
|
10607
10617
|
return Kh(e, arguments, Yh(this).constructor);
|
|
10608
10618
|
}
|
|
10609
|
-
return
|
|
10619
|
+
return n.prototype = Object.create(e.prototype, {
|
|
10610
10620
|
constructor: {
|
|
10611
|
-
value:
|
|
10621
|
+
value: n,
|
|
10612
10622
|
enumerable: !1,
|
|
10613
10623
|
writable: !0,
|
|
10614
10624
|
configurable: !0
|
|
10615
10625
|
}
|
|
10616
|
-
}), Gh(
|
|
10626
|
+
}), Gh(n, e);
|
|
10617
10627
|
}, Wh(e);
|
|
10618
10628
|
}
|
|
10619
10629
|
function Kh(e, t, n) {
|
|
@@ -14412,52 +14422,62 @@ var uA = _o.a(_templateObject23 || (_templateObject23 = _taggedTemplateLiteral([
|
|
|
14412
14422
|
}, "Try a different email address"));
|
|
14413
14423
|
},
|
|
14414
14424
|
EA = function EA() {
|
|
14425
|
+
var e;
|
|
14415
14426
|
var _gm25 = gm(),
|
|
14416
14427
|
_gm26 = _slicedToArray(_gm25, 2),
|
|
14417
|
-
|
|
14418
|
-
|
|
14419
|
-
|
|
14420
|
-
|
|
14421
|
-
|
|
14428
|
+
t = _gm26[0],
|
|
14429
|
+
n = _gm26[1],
|
|
14430
|
+
r = mm(),
|
|
14431
|
+
o = vm(),
|
|
14432
|
+
i = !!(null === (e = o.directLoginForSingleMembership) || void 0 === e ? void 0 : e.status),
|
|
14422
14433
|
_ly2 = ly(),
|
|
14423
|
-
|
|
14424
|
-
a = 1 === e.formState.discoveryState.discoveredOrganizations.length && "active_member" === e.formState.discoveryState.discoveredOrganizations[0].membership.type;
|
|
14434
|
+
a = _ly2.createOrganizationEnabled;
|
|
14425
14435
|
Xe.exports.useEffect(function () {
|
|
14426
|
-
|
|
14427
|
-
|
|
14436
|
+
var e = function (e, t) {
|
|
14437
|
+
if (!(null == t ? void 0 : t.status)) return null;
|
|
14438
|
+
var n = e.filter(function (e) {
|
|
14439
|
+
return "active_member" === e.membership.type;
|
|
14440
|
+
}),
|
|
14441
|
+
r = e.some(function (e) {
|
|
14442
|
+
return ("pending_member" === e.membership.type || "invited_member" === e.membership.type) && !t.ignoreInvites || "eligible_to_join_by_email_domain" === e.membership.type && !t.ignoreJitProvisioning;
|
|
14443
|
+
});
|
|
14444
|
+
return 1 !== n.length || r ? null : n[0];
|
|
14445
|
+
}(t.formState.discoveryState.discoveredOrganizations, o.directLoginForSingleMembership);
|
|
14446
|
+
i && null !== e && s(e.organization);
|
|
14447
|
+
}, [i, t.formState.discoveryState.discoveredOrganizations, o.directLoginForSingleMembership]);
|
|
14428
14448
|
var s = function s(e) {
|
|
14429
14449
|
null != e.allowed_auth_methods && 1 == e.allowed_auth_methods.length && e.allowed_auth_methods.includes("sso") && null != e.sso_default_connection_id ? l(e.sso_default_connection_id) : c({
|
|
14430
14450
|
organizationId: e.organization_id
|
|
14431
14451
|
});
|
|
14432
14452
|
},
|
|
14433
14453
|
l = Xe.exports.useCallback(function (e) {
|
|
14434
|
-
|
|
14454
|
+
r.sso.start({
|
|
14435
14455
|
connection_id: e
|
|
14436
14456
|
});
|
|
14437
|
-
}, [
|
|
14457
|
+
}, [r]),
|
|
14438
14458
|
_sy4 = sy("stytch.discovery.intermediateSessions.exchange", function (e, _ref68) {
|
|
14439
14459
|
var t = _ref68.arg.organizationId;
|
|
14440
|
-
return
|
|
14460
|
+
return r.discovery.intermediateSessions.exchange({
|
|
14441
14461
|
organization_id: t,
|
|
14442
|
-
session_duration_minutes:
|
|
14462
|
+
session_duration_minutes: o.sessionOptions.sessionDurationMinutes
|
|
14443
14463
|
});
|
|
14444
14464
|
}, {
|
|
14445
14465
|
onSuccess: function onSuccess(e) {
|
|
14446
|
-
cy(e,
|
|
14466
|
+
cy(e, n);
|
|
14447
14467
|
}
|
|
14448
14468
|
}),
|
|
14449
14469
|
c = _sy4.trigger,
|
|
14450
14470
|
u = _sy4.isMutating,
|
|
14451
14471
|
_sy5 = sy("stytch.discovery.organization.create", function () {
|
|
14452
|
-
return
|
|
14453
|
-
session_duration_minutes:
|
|
14472
|
+
return r.discovery.organizations.create({
|
|
14473
|
+
session_duration_minutes: o.sessionOptions.sessionDurationMinutes
|
|
14454
14474
|
});
|
|
14455
14475
|
}, {
|
|
14456
14476
|
onSuccess: function onSuccess(e) {
|
|
14457
|
-
cy(e,
|
|
14477
|
+
cy(e, n);
|
|
14458
14478
|
},
|
|
14459
14479
|
onError: function onError() {
|
|
14460
|
-
|
|
14480
|
+
n({
|
|
14461
14481
|
type: "transition",
|
|
14462
14482
|
screen: cm.Error
|
|
14463
14483
|
});
|
|
@@ -14465,12 +14485,12 @@ var uA = _o.a(_templateObject23 || (_templateObject23 = _taggedTemplateLiteral([
|
|
|
14465
14485
|
}),
|
|
14466
14486
|
d = _sy5.trigger,
|
|
14467
14487
|
f = _sy5.isMutating;
|
|
14468
|
-
return u ? Xe.exports.createElement(hA, null) : f ? Xe.exports.createElement(mA, null) : 0 ===
|
|
14488
|
+
return u ? Xe.exports.createElement(hA, null) : f ? Xe.exports.createElement(mA, null) : 0 === t.formState.discoveryState.discoveredOrganizations.length ? Xe.exports.createElement(kA, null) : Xe.exports.createElement(Yg, {
|
|
14469
14489
|
direction: "column",
|
|
14470
14490
|
gap: 24
|
|
14471
14491
|
}, Xe.exports.createElement($y, {
|
|
14472
14492
|
onClick: function onClick() {
|
|
14473
|
-
return
|
|
14493
|
+
return n({
|
|
14474
14494
|
type: "transition",
|
|
14475
14495
|
screen: cm.Main
|
|
14476
14496
|
});
|
|
@@ -14479,7 +14499,7 @@ var uA = _o.a(_templateObject23 || (_templateObject23 = _taggedTemplateLiteral([
|
|
|
14479
14499
|
size: "header"
|
|
14480
14500
|
}, "Select an organization to continue"), Xe.exports.createElement(gA, {
|
|
14481
14501
|
direction: "column"
|
|
14482
|
-
},
|
|
14502
|
+
}, t.formState.discoveryState.discoveredOrganizations.map(function (_ref69) {
|
|
14483
14503
|
var e = _ref69.organization,
|
|
14484
14504
|
t = _ref69.membership;
|
|
14485
14505
|
return Xe.exports.createElement(vA, {
|
|
@@ -14502,7 +14522,7 @@ var uA = _o.a(_templateObject23 || (_templateObject23 = _taggedTemplateLiteral([
|
|
|
14502
14522
|
}, Xe.exports.createElement(wA, {
|
|
14503
14523
|
type: t.type
|
|
14504
14524
|
}), Xe.exports.createElement(bA, null)));
|
|
14505
|
-
})),
|
|
14525
|
+
})), a && Xe.exports.createElement(Yg, {
|
|
14506
14526
|
direction: "column",
|
|
14507
14527
|
gap: 8
|
|
14508
14528
|
}, Xe.exports.createElement(Ry, null), Xe.exports.createElement(fy, {
|
|
@@ -15156,11 +15176,11 @@ var uA = _o.a(_templateObject23 || (_templateObject23 = _taggedTemplateLiteral([
|
|
|
15156
15176
|
_bo2 = bo(),
|
|
15157
15177
|
o = _bo2.displayWatermark,
|
|
15158
15178
|
i = e.screen,
|
|
15159
|
-
a = (_a5 = {}, _defineProperty(_a5, cm.Main, Mt.createElement(aA, null)),
|
|
15179
|
+
a = (_a5 = {}, _defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_a5, cm.Main, Mt.createElement(aA, null)), cm.EmailConfirmation, Mt.createElement(pA, null)), cm.LoggedIn, Mt.createElement(CA, null)), cm.Discovery, Mt.createElement(EA, null)), cm.ErrorOrganization, Mt.createElement(ev, {
|
|
15160
15180
|
errorMessage: "The organization you are looking for could not be found. If you think this is a mistake, contact your admin."
|
|
15161
|
-
})),
|
|
15181
|
+
})), cm.Error, Mt.createElement(ev, {
|
|
15162
15182
|
errorMessage: "Something went wrong. Try again later or contact your admin for help."
|
|
15163
|
-
})),
|
|
15183
|
+
})), cm.PasswordEmailForm, Mt.createElement(Wy, null)), cm.PasswordAuthenticate, Mt.createElement(Vy, null)), cm.PasswordResetForm, Mt.createElement(RA, null)), cm.PasswordResetVerifyConfirmation, Mt.createElement(zA, null)), _defineProperty(_defineProperty(_a5, cm.PasswordForgotForm, Mt.createElement(NA, null)), cm.PasswordSetNewConfirmation, Mt.createElement(jA, null))),
|
|
15164
15184
|
s = function s(e) {
|
|
15165
15185
|
window.history.replaceState(null, window.document.title, window.location.pathname), cy(e, t);
|
|
15166
15186
|
},
|
|
@@ -23,7 +23,7 @@ function _assertThisInitialized(self) { if (self === void 0) { throw new Referen
|
|
|
23
23
|
function _wrapNativeSuper(Class) { var _cache = typeof Map === "function" ? new Map() : undefined; _wrapNativeSuper = function _wrapNativeSuper(Class) { if (Class === null || !_isNativeFunction(Class)) return Class; if (typeof Class !== "function") { throw new TypeError("Super expression must either be null or a function"); } if (typeof _cache !== "undefined") { if (_cache.has(Class)) return _cache.get(Class); _cache.set(Class, Wrapper); } function Wrapper() { return _construct(Class, arguments, _getPrototypeOf(this).constructor); } Wrapper.prototype = Object.create(Class.prototype, { constructor: { value: Wrapper, enumerable: false, writable: true, configurable: true } }); return _setPrototypeOf(Wrapper, Class); }; return _wrapNativeSuper(Class); }
|
|
24
24
|
function _construct(Parent, args, Class) { if (_isNativeReflectConstruct()) { _construct = Reflect.construct.bind(); } else { _construct = function _construct(Parent, args, Class) { var a = [null]; a.push.apply(a, args); var Constructor = Function.bind.apply(Parent, a); var instance = new Constructor(); if (Class) _setPrototypeOf(instance, Class.prototype); return instance; }; } return _construct.apply(null, arguments); }
|
|
25
25
|
function _isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); return true; } catch (e) { return false; } }
|
|
26
|
-
function _isNativeFunction(fn) { return Function.toString.call(fn).indexOf("[native code]") !== -1; }
|
|
26
|
+
function _isNativeFunction(fn) { try { return Function.toString.call(fn).indexOf("[native code]") !== -1; } catch (e) { return typeof fn === "function"; } }
|
|
27
27
|
function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
|
|
28
28
|
function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf.bind() : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
|
|
29
29
|
function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o; }, _typeof(o); }
|
|
@@ -440,24 +440,29 @@ function l(e) {
|
|
|
440
440
|
function d(e) {
|
|
441
441
|
var t = "function" == typeof Map ? new Map() : void 0;
|
|
442
442
|
return d = function d(e) {
|
|
443
|
-
if (null === e || (
|
|
444
|
-
|
|
443
|
+
if (null === e || !function (e) {
|
|
444
|
+
try {
|
|
445
|
+
return -1 !== Function.toString.call(e).indexOf("[native code]");
|
|
446
|
+
} catch (t) {
|
|
447
|
+
return "function" == typeof e;
|
|
448
|
+
}
|
|
449
|
+
}(e)) return e;
|
|
445
450
|
if ("function" != typeof e) throw new TypeError("Super expression must either be null or a function");
|
|
446
451
|
if (void 0 !== t) {
|
|
447
452
|
if (t.has(e)) return t.get(e);
|
|
448
|
-
t.set(e,
|
|
453
|
+
t.set(e, r);
|
|
449
454
|
}
|
|
450
|
-
function
|
|
455
|
+
function r() {
|
|
451
456
|
return h(e, arguments, m(this).constructor);
|
|
452
457
|
}
|
|
453
|
-
return
|
|
458
|
+
return r.prototype = Object.create(e.prototype, {
|
|
454
459
|
constructor: {
|
|
455
|
-
value:
|
|
460
|
+
value: r,
|
|
456
461
|
enumerable: !1,
|
|
457
462
|
writable: !0,
|
|
458
463
|
configurable: !0
|
|
459
464
|
}
|
|
460
|
-
}), _(
|
|
465
|
+
}), _(r, e);
|
|
461
466
|
}, d(e);
|
|
462
467
|
}
|
|
463
468
|
function h(e, t, r) {
|
|
@@ -2888,7 +2893,7 @@ var Ie = /*#__PURE__*/function () {
|
|
|
2888
2893
|
},
|
|
2889
2894
|
sdk: {
|
|
2890
2895
|
identifier: "Stytch.js Javascript SDK",
|
|
2891
|
-
version: "3.2.
|
|
2896
|
+
version: "3.2.3"
|
|
2892
2897
|
}
|
|
2893
2898
|
});
|
|
2894
2899
|
}
|
|
@@ -3642,24 +3647,29 @@ function nt(e) {
|
|
|
3642
3647
|
function it(e) {
|
|
3643
3648
|
var t = "function" == typeof Map ? new Map() : void 0;
|
|
3644
3649
|
return it = function it(e) {
|
|
3645
|
-
if (null === e || (
|
|
3646
|
-
|
|
3650
|
+
if (null === e || !function (e) {
|
|
3651
|
+
try {
|
|
3652
|
+
return -1 !== Function.toString.call(e).indexOf("[native code]");
|
|
3653
|
+
} catch (t) {
|
|
3654
|
+
return "function" == typeof e;
|
|
3655
|
+
}
|
|
3656
|
+
}(e)) return e;
|
|
3647
3657
|
if ("function" != typeof e) throw new TypeError("Super expression must either be null or a function");
|
|
3648
3658
|
if (void 0 !== t) {
|
|
3649
3659
|
if (t.has(e)) return t.get(e);
|
|
3650
|
-
t.set(e,
|
|
3660
|
+
t.set(e, r);
|
|
3651
3661
|
}
|
|
3652
|
-
function
|
|
3662
|
+
function r() {
|
|
3653
3663
|
return ot(e, arguments, ct(this).constructor);
|
|
3654
3664
|
}
|
|
3655
|
-
return
|
|
3665
|
+
return r.prototype = Object.create(e.prototype, {
|
|
3656
3666
|
constructor: {
|
|
3657
|
-
value:
|
|
3667
|
+
value: r,
|
|
3658
3668
|
enumerable: !1,
|
|
3659
3669
|
writable: !0,
|
|
3660
3670
|
configurable: !0
|
|
3661
3671
|
}
|
|
3662
|
-
}), at(
|
|
3672
|
+
}), at(r, e);
|
|
3663
3673
|
}, it(e);
|
|
3664
3674
|
}
|
|
3665
3675
|
function ot(e, t, r) {
|
|
@@ -25,7 +25,7 @@ function _assertThisInitialized(self) { if (self === void 0) { throw new Referen
|
|
|
25
25
|
function _wrapNativeSuper(Class) { var _cache = typeof Map === "function" ? new Map() : undefined; _wrapNativeSuper = function _wrapNativeSuper(Class) { if (Class === null || !_isNativeFunction(Class)) return Class; if (typeof Class !== "function") { throw new TypeError("Super expression must either be null or a function"); } if (typeof _cache !== "undefined") { if (_cache.has(Class)) return _cache.get(Class); _cache.set(Class, Wrapper); } function Wrapper() { return _construct(Class, arguments, _getPrototypeOf(this).constructor); } Wrapper.prototype = Object.create(Class.prototype, { constructor: { value: Wrapper, enumerable: false, writable: true, configurable: true } }); return _setPrototypeOf(Wrapper, Class); }; return _wrapNativeSuper(Class); }
|
|
26
26
|
function _construct(Parent, args, Class) { if (_isNativeReflectConstruct()) { _construct = Reflect.construct.bind(); } else { _construct = function _construct(Parent, args, Class) { var a = [null]; a.push.apply(a, args); var Constructor = Function.bind.apply(Parent, a); var instance = new Constructor(); if (Class) _setPrototypeOf(instance, Class.prototype); return instance; }; } return _construct.apply(null, arguments); }
|
|
27
27
|
function _isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); return true; } catch (e) { return false; } }
|
|
28
|
-
function _isNativeFunction(fn) { return Function.toString.call(fn).indexOf("[native code]") !== -1; }
|
|
28
|
+
function _isNativeFunction(fn) { try { return Function.toString.call(fn).indexOf("[native code]") !== -1; } catch (e) { return typeof fn === "function"; } }
|
|
29
29
|
function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
|
|
30
30
|
function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf.bind() : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
|
|
31
31
|
function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o; }, _typeof(o); }
|
|
@@ -442,24 +442,29 @@ function l(e) {
|
|
|
442
442
|
function d(e) {
|
|
443
443
|
var t = "function" == typeof Map ? new Map() : void 0;
|
|
444
444
|
return d = function d(e) {
|
|
445
|
-
if (null === e || (
|
|
446
|
-
|
|
445
|
+
if (null === e || !function (e) {
|
|
446
|
+
try {
|
|
447
|
+
return -1 !== Function.toString.call(e).indexOf("[native code]");
|
|
448
|
+
} catch (t) {
|
|
449
|
+
return "function" == typeof e;
|
|
450
|
+
}
|
|
451
|
+
}(e)) return e;
|
|
447
452
|
if ("function" != typeof e) throw new TypeError("Super expression must either be null or a function");
|
|
448
453
|
if (void 0 !== t) {
|
|
449
454
|
if (t.has(e)) return t.get(e);
|
|
450
|
-
t.set(e,
|
|
455
|
+
t.set(e, r);
|
|
451
456
|
}
|
|
452
|
-
function
|
|
457
|
+
function r() {
|
|
453
458
|
return h(e, arguments, m(this).constructor);
|
|
454
459
|
}
|
|
455
|
-
return
|
|
460
|
+
return r.prototype = Object.create(e.prototype, {
|
|
456
461
|
constructor: {
|
|
457
|
-
value:
|
|
462
|
+
value: r,
|
|
458
463
|
enumerable: !1,
|
|
459
464
|
writable: !0,
|
|
460
465
|
configurable: !0
|
|
461
466
|
}
|
|
462
|
-
}), _(
|
|
467
|
+
}), _(r, e);
|
|
463
468
|
}, d(e);
|
|
464
469
|
}
|
|
465
470
|
function h(e, t, r) {
|
|
@@ -2893,7 +2898,7 @@ var Ie = /*#__PURE__*/function () {
|
|
|
2893
2898
|
},
|
|
2894
2899
|
sdk: {
|
|
2895
2900
|
identifier: "Stytch.js Javascript SDK",
|
|
2896
|
-
version: "3.2.
|
|
2901
|
+
version: "3.2.3"
|
|
2897
2902
|
}
|
|
2898
2903
|
});
|
|
2899
2904
|
}
|
|
@@ -3588,24 +3593,29 @@ function rt(e) {
|
|
|
3588
3593
|
function nt(e) {
|
|
3589
3594
|
var t = "function" == typeof Map ? new Map() : void 0;
|
|
3590
3595
|
return nt = function nt(e) {
|
|
3591
|
-
if (null === e || (
|
|
3592
|
-
|
|
3596
|
+
if (null === e || !function (e) {
|
|
3597
|
+
try {
|
|
3598
|
+
return -1 !== Function.toString.call(e).indexOf("[native code]");
|
|
3599
|
+
} catch (t) {
|
|
3600
|
+
return "function" == typeof e;
|
|
3601
|
+
}
|
|
3602
|
+
}(e)) return e;
|
|
3593
3603
|
if ("function" != typeof e) throw new TypeError("Super expression must either be null or a function");
|
|
3594
3604
|
if (void 0 !== t) {
|
|
3595
3605
|
if (t.has(e)) return t.get(e);
|
|
3596
|
-
t.set(e,
|
|
3606
|
+
t.set(e, r);
|
|
3597
3607
|
}
|
|
3598
|
-
function
|
|
3608
|
+
function r() {
|
|
3599
3609
|
return it(e, arguments, at(this).constructor);
|
|
3600
3610
|
}
|
|
3601
|
-
return
|
|
3611
|
+
return r.prototype = Object.create(e.prototype, {
|
|
3602
3612
|
constructor: {
|
|
3603
|
-
value:
|
|
3613
|
+
value: r,
|
|
3604
3614
|
enumerable: !1,
|
|
3605
3615
|
writable: !0,
|
|
3606
3616
|
configurable: !0
|
|
3607
3617
|
}
|
|
3608
|
-
}), st(
|
|
3618
|
+
}), st(r, e);
|
|
3609
3619
|
}, nt(e);
|
|
3610
3620
|
}
|
|
3611
3621
|
function it(e, t, r) {
|