@nascentdigital/funnel-services 4.5.3 → 4.5.6
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.
|
@@ -16,7 +16,7 @@ class CaptchaErrors {
|
|
|
16
16
|
// convert
|
|
17
17
|
switch (data.name) {
|
|
18
18
|
// re-hydrate error
|
|
19
|
-
case
|
|
19
|
+
case 'CaptchaVerificationError':
|
|
20
20
|
return new CaptchaVerificationError_1.CaptchaVerificationError(data.message, funnel_core_1.Value.parseString(data.code));
|
|
21
21
|
// or ignore if not matching
|
|
22
22
|
default:
|
|
@@ -1,5 +1,4 @@
|
|
|
1
|
-
import { ApiError } from '@nascentdigital/funnel-core';
|
|
2
1
|
import { CaptchaError } from './CaptchaError';
|
|
3
2
|
export declare class CaptchaVerificationError extends CaptchaError {
|
|
4
|
-
constructor(message?: string, code?: string, options?:
|
|
3
|
+
constructor(message?: string, code?: string, options?: CaptchaError.Options);
|
|
5
4
|
}
|
|
@@ -5,7 +5,7 @@ const CaptchaError_1 = require("./CaptchaError");
|
|
|
5
5
|
// class
|
|
6
6
|
class CaptchaVerificationError extends CaptchaError_1.CaptchaError {
|
|
7
7
|
constructor(message = 'Captcha verification failed', code, options = {}) {
|
|
8
|
-
super(Object.assign({ message, code }, options));
|
|
8
|
+
super(Object.assign({ name: 'CaptchaVerificationError', message, code }, options));
|
|
9
9
|
}
|
|
10
10
|
}
|
|
11
11
|
exports.CaptchaVerificationError = CaptchaVerificationError;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@nascentdigital/funnel-services",
|
|
3
|
-
"version": "4.5.
|
|
3
|
+
"version": "4.5.6",
|
|
4
4
|
"publishConfig": {
|
|
5
5
|
"registry": "https://registry.npmjs.org/",
|
|
6
6
|
"access": "restricted"
|
|
@@ -48,5 +48,5 @@
|
|
|
48
48
|
"react-dom": "^19",
|
|
49
49
|
"type-fest": "^4"
|
|
50
50
|
},
|
|
51
|
-
"gitHead": "
|
|
51
|
+
"gitHead": "e5899ba807b2c7241f493c850a98c1607df6771b"
|
|
52
52
|
}
|