@amedia/user 0.13.28 → 0.13.29

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/eik.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "user",
3
- "version": "0.13.28",
3
+ "version": "0.13.29",
4
4
  "server": "https://assets.acdn.no",
5
5
  "files": {
6
6
  "user.js": "./dist/index.esm.js",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@amedia/user",
3
- "version": "0.13.28",
3
+ "version": "0.13.29",
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)",
@@ -61,12 +61,16 @@ const debouncer = new Debouncer<string[], typeof EuropaSchema>(
61
61
  doFetch(`/api/europa/v1/me/${params.join(',')}`).then(async (response) => {
62
62
  const body = await response.text();
63
63
  if (!response.ok) {
64
- // TODO we should possibly extend Europa to say what param we're missing so we can ignore missing aid.session cookie
65
- if (response.status !== 400) {
64
+ if (response.status === 500 || response.status === 503) {
66
65
  log.error(
67
66
  `Could not get namespaces for: ${params}, status: ${response.status}`,
68
67
  { response, body }
69
68
  );
69
+ } else {
70
+ log.warn(
71
+ `Could not get namespaces for: ${params}, status: ${response.status}`,
72
+ { response, body }
73
+ );
70
74
  }
71
75
  return {};
72
76
  }