🎩 You're Invited:Meet the Socket team at Black Hat in Las Vegas, August 3-6.RSVP
Sign In

@constructive-io/errors

Package Overview
Dependencies
Maintainers
3
Versions
10
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@constructive-io/errors - npm Package Compare versions

Comparing version
0.4.0
to
0.5.0
+3
-3
esm/generated/registry.generated.d.ts
/**
* GENERATED FILE — DO NOT EDIT BY HAND.
*
* Source of truth: the constructive-db error audit (289 distinct codes
* Source of truth: the constructive-db error audit (520 distinct codes
* raised via EXCEPTION/THROW across deploy sources + generated output).

@@ -12,3 +12,3 @@ * Regenerate with `python3 scripts/generate-registry.py` (see README.md).

*
* Counts: 289 total, 82 public, 207 internal.
* Counts: 520 total, 385 public, 135 internal.
*/

@@ -28,2 +28,2 @@ import { type DefinedError } from '../define';

/** Total number of codes collected from constructive-db. */
export declare const GENERATED_CODE_COUNT = 289;
export declare const GENERATED_CODE_COUNT = 520;
/**
* GENERATED FILE — DO NOT EDIT BY HAND.
*
* Source of truth: the constructive-db error audit (289 distinct codes
* Source of truth: the constructive-db error audit (520 distinct codes
* raised via EXCEPTION/THROW across deploy sources + generated output).

@@ -12,3 +12,3 @@ * Regenerate with `python3 scripts/generate-registry.py` (see README.md).

*
* Counts: 289 total, 82 public, 207 internal.
* Counts: 520 total, 385 public, 135 internal.
*/

@@ -28,2 +28,2 @@ import { type DefinedError } from '../define';

/** Total number of codes collected from constructive-db. */
export declare const GENERATED_CODE_COUNT = 289;
export declare const GENERATED_CODE_COUNT = 520;
{
"name": "@constructive-io/errors",
"version": "0.4.0",
"version": "0.5.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": "3ba26a9dfa342feff5a2216aafea962132d51621"
"gitHead": "37e83eb66e9d13d0d4d8ac3b36b5ebe394b84a43"
}

@@ -62,3 +62,8 @@ # @constructive-io/errors

sources and generated output and writes `scripts/db-error-inventory.json` (the
committed audit snapshot). `generate-registry.py` reads that snapshot and, when a
committed audit snapshot). It also captures the authoritative `public`/`internal`
class from each canonical `errors.raise_error('CODE', context, 'class')` call — the
database is the source of truth for classification, so an explicit class is trusted
directly; codes without one (e.g. single-arg calls relying on the helper default, or
legacy `RAISE EXCEPTION`) fall back to a name-based heuristic.
`generate-registry.py` reads that snapshot and, when a
`constructive-io/dashboard` checkout is found (via `DASHBOARD_DIR` or a sibling

@@ -65,0 +70,0 @@ `../dashboard`), seeds public copy from its error catalogs. Re-run both whenever

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is too big to display