@amedia/user 0.14.145 → 0.14.147
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/dist/user.d.ts +9 -8
- package/package.json +19 -18
package/dist/user.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import * as
|
|
1
|
+
import * as v from 'valibot';
|
|
2
2
|
|
|
3
3
|
type AccessFeatures = string[];
|
|
4
4
|
type UserAttributes = {
|
|
@@ -16,6 +16,7 @@ type UserAttributes = {
|
|
|
16
16
|
};
|
|
17
17
|
type State = {
|
|
18
18
|
isLoggedIn: boolean;
|
|
19
|
+
isCircuitBreakerTripped?: boolean;
|
|
19
20
|
emergencyMode?: string[];
|
|
20
21
|
};
|
|
21
22
|
type PrivacyPreferences = {
|
|
@@ -76,13 +77,13 @@ declare enum AffiliationType {
|
|
|
76
77
|
FAMILY = "family",
|
|
77
78
|
SUBSCRIPTION = "subscription"
|
|
78
79
|
}
|
|
79
|
-
declare const PrimarySiteSchema:
|
|
80
|
-
domain:
|
|
81
|
-
name:
|
|
82
|
-
affiliation:
|
|
83
|
-
affiliations:
|
|
84
|
-
},
|
|
85
|
-
type PrimarySite =
|
|
80
|
+
declare const PrimarySiteSchema: v.ObjectSchema<{
|
|
81
|
+
readonly domain: v.StringSchema<undefined>;
|
|
82
|
+
readonly name: v.StringSchema<undefined>;
|
|
83
|
+
readonly affiliation: v.LiteralSchema<AffiliationType.ACCESS, undefined>;
|
|
84
|
+
readonly affiliations: v.ArraySchema<v.UnionSchema<[v.LiteralSchema<AffiliationType.ACCESS, undefined>, v.LiteralSchema<AffiliationType.FAMILY, undefined>, v.LiteralSchema<AffiliationType.SUBSCRIPTION, undefined>], undefined>, undefined>;
|
|
85
|
+
}, undefined>;
|
|
86
|
+
type PrimarySite = v.InferOutput<typeof PrimarySiteSchema>;
|
|
86
87
|
|
|
87
88
|
type SiteAccessResponse = {
|
|
88
89
|
isLoggedIn: boolean;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@amedia/user",
|
|
3
|
-
"version": "0.14.
|
|
3
|
+
"version": "0.14.147",
|
|
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)",
|
|
@@ -32,9 +32,9 @@
|
|
|
32
32
|
"lint": "kragl lint",
|
|
33
33
|
"lint-fix": "kragl lint --fix",
|
|
34
34
|
"clean-dist": "rm -rf ./dist",
|
|
35
|
-
"build": "npm install && node build.
|
|
35
|
+
"build": "npm install && node --experimental-strip-types build.ts & npm run build:types",
|
|
36
36
|
"build:types": "npx rollup -c ./types.js",
|
|
37
|
-
"dev": "concurrently --kill-others \"node
|
|
37
|
+
"dev": "concurrently --kill-others \"node --experimental-strip-types --watch-path=./src build.ts\" \"node --experimental-strip-types server.ts \"",
|
|
38
38
|
"typings": "tsc --noEmit --resolveJsonModule",
|
|
39
39
|
"checkVersion": "node --experimental-json-modules checkVersion.js",
|
|
40
40
|
"stub-npmjs-package": "find ./dist -type f ! -name '*.d.ts' -delete && cp -v stubs/* dist/.",
|
|
@@ -43,31 +43,32 @@
|
|
|
43
43
|
"postpublish": "npm run build && npx @eik/cli publish"
|
|
44
44
|
},
|
|
45
45
|
"dependencies": {
|
|
46
|
-
"@amedia/browserid": "1.
|
|
47
|
-
"@amedia/frontend-rpc": "0.0.
|
|
48
|
-
"
|
|
49
|
-
"
|
|
46
|
+
"@amedia/browserid": "1.1.9",
|
|
47
|
+
"@amedia/frontend-rpc": "0.0.14",
|
|
48
|
+
"ts-deepmerge": "7.0.3",
|
|
49
|
+
"valibot": "1.1.0"
|
|
50
50
|
},
|
|
51
51
|
"devDependencies": {
|
|
52
|
-
"@amedia/eslint-config": "4.0.
|
|
53
|
-
"@amedia/kragl": "5.0.
|
|
52
|
+
"@amedia/eslint-config": "4.0.6",
|
|
53
|
+
"@amedia/kragl": "5.0.8",
|
|
54
54
|
"@amedia/prettier-config": "2.0.1",
|
|
55
55
|
"@changesets/changelog-github": "0.5.1",
|
|
56
56
|
"@changesets/cli": "2.29.5",
|
|
57
57
|
"@eik/esbuild-plugin": "2.0.3",
|
|
58
|
-
"@
|
|
59
|
-
"@
|
|
58
|
+
"@fastify/cors": "^11.0.1",
|
|
59
|
+
"@fastify/static": "^8.2.0",
|
|
60
|
+
"@types/jest": "30.0.0",
|
|
61
|
+
"@types/node": "24.0.10",
|
|
60
62
|
"concurrently": "9.2.0",
|
|
61
|
-
"
|
|
62
|
-
"
|
|
63
|
-
"
|
|
64
|
-
"jest": "
|
|
65
|
-
"jest-
|
|
66
|
-
"jest-extended": "4.0.2",
|
|
63
|
+
"esbuild": "0.25.6",
|
|
64
|
+
"fastify": "^5.4.0",
|
|
65
|
+
"jest": "30.0.4",
|
|
66
|
+
"jest-environment-jsdom": "30.0.4",
|
|
67
|
+
"jest-extended": "6.0.0",
|
|
67
68
|
"jest-fetch-mock": "3.0.3",
|
|
68
69
|
"mockdate": "3.0.5",
|
|
69
70
|
"npm-run-all": "4.1.5",
|
|
70
|
-
"rollup": "4.44.
|
|
71
|
+
"rollup": "4.44.2",
|
|
71
72
|
"rollup-plugin-dts": "6.2.1",
|
|
72
73
|
"ts-jest": "29.4.0",
|
|
73
74
|
"tslib": "2.8.1",
|