@veryfront/ext-content-mdx 0.1.1186 → 0.1.1189
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/esm/_dnt.polyfills.d.ts +6 -6
- package/esm/_dnt.polyfills.d.ts.map +1 -1
- package/esm/deno.d.ts +18 -0
- package/esm/deno.js +30 -9
- package/esm/src/config/defaults.d.ts +31 -24
- package/esm/src/config/defaults.d.ts.map +1 -1
- package/esm/src/config/defaults.js +25 -18
- package/esm/src/errors/diagnostic-policy.d.ts +35 -0
- package/esm/src/errors/diagnostic-policy.d.ts.map +1 -0
- package/esm/src/errors/diagnostic-policy.js +100 -0
- package/esm/src/errors/error-registry/boundary.d.ts +2 -0
- package/esm/src/errors/error-registry/boundary.d.ts.map +1 -1
- package/esm/src/errors/error-registry/boundary.js +8 -0
- package/esm/src/errors/error-registry/config.d.ts.map +1 -1
- package/esm/src/errors/error-registry/config.js +3 -3
- package/esm/src/errors/error-registry/deploy.js +1 -1
- package/esm/src/errors/error-registry/server.d.ts +2 -0
- package/esm/src/errors/error-registry/server.d.ts.map +1 -1
- package/esm/src/errors/error-registry/server.js +8 -0
- package/esm/src/errors/error-registry-helpers.d.ts +11 -2
- package/esm/src/errors/error-registry-helpers.d.ts.map +1 -1
- package/esm/src/errors/error-registry-helpers.js +70 -1
- package/esm/src/errors/error-registry.d.ts +85 -73
- package/esm/src/errors/error-registry.d.ts.map +1 -1
- package/esm/src/errors/error-registry.js +2 -14
- package/esm/src/errors/types.d.ts +44 -5
- package/esm/src/errors/types.d.ts.map +1 -1
- package/esm/src/errors/types.js +148 -24
- package/esm/src/errors/veryfront-error.d.ts +25 -2
- package/esm/src/errors/veryfront-error.d.ts.map +1 -1
- package/esm/src/errors/veryfront-error.js +638 -28
- package/esm/src/observability/limits.d.ts +20 -0
- package/esm/src/observability/limits.d.ts.map +1 -0
- package/esm/src/observability/limits.js +19 -0
- package/esm/src/observability/telemetry-error.d.ts +22 -0
- package/esm/src/observability/telemetry-error.d.ts.map +1 -0
- package/esm/src/observability/telemetry-error.js +377 -0
- package/esm/src/observability/tracing/api-shim.d.ts +39 -0
- package/esm/src/observability/tracing/api-shim.d.ts.map +1 -1
- package/esm/src/observability/tracing/api-shim.js +196 -69
- package/esm/src/observability/tracing/context-callback.d.ts +14 -0
- package/esm/src/observability/tracing/context-callback.d.ts.map +1 -0
- package/esm/src/observability/tracing/context-callback.js +111 -0
- package/esm/src/observability/tracing/otlp-setup.d.ts.map +1 -1
- package/esm/src/observability/tracing/otlp-setup.js +190 -46
- package/esm/src/platform/adapters/base.d.ts +51 -7
- package/esm/src/platform/adapters/base.d.ts.map +1 -1
- package/esm/src/platform/adapters/base.js +4 -2
- package/esm/src/platform/adapters/bounded-file-read.d.ts +9 -0
- package/esm/src/platform/adapters/bounded-file-read.d.ts.map +1 -1
- package/esm/src/platform/adapters/bounded-file-read.js +11 -5
- package/esm/src/platform/adapters/file-snapshot-error.d.ts +2 -0
- package/esm/src/platform/adapters/file-snapshot-error.d.ts.map +1 -1
- package/esm/src/platform/adapters/file-snapshot-error.js +2 -0
- package/esm/src/platform/adapters/file-system-capabilities.d.ts +74 -0
- package/esm/src/platform/adapters/file-system-capabilities.d.ts.map +1 -0
- package/esm/src/platform/adapters/file-system-capabilities.js +508 -0
- package/esm/src/platform/adapters/native-file-system-provenance.d.ts +6 -0
- package/esm/src/platform/adapters/native-file-system-provenance.d.ts.map +1 -0
- package/esm/src/platform/adapters/native-file-system-provenance.js +15 -0
- package/esm/src/platform/adapters/runtime/deno/filesystem-adapter.d.ts +45 -0
- package/esm/src/platform/adapters/runtime/deno/filesystem-adapter.d.ts.map +1 -0
- package/esm/src/platform/adapters/runtime/deno/filesystem-adapter.js +291 -0
- package/esm/src/platform/adapters/runtime/shared/node-filesystem-adapter.d.ts +71 -0
- package/esm/src/platform/adapters/runtime/shared/node-filesystem-adapter.d.ts.map +1 -0
- package/esm/src/platform/adapters/runtime/shared/node-filesystem-adapter.js +471 -0
- package/esm/src/platform/adapters/runtime/shared/shared-watcher.d.ts +16 -0
- package/esm/src/platform/adapters/runtime/shared/shared-watcher.d.ts.map +1 -0
- package/esm/src/platform/adapters/runtime/shared/shared-watcher.js +140 -0
- package/esm/src/platform/adapters/runtime/shared/temp-dir.d.ts +2 -0
- package/esm/src/platform/adapters/runtime/shared/temp-dir.d.ts.map +1 -0
- package/esm/src/platform/adapters/runtime/shared/temp-dir.js +10 -0
- package/esm/src/platform/adapters/runtime/shared/watcher-queue.d.ts +5 -0
- package/esm/src/platform/adapters/runtime/shared/watcher-queue.d.ts.map +1 -0
- package/esm/src/platform/adapters/runtime/shared/watcher-queue.js +75 -0
- package/esm/src/platform/compat/abort-signal.d.ts +20 -0
- package/esm/src/platform/compat/abort-signal.d.ts.map +1 -0
- package/esm/src/platform/compat/abort-signal.js +64 -0
- package/esm/src/platform/compat/constants.d.ts +2 -2
- package/esm/src/platform/compat/constants.d.ts.map +1 -1
- package/esm/src/platform/compat/constants.js +2 -2
- package/esm/src/platform/compat/error-introspection.d.ts +37 -0
- package/esm/src/platform/compat/error-introspection.d.ts.map +1 -0
- package/esm/src/platform/compat/error-introspection.js +258 -0
- package/esm/src/platform/compat/fs.d.ts +29 -8
- package/esm/src/platform/compat/fs.d.ts.map +1 -1
- package/esm/src/platform/compat/fs.js +123 -57
- package/esm/src/platform/compat/native-brand-checks.d.ts +14 -0
- package/esm/src/platform/compat/native-brand-checks.d.ts.map +1 -0
- package/esm/src/platform/compat/native-brand-checks.js +68 -0
- package/esm/src/platform/compat/not-found-error.d.ts +8 -3
- package/esm/src/platform/compat/not-found-error.d.ts.map +1 -1
- package/esm/src/platform/compat/not-found-error.js +164 -31
- package/esm/src/platform/compat/path/security.d.ts.map +1 -1
- package/esm/src/platform/compat/path/security.js +3 -5
- package/esm/src/platform/compat/process/command.d.ts +24 -1
- package/esm/src/platform/compat/process/command.d.ts.map +1 -1
- package/esm/src/platform/compat/process/command.js +393 -78
- package/esm/src/platform/compat/process/env.d.ts +11 -0
- package/esm/src/platform/compat/process/env.d.ts.map +1 -1
- package/esm/src/platform/compat/process/env.js +28 -38
- package/esm/src/platform/compat/process/global-error.d.ts +19 -0
- package/esm/src/platform/compat/process/global-error.d.ts.map +1 -0
- package/esm/src/platform/compat/process/global-error.js +57 -0
- package/esm/src/platform/compat/process/lifecycle.d.ts +10 -3
- package/esm/src/platform/compat/process/lifecycle.d.ts.map +1 -1
- package/esm/src/platform/compat/process/lifecycle.js +74 -23
- package/esm/src/platform/compat/process/project-env-contract.d.ts +19 -0
- package/esm/src/platform/compat/process/project-env-contract.d.ts.map +1 -0
- package/esm/src/platform/compat/process/project-env-contract.js +19 -0
- package/esm/src/platform/compat/runtime.d.ts +14 -5
- package/esm/src/platform/compat/runtime.d.ts.map +1 -1
- package/esm/src/platform/compat/runtime.js +34 -9
- package/esm/src/platform/compat/std/front-matter-yaml.d.ts +12 -0
- package/esm/src/platform/compat/std/front-matter-yaml.d.ts.map +1 -1
- package/esm/src/platform/compat/std/front-matter-yaml.js +35 -3
- package/esm/src/platform/compat/temp-directory-prefix.d.ts +8 -0
- package/esm/src/platform/compat/temp-directory-prefix.d.ts.map +1 -0
- package/esm/src/platform/compat/temp-directory-prefix.js +15 -0
- package/esm/src/utils/abort.d.ts +10 -0
- package/esm/src/utils/abort.d.ts.map +1 -0
- package/esm/src/utils/abort.js +35 -0
- package/esm/src/utils/constants/build.d.ts +3 -0
- package/esm/src/utils/constants/build.d.ts.map +1 -1
- package/esm/src/utils/constants/build.js +5 -1
- package/esm/src/utils/constants/cache.d.ts +21 -0
- package/esm/src/utils/constants/cache.d.ts.map +1 -1
- package/esm/src/utils/constants/cache.js +101 -39
- package/esm/src/utils/constants/css.d.ts +20 -0
- package/esm/src/utils/constants/css.d.ts.map +1 -0
- package/esm/src/utils/constants/css.js +19 -0
- package/esm/src/utils/constants/limits.d.ts +4 -0
- package/esm/src/utils/constants/limits.d.ts.map +1 -1
- package/esm/src/utils/constants/limits.js +4 -0
- package/esm/src/utils/constants/project-identity.d.ts +5 -0
- package/esm/src/utils/constants/project-identity.d.ts.map +1 -0
- package/esm/src/utils/constants/project-identity.js +4 -0
- package/esm/src/utils/constants/retry.d.ts +18 -0
- package/esm/src/utils/constants/retry.d.ts.map +1 -1
- package/esm/src/utils/constants/retry.js +18 -0
- package/esm/src/utils/constants/security.d.ts +4 -0
- package/esm/src/utils/constants/security.d.ts.map +1 -1
- package/esm/src/utils/constants/security.js +4 -0
- package/esm/src/utils/index.d.ts +3 -1
- package/esm/src/utils/index.d.ts.map +1 -1
- package/esm/src/utils/index.js +3 -1
- package/esm/src/utils/logger/core.d.ts +5 -0
- package/esm/src/utils/logger/core.d.ts.map +1 -1
- package/esm/src/utils/logger/core.js +67 -2
- package/esm/src/utils/logger/redact.d.ts +36 -13
- package/esm/src/utils/logger/redact.d.ts.map +1 -1
- package/esm/src/utils/logger/redact.js +573 -83
- package/esm/src/utils/parallel.d.ts.map +1 -1
- package/esm/src/utils/parallel.js +11 -1
- package/esm/src/utils/project-identity.d.ts +11 -0
- package/esm/src/utils/project-identity.d.ts.map +1 -0
- package/esm/src/utils/project-identity.js +69 -0
- package/esm/src/utils/version-constant.d.ts +1 -1
- package/esm/src/utils/version-constant.js +1 -1
- package/package.json +3 -3
- package/esm/src/platform/adapters/runtime/shared/native-file-capabilities.d.ts +0 -33
- package/esm/src/platform/adapters/runtime/shared/native-file-capabilities.d.ts.map +0 -1
- package/esm/src/platform/adapters/runtime/shared/native-file-capabilities.js +0 -205
package/esm/src/errors/types.js
CHANGED
|
@@ -1,24 +1,50 @@
|
|
|
1
|
+
import { buildErrorDocsUrl, sanitizeBoundedDiagnosticText } from "./diagnostic-policy.js";
|
|
2
|
+
const freeze = Object.freeze;
|
|
3
|
+
const getOwnPropertyDescriptors = Object.getOwnPropertyDescriptors;
|
|
4
|
+
const numberIsFinite = Number.isFinite;
|
|
5
|
+
const VERYFRONT_ERROR_INSTANCES = new WeakSet();
|
|
6
|
+
const ERROR_CATEGORIES = new Set([
|
|
7
|
+
"CONFIG",
|
|
8
|
+
"BUILD",
|
|
9
|
+
"RUNTIME",
|
|
10
|
+
"ROUTE",
|
|
11
|
+
"MODULE",
|
|
12
|
+
"SERVER",
|
|
13
|
+
"BOUNDARY",
|
|
14
|
+
"DEV",
|
|
15
|
+
"DEPLOY",
|
|
16
|
+
"AGENT",
|
|
17
|
+
"GENERAL",
|
|
18
|
+
]);
|
|
1
19
|
/**
|
|
2
20
|
* Define an error in the registry
|
|
3
21
|
*/
|
|
4
22
|
export function defineError(definition) {
|
|
5
|
-
|
|
6
|
-
|
|
23
|
+
const snapshot = { ...definition };
|
|
24
|
+
const registered = {
|
|
25
|
+
...snapshot,
|
|
7
26
|
create(options) {
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
27
|
+
const message = options?.message;
|
|
28
|
+
const detail = options?.detail;
|
|
29
|
+
const cause = options?.cause;
|
|
30
|
+
const instance = options?.instance;
|
|
31
|
+
const context = options?.context;
|
|
32
|
+
const status = options?.status ?? snapshot.status;
|
|
33
|
+
return new VeryfrontError(message || detail || snapshot.title, {
|
|
34
|
+
slug: snapshot.slug,
|
|
35
|
+
category: snapshot.category,
|
|
36
|
+
status,
|
|
37
|
+
title: snapshot.title,
|
|
38
|
+
suggestion: snapshot.suggestion,
|
|
39
|
+
exitCode: snapshot.exitCode,
|
|
40
|
+
detail,
|
|
41
|
+
cause,
|
|
42
|
+
instance,
|
|
43
|
+
context,
|
|
19
44
|
});
|
|
20
45
|
},
|
|
21
46
|
};
|
|
47
|
+
return freeze(registered);
|
|
22
48
|
}
|
|
23
49
|
/**
|
|
24
50
|
* Veryfront Error class with slug-based error identity
|
|
@@ -29,14 +55,15 @@ export class VeryfrontError extends Error {
|
|
|
29
55
|
status;
|
|
30
56
|
title;
|
|
31
57
|
suggestion;
|
|
58
|
+
/** Process exit code for the CLI boundary. */
|
|
59
|
+
exitCode;
|
|
32
60
|
detail;
|
|
33
61
|
cause;
|
|
34
62
|
instance;
|
|
35
63
|
context;
|
|
36
|
-
/** Process exit code for the CLI boundary (e.g. 2 for usage errors). */
|
|
37
|
-
exitCode;
|
|
38
64
|
constructor(message, options) {
|
|
39
65
|
super(message);
|
|
66
|
+
VERYFRONT_ERROR_INSTANCES.add(this);
|
|
40
67
|
this.name = "VeryfrontError";
|
|
41
68
|
this.slug = options.slug;
|
|
42
69
|
this.category = options.category;
|
|
@@ -53,21 +80,118 @@ export class VeryfrontError extends Error {
|
|
|
53
80
|
* Convert to RFC 9457 Problem Details format
|
|
54
81
|
*/
|
|
55
82
|
toRFC9457() {
|
|
83
|
+
const snapshot = snapshotVeryfrontError(this);
|
|
84
|
+
if (!snapshot) {
|
|
85
|
+
return {
|
|
86
|
+
type: buildErrorDocsUrl("unknown-error"),
|
|
87
|
+
title: "Unknown/unclassified error",
|
|
88
|
+
status: 500,
|
|
89
|
+
category: "GENERAL",
|
|
90
|
+
};
|
|
91
|
+
}
|
|
56
92
|
return {
|
|
57
|
-
type:
|
|
58
|
-
title:
|
|
59
|
-
status:
|
|
60
|
-
detail:
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
93
|
+
type: buildErrorDocsUrl(snapshot.slug),
|
|
94
|
+
title: sanitizeBoundedDiagnosticText(snapshot.title),
|
|
95
|
+
status: snapshot.status,
|
|
96
|
+
detail: snapshot.detail === undefined
|
|
97
|
+
? undefined
|
|
98
|
+
: sanitizeBoundedDiagnosticText(snapshot.detail),
|
|
99
|
+
instance: snapshot.instance === undefined
|
|
100
|
+
? undefined
|
|
101
|
+
: sanitizeBoundedDiagnosticText(snapshot.instance),
|
|
102
|
+
category: snapshot.category,
|
|
103
|
+
suggestion: snapshot.suggestion === undefined
|
|
104
|
+
? undefined
|
|
105
|
+
: sanitizeBoundedDiagnosticText(snapshot.suggestion),
|
|
106
|
+
cause: typeof snapshot.cause === "string"
|
|
107
|
+
? sanitizeBoundedDiagnosticText(snapshot.cause)
|
|
108
|
+
: undefined,
|
|
65
109
|
};
|
|
66
110
|
}
|
|
67
111
|
/**
|
|
68
112
|
* Get documentation URL for this error
|
|
69
113
|
*/
|
|
70
114
|
getDocsUrl() {
|
|
71
|
-
|
|
115
|
+
const snapshot = snapshotVeryfrontError(this);
|
|
116
|
+
return buildErrorDocsUrl(snapshot?.slug ?? "unknown-error");
|
|
117
|
+
}
|
|
118
|
+
}
|
|
119
|
+
/** Runtime-safe VeryfrontError guard for values caught from untrusted code. */
|
|
120
|
+
export function isVeryfrontErrorInstance(error) {
|
|
121
|
+
return typeof error === "object" &&
|
|
122
|
+
error !== null &&
|
|
123
|
+
VERYFRONT_ERROR_INSTANCES.has(error);
|
|
124
|
+
}
|
|
125
|
+
/**
|
|
126
|
+
* Read a VeryfrontError once into plain data.
|
|
127
|
+
*
|
|
128
|
+
* A proxy can pass `instanceof VeryfrontError` and still throw from any field
|
|
129
|
+
* getter. Boundary code must use this snapshot instead of repeatedly reading
|
|
130
|
+
* the original object.
|
|
131
|
+
*/
|
|
132
|
+
export function snapshotVeryfrontError(error) {
|
|
133
|
+
if (!isVeryfrontErrorInstance(error))
|
|
134
|
+
return null;
|
|
135
|
+
return snapshotKnownVeryfrontError(error);
|
|
136
|
+
}
|
|
137
|
+
/**
|
|
138
|
+
* Snapshot a value that has already been classified as a VeryfrontError.
|
|
139
|
+
*
|
|
140
|
+
* Keeping classification separate lets boundary code avoid a second
|
|
141
|
+
* `instanceof`/proxy-prototype inspection after it has committed to this
|
|
142
|
+
* branch.
|
|
143
|
+
*/
|
|
144
|
+
export function snapshotKnownVeryfrontError(error) {
|
|
145
|
+
try {
|
|
146
|
+
if (!isVeryfrontErrorInstance(error))
|
|
147
|
+
return null;
|
|
148
|
+
const descriptors = getOwnPropertyDescriptors(error);
|
|
149
|
+
const dataValue = (key) => {
|
|
150
|
+
const descriptor = descriptors[key];
|
|
151
|
+
return descriptor && "value" in descriptor ? descriptor.value : undefined;
|
|
152
|
+
};
|
|
153
|
+
const slug = dataValue("slug");
|
|
154
|
+
const category = dataValue("category");
|
|
155
|
+
const status = dataValue("status");
|
|
156
|
+
const title = dataValue("title");
|
|
157
|
+
const message = dataValue("message");
|
|
158
|
+
const suggestion = dataValue("suggestion");
|
|
159
|
+
const exitCode = dataValue("exitCode");
|
|
160
|
+
const detail = dataValue("detail");
|
|
161
|
+
const cause = dataValue("cause");
|
|
162
|
+
const instance = dataValue("instance");
|
|
163
|
+
const context = dataValue("context");
|
|
164
|
+
const stack = dataValue("stack");
|
|
165
|
+
if (typeof slug !== "string" ||
|
|
166
|
+
!ERROR_CATEGORIES.has(category) ||
|
|
167
|
+
typeof status !== "number" ||
|
|
168
|
+
!numberIsFinite(status) ||
|
|
169
|
+
typeof title !== "string" ||
|
|
170
|
+
typeof message !== "string" ||
|
|
171
|
+
(suggestion !== undefined && typeof suggestion !== "string") ||
|
|
172
|
+
(exitCode !== undefined &&
|
|
173
|
+
(typeof exitCode !== "number" || !numberIsFinite(exitCode))) ||
|
|
174
|
+
(detail !== undefined && typeof detail !== "string") ||
|
|
175
|
+
(instance !== undefined && typeof instance !== "string") ||
|
|
176
|
+
(stack !== undefined && typeof stack !== "string")) {
|
|
177
|
+
return null;
|
|
178
|
+
}
|
|
179
|
+
return {
|
|
180
|
+
slug,
|
|
181
|
+
category: category,
|
|
182
|
+
status,
|
|
183
|
+
title,
|
|
184
|
+
message,
|
|
185
|
+
suggestion,
|
|
186
|
+
exitCode,
|
|
187
|
+
detail,
|
|
188
|
+
cause,
|
|
189
|
+
instance,
|
|
190
|
+
context,
|
|
191
|
+
stack,
|
|
192
|
+
};
|
|
193
|
+
}
|
|
194
|
+
catch {
|
|
195
|
+
return null;
|
|
72
196
|
}
|
|
73
197
|
}
|
|
@@ -132,17 +132,40 @@ export declare const isNetworkError: (error: VeryfrontErrorData) => error is {
|
|
|
132
132
|
*
|
|
133
133
|
* Uses Error.captureStackTrace when available (V8 engines) to exclude toError()
|
|
134
134
|
* from the stack trace, making the stack point to the actual call site.
|
|
135
|
+
* An optional native error constructor preserves categories such as
|
|
136
|
+
* `TypeError` while retaining the structured Veryfront error context.
|
|
135
137
|
*
|
|
136
138
|
* @see plans/architecture-audit/010.3-dual-veryfront-error-definitions.md
|
|
137
139
|
*/
|
|
138
140
|
export declare function toError(veryfrontError: VeryfrontErrorData): Error;
|
|
139
|
-
export declare function
|
|
141
|
+
export declare function toError<T extends Error>(veryfrontError: VeryfrontErrorData, ErrorType: new (message?: string) => T): T;
|
|
142
|
+
/** @internal Decode one already-extracted legacy context value. */
|
|
143
|
+
export declare function decodeVeryfrontErrorData(contextValue: unknown, isProxy: (value: object) => boolean): VeryfrontErrorData | null;
|
|
140
144
|
/**
|
|
141
145
|
* Extract error message from any error type
|
|
142
146
|
*/
|
|
143
147
|
export declare function getErrorMessage(error: unknown): string;
|
|
148
|
+
/** Runtime-safe native Error guard for values caught from untrusted code. */
|
|
149
|
+
export declare function isErrorInstance(error: unknown): error is Error;
|
|
150
|
+
export interface ErrorSnapshot {
|
|
151
|
+
readonly name: string;
|
|
152
|
+
readonly message: string;
|
|
153
|
+
readonly stack?: string;
|
|
154
|
+
}
|
|
155
|
+
/** Snapshot a native Error without retaining a proxy or invoking it again later. */
|
|
156
|
+
export declare function snapshotError(error: unknown): ErrorSnapshot | null;
|
|
157
|
+
export declare function snapshotKnownError(error: Error): ErrorSnapshot | null;
|
|
158
|
+
/**
|
|
159
|
+
* Normalize a thrown value into a detached Error snapshot.
|
|
160
|
+
*
|
|
161
|
+
* Use this at boundaries that retain or repeatedly inspect the result. A
|
|
162
|
+
* transparent Proxy can pass `instanceof Error` while throwing or changing
|
|
163
|
+
* values on a later property read.
|
|
164
|
+
*/
|
|
165
|
+
export declare function snapshotErrorAsError(error: unknown): Error;
|
|
144
166
|
/**
|
|
145
|
-
* Ensure
|
|
167
|
+
* Ensure a value is an Error while preserving the established identity
|
|
168
|
+
* contract for ordinary Error instances.
|
|
146
169
|
*/
|
|
147
170
|
export declare function ensureError(error: unknown): Error;
|
|
148
171
|
export {};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"veryfront-error.d.ts","sourceRoot":"","sources":["../../../src/src/errors/veryfront-error.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"veryfront-error.d.ts","sourceRoot":"","sources":["../../../src/src/errors/veryfront-error.ts"],"names":[],"mappings":"AAwBA,MAAM,WAAW,YAAY;IAC3B,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,KAAK,CAAC,EACF,OAAO,GACP,WAAW,GACX,QAAQ,GACR,UAAU,GACV,uBAAuB,GACvB,iBAAiB,GACjB,wBAAwB,CAAC;IAC7B,+CAA+C;IAC/C,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,gCAAgC;IAChC,OAAO,CAAC,EAAE,KAAK,CAAC;QAAE,SAAS,EAAE,MAAM,CAAC;QAAC,QAAQ,EAAE,MAAM,CAAC;QAAC,MAAM,EAAE,MAAM,CAAA;KAAE,CAAC,CAAC;IACzE,oCAAoC;IACpC,MAAM,CAAC,EAAE,MAAM,EAAE,CAAC;IAClB,2BAA2B;IAC3B,QAAQ,CAAC,EAAE,MAAM,CAAC;CACnB;AAED,MAAM,WAAW,UAAU;IACzB,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,OAAO,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC;CAClC;AAED,MAAM,WAAW,aAAa;IAC5B,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,KAAK,CAAC,EAAE,QA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