@schibsted/account-sdk-browser 4.8.7-beta.2 → 4.8.7-beta.4
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/README.md +4 -0
- package/es5/global.js +10 -8
- package/es5/global.js.map +1 -1
- package/es5/global.min.js +1 -1
- package/es5/global.min.js.map +1 -1
- package/es5/identity.js +10 -8
- package/es5/identity.js.map +1 -1
- package/es5/identity.min.js +1 -1
- package/es5/identity.min.js.map +1 -1
- package/es5/index.js +10 -8
- package/es5/index.js.map +1 -1
- package/es5/index.min.js +1 -1
- package/es5/index.min.js.map +1 -1
- package/es5/monetization.js +1 -1
- package/es5/monetization.js.map +1 -1
- package/es5/monetization.min.js +1 -1
- package/es5/monetization.min.js.map +1 -1
- package/package.json +1 -1
- package/src/identity.d.ts +0 -5
- package/src/identity.js +7 -4
- package/src/version.js +1 -1
package/es5/index.js
CHANGED
|
@@ -1537,26 +1537,25 @@ var Identity = /*#__PURE__*/function (_EventEmitter) {
|
|
|
1537
1537
|
throw _context.t0;
|
|
1538
1538
|
case 15:
|
|
1539
1539
|
if (!sessionData) {
|
|
1540
|
-
_context.next =
|
|
1540
|
+
_context.next = 21;
|
|
1541
1541
|
break;
|
|
1542
1542
|
}
|
|
1543
1543
|
if (!_checkRedirectionNeed(sessionData)) {
|
|
1544
|
-
_context.next =
|
|
1544
|
+
_context.next = 20;
|
|
1545
1545
|
break;
|
|
1546
1546
|
}
|
|
1547
1547
|
_context.next = 19;
|
|
1548
1548
|
return _this2.callbackBeforeRedirect();
|
|
1549
1549
|
case 19:
|
|
1550
|
-
|
|
1551
|
-
|
|
1552
|
-
case 21:
|
|
1550
|
+
return _context.abrupt("return", _this2._sessionService.makeUrl(sessionData.redirectURL));
|
|
1551
|
+
case 20:
|
|
1553
1552
|
if (_this2._enableSessionCaching) {
|
|
1554
1553
|
_expiresIn = 1000 * (sessionData.expiresIn || 300);
|
|
1555
1554
|
_this2.cache.set(HAS_SESSION_CACHE_KEY, sessionData, _expiresIn);
|
|
1556
1555
|
}
|
|
1557
|
-
case
|
|
1556
|
+
case 21:
|
|
1558
1557
|
return _context.abrupt("return", _postProcess(sessionData));
|
|
1559
|
-
case
|
|
1558
|
+
case 22:
|
|
1560
1559
|
case "end":
|
|
1561
1560
|
return _context.stop();
|
|
1562
1561
|
}
|
|
@@ -1568,6 +1567,9 @@ var Identity = /*#__PURE__*/function (_EventEmitter) {
|
|
|
1568
1567
|
}();
|
|
1569
1568
|
this._hasSessionInProgress = _getSession().then(function (sessionData) {
|
|
1570
1569
|
_this2._hasSessionInProgress = false;
|
|
1570
|
+
if (typeof sessionData === 'string' && Object(_validate_js__WEBPACK_IMPORTED_MODULE_55__["isUrl"])(sessionData)) {
|
|
1571
|
+
return _this2.window.location.href = sessionData;
|
|
1572
|
+
}
|
|
1571
1573
|
return sessionData;
|
|
1572
1574
|
}, function (err) {
|
|
1573
1575
|
_this2.emit('error', err);
|
|
@@ -11930,7 +11932,7 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
11930
11932
|
|
|
11931
11933
|
|
|
11932
11934
|
|
|
11933
|
-
var version = '4.8.7-beta.
|
|
11935
|
+
var version = '4.8.7-beta.4';
|
|
11934
11936
|
/* harmony default export */ __webpack_exports__["default"] = (version);
|
|
11935
11937
|
|
|
11936
11938
|
/***/ }),
|