@schibsted/account-sdk-browser 5.2.6 → 5.2.7

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/identity.js CHANGED
@@ -1607,6 +1607,11 @@ var Identity = /*#__PURE__*/function (_EventEmitter) {
1607
1607
  _this2.sessionStorageCache.set(HAS_SESSION_CACHE_KEY, {
1608
1608
  error: _context.t0
1609
1609
  }, expiresIn);
1610
+ } else if (_context.t0 && _context.t0.code >= 500 && _context.t0.code < 600 && _this2._enableSessionCaching) {
1611
+ // Temporary fix: 30 seconds cache to limit number of calls when service is unavailable
1612
+ _this2.sessionStorageCache.set(HAS_SESSION_CACHE_KEY, {
1613
+ error: _context.t0
1614
+ }, 30 * 1000);
1610
1615
  }
1611
1616
  throw _context.t0;
1612
1617
  case 15:
@@ -12165,11 +12170,11 @@ function emulate(global) {
12165
12170
 
12166
12171
  "use strict";
12167
12172
  __webpack_require__.r(__webpack_exports__);
12168
- // Automatically generated in 'npm version' by scripts/genversion.js
12173
+ // Version is bumped automatically by release-please. See release-please-config.json.
12169
12174
 
12170
12175
 
12171
12176
 
12172
- var version = '5.2.6';
12177
+ var version = '5.2.7'; // x-release-please-version
12173
12178
  /* harmony default export */ __webpack_exports__["default"] = (version);
12174
12179
 
12175
12180
  /***/ }),