@amedia/user 0.14.108 → 0.14.109
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 +11 -1
- package/package.json +3 -3
package/README.md
CHANGED
|
@@ -217,11 +217,21 @@ new UserDataRequest()
|
|
|
217
217
|
|
|
218
218
|
This may also be lowered below the default, but network request do take some time, even on fast networks, so don't shoot your app in the foot by lowering it too much.
|
|
219
219
|
|
|
220
|
+
##### Emergency mode
|
|
221
|
+
|
|
222
|
+
To avoid hanging on timeout, fetch rejects with `EmergencyModeError`, when a relevant emergency mode is active.
|
|
223
|
+
If you receive this error, there will be no user data available.
|
|
224
|
+
Your app should act accordingly, eg:
|
|
225
|
+
|
|
226
|
+
- Render non personalized
|
|
227
|
+
- Show placeholder with an error message
|
|
228
|
+
- Not rendering at all
|
|
229
|
+
|
|
220
230
|
## Actions
|
|
221
231
|
|
|
222
232
|
### `getLoginUrl({requestedUrl: string context: string}): string`
|
|
223
233
|
|
|
224
|
-
Builds and
|
|
234
|
+
Builds and return the aID login URL. See `goToLoginPage` for details
|
|
225
235
|
|
|
226
236
|
### `goToLoginPage({requestedUrl: string context: string}): void`
|
|
227
237
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@amedia/user",
|
|
3
|
-
"version": "0.14.
|
|
3
|
+
"version": "0.14.109",
|
|
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)",
|
|
@@ -57,7 +57,7 @@
|
|
|
57
57
|
"@types/node": "^20.3.1",
|
|
58
58
|
"concurrently": "^8.2.0",
|
|
59
59
|
"cors": "^2.8.5",
|
|
60
|
-
"esbuild": "0.18.
|
|
60
|
+
"esbuild": "0.18.2",
|
|
61
61
|
"express": "^4.18.2",
|
|
62
62
|
"jest": "^29.5.0",
|
|
63
63
|
"jest-environment-jsdom": "^29.5.0",
|
|
@@ -70,6 +70,6 @@
|
|
|
70
70
|
"rollup-plugin-dts": "5.3.0",
|
|
71
71
|
"ts-jest": "^29.1.0",
|
|
72
72
|
"tslib": "^2.5.3",
|
|
73
|
-
"typescript": "^5.
|
|
73
|
+
"typescript": "^5.1.3"
|
|
74
74
|
}
|
|
75
75
|
}
|