skapi-js 1.0.0-alpha.20 → 1.0.0-alpha.21
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/skapi.js +1 -1
- package/dist/skapi.js.map +1 -1
- package/dist/skapi.module.js +1 -1
- package/dist/skapi.module.js.map +1 -1
- package/js/main/skapi.js +1 -1
- package/js/methods/user.js +3 -0
- package/package.json +1 -1
package/js/main/skapi.js
CHANGED
package/js/methods/user.js
CHANGED
|
@@ -554,6 +554,9 @@ export async function changePassword(params) {
|
|
|
554
554
|
else if (err?.code === "NotAuthorizedException") {
|
|
555
555
|
rej(new SkapiError('Incorrect password.', { code: 'INVALID_REQUEST' }));
|
|
556
556
|
}
|
|
557
|
+
else if (err?.code === "TooManyRequestsException") {
|
|
558
|
+
rej(new SkapiError('Too many attempts. Please try again later.', { code: 'REQUEST_EXCEED' }));
|
|
559
|
+
}
|
|
557
560
|
else {
|
|
558
561
|
rej(new SkapiError(err?.message || 'Failed to change user password.', { code: err?.code || err?.name }));
|
|
559
562
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "skapi-js",
|
|
3
|
-
"version": "1.0.0-alpha.
|
|
3
|
+
"version": "1.0.0-alpha.21",
|
|
4
4
|
"description": "Javascript library for Skapi: Complete JAM Stack, front-end driven serverless backend API service.",
|
|
5
5
|
"main": "./dist/skapi.module.js",
|
|
6
6
|
"types": "./js/Main.d.ts",
|