@nascentdigital/funnel-services 4.5.2 → 4.5.4

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.
@@ -8,5 +8,5 @@ export declare namespace CaptchaError {
8
8
  type ConstructorArgs = IsometricError.ConstructorArgs.WithoutModuleId & {
9
9
  code?: string;
10
10
  };
11
- type Options = Omit<ConstructorArgs, 'message'>;
11
+ type Options = Omit<ConstructorArgs, 'name' | 'message'>;
12
12
  }
@@ -16,7 +16,7 @@ class CaptchaErrors {
16
16
  // convert
17
17
  switch (data.name) {
18
18
  // re-hydrate error
19
- case CaptchaVerificationError_1.CaptchaVerificationError.name:
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?: ApiError.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.2",
3
+ "version": "4.5.4",
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": "5b63f9cd8843cc111b4458c71aa031a974455241"
51
+ "gitHead": "d3d65564e0935e40c8b1e441316b63a126516bca"
52
52
  }