@amedia/user 0.14.123 → 0.14.125
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 +2 -2
- package/dist/user.d.ts +2 -3
- package/package.json +8 -8
package/README.md
CHANGED
|
@@ -70,9 +70,9 @@ Attributes are requested by calling `.withAttributes(attributes: Array<string>)`
|
|
|
70
70
|
|
|
71
71
|
In the response, `attributes` is an object where each requested attribute is an attribute. So you can get the name by accessing `attributes.name` for example.
|
|
72
72
|
|
|
73
|
-
NOTE:
|
|
73
|
+
NOTE: Don't request attributes you don't intend to use. This previously had a latency-cost attached to it. This is no longer the case. However, it's best not to keep user data around where it's not needed.
|
|
74
74
|
|
|
75
|
-
NOTE2: If you need to know if the current user is an employee, you are encouraged to use data from `extraData` rather than `access` as `extraData` is quicker.
|
|
75
|
+
NOTE2: ~If you need to know if the current user is an employee, you are encouraged to use data from `extraData` rather than `access` as `extraData` is quicker.~ This is not the case anymore. `access` is now quicker to use and more precise.
|
|
76
76
|
|
|
77
77
|
#### Storage
|
|
78
78
|
|
package/dist/user.d.ts
CHANGED
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import * as rt from 'runtypes';
|
|
2
2
|
|
|
3
|
+
type AccessFeatures = string[];
|
|
3
4
|
type UserAttributes = {
|
|
4
5
|
uuid: string | null;
|
|
5
6
|
name: string | null;
|
|
@@ -8,7 +9,7 @@ type UserAttributes = {
|
|
|
8
9
|
extraData: {
|
|
9
10
|
[index: string]: unknown;
|
|
10
11
|
};
|
|
11
|
-
access:
|
|
12
|
+
access: AccessFeatures;
|
|
12
13
|
privacyPreferences: PrivacyPreferences | null;
|
|
13
14
|
};
|
|
14
15
|
type State = {
|
|
@@ -17,8 +18,6 @@ type State = {
|
|
|
17
18
|
};
|
|
18
19
|
type PrivacyPreferences = {
|
|
19
20
|
allowResearchUsage: boolean;
|
|
20
|
-
connectWithSurveys: boolean;
|
|
21
|
-
personalizedAds: boolean;
|
|
22
21
|
personalizedContent: boolean;
|
|
23
22
|
};
|
|
24
23
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@amedia/user",
|
|
3
|
-
"version": "0.14.
|
|
3
|
+
"version": "0.14.125",
|
|
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)",
|
|
@@ -46,19 +46,19 @@
|
|
|
46
46
|
"@amedia/browserid": "1.0.17",
|
|
47
47
|
"@amedia/frontend-rpc": "0.0.12",
|
|
48
48
|
"runtypes": "6.7.0",
|
|
49
|
-
"ts-deepmerge": "
|
|
49
|
+
"ts-deepmerge": "7.0.0"
|
|
50
50
|
},
|
|
51
51
|
"devDependencies": {
|
|
52
52
|
"@amedia/kragl": "3.0.0",
|
|
53
53
|
"@amedia/prettier-config": "1.0.6",
|
|
54
54
|
"@changesets/changelog-github": "0.5.0",
|
|
55
|
-
"@changesets/cli": "2.27.
|
|
55
|
+
"@changesets/cli": "2.27.7",
|
|
56
56
|
"@eik/esbuild-plugin": "1.1.47",
|
|
57
57
|
"@types/jest": "29.5.12",
|
|
58
|
-
"@types/node": "
|
|
58
|
+
"@types/node": "22.1.0",
|
|
59
59
|
"concurrently": "8.2.2",
|
|
60
60
|
"cors": "2.8.5",
|
|
61
|
-
"esbuild": "0.
|
|
61
|
+
"esbuild": "0.23.0",
|
|
62
62
|
"express": "4.19.2",
|
|
63
63
|
"jest": "29.7.0",
|
|
64
64
|
"jest-environment-jsdom": "29.7.0",
|
|
@@ -66,10 +66,10 @@
|
|
|
66
66
|
"jest-fetch-mock": "3.0.3",
|
|
67
67
|
"mockdate": "3.0.5",
|
|
68
68
|
"npm-run-all": "4.1.5",
|
|
69
|
-
"rollup": "4.
|
|
69
|
+
"rollup": "4.20.0",
|
|
70
70
|
"rollup-plugin-dts": "6.1.1",
|
|
71
|
-
"ts-jest": "29.1.
|
|
71
|
+
"ts-jest": "29.1.5",
|
|
72
72
|
"tslib": "2.6.3",
|
|
73
|
-
"typescript": "5.4
|
|
73
|
+
"typescript": "5.5.4"
|
|
74
74
|
}
|
|
75
75
|
}
|