b2b-platform-utils 1.1.74 → 1.1.75
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/errorsMap.js +18 -0
- package/package.json +1 -1
package/errorsMap.js
CHANGED
|
@@ -1272,6 +1272,24 @@ const STATIC_ERRORS = [
|
|
|
1272
1272
|
httpCode: 422,
|
|
1273
1273
|
description: "Financial operation is not allowed in its current state.",
|
|
1274
1274
|
},
|
|
1275
|
+
{
|
|
1276
|
+
errorCode: 1209,
|
|
1277
|
+
errorKey: "smsResetCodeInvalidOrExpired",
|
|
1278
|
+
httpCode: 422,
|
|
1279
|
+
description: "SMS password recovery code is invalid or expired.",
|
|
1280
|
+
},
|
|
1281
|
+
{
|
|
1282
|
+
errorCode: 1210,
|
|
1283
|
+
errorKey: "smsResetTooManyAttempts",
|
|
1284
|
+
httpCode: 429,
|
|
1285
|
+
description: "Too many SMS password recovery code attempts.",
|
|
1286
|
+
},
|
|
1287
|
+
{
|
|
1288
|
+
errorCode: 1211,
|
|
1289
|
+
errorKey: "smsPasswordResetTokenInvalidOrExpired",
|
|
1290
|
+
httpCode: 422,
|
|
1291
|
+
description: "SMS password reset token is invalid or expired.",
|
|
1292
|
+
},
|
|
1275
1293
|
];
|
|
1276
1294
|
|
|
1277
1295
|
const STATIC_BY_KEY = Object.fromEntries(
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "b2b-platform-utils",
|
|
3
|
-
"version": "1.1.
|
|
3
|
+
"version": "1.1.75",
|
|
4
4
|
"description": "Shared utilities for Node.js microservices: errors map, local cache, logger, numbers, dates, filesystem, media optimization, paginator, slugger, crypto wrapper, sanitize HTML, sorting.",
|
|
5
5
|
"type": "commonjs",
|
|
6
6
|
"license": "KingSizer",
|