@amedia/user 0.14.61 → 0.14.63

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/dist/user.d.ts +7 -7
  2. package/package.json +8 -7
package/dist/user.d.ts CHANGED
@@ -1,6 +1,6 @@
1
1
  import * as rt from 'runtypes';
2
2
 
3
- declare type UserAttributes = {
3
+ type UserAttributes = {
4
4
  uuid: string | null;
5
5
  name: string | null;
6
6
  trackingKey: string | null;
@@ -11,18 +11,18 @@ declare type UserAttributes = {
11
11
  access: string[];
12
12
  privacyPreferences: PrivacyPreferences | null;
13
13
  };
14
- declare type State = {
14
+ type State = {
15
15
  isLoggedIn: boolean;
16
16
  emergencyMode?: string[];
17
17
  };
18
- declare type PrivacyPreferences = {
18
+ type PrivacyPreferences = {
19
19
  allowResearchUsage: boolean;
20
20
  connectWithSurveys: boolean;
21
21
  personalizedAds: boolean;
22
22
  personalizedContent: boolean;
23
23
  };
24
24
 
25
- declare type Millis = number;
25
+ type Millis = number;
26
26
  declare class UserDataRequest<UA extends UserAttributes, S extends {
27
27
  [index: string]: unknown;
28
28
  }, Attributes extends Array<keyof UA>, Namespaces extends Array<string>, SubscribeResponse extends Record<string, unknown> & {
@@ -64,9 +64,9 @@ declare const PrimarySiteSchema: rt.Record<{
64
64
  affiliation: rt.Literal<AffiliationType.ACCESS>;
65
65
  affiliations: rt.Array<rt.Union<[rt.Literal<AffiliationType.ACCESS>, rt.Literal<AffiliationType.FAMILY>, rt.Literal<AffiliationType.SUBSCRIPTION>]>, false>;
66
66
  }, false>;
67
- declare type PrimarySite = rt.Static<typeof PrimarySiteSchema>;
67
+ type PrimarySite = rt.Static<typeof PrimarySiteSchema>;
68
68
 
69
- declare type PaywallUnlockResponse = {
69
+ type PaywallUnlockResponse = {
70
70
  isLoggedIn: boolean;
71
71
  hasAccess: boolean;
72
72
  primarySite?: null | PrimarySite;
@@ -97,7 +97,7 @@ declare class PaywallError extends Error {
97
97
  constructor(message: string, code: string);
98
98
  }
99
99
 
100
- declare type Storage = Record<string, Record<string, string>>;
100
+ type Storage = Record<string, Record<string, string>>;
101
101
  /**
102
102
  * This will, if necessary, trigger a redirect to www.aid.no and return
103
103
  * to the requestedUrl if supplied or the current url before redirecting away if not.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@amedia/user",
3
- "version": "0.14.61",
3
+ "version": "0.14.63",
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,7 +46,7 @@
46
46
  "@amedia/browserid": "^1.0.17",
47
47
  "@amedia/frontend-rpc": "^0.0.12",
48
48
  "runtypes": "^6.6.0",
49
- "ts-deepmerge": "^4.0.0"
49
+ "ts-deepmerge": "^5.0.0"
50
50
  },
51
51
  "devDependencies": {
52
52
  "@amedia/kragl": "^1.2.3",
@@ -55,9 +55,10 @@
55
55
  "@eik/cli": "^2.0.22",
56
56
  "@eik/esbuild-plugin": "^1.1.23",
57
57
  "@types/jest": "^29.2.3",
58
- "concurrently": "^7.5.0",
58
+ "@types/node": "^18.11.9",
59
+ "concurrently": "^7.6.0",
59
60
  "cors": "^2.8.5",
60
- "esbuild": "0.15.14",
61
+ "esbuild": "0.15.15",
61
62
  "express": "^4.18.2",
62
63
  "jest": "^29.3.1",
63
64
  "jest-environment-jsdom": "^29.3.1",
@@ -65,11 +66,11 @@
65
66
  "jest-fetch-mock": "^3.0.3",
66
67
  "mockdate": "^3.0.5",
67
68
  "npm-run-all": "^4.1.5",
68
- "prettier": "^2.7.1",
69
- "rollup": "3.3.0",
69
+ "prettier": "^2.8.0",
70
+ "rollup": "3.4.0",
70
71
  "rollup-plugin-dts": "5.0.0",
71
72
  "ts-jest": "^29.0.3",
72
73
  "tslib": "^2.4.1",
73
- "typescript": "^4.8.4"
74
+ "typescript": "^4.9.3"
74
75
  }
75
76
  }