@amedia/user 0.14.143 → 0.14.145
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 +1 -0
- package/dist/personas.js +1 -0
- package/dist/user.d.ts +6 -2
- package/package.json +10 -10
package/README.md
CHANGED
|
@@ -65,6 +65,7 @@ Attributes are data directly related to the user, with the exception of access.
|
|
|
65
65
|
| access | Array<string> | Users access on current site (list of access features) |
|
|
66
66
|
| extraData | Record<string,unknown> | Data that has been modelled about the user (gender, ad segments etc. from Nebula) |
|
|
67
67
|
| privacyPreferences | [PrivacyPreferences](https://github.com/amedia/amedia-user-js/blob/master/src/types.ts#L16) | Privacy preferences set on Min aID. |
|
|
68
|
+
| sessionTrackingKey | string | Tracking key for the user session |
|
|
68
69
|
|
|
69
70
|
Attributes are requested by calling `.withAttributes(attributes: Array<string>)` on a `UserDataRequest` with a list of the attributes you need.
|
|
70
71
|
|
package/dist/personas.js
CHANGED
package/dist/user.d.ts
CHANGED
|
@@ -6,11 +6,13 @@ type UserAttributes = {
|
|
|
6
6
|
name: string | null;
|
|
7
7
|
trackingKey: string | null;
|
|
8
8
|
avatar: string | null;
|
|
9
|
+
/** @deprecated use data from [@amedia/user-datapoints](https://github.com/amedia/amedia-user-datapoints) instead */
|
|
9
10
|
extraData: {
|
|
10
11
|
[index: string]: unknown;
|
|
11
12
|
};
|
|
12
13
|
access: AccessFeatures;
|
|
13
14
|
privacyPreferences: PrivacyPreferences | null;
|
|
15
|
+
sessionTrackingKey: string | null;
|
|
14
16
|
};
|
|
15
17
|
type State = {
|
|
16
18
|
isLoggedIn: boolean;
|
|
@@ -105,9 +107,11 @@ declare class PaywallUnlockRequest {
|
|
|
105
107
|
private requestedAccessFeatures;
|
|
106
108
|
private reload;
|
|
107
109
|
private requestedUrl;
|
|
108
|
-
private siteDomain;
|
|
109
110
|
constructor(requestedAccessFeatures?: string[]);
|
|
110
|
-
|
|
111
|
+
/**
|
|
112
|
+
* @deprecated Use SiteAccessRequest to check for access on another site.
|
|
113
|
+
*/
|
|
114
|
+
withSiteDomain(siteDomain: string): this;
|
|
111
115
|
/**
|
|
112
116
|
* @deprecated Required now. Set in constructor
|
|
113
117
|
*/
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@amedia/user",
|
|
3
|
-
"version": "0.14.
|
|
3
|
+
"version": "0.14.145",
|
|
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,17 +49,17 @@
|
|
|
49
49
|
"ts-deepmerge": "7.0.3"
|
|
50
50
|
},
|
|
51
51
|
"devDependencies": {
|
|
52
|
-
"@amedia/eslint-config": "4.0.
|
|
53
|
-
"@amedia/kragl": "5.0.
|
|
52
|
+
"@amedia/eslint-config": "4.0.5",
|
|
53
|
+
"@amedia/kragl": "5.0.7",
|
|
54
54
|
"@amedia/prettier-config": "2.0.1",
|
|
55
55
|
"@changesets/changelog-github": "0.5.1",
|
|
56
|
-
"@changesets/cli": "2.29.
|
|
57
|
-
"@eik/esbuild-plugin": "
|
|
56
|
+
"@changesets/cli": "2.29.5",
|
|
57
|
+
"@eik/esbuild-plugin": "2.0.3",
|
|
58
58
|
"@types/jest": "29.5.14",
|
|
59
|
-
"@types/node": "22.15.
|
|
60
|
-
"concurrently": "9.
|
|
59
|
+
"@types/node": "22.15.21",
|
|
60
|
+
"concurrently": "9.2.0",
|
|
61
61
|
"cors": "2.8.5",
|
|
62
|
-
"esbuild": "0.25.
|
|
62
|
+
"esbuild": "0.25.5",
|
|
63
63
|
"express": "4.21.2",
|
|
64
64
|
"jest": "29.7.0",
|
|
65
65
|
"jest-environment-jsdom": "29.7.0",
|
|
@@ -67,9 +67,9 @@
|
|
|
67
67
|
"jest-fetch-mock": "3.0.3",
|
|
68
68
|
"mockdate": "3.0.5",
|
|
69
69
|
"npm-run-all": "4.1.5",
|
|
70
|
-
"rollup": "4.
|
|
70
|
+
"rollup": "4.44.1",
|
|
71
71
|
"rollup-plugin-dts": "6.2.1",
|
|
72
|
-
"ts-jest": "29.
|
|
72
|
+
"ts-jest": "29.4.0",
|
|
73
73
|
"tslib": "2.8.1",
|
|
74
74
|
"typescript": "5.8.3"
|
|
75
75
|
}
|