@stytch/vanilla-js 3.0.0 → 3.0.1
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 +6 -0
- package/dist/b2b/index.esm.js +3 -6
- package/dist/b2b/index.headless.esm.js +3 -6
- package/dist/b2b/index.headless.js +3 -6
- package/dist/b2b/index.js +3 -6
- package/dist/index.esm.js +1 -1
- package/dist/index.headless.esm.js +36 -39
- package/dist/index.headless.js +18 -21
- package/dist/index.js +1 -1
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
package/dist/b2b/index.esm.js
CHANGED
|
@@ -2887,7 +2887,7 @@ var Re = /*#__PURE__*/function () {
|
|
|
2887
2887
|
},
|
|
2888
2888
|
sdk: {
|
|
2889
2889
|
identifier: "Stytch.js Javascript SDK",
|
|
2890
|
-
version: "3.0.
|
|
2890
|
+
version: "3.0.1"
|
|
2891
2891
|
}
|
|
2892
2892
|
});
|
|
2893
2893
|
}
|
|
@@ -3436,18 +3436,15 @@ var Ge = /*#__PURE__*/function () {
|
|
|
3436
3436
|
function Ge(e, t) {
|
|
3437
3437
|
var _this6 = this;
|
|
3438
3438
|
_classCallCheck(this, Ge);
|
|
3439
|
-
var n;
|
|
3440
3439
|
this._publicToken = e, this._datalayer = t, this._listen = function (e) {
|
|
3441
3440
|
if (e.key !== Qe(_this6._publicToken)) return;
|
|
3442
3441
|
if (null === e.newValue || "null" === e.newValue) return void _this6.destroyState();
|
|
3443
3442
|
var t = JSON.parse(e.newValue);
|
|
3444
3443
|
_this6.updateState(t);
|
|
3445
3444
|
}, window.addEventListener("storage", this._listen);
|
|
3446
|
-
var r = null === (n = this._datalayer.state) || void 0 === n ? void 0 : n.session;
|
|
3447
|
-
if (r && Date.parse(r.expires_at) < Date.now()) return void this.destroyState();
|
|
3448
3445
|
var _this$_datalayer$read = this._datalayer.readSessionCookie(),
|
|
3449
|
-
|
|
3450
|
-
|
|
3446
|
+
n = _this$_datalayer$read.session_token;
|
|
3447
|
+
n || this.destroyState();
|
|
3451
3448
|
}
|
|
3452
3449
|
_createClass(Ge, [{
|
|
3453
3450
|
key: "getTokens",
|
|
@@ -2885,7 +2885,7 @@ var Ie = /*#__PURE__*/function () {
|
|
|
2885
2885
|
},
|
|
2886
2886
|
sdk: {
|
|
2887
2887
|
identifier: "Stytch.js Javascript SDK",
|
|
2888
|
-
version: "3.0.
|
|
2888
|
+
version: "3.0.1"
|
|
2889
2889
|
}
|
|
2890
2890
|
});
|
|
2891
2891
|
}
|
|
@@ -3433,18 +3433,15 @@ var Ve = /*#__PURE__*/function () {
|
|
|
3433
3433
|
function Ve(e, t) {
|
|
3434
3434
|
var _this6 = this;
|
|
3435
3435
|
_classCallCheck(this, Ve);
|
|
3436
|
-
var r;
|
|
3437
3436
|
this._publicToken = e, this._datalayer = t, this._listen = function (e) {
|
|
3438
3437
|
if (e.key !== Ue(_this6._publicToken)) return;
|
|
3439
3438
|
if (null === e.newValue || "null" === e.newValue) return void _this6.destroyState();
|
|
3440
3439
|
var t = JSON.parse(e.newValue);
|
|
3441
3440
|
_this6.updateState(t);
|
|
3442
3441
|
}, window.addEventListener("storage", this._listen);
|
|
3443
|
-
var n = null === (r = this._datalayer.state) || void 0 === r ? void 0 : r.session;
|
|
3444
|
-
if (n && Date.parse(n.expires_at) < Date.now()) return void this.destroyState();
|
|
3445
3442
|
var _this$_datalayer$read = this._datalayer.readSessionCookie(),
|
|
3446
|
-
|
|
3447
|
-
|
|
3443
|
+
r = _this$_datalayer$read.session_token;
|
|
3444
|
+
r || this.destroyState();
|
|
3448
3445
|
}
|
|
3449
3446
|
_createClass(Ve, [{
|
|
3450
3447
|
key: "getTokens",
|
|
@@ -2890,7 +2890,7 @@ var Ie = /*#__PURE__*/function () {
|
|
|
2890
2890
|
},
|
|
2891
2891
|
sdk: {
|
|
2892
2892
|
identifier: "Stytch.js Javascript SDK",
|
|
2893
|
-
version: "3.0.
|
|
2893
|
+
version: "3.0.1"
|
|
2894
2894
|
}
|
|
2895
2895
|
});
|
|
2896
2896
|
}
|
|
@@ -3438,18 +3438,15 @@ var Ve = /*#__PURE__*/function () {
|
|
|
3438
3438
|
function Ve(e, t) {
|
|
3439
3439
|
var _this6 = this;
|
|
3440
3440
|
_classCallCheck(this, Ve);
|
|
3441
|
-
var r;
|
|
3442
3441
|
this._publicToken = e, this._datalayer = t, this._listen = function (e) {
|
|
3443
3442
|
if (e.key !== Ue(_this6._publicToken)) return;
|
|
3444
3443
|
if (null === e.newValue || "null" === e.newValue) return void _this6.destroyState();
|
|
3445
3444
|
var t = JSON.parse(e.newValue);
|
|
3446
3445
|
_this6.updateState(t);
|
|
3447
3446
|
}, window.addEventListener("storage", this._listen);
|
|
3448
|
-
var n = null === (r = this._datalayer.state) || void 0 === r ? void 0 : r.session;
|
|
3449
|
-
if (n && Date.parse(n.expires_at) < Date.now()) return void this.destroyState();
|
|
3450
3447
|
var _this$_datalayer$read = this._datalayer.readSessionCookie(),
|
|
3451
|
-
|
|
3452
|
-
|
|
3448
|
+
r = _this$_datalayer$read.session_token;
|
|
3449
|
+
r || this.destroyState();
|
|
3453
3450
|
}
|
|
3454
3451
|
_createClass(Ve, [{
|
|
3455
3452
|
key: "getTokens",
|
package/dist/b2b/index.js
CHANGED
|
@@ -2892,7 +2892,7 @@ var Re = /*#__PURE__*/function () {
|
|
|
2892
2892
|
},
|
|
2893
2893
|
sdk: {
|
|
2894
2894
|
identifier: "Stytch.js Javascript SDK",
|
|
2895
|
-
version: "3.0.
|
|
2895
|
+
version: "3.0.1"
|
|
2896
2896
|
}
|
|
2897
2897
|
});
|
|
2898
2898
|
}
|
|
@@ -3441,18 +3441,15 @@ var Ge = /*#__PURE__*/function () {
|
|
|
3441
3441
|
function Ge(e, t) {
|
|
3442
3442
|
var _this6 = this;
|
|
3443
3443
|
_classCallCheck(this, Ge);
|
|
3444
|
-
var n;
|
|
3445
3444
|
this._publicToken = e, this._datalayer = t, this._listen = function (e) {
|
|
3446
3445
|
if (e.key !== Qe(_this6._publicToken)) return;
|
|
3447
3446
|
if (null === e.newValue || "null" === e.newValue) return void _this6.destroyState();
|
|
3448
3447
|
var t = JSON.parse(e.newValue);
|
|
3449
3448
|
_this6.updateState(t);
|
|
3450
3449
|
}, window.addEventListener("storage", this._listen);
|
|
3451
|
-
var r = null === (n = this._datalayer.state) || void 0 === n ? void 0 : n.session;
|
|
3452
|
-
if (r && Date.parse(r.expires_at) < Date.now()) return void this.destroyState();
|
|
3453
3450
|
var _this$_datalayer$read = this._datalayer.readSessionCookie(),
|
|
3454
|
-
|
|
3455
|
-
|
|
3451
|
+
n = _this$_datalayer$read.session_token;
|
|
3452
|
+
n || this.destroyState();
|
|
3456
3453
|
}
|
|
3457
3454
|
_createClass(Ge, [{
|
|
3458
3455
|
key: "getTokens",
|