@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/README.md +13 -14
- package/es5/global.js +8 -3
- 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 +7 -2
- 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 +8 -3
- 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 +2 -2
- package/es5/monetization.js.map +1 -1
- package/es5/monetization.min.js +1 -1
- package/es5/monetization.min.js.map +1 -1
- package/es5/payment.js +1 -1
- package/es5/payment.js.map +1 -1
- package/es5/payment.min.js.map +1 -1
- package/package.json +3 -6
- package/src/identity.js +3 -0
- package/src/payment.d.ts +1 -1
- package/src/payment.js +1 -1
- package/src/version.js +2 -2
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@schibsted/account-sdk-browser",
|
|
3
|
-
"version": "5.2.
|
|
3
|
+
"version": "5.2.7",
|
|
4
4
|
"description": "Schibsted account SDK for browsers",
|
|
5
5
|
"main": "index.js",
|
|
6
6
|
"type": "module",
|
|
@@ -11,10 +11,7 @@
|
|
|
11
11
|
"lint": "eslint .",
|
|
12
12
|
"lint:fix": "eslint . --fix",
|
|
13
13
|
"test": "jest",
|
|
14
|
-
"cover": "jest --coverage"
|
|
15
|
-
"preversion": "npm run lint && npm test",
|
|
16
|
-
"version": "node ./scripts/genversion.js && git add src/version.js",
|
|
17
|
-
"postversion": "git push && git push --tags"
|
|
14
|
+
"cover": "jest --coverage"
|
|
18
15
|
},
|
|
19
16
|
"author": "",
|
|
20
17
|
"license": "MIT",
|
|
@@ -40,7 +37,7 @@
|
|
|
40
37
|
},
|
|
41
38
|
"repository": {
|
|
42
39
|
"type": "git",
|
|
43
|
-
"url": "git://
|
|
40
|
+
"url": "git://schibsted.ghe.com/user-identity/account-sdk-browser.git"
|
|
44
41
|
},
|
|
45
42
|
"babel": {
|
|
46
43
|
"presets": [
|
package/src/identity.js
CHANGED
|
@@ -606,6 +606,9 @@ export class Identity extends EventEmitter {
|
|
|
606
606
|
if (err && err.code === 400 && this._enableSessionCaching) {
|
|
607
607
|
const expiresIn = 1000 * (err.expiresIn || 300);
|
|
608
608
|
this.sessionStorageCache.set(HAS_SESSION_CACHE_KEY, { error: err }, expiresIn);
|
|
609
|
+
} else if (err && err.code >= 500 && err.code < 600 && this._enableSessionCaching) {
|
|
610
|
+
// Temporary fix: 30 seconds cache to limit number of calls when service is unavailable
|
|
611
|
+
this.sessionStorageCache.set(HAS_SESSION_CACHE_KEY, { error: err }, 30 * 1000);
|
|
609
612
|
}
|
|
610
613
|
throw err;
|
|
611
614
|
}
|
package/src/payment.d.ts
CHANGED
|
@@ -74,7 +74,7 @@ export class Payment {
|
|
|
74
74
|
*/
|
|
75
75
|
redeemUrl(voucherCode: string, redirectUri?: string): string;
|
|
76
76
|
/**
|
|
77
|
-
* @deprecated https://
|
|
77
|
+
* @deprecated https://schibsted.ghe.com/user-identity/account-sdk-browser/issues/94
|
|
78
78
|
*
|
|
79
79
|
* Get the url for the paylink purchase
|
|
80
80
|
* @todo Check working-ness for BFF + SPiD
|
package/src/payment.js
CHANGED
|
@@ -129,7 +129,7 @@ export class Payment {
|
|
|
129
129
|
}
|
|
130
130
|
|
|
131
131
|
/**
|
|
132
|
-
* @deprecated https://
|
|
132
|
+
* @deprecated https://schibsted.ghe.com/user-identity/account-sdk-browser/issues/94
|
|
133
133
|
*
|
|
134
134
|
* Get the url for the paylink purchase
|
|
135
135
|
* @todo Check working-ness for BFF + SPiD
|
package/src/version.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
//
|
|
1
|
+
// Version is bumped automatically by release-please. See release-please-config.json.
|
|
2
2
|
|
|
3
3
|
'use strict'
|
|
4
|
-
const version = '5.2.
|
|
4
|
+
const version = '5.2.7'; // x-release-please-version
|
|
5
5
|
export default version;
|