@schibsted/account-sdk-browser 4.8.7-beta.3 → 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/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.js +7 -4
- package/src/version.js +1 -1
package/es5/global.js
CHANGED
|
@@ -2414,26 +2414,25 @@ var Identity = /*#__PURE__*/function (_EventEmitter) {
|
|
|
2414
2414
|
throw _context.t0;
|
|
2415
2415
|
case 15:
|
|
2416
2416
|
if (!sessionData) {
|
|
2417
|
-
_context.next =
|
|
2417
|
+
_context.next = 21;
|
|
2418
2418
|
break;
|
|
2419
2419
|
}
|
|
2420
2420
|
if (!_checkRedirectionNeed(sessionData)) {
|
|
2421
|
-
_context.next =
|
|
2421
|
+
_context.next = 20;
|
|
2422
2422
|
break;
|
|
2423
2423
|
}
|
|
2424
2424
|
_context.next = 19;
|
|
2425
2425
|
return _this2.callbackBeforeRedirect();
|
|
2426
2426
|
case 19:
|
|
2427
|
-
|
|
2428
|
-
|
|
2429
|
-
case 21:
|
|
2427
|
+
return _context.abrupt("return", _this2._sessionService.makeUrl(sessionData.redirectURL));
|
|
2428
|
+
case 20:
|
|
2430
2429
|
if (_this2._enableSessionCaching) {
|
|
2431
2430
|
_expiresIn = 1000 * (sessionData.expiresIn || 300);
|
|
2432
2431
|
_this2.cache.set(HAS_SESSION_CACHE_KEY, sessionData, _expiresIn);
|
|
2433
2432
|
}
|
|
2434
|
-
case
|
|
2433
|
+
case 21:
|
|
2435
2434
|
return _context.abrupt("return", _postProcess(sessionData));
|
|
2436
|
-
case
|
|
2435
|
+
case 22:
|
|
2437
2436
|
case "end":
|
|
2438
2437
|
return _context.stop();
|
|
2439
2438
|
}
|
|
@@ -2445,6 +2444,9 @@ var Identity = /*#__PURE__*/function (_EventEmitter) {
|
|
|
2445
2444
|
}();
|
|
2446
2445
|
this._hasSessionInProgress = _getSession().then(function (sessionData) {
|
|
2447
2446
|
_this2._hasSessionInProgress = false;
|
|
2447
|
+
if (typeof sessionData === 'string' && Object(_validate_js__WEBPACK_IMPORTED_MODULE_55__["isUrl"])(sessionData)) {
|
|
2448
|
+
return _this2.window.location.href = sessionData;
|
|
2449
|
+
}
|
|
2448
2450
|
return sessionData;
|
|
2449
2451
|
}, function (err) {
|
|
2450
2452
|
_this2.emit('error', err);
|
|
@@ -11958,7 +11960,7 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
11958
11960
|
|
|
11959
11961
|
|
|
11960
11962
|
|
|
11961
|
-
var version = '4.8.7-beta.
|
|
11963
|
+
var version = '4.8.7-beta.4';
|
|
11962
11964
|
/* harmony default export */ __webpack_exports__["default"] = (version);
|
|
11963
11965
|
|
|
11964
11966
|
/***/ }),
|