@sudoplatform/sudo-user 10.0.1 → 11.0.0
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/docs/assets/highlight.css +2 -2
- package/docs/assets/main.js +4 -2
- package/docs/assets/search.js +1 -1
- package/docs/assets/style.css +446 -610
- package/docs/classes/AlreadyRegisteredError.html +163 -8
- package/docs/classes/DefaultSudoUserClient.html +568 -55
- package/docs/classes/IdentityServiceConfigNotFoundError.html +163 -8
- package/docs/classes/LocalAuthenticationProvider.html +131 -12
- package/docs/classes/TESTAuthenticationProvider.html +146 -11
- package/docs/index.html +47 -2
- package/docs/interfaces/AuthenticationProvider.html +89 -6
- package/docs/interfaces/AuthenticationTokens.html +97 -7
- package/docs/interfaces/SudoUserClient.html +431 -78
- package/docs/modules.html +62 -1
- package/lib/client/apiClient.js +9 -25
- package/lib/core/auth-store.js +1 -1
- package/lib/gen/graphql-types.d.ts +5 -4
- package/lib/user/auth.js +1 -3
- package/lib/user/identity-provider.d.ts +7 -0
- package/lib/user/identity-provider.js +32 -13
- package/lib/user/user-client-interface.d.ts +4 -0
- package/lib/user/user-client.d.ts +1 -0
- package/lib/user/user-client.js +33 -21
- package/package.json +54 -46
- package/docs/assets/icons.css +0 -1043
- package/docs/assets/icons.png +0 -0
- package/docs/assets/icons@2x.png +0 -0
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@sudoplatform/sudo-user",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "11.0.0",
|
|
4
4
|
"author": "Anonyome Labs, Inc.",
|
|
5
5
|
"repository": {
|
|
6
6
|
"type": "git",
|
|
@@ -8,6 +8,7 @@
|
|
|
8
8
|
},
|
|
9
9
|
"license": "Apache-2.0",
|
|
10
10
|
"scripts": {
|
|
11
|
+
"prepare": "husky install",
|
|
11
12
|
"lint": "yarn lint:eslint && yarn lint:prettier",
|
|
12
13
|
"lint:eslint": "eslint \"{bin,test,src}/**/*.{ts,tsx}\"",
|
|
13
14
|
"lint:prettier": "prettier -l \"{bin,test,src}/**/*.{js,json,jsx,ts,tsx}\"",
|
|
@@ -32,69 +33,76 @@
|
|
|
32
33
|
"./lib/runtimes/node/node-crypto.js": "./lib/runtimes/browser/browser-crypto.js"
|
|
33
34
|
},
|
|
34
35
|
"dependencies": {
|
|
35
|
-
"@aws-sdk/client-cognito-identity-provider": "^3.
|
|
36
|
-
"@graphql-typed-document-node/core": "^3.1.
|
|
37
|
-
"@sudoplatform/sudo-web-crypto-provider": "^
|
|
36
|
+
"@aws-sdk/client-cognito-identity-provider": "^3.131.0",
|
|
37
|
+
"@graphql-typed-document-node/core": "^3.1.1",
|
|
38
|
+
"@sudoplatform/sudo-web-crypto-provider": "^6.0.0",
|
|
38
39
|
"amazon-cognito-auth-js": "^1.3.3",
|
|
39
40
|
"apollo-cache-inmemory": "^1.6.6",
|
|
40
|
-
"
|
|
41
|
-
"
|
|
42
|
-
"
|
|
43
|
-
"graphql": "^15.6.1",
|
|
41
|
+
"aws-appsync": "^4.1.7",
|
|
42
|
+
"fp-ts": "^2.12.1",
|
|
43
|
+
"graphql": "^15.8.0",
|
|
44
44
|
"io-ts": "^2.2.16",
|
|
45
45
|
"jsonwebtoken": "^8.5.1",
|
|
46
46
|
"lodash": "^4.17.21",
|
|
47
|
-
"monocle-ts": "^2.3.
|
|
48
|
-
"newtype-ts": "^0.3.
|
|
49
|
-
"tslib": "^2.
|
|
47
|
+
"monocle-ts": "^2.3.13",
|
|
48
|
+
"newtype-ts": "^0.3.5",
|
|
49
|
+
"tslib": "^2.4.0",
|
|
50
50
|
"uuid": "^8.3.2"
|
|
51
51
|
},
|
|
52
52
|
"resolutions": {
|
|
53
53
|
"apollo-cache-inmemory": "^1.6.6",
|
|
54
|
-
"
|
|
54
|
+
"apollo-client": "^2.6.10",
|
|
55
|
+
"apollo-link": "^1.2.14",
|
|
56
|
+
"apollo-link-http": "^1.5.17",
|
|
57
|
+
"@graphql-codegen/**/ansi-regex": "^5.0.1",
|
|
58
|
+
"cross-fetch": "^3.1.5",
|
|
59
|
+
"node-fetch": "^2.6.7",
|
|
60
|
+
"minimist": "^1.2.6",
|
|
61
|
+
"undici": "^5.5.1",
|
|
62
|
+
"got": "^11.8.5"
|
|
55
63
|
},
|
|
56
64
|
"devDependencies": {
|
|
57
|
-
"@babel/cli": "^7.
|
|
58
|
-
"@babel/core": "^7.
|
|
59
|
-
"@babel/plugin-proposal-class-properties": "^7.
|
|
60
|
-
"@babel/plugin-proposal-private-methods": "^7.
|
|
61
|
-
"@babel/preset-env": "^7.
|
|
62
|
-
"@babel/preset-typescript": "^7.
|
|
63
|
-
"@graphql-codegen/add": "^3.
|
|
64
|
-
"@graphql-codegen/cli": "^2.
|
|
65
|
-
"@graphql-codegen/plugin-helpers": "^2.
|
|
66
|
-
"@graphql-codegen/typed-document-node": "^2.
|
|
67
|
-
"@graphql-codegen/typescript": "^2.2
|
|
68
|
-
"@graphql-codegen/typescript-operations": "^2.
|
|
65
|
+
"@babel/cli": "^7.18.9",
|
|
66
|
+
"@babel/core": "^7.18.9",
|
|
67
|
+
"@babel/plugin-proposal-class-properties": "^7.18.6",
|
|
68
|
+
"@babel/plugin-proposal-private-methods": "^7.18.6",
|
|
69
|
+
"@babel/preset-env": "^7.18.9",
|
|
70
|
+
"@babel/preset-typescript": "^7.18.6",
|
|
71
|
+
"@graphql-codegen/add": "^3.2.0",
|
|
72
|
+
"@graphql-codegen/cli": "^2.9.1",
|
|
73
|
+
"@graphql-codegen/plugin-helpers": "^2.6.0",
|
|
74
|
+
"@graphql-codegen/typed-document-node": "^2.3.2",
|
|
75
|
+
"@graphql-codegen/typescript": "^2.7.2",
|
|
76
|
+
"@graphql-codegen/typescript-operations": "^2.5.2",
|
|
69
77
|
"@graphql-typed-document-node/apollo-client-2": "^1.0.0",
|
|
70
|
-
"@sudoplatform/sudo-common": "^
|
|
78
|
+
"@sudoplatform/sudo-common": "^7.0.2",
|
|
71
79
|
"@types/amazon-cognito-auth-js": "^1.3.0",
|
|
72
|
-
"@types/firefox-webext-browser": "^
|
|
73
|
-
"@types/jest": "^
|
|
74
|
-
"@types/jsonwebtoken": "^8.5.
|
|
75
|
-
"@types/lodash": "^4.14.
|
|
76
|
-
"@types/node": "^
|
|
77
|
-
"@types/uuid": "^8.3.
|
|
78
|
-
"@typescript-eslint/eslint-plugin": "^5.
|
|
79
|
-
"@typescript-eslint/parser": "^5.
|
|
80
|
+
"@types/firefox-webext-browser": "^94.0.1",
|
|
81
|
+
"@types/jest": "^28.1.6",
|
|
82
|
+
"@types/jsonwebtoken": "^8.5.8",
|
|
83
|
+
"@types/lodash": "^4.14.182",
|
|
84
|
+
"@types/node": "^16.11.45",
|
|
85
|
+
"@types/uuid": "^8.3.4",
|
|
86
|
+
"@typescript-eslint/eslint-plugin": "^5.30.7",
|
|
87
|
+
"@typescript-eslint/parser": "^5.30.7",
|
|
80
88
|
"apollo-client": "^2.6.10",
|
|
81
|
-
"eslint": "^8.0
|
|
82
|
-
"eslint-config-prettier": "^8.
|
|
83
|
-
"eslint-plugin-import": "^2.
|
|
84
|
-
"eslint-plugin-prettier": "^4.
|
|
89
|
+
"eslint": "^8.20.0",
|
|
90
|
+
"eslint-config-prettier": "^8.5.0",
|
|
91
|
+
"eslint-plugin-import": "^2.26.0",
|
|
92
|
+
"eslint-plugin-prettier": "^4.2.1",
|
|
93
|
+
"husky": "^8.0.1",
|
|
85
94
|
"isomorphic-fetch": "^3.0.0",
|
|
86
|
-
"
|
|
87
|
-
"jest": "
|
|
88
|
-
"prettier": "^2.
|
|
89
|
-
"
|
|
90
|
-
"subscriptions-transport-ws": "^0.9.19",
|
|
95
|
+
"jest": "^28.1.3",
|
|
96
|
+
"jest-environment-node": "^28.1.3",
|
|
97
|
+
"prettier": "^2.7.1",
|
|
98
|
+
"subscriptions-transport-ws": "^0.11.0",
|
|
91
99
|
"ts-mockito": "^2.6.1",
|
|
92
|
-
"typedoc": "^0.
|
|
93
|
-
"typescript": "^4.
|
|
100
|
+
"typedoc": "^0.23.9",
|
|
101
|
+
"typescript": "^4.7.4",
|
|
94
102
|
"websocket": "^1.0.34"
|
|
95
103
|
},
|
|
96
104
|
"peerDependencies": {
|
|
97
|
-
"@sudoplatform/sudo-common": "^
|
|
98
|
-
"io-ts": "^2.2.
|
|
105
|
+
"@sudoplatform/sudo-common": "^7.0.2",
|
|
106
|
+
"io-ts": "^2.2.16"
|
|
99
107
|
}
|
|
100
108
|
}
|