@sudoplatform/sudo-user 11.0.0 → 11.1.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.
|
@@ -37,8 +37,8 @@
|
|
|
37
37
|
<h3 class="tsd-index-heading">Properties</h3>
|
|
38
38
|
<div class="tsd-index-list"><a href="AlreadyRegisteredError.html#message" class="tsd-index-link tsd-kind-property tsd-parent-kind-class tsd-is-inherited tsd-is-external"><svg class="tsd-kind-icon" width="24" height="24" viewBox="0 0 24 24"><rect fill="var(--color-icon-background)" stroke="#FF984D" stroke-width="1.5" x="1" y="1" width="22" height="22" rx="12" id="icon-1024-path"></rect><path d="M9.354 16V7.24H12.174C12.99 7.24 13.638 7.476 14.118 7.948C14.606 8.412 14.85 9.036 14.85 9.82C14.85 10.604 14.606 11.232 14.118 11.704C13.638 12.168 12.99 12.4 12.174 12.4H10.434V16H9.354ZM10.434 11.428H12.174C12.646 11.428 13.022 11.284 13.302 10.996C13.59 10.7 13.734 10.308 13.734 9.82C13.734 9.324 13.59 8.932 13.302 8.644C13.022 8.356 12.646 8.212 12.174 8.212H10.434V11.428Z" fill="var(--color-text)" id="icon-1024-text"></path></svg><span>message</span></a>
|
|
39
39
|
<a href="AlreadyRegisteredError.html#name" class="tsd-index-link tsd-kind-property tsd-parent-kind-class tsd-is-inherited tsd-is-external"><svg class="tsd-kind-icon" width="24" height="24" viewBox="0 0 24 24"><use href="#icon-1024-path"></use><use href="#icon-1024-text"></use></svg><span>name</span></a>
|
|
40
|
-
<a href="AlreadyRegisteredError.html#stack" class="tsd-index-link tsd-kind-property tsd-parent-kind-class tsd-is-inherited tsd-is-external"><svg class="tsd-kind-icon" width="24" height="24" viewBox="0 0 24 24"><use href="#icon-1024-path"></use><use href="#icon-1024-text"></use></svg><span>stack
|
|
41
|
-
<a href="AlreadyRegisteredError.html#prepareStackTrace" class="tsd-index-link tsd-kind-property tsd-parent-kind-class tsd-is-inherited tsd-is-external"><svg class="tsd-kind-icon" width="24" height="24" viewBox="0 0 24 24"><use href="#icon-1024-path"></use><use href="#icon-1024-text"></use></svg><span>prepare<wbr/>Stack<wbr/>Trace
|
|
40
|
+
<a href="AlreadyRegisteredError.html#stack" class="tsd-index-link tsd-kind-property tsd-parent-kind-class tsd-is-inherited tsd-is-external"><svg class="tsd-kind-icon" width="24" height="24" viewBox="0 0 24 24"><use href="#icon-1024-path"></use><use href="#icon-1024-text"></use></svg><span>stack?</span></a>
|
|
41
|
+
<a href="AlreadyRegisteredError.html#prepareStackTrace" class="tsd-index-link tsd-kind-property tsd-parent-kind-class tsd-is-inherited tsd-is-external"><svg class="tsd-kind-icon" width="24" height="24" viewBox="0 0 24 24"><use href="#icon-1024-path"></use><use href="#icon-1024-text"></use></svg><span>prepare<wbr/>Stack<wbr/>Trace?</span></a>
|
|
42
42
|
<a href="AlreadyRegisteredError.html#stackTraceLimit" class="tsd-index-link tsd-kind-property tsd-parent-kind-class tsd-is-inherited tsd-is-external"><svg class="tsd-kind-icon" width="24" height="24" viewBox="0 0 24 24"><use href="#icon-1024-path"></use><use href="#icon-1024-text"></use></svg><span>stack<wbr/>Trace<wbr/>Limit</span></a>
|
|
43
43
|
</div></section>
|
|
44
44
|
<section class="tsd-index-section">
|
|
@@ -154,8 +154,8 @@
|
|
|
154
154
|
<li class="tsd-kind-constructor tsd-parent-kind-class"><a href="AlreadyRegisteredError.html#constructor" class="tsd-index-link"><svg class="tsd-kind-icon" width="24" height="24" viewBox="0 0 24 24"><use href="#icon-512-path"></use><use href="#icon-512-text"></use></svg>constructor</a></li>
|
|
155
155
|
<li class="tsd-kind-property tsd-parent-kind-class tsd-is-inherited tsd-is-external"><a href="AlreadyRegisteredError.html#message" class="tsd-index-link"><svg class="tsd-kind-icon" width="24" height="24" viewBox="0 0 24 24"><use href="#icon-1024-path"></use><use href="#icon-1024-text"></use></svg>message</a></li>
|
|
156
156
|
<li class="tsd-kind-property tsd-parent-kind-class tsd-is-inherited tsd-is-external"><a href="AlreadyRegisteredError.html#name" class="tsd-index-link"><svg class="tsd-kind-icon" width="24" height="24" viewBox="0 0 24 24"><use href="#icon-1024-path"></use><use href="#icon-1024-text"></use></svg>name</a></li>
|
|
157
|
-
<li class="tsd-kind-property tsd-parent-kind-class tsd-is-inherited tsd-is-external"><a href="AlreadyRegisteredError.html#stack" class="tsd-index-link"><svg class="tsd-kind-icon" width="24" height="24" viewBox="0 0 24 24"><use href="#icon-1024-path"></use><use href="#icon-1024-text"></use></svg>stack
|
|
158
|
-
<li class="tsd-kind-property tsd-parent-kind-class tsd-is-inherited tsd-is-external"><a href="AlreadyRegisteredError.html#prepareStackTrace" class="tsd-index-link"><svg class="tsd-kind-icon" width="24" height="24" viewBox="0 0 24 24"><use href="#icon-1024-path"></use><use href="#icon-1024-text"></use></svg>prepare<wbr/>Stack<wbr/>Trace
|
|
157
|
+
<li class="tsd-kind-property tsd-parent-kind-class tsd-is-inherited tsd-is-external"><a href="AlreadyRegisteredError.html#stack" class="tsd-index-link"><svg class="tsd-kind-icon" width="24" height="24" viewBox="0 0 24 24"><use href="#icon-1024-path"></use><use href="#icon-1024-text"></use></svg>stack?</a></li>
|
|
158
|
+
<li class="tsd-kind-property tsd-parent-kind-class tsd-is-inherited tsd-is-external"><a href="AlreadyRegisteredError.html#prepareStackTrace" class="tsd-index-link"><svg class="tsd-kind-icon" width="24" height="24" viewBox="0 0 24 24"><use href="#icon-1024-path"></use><use href="#icon-1024-text"></use></svg>prepare<wbr/>Stack<wbr/>Trace?</a></li>
|
|
159
159
|
<li class="tsd-kind-property tsd-parent-kind-class tsd-is-inherited tsd-is-external"><a href="AlreadyRegisteredError.html#stackTraceLimit" class="tsd-index-link"><svg class="tsd-kind-icon" width="24" height="24" viewBox="0 0 24 24"><use href="#icon-1024-path"></use><use href="#icon-1024-text"></use></svg>stack<wbr/>Trace<wbr/>Limit</a></li>
|
|
160
160
|
<li class="tsd-kind-method tsd-parent-kind-class tsd-is-inherited tsd-is-external"><a href="AlreadyRegisteredError.html#captureStackTrace" class="tsd-index-link"><svg class="tsd-kind-icon" width="24" height="24" viewBox="0 0 24 24"><use href="#icon-2048-path"></use><use href="#icon-2048-text"></use></svg>capture<wbr/>Stack<wbr/>Trace</a></li></ul></li></ul></nav></div></div>
|
|
161
161
|
<div class="container tsd-generator">
|
|
@@ -39,8 +39,8 @@ you are using is invalid.</p>
|
|
|
39
39
|
<h3 class="tsd-index-heading">Properties</h3>
|
|
40
40
|
<div class="tsd-index-list"><a href="IdentityServiceConfigNotFoundError.html#message" class="tsd-index-link tsd-kind-property tsd-parent-kind-class tsd-is-inherited tsd-is-external"><svg class="tsd-kind-icon" width="24" height="24" viewBox="0 0 24 24"><rect fill="var(--color-icon-background)" stroke="#FF984D" stroke-width="1.5" x="1" y="1" width="22" height="22" rx="12" id="icon-1024-path"></rect><path d="M9.354 16V7.24H12.174C12.99 7.24 13.638 7.476 14.118 7.948C14.606 8.412 14.85 9.036 14.85 9.82C14.85 10.604 14.606 11.232 14.118 11.704C13.638 12.168 12.99 12.4 12.174 12.4H10.434V16H9.354ZM10.434 11.428H12.174C12.646 11.428 13.022 11.284 13.302 10.996C13.59 10.7 13.734 10.308 13.734 9.82C13.734 9.324 13.59 8.932 13.302 8.644C13.022 8.356 12.646 8.212 12.174 8.212H10.434V11.428Z" fill="var(--color-text)" id="icon-1024-text"></path></svg><span>message</span></a>
|
|
41
41
|
<a href="IdentityServiceConfigNotFoundError.html#name" class="tsd-index-link tsd-kind-property tsd-parent-kind-class tsd-is-inherited tsd-is-external"><svg class="tsd-kind-icon" width="24" height="24" viewBox="0 0 24 24"><use href="#icon-1024-path"></use><use href="#icon-1024-text"></use></svg><span>name</span></a>
|
|
42
|
-
<a href="IdentityServiceConfigNotFoundError.html#stack" class="tsd-index-link tsd-kind-property tsd-parent-kind-class tsd-is-inherited tsd-is-external"><svg class="tsd-kind-icon" width="24" height="24" viewBox="0 0 24 24"><use href="#icon-1024-path"></use><use href="#icon-1024-text"></use></svg><span>stack
|
|
43
|
-
<a href="IdentityServiceConfigNotFoundError.html#prepareStackTrace" class="tsd-index-link tsd-kind-property tsd-parent-kind-class tsd-is-inherited tsd-is-external"><svg class="tsd-kind-icon" width="24" height="24" viewBox="0 0 24 24"><use href="#icon-1024-path"></use><use href="#icon-1024-text"></use></svg><span>prepare<wbr/>Stack<wbr/>Trace
|
|
42
|
+
<a href="IdentityServiceConfigNotFoundError.html#stack" class="tsd-index-link tsd-kind-property tsd-parent-kind-class tsd-is-inherited tsd-is-external"><svg class="tsd-kind-icon" width="24" height="24" viewBox="0 0 24 24"><use href="#icon-1024-path"></use><use href="#icon-1024-text"></use></svg><span>stack?</span></a>
|
|
43
|
+
<a href="IdentityServiceConfigNotFoundError.html#prepareStackTrace" class="tsd-index-link tsd-kind-property tsd-parent-kind-class tsd-is-inherited tsd-is-external"><svg class="tsd-kind-icon" width="24" height="24" viewBox="0 0 24 24"><use href="#icon-1024-path"></use><use href="#icon-1024-text"></use></svg><span>prepare<wbr/>Stack<wbr/>Trace?</span></a>
|
|
44
44
|
<a href="IdentityServiceConfigNotFoundError.html#stackTraceLimit" class="tsd-index-link tsd-kind-property tsd-parent-kind-class tsd-is-inherited tsd-is-external"><svg class="tsd-kind-icon" width="24" height="24" viewBox="0 0 24 24"><use href="#icon-1024-path"></use><use href="#icon-1024-text"></use></svg><span>stack<wbr/>Trace<wbr/>Limit</span></a>
|
|
45
45
|
</div></section>
|
|
46
46
|
<section class="tsd-index-section">
|
|
@@ -156,8 +156,8 @@ you are using is invalid.</p>
|
|
|
156
156
|
<li class="tsd-kind-constructor tsd-parent-kind-class"><a href="IdentityServiceConfigNotFoundError.html#constructor" class="tsd-index-link"><svg class="tsd-kind-icon" width="24" height="24" viewBox="0 0 24 24"><use href="#icon-512-path"></use><use href="#icon-512-text"></use></svg>constructor</a></li>
|
|
157
157
|
<li class="tsd-kind-property tsd-parent-kind-class tsd-is-inherited tsd-is-external"><a href="IdentityServiceConfigNotFoundError.html#message" class="tsd-index-link"><svg class="tsd-kind-icon" width="24" height="24" viewBox="0 0 24 24"><use href="#icon-1024-path"></use><use href="#icon-1024-text"></use></svg>message</a></li>
|
|
158
158
|
<li class="tsd-kind-property tsd-parent-kind-class tsd-is-inherited tsd-is-external"><a href="IdentityServiceConfigNotFoundError.html#name" class="tsd-index-link"><svg class="tsd-kind-icon" width="24" height="24" viewBox="0 0 24 24"><use href="#icon-1024-path"></use><use href="#icon-1024-text"></use></svg>name</a></li>
|
|
159
|
-
<li class="tsd-kind-property tsd-parent-kind-class tsd-is-inherited tsd-is-external"><a href="IdentityServiceConfigNotFoundError.html#stack" class="tsd-index-link"><svg class="tsd-kind-icon" width="24" height="24" viewBox="0 0 24 24"><use href="#icon-1024-path"></use><use href="#icon-1024-text"></use></svg>stack
|
|
160
|
-
<li class="tsd-kind-property tsd-parent-kind-class tsd-is-inherited tsd-is-external"><a href="IdentityServiceConfigNotFoundError.html#prepareStackTrace" class="tsd-index-link"><svg class="tsd-kind-icon" width="24" height="24" viewBox="0 0 24 24"><use href="#icon-1024-path"></use><use href="#icon-1024-text"></use></svg>prepare<wbr/>Stack<wbr/>Trace
|
|
159
|
+
<li class="tsd-kind-property tsd-parent-kind-class tsd-is-inherited tsd-is-external"><a href="IdentityServiceConfigNotFoundError.html#stack" class="tsd-index-link"><svg class="tsd-kind-icon" width="24" height="24" viewBox="0 0 24 24"><use href="#icon-1024-path"></use><use href="#icon-1024-text"></use></svg>stack?</a></li>
|
|
160
|
+
<li class="tsd-kind-property tsd-parent-kind-class tsd-is-inherited tsd-is-external"><a href="IdentityServiceConfigNotFoundError.html#prepareStackTrace" class="tsd-index-link"><svg class="tsd-kind-icon" width="24" height="24" viewBox="0 0 24 24"><use href="#icon-1024-path"></use><use href="#icon-1024-text"></use></svg>prepare<wbr/>Stack<wbr/>Trace?</a></li>
|
|
161
161
|
<li class="tsd-kind-property tsd-parent-kind-class tsd-is-inherited tsd-is-external"><a href="IdentityServiceConfigNotFoundError.html#stackTraceLimit" class="tsd-index-link"><svg class="tsd-kind-icon" width="24" height="24" viewBox="0 0 24 24"><use href="#icon-1024-path"></use><use href="#icon-1024-text"></use></svg>stack<wbr/>Trace<wbr/>Limit</a></li>
|
|
162
162
|
<li class="tsd-kind-method tsd-parent-kind-class tsd-is-inherited tsd-is-external"><a href="IdentityServiceConfigNotFoundError.html#captureStackTrace" class="tsd-index-link"><svg class="tsd-kind-icon" width="24" height="24" viewBox="0 0 24 24"><use href="#icon-2048-path"></use><use href="#icon-2048-text"></use></svg>capture<wbr/>Stack<wbr/>Trace</a></li></ul></li></ul></nav></div></div>
|
|
163
163
|
<div class="container tsd-generator">
|
|
@@ -42,23 +42,19 @@ class CognitoUserPoolIdentityProvider {
|
|
|
42
42
|
}
|
|
43
43
|
|
|
44
44
|
async globalSignOut(accessToken) {
|
|
45
|
-
|
|
45
|
+
try {
|
|
46
46
|
const params = {
|
|
47
47
|
AccessToken: accessToken
|
|
48
48
|
};
|
|
49
49
|
const globalSignOut = new _clientCognitoIdentityProvider.GlobalSignOutCommand(params);
|
|
50
|
-
this.idpService.send(globalSignOut
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
reject(new _sudoCommon.SignOutError(error.message));
|
|
54
|
-
} else {
|
|
55
|
-
this.logger.info('User successfully signed out.', {
|
|
56
|
-
data
|
|
57
|
-
});
|
|
58
|
-
resolve();
|
|
59
|
-
}
|
|
50
|
+
const response = await this.idpService.send(globalSignOut);
|
|
51
|
+
this.logger.info('User successfully signed out.', {
|
|
52
|
+
response
|
|
60
53
|
});
|
|
61
|
-
})
|
|
54
|
+
} catch (err) {
|
|
55
|
+
const error = err;
|
|
56
|
+
throw new _sudoCommon.SignOutError(error.message);
|
|
57
|
+
}
|
|
62
58
|
}
|
|
63
59
|
|
|
64
60
|
async register(uid, validationData) {
|
|
@@ -96,7 +92,7 @@ class CognitoUserPoolIdentityProvider {
|
|
|
96
92
|
}
|
|
97
93
|
|
|
98
94
|
async signInWithKey(userId, keyId) {
|
|
99
|
-
|
|
95
|
+
try {
|
|
100
96
|
const initiateAuthCommand = new _clientCognitoIdentityProvider.InitiateAuthCommand({
|
|
101
97
|
ClientId: this.config.identityService.clientId,
|
|
102
98
|
AuthFlow: 'CUSTOM_AUTH',
|
|
@@ -143,18 +139,21 @@ class CognitoUserPoolIdentityProvider {
|
|
|
143
139
|
tokenExpiry: tokenExpiry
|
|
144
140
|
};
|
|
145
141
|
await this.storeRefreshTokenLifetime(this.refreshTokenLifetime);
|
|
146
|
-
|
|
142
|
+
return authTokens;
|
|
147
143
|
} else {
|
|
148
|
-
|
|
144
|
+
throw new _sudoCommon.AuthenticationError('Authentication tokens not found.');
|
|
149
145
|
}
|
|
150
146
|
} else {
|
|
151
|
-
|
|
147
|
+
throw new _sudoCommon.AuthenticationError('Invalid initiate auth result.');
|
|
152
148
|
}
|
|
153
|
-
})
|
|
149
|
+
} catch (err) {
|
|
150
|
+
const error = err;
|
|
151
|
+
throw new _sudoCommon.AuthenticationError(error.message);
|
|
152
|
+
}
|
|
154
153
|
}
|
|
155
154
|
|
|
156
155
|
async signInWithToken(userId, token, type) {
|
|
157
|
-
|
|
156
|
+
try {
|
|
158
157
|
const initiateAuth = new _clientCognitoIdentityProvider.InitiateAuthCommand({
|
|
159
158
|
ClientId: this.config.identityService.clientId,
|
|
160
159
|
AuthFlow: 'CUSTOM_AUTH',
|
|
@@ -194,69 +193,67 @@ class CognitoUserPoolIdentityProvider {
|
|
|
194
193
|
tokenExpiry: tokenExpiry
|
|
195
194
|
};
|
|
196
195
|
await this.storeRefreshTokenLifetime(this.refreshTokenLifetime);
|
|
197
|
-
|
|
196
|
+
return authTokens;
|
|
198
197
|
} else {
|
|
199
|
-
|
|
198
|
+
throw new _sudoCommon.AuthenticationError('Authentication tokens not found.');
|
|
200
199
|
}
|
|
201
200
|
} else {
|
|
202
|
-
|
|
201
|
+
throw new _sudoCommon.AuthenticationError('Invalid initiate auth result.');
|
|
203
202
|
}
|
|
204
|
-
})
|
|
203
|
+
} catch (err) {
|
|
204
|
+
const error = err;
|
|
205
|
+
throw new _sudoCommon.AuthenticationError(error.message);
|
|
206
|
+
}
|
|
205
207
|
}
|
|
206
208
|
|
|
207
209
|
async refreshTokens(refreshToken) {
|
|
208
|
-
|
|
209
|
-
|
|
210
|
-
|
|
211
|
-
|
|
212
|
-
|
|
213
|
-
|
|
214
|
-
REFRESH_TOKEN: refreshToken
|
|
215
|
-
}
|
|
216
|
-
});
|
|
217
|
-
const initiateAuthResult = await this.idpService.send(initiateAuth);
|
|
218
|
-
const idToken = initiateAuthResult.AuthenticationResult?.IdToken;
|
|
219
|
-
const accessToken = initiateAuthResult.AuthenticationResult?.AccessToken;
|
|
220
|
-
const tokenExpiry = initiateAuthResult.AuthenticationResult?.ExpiresIn;
|
|
221
|
-
|
|
222
|
-
if (idToken && accessToken && tokenExpiry) {
|
|
223
|
-
const authTokens = {
|
|
224
|
-
idToken: idToken,
|
|
225
|
-
accessToken: accessToken,
|
|
226
|
-
refreshToken: refreshToken,
|
|
227
|
-
tokenExpiry: tokenExpiry
|
|
228
|
-
};
|
|
229
|
-
await this.storeRefreshTokenLifetime(this.refreshTokenLifetime);
|
|
230
|
-
resolve(authTokens);
|
|
231
|
-
} else {
|
|
232
|
-
reject(new _sudoCommon.AuthenticationError('Authentication tokens not found.'));
|
|
210
|
+
try {
|
|
211
|
+
const initiateAuth = new _clientCognitoIdentityProvider.InitiateAuthCommand({
|
|
212
|
+
ClientId: this.config.identityService.clientId,
|
|
213
|
+
AuthFlow: 'REFRESH_TOKEN_AUTH',
|
|
214
|
+
AuthParameters: {
|
|
215
|
+
REFRESH_TOKEN: refreshToken
|
|
233
216
|
}
|
|
234
|
-
}
|
|
235
|
-
|
|
236
|
-
|
|
217
|
+
});
|
|
218
|
+
const initiateAuthResult = await this.idpService.send(initiateAuth);
|
|
219
|
+
const idToken = initiateAuthResult.AuthenticationResult?.IdToken;
|
|
220
|
+
const accessToken = initiateAuthResult.AuthenticationResult?.AccessToken;
|
|
221
|
+
const tokenExpiry = initiateAuthResult.AuthenticationResult?.ExpiresIn;
|
|
222
|
+
|
|
223
|
+
if (idToken && accessToken && tokenExpiry) {
|
|
224
|
+
const authTokens = {
|
|
225
|
+
idToken: idToken,
|
|
226
|
+
accessToken: accessToken,
|
|
227
|
+
refreshToken: refreshToken,
|
|
228
|
+
tokenExpiry: tokenExpiry
|
|
229
|
+
};
|
|
230
|
+
await this.storeRefreshTokenLifetime(this.refreshTokenLifetime);
|
|
231
|
+
return authTokens;
|
|
232
|
+
} else {
|
|
233
|
+
throw new _sudoCommon.AuthenticationError('Authentication tokens not found.');
|
|
237
234
|
}
|
|
238
|
-
})
|
|
235
|
+
} catch (err) {
|
|
236
|
+
const error = err;
|
|
237
|
+
throw new _sudoCommon.AuthenticationError(error.message);
|
|
238
|
+
}
|
|
239
239
|
}
|
|
240
240
|
|
|
241
241
|
async signOut(refreshToken) {
|
|
242
|
-
|
|
242
|
+
try {
|
|
243
243
|
const params = {
|
|
244
244
|
Token: refreshToken,
|
|
245
245
|
ClientId: this.config.identityService.clientId
|
|
246
246
|
};
|
|
247
247
|
const revokeToken = new _clientCognitoIdentityProvider.RevokeTokenCommand(params);
|
|
248
|
-
this.idpService.send(revokeToken
|
|
249
|
-
|
|
250
|
-
|
|
251
|
-
reject(new _sudoCommon.SignOutError(error.message));
|
|
252
|
-
} else {
|
|
253
|
-
this.logger.info('User successfully signed out.', {
|
|
254
|
-
data
|
|
255
|
-
});
|
|
256
|
-
resolve();
|
|
257
|
-
}
|
|
248
|
+
const response = await this.idpService.send(revokeToken);
|
|
249
|
+
this.logger.info('User successfully signed out.', {
|
|
250
|
+
response
|
|
258
251
|
});
|
|
259
|
-
})
|
|
252
|
+
} catch (err) {
|
|
253
|
+
const error = err;
|
|
254
|
+
this.logger.error(error.message);
|
|
255
|
+
throw new _sudoCommon.SignOutError(error.message);
|
|
256
|
+
}
|
|
260
257
|
}
|
|
261
258
|
|
|
262
259
|
async storeRefreshTokenLifetime(refreshTokenLifetime) {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@sudoplatform/sudo-user",
|
|
3
|
-
"version": "11.
|
|
3
|
+
"version": "11.1.0",
|
|
4
4
|
"author": "Anonyome Labs, Inc.",
|
|
5
5
|
"repository": {
|
|
6
6
|
"type": "git",
|
|
@@ -35,7 +35,7 @@
|
|
|
35
35
|
"dependencies": {
|
|
36
36
|
"@aws-sdk/client-cognito-identity-provider": "^3.131.0",
|
|
37
37
|
"@graphql-typed-document-node/core": "^3.1.1",
|
|
38
|
-
"@sudoplatform/sudo-web-crypto-provider": "^
|
|
38
|
+
"@sudoplatform/sudo-web-crypto-provider": "^7.0.0",
|
|
39
39
|
"amazon-cognito-auth-js": "^1.3.3",
|
|
40
40
|
"apollo-cache-inmemory": "^1.6.6",
|
|
41
41
|
"aws-appsync": "^4.1.7",
|
|
@@ -58,7 +58,7 @@
|
|
|
58
58
|
"cross-fetch": "^3.1.5",
|
|
59
59
|
"node-fetch": "^2.6.7",
|
|
60
60
|
"minimist": "^1.2.6",
|
|
61
|
-
"undici": "^5.
|
|
61
|
+
"undici": "^5.8.2",
|
|
62
62
|
"got": "^11.8.5"
|
|
63
63
|
},
|
|
64
64
|
"devDependencies": {
|
|
@@ -75,18 +75,18 @@
|
|
|
75
75
|
"@graphql-codegen/typescript": "^2.7.2",
|
|
76
76
|
"@graphql-codegen/typescript-operations": "^2.5.2",
|
|
77
77
|
"@graphql-typed-document-node/apollo-client-2": "^1.0.0",
|
|
78
|
-
"@sudoplatform/sudo-common": "^
|
|
78
|
+
"@sudoplatform/sudo-common": "^8.0.0",
|
|
79
79
|
"@types/amazon-cognito-auth-js": "^1.3.0",
|
|
80
80
|
"@types/firefox-webext-browser": "^94.0.1",
|
|
81
|
-
"@types/jest": "^28.1.
|
|
81
|
+
"@types/jest": "^28.1.3",
|
|
82
82
|
"@types/jsonwebtoken": "^8.5.8",
|
|
83
83
|
"@types/lodash": "^4.14.182",
|
|
84
84
|
"@types/node": "^16.11.45",
|
|
85
85
|
"@types/uuid": "^8.3.4",
|
|
86
|
-
"@typescript-eslint/eslint-plugin": "^5.
|
|
87
|
-
"@typescript-eslint/parser": "^5.
|
|
86
|
+
"@typescript-eslint/eslint-plugin": "^5.33.1",
|
|
87
|
+
"@typescript-eslint/parser": "^5.33.1",
|
|
88
88
|
"apollo-client": "^2.6.10",
|
|
89
|
-
"eslint": "^8.
|
|
89
|
+
"eslint": "^8.22.0",
|
|
90
90
|
"eslint-config-prettier": "^8.5.0",
|
|
91
91
|
"eslint-plugin-import": "^2.26.0",
|
|
92
92
|
"eslint-plugin-prettier": "^4.2.1",
|
|
@@ -96,13 +96,14 @@
|
|
|
96
96
|
"jest-environment-node": "^28.1.3",
|
|
97
97
|
"prettier": "^2.7.1",
|
|
98
98
|
"subscriptions-transport-ws": "^0.11.0",
|
|
99
|
+
"ts-jest": "^28.0.8",
|
|
99
100
|
"ts-mockito": "^2.6.1",
|
|
100
|
-
"typedoc": "^0.23.
|
|
101
|
+
"typedoc": "^0.23.10",
|
|
101
102
|
"typescript": "^4.7.4",
|
|
102
103
|
"websocket": "^1.0.34"
|
|
103
104
|
},
|
|
104
105
|
"peerDependencies": {
|
|
105
|
-
"@sudoplatform/sudo-common": "^
|
|
106
|
+
"@sudoplatform/sudo-common": "^8.0.0",
|
|
106
107
|
"io-ts": "^2.2.16"
|
|
107
108
|
}
|
|
108
109
|
}
|