@amedia/user 0.14.107 → 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.
Files changed (2) hide show
  1. package/README.md +11 -1
  2. package/package.json +8 -8
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 returns the aID login URL. See `goToLoginPage` for details
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.107",
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)",
@@ -49,19 +49,19 @@
49
49
  "ts-deepmerge": "^6.0.3"
50
50
  },
51
51
  "devDependencies": {
52
- "@amedia/kragl": "^1.3.0",
52
+ "@amedia/kragl": "^2.0.0",
53
53
  "@changesets/changelog-github": "^0.4.8",
54
54
  "@changesets/cli": "^2.26.1",
55
55
  "@eik/esbuild-plugin": "^1.1.34",
56
- "@types/jest": "^29.5.1",
57
- "@types/node": "^20.3.0",
58
- "concurrently": "^8.0.1",
56
+ "@types/jest": "^29.5.2",
57
+ "@types/node": "^20.3.1",
58
+ "concurrently": "^8.2.0",
59
59
  "cors": "^2.8.5",
60
- "esbuild": "0.18.1",
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",
64
- "jest-extended": "^3.2.4",
64
+ "jest-extended": "^4.0.0",
65
65
  "jest-fetch-mock": "^3.0.3",
66
66
  "mockdate": "^3.0.5",
67
67
  "npm-run-all": "^4.1.5",
@@ -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.0.4"
73
+ "typescript": "^5.1.3"
74
74
  }
75
75
  }