@amedia/user 0.14.105 → 0.14.107
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/dist/user.d.ts +6 -1
- package/dist/user.js +8 -0
- package/package.json +7 -7
package/dist/user.d.ts
CHANGED
|
@@ -122,6 +122,11 @@ declare class PaywallError extends Error {
|
|
|
122
122
|
constructor(message: string, code: string);
|
|
123
123
|
}
|
|
124
124
|
|
|
125
|
+
declare class EmergencyModeError extends Error {
|
|
126
|
+
activeEmergencyModes: string[];
|
|
127
|
+
constructor(message?: string);
|
|
128
|
+
}
|
|
129
|
+
|
|
125
130
|
/** @deprecated Should be deleted when removing saveStorage and updateStorage */
|
|
126
131
|
type Storage = Record<string, Record<string, string>>;
|
|
127
132
|
type LoginPageParams = {
|
|
@@ -155,4 +160,4 @@ declare const aidUrls: {
|
|
|
155
160
|
sites: URL;
|
|
156
161
|
};
|
|
157
162
|
|
|
158
|
-
export { FetchTimeoutError, PaywallError, PaywallUnlockRequest, PaywallUnlockResponse, PrivacyPreferences, SiteAccessRequest, SiteAccessResponse, State, UserAttributes, UserDataRequest, aidUrls, getLoginUrl, goToLoginPage, logout, requestDataRefresh, saveStorage, updateStorage };
|
|
163
|
+
export { EmergencyModeError, FetchTimeoutError, PaywallError, PaywallUnlockRequest, PaywallUnlockResponse, PrivacyPreferences, SiteAccessRequest, SiteAccessResponse, State, UserAttributes, UserDataRequest, aidUrls, getLoginUrl, goToLoginPage, logout, requestDataRefresh, saveStorage, updateStorage };
|
package/dist/user.js
CHANGED
|
@@ -118,6 +118,14 @@ export class FetchTimeoutError extends Error {
|
|
|
118
118
|
}
|
|
119
119
|
}
|
|
120
120
|
|
|
121
|
+
export class EmergencyModeError extends Error {
|
|
122
|
+
constructor(props) {
|
|
123
|
+
super(props);
|
|
124
|
+
this.activeEmergencyModes = [];
|
|
125
|
+
notImplemented();
|
|
126
|
+
}
|
|
127
|
+
}
|
|
128
|
+
|
|
121
129
|
export class PaywallUnlockRequest {
|
|
122
130
|
requestedAccessFeatures = ['newspaper'];
|
|
123
131
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@amedia/user",
|
|
3
|
-
"version": "0.14.
|
|
3
|
+
"version": "0.14.107",
|
|
4
4
|
"description": "Client lib for working with aID user and associated data",
|
|
5
5
|
"repository": "https://github.com/amedia/amedia-user-js",
|
|
6
6
|
"author": "Amedia Utvikling (ID og data)",
|
|
@@ -45,19 +45,19 @@
|
|
|
45
45
|
"dependencies": {
|
|
46
46
|
"@amedia/browserid": "^1.0.17",
|
|
47
47
|
"@amedia/frontend-rpc": "^0.0.12",
|
|
48
|
-
"runtypes": "^6.
|
|
48
|
+
"runtypes": "^6.7.0",
|
|
49
49
|
"ts-deepmerge": "^6.0.3"
|
|
50
50
|
},
|
|
51
51
|
"devDependencies": {
|
|
52
52
|
"@amedia/kragl": "^1.3.0",
|
|
53
53
|
"@changesets/changelog-github": "^0.4.8",
|
|
54
54
|
"@changesets/cli": "^2.26.1",
|
|
55
|
-
"@eik/esbuild-plugin": "^1.1.
|
|
55
|
+
"@eik/esbuild-plugin": "^1.1.34",
|
|
56
56
|
"@types/jest": "^29.5.1",
|
|
57
|
-
"@types/node": "^
|
|
57
|
+
"@types/node": "^20.3.0",
|
|
58
58
|
"concurrently": "^8.0.1",
|
|
59
59
|
"cors": "^2.8.5",
|
|
60
|
-
"esbuild": "0.
|
|
60
|
+
"esbuild": "0.18.1",
|
|
61
61
|
"express": "^4.18.2",
|
|
62
62
|
"jest": "^29.5.0",
|
|
63
63
|
"jest-environment-jsdom": "^29.5.0",
|
|
@@ -66,10 +66,10 @@
|
|
|
66
66
|
"mockdate": "^3.0.5",
|
|
67
67
|
"npm-run-all": "^4.1.5",
|
|
68
68
|
"prettier": "^2.8.8",
|
|
69
|
-
"rollup": "3.
|
|
69
|
+
"rollup": "3.25.1",
|
|
70
70
|
"rollup-plugin-dts": "5.3.0",
|
|
71
71
|
"ts-jest": "^29.1.0",
|
|
72
|
-
"tslib": "^2.5.
|
|
72
|
+
"tslib": "^2.5.3",
|
|
73
73
|
"typescript": "^5.0.4"
|
|
74
74
|
}
|
|
75
75
|
}
|