@constructive-io/errors
Advanced tools
@@ -47,2 +47,4 @@ import type { ErrorContext, ErrorDefinition } from './types'; | ||
| readonly UNAUTHENTICATED: import("./define").DefinedError<import("./types").EmptyContext>; | ||
| readonly CAPTCHA_REQUIRED: import("./define").DefinedError<import("./types").EmptyContext>; | ||
| readonly CAPTCHA_FAILED: import("./define").DefinedError<import("./types").EmptyContext>; | ||
| readonly FORBIDDEN: import("./define").DefinedError<import("./types").EmptyContext>; | ||
@@ -49,0 +51,0 @@ readonly STEP_UP_REQUIRED: import("./define").DefinedError<import("./types").EmptyContext>; |
+12
-0
@@ -226,2 +226,14 @@ import { defineError } from './define'; | ||
| }), | ||
| CAPTCHA_REQUIRED: defineError({ | ||
| code: 'CAPTCHA_REQUIRED', | ||
| class: 'public', | ||
| http: 400, | ||
| message: 'Please complete the CAPTCHA challenge.' | ||
| }), | ||
| CAPTCHA_FAILED: defineError({ | ||
| code: 'CAPTCHA_FAILED', | ||
| class: 'public', | ||
| http: 403, | ||
| message: 'CAPTCHA verification failed. Please try again.' | ||
| }), | ||
| FORBIDDEN: defineError({ | ||
@@ -228,0 +240,0 @@ code: 'FORBIDDEN', |
+2
-2
| { | ||
| "name": "@constructive-io/errors", | ||
| "version": "0.7.2", | ||
| "version": "0.8.0", | ||
| "author": "Constructive <developers@constructive.io>", | ||
@@ -44,3 +44,3 @@ "description": "Canonical Constructive error system: registry, codes, i18n messages, and cross-source (PostgreSQL/GraphQL/client) parsing. Zero runtime dependencies.", | ||
| }, | ||
| "gitHead": "a430897efa1488ec24fc636f0d5023207bba7ba7" | ||
| "gitHead": "622be766e8b1d5762b6f0536699d59f745a34c0c" | ||
| } |
+2
-0
@@ -47,2 +47,4 @@ import type { ErrorContext, ErrorDefinition } from './types'; | ||
| readonly UNAUTHENTICATED: import("./define").DefinedError<import("./types").EmptyContext>; | ||
| readonly CAPTCHA_REQUIRED: import("./define").DefinedError<import("./types").EmptyContext>; | ||
| readonly CAPTCHA_FAILED: import("./define").DefinedError<import("./types").EmptyContext>; | ||
| readonly FORBIDDEN: import("./define").DefinedError<import("./types").EmptyContext>; | ||
@@ -49,0 +51,0 @@ readonly STEP_UP_REQUIRED: import("./define").DefinedError<import("./types").EmptyContext>; |
+12
-0
@@ -232,2 +232,14 @@ "use strict"; | ||
| }), | ||
| CAPTCHA_REQUIRED: (0, define_1.defineError)({ | ||
| code: 'CAPTCHA_REQUIRED', | ||
| class: 'public', | ||
| http: 400, | ||
| message: 'Please complete the CAPTCHA challenge.' | ||
| }), | ||
| CAPTCHA_FAILED: (0, define_1.defineError)({ | ||
| code: 'CAPTCHA_FAILED', | ||
| class: 'public', | ||
| http: 403, | ||
| message: 'CAPTCHA verification failed. Please try again.' | ||
| }), | ||
| FORBIDDEN: (0, define_1.defineError)({ | ||
@@ -234,0 +246,0 @@ code: 'FORBIDDEN', |
425465
0.27%4953
0.57%