@dxos/errors 0.8.4-main.a4bbb77 → 0.8.4-main.ae835ea
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/dist/lib/browser/index.mjs +17 -76
- package/dist/lib/browser/index.mjs.map +2 -2
- package/dist/lib/browser/meta.json +1 -1
- package/dist/lib/node-esm/index.mjs +17 -76
- package/dist/lib/node-esm/index.mjs.map +2 -2
- package/dist/lib/node-esm/meta.json +1 -1
- package/dist/types/tsconfig.tsbuildinfo +1 -1
- package/package.json +1 -1
|
@@ -1,59 +1,4 @@
|
|
|
1
1
|
// src/base.ts
|
|
2
|
-
function _check_private_redeclaration(obj, privateCollection) {
|
|
3
|
-
if (privateCollection.has(obj)) {
|
|
4
|
-
throw new TypeError("Cannot initialize the same private elements twice on an object");
|
|
5
|
-
}
|
|
6
|
-
}
|
|
7
|
-
function _class_apply_descriptor_get(receiver, descriptor) {
|
|
8
|
-
if (descriptor.get) {
|
|
9
|
-
return descriptor.get.call(receiver);
|
|
10
|
-
}
|
|
11
|
-
return descriptor.value;
|
|
12
|
-
}
|
|
13
|
-
function _class_apply_descriptor_set(receiver, descriptor, value) {
|
|
14
|
-
if (descriptor.set) {
|
|
15
|
-
descriptor.set.call(receiver, value);
|
|
16
|
-
} else {
|
|
17
|
-
if (!descriptor.writable) {
|
|
18
|
-
throw new TypeError("attempted to set read only private field");
|
|
19
|
-
}
|
|
20
|
-
descriptor.value = value;
|
|
21
|
-
}
|
|
22
|
-
}
|
|
23
|
-
function _class_extract_field_descriptor(receiver, privateMap, action) {
|
|
24
|
-
if (!privateMap.has(receiver)) {
|
|
25
|
-
throw new TypeError("attempted to " + action + " private field on non-instance");
|
|
26
|
-
}
|
|
27
|
-
return privateMap.get(receiver);
|
|
28
|
-
}
|
|
29
|
-
function _class_private_field_get(receiver, privateMap) {
|
|
30
|
-
var descriptor = _class_extract_field_descriptor(receiver, privateMap, "get");
|
|
31
|
-
return _class_apply_descriptor_get(receiver, descriptor);
|
|
32
|
-
}
|
|
33
|
-
function _class_private_field_init(obj, privateMap, value) {
|
|
34
|
-
_check_private_redeclaration(obj, privateMap);
|
|
35
|
-
privateMap.set(obj, value);
|
|
36
|
-
}
|
|
37
|
-
function _class_private_field_set(receiver, privateMap, value) {
|
|
38
|
-
var descriptor = _class_extract_field_descriptor(receiver, privateMap, "set");
|
|
39
|
-
_class_apply_descriptor_set(receiver, descriptor, value);
|
|
40
|
-
return value;
|
|
41
|
-
}
|
|
42
|
-
function _define_property(obj, key, value) {
|
|
43
|
-
if (key in obj) {
|
|
44
|
-
Object.defineProperty(obj, key, {
|
|
45
|
-
value,
|
|
46
|
-
enumerable: true,
|
|
47
|
-
configurable: true,
|
|
48
|
-
writable: true
|
|
49
|
-
});
|
|
50
|
-
} else {
|
|
51
|
-
obj[key] = value;
|
|
52
|
-
}
|
|
53
|
-
return obj;
|
|
54
|
-
}
|
|
55
|
-
var _code = /* @__PURE__ */ new WeakMap();
|
|
56
|
-
var _context = /* @__PURE__ */ new WeakMap();
|
|
57
2
|
var BaseError = class _BaseError extends Error {
|
|
58
3
|
/**
|
|
59
4
|
* Primary way of defining new error classes.
|
|
@@ -62,8 +7,8 @@ var BaseError = class _BaseError extends Error {
|
|
|
62
7
|
* @param message - Default error message.
|
|
63
8
|
*/
|
|
64
9
|
static extend(code, message) {
|
|
65
|
-
|
|
66
|
-
|
|
10
|
+
return class extends _BaseError {
|
|
11
|
+
static code = code;
|
|
67
12
|
static is(error) {
|
|
68
13
|
return typeof error === "object" && error !== null && "code" in error && error.code === code;
|
|
69
14
|
}
|
|
@@ -80,38 +25,34 @@ var BaseError = class _BaseError extends Error {
|
|
|
80
25
|
...options
|
|
81
26
|
});
|
|
82
27
|
}
|
|
83
|
-
}
|
|
28
|
+
};
|
|
29
|
+
}
|
|
30
|
+
#code;
|
|
31
|
+
#context;
|
|
32
|
+
constructor(code, options) {
|
|
33
|
+
super(options?.message, {
|
|
34
|
+
cause: options?.cause
|
|
35
|
+
});
|
|
36
|
+
this.#code = code;
|
|
37
|
+
this.#context = options?.context ?? {};
|
|
38
|
+
Object.setPrototypeOf(this, new.target.prototype);
|
|
84
39
|
}
|
|
85
40
|
get name() {
|
|
86
|
-
return
|
|
41
|
+
return this.#code;
|
|
87
42
|
}
|
|
88
43
|
/** Fallback message. */
|
|
89
44
|
get message() {
|
|
90
45
|
return this.constructor.name;
|
|
91
46
|
}
|
|
92
47
|
get code() {
|
|
93
|
-
return
|
|
48
|
+
return this.#code;
|
|
94
49
|
}
|
|
95
50
|
// For effect error matching.
|
|
96
51
|
get _tag() {
|
|
97
|
-
return
|
|
52
|
+
return this.#code;
|
|
98
53
|
}
|
|
99
54
|
get context() {
|
|
100
|
-
return
|
|
101
|
-
}
|
|
102
|
-
constructor(code, options) {
|
|
103
|
-
super(options?.message, {
|
|
104
|
-
cause: options?.cause
|
|
105
|
-
}), _class_private_field_init(this, _code, {
|
|
106
|
-
writable: true,
|
|
107
|
-
value: void 0
|
|
108
|
-
}), _class_private_field_init(this, _context, {
|
|
109
|
-
writable: true,
|
|
110
|
-
value: void 0
|
|
111
|
-
});
|
|
112
|
-
_class_private_field_set(this, _code, code);
|
|
113
|
-
_class_private_field_set(this, _context, options?.context ?? {});
|
|
114
|
-
Object.setPrototypeOf(this, new.target.prototype);
|
|
55
|
+
return this.#context;
|
|
115
56
|
}
|
|
116
57
|
};
|
|
117
58
|
|
|
@@ -2,6 +2,6 @@
|
|
|
2
2
|
"version": 3,
|
|
3
3
|
"sources": ["../../../src/base.ts", "../../../src/errors.ts"],
|
|
4
4
|
"sourcesContent": ["//\n// Copyright 2025 DXOS.org\n//\n\n/**\n * Options for creating a BaseError.\n */\nexport type BaseErrorOptions = ErrorOptions & {\n /**\n * Override base message.\n */\n message?: string;\n\n /**\n * Structured details about the error.\n */\n context?: Record<string, unknown>;\n};\n\n/**\n * Base class for all DXOS errors.\n */\nexport class BaseError<Code extends string = string> extends Error {\n /**\n * Primary way of defining new error classes.\n * Extended class may specialize constructor for required context params.\n * @param code - Error code.\n * @param message - Default error message.\n */\n static extend<Code extends string = string>(code: Code, message?: string) {\n return class extends BaseError<Code> {\n static code = code;\n\n static is(error: unknown): error is BaseError {\n return typeof error === 'object' && error !== null && 'code' in error && error.code === code;\n }\n\n static wrap(options?: Omit<BaseErrorOptions, 'cause'>) {\n return (error: unknown) => new this({ message, ...options, cause: error });\n }\n\n constructor(options?: BaseErrorOptions) {\n super(code, { message: options?.message ?? message, ...options });\n }\n };\n }\n\n #code: Code;\n #context: Record<string, unknown>;\n\n constructor(code: Code, options?: BaseErrorOptions) {\n super(options?.message, { cause: options?.cause });\n\n this.#code = code;\n this.#context = options?.context ?? {};\n Object.setPrototypeOf(this, new.target.prototype);\n }\n\n override get name() {\n return this.#code;\n }\n\n /** Fallback message. */\n override get message() {\n return this.constructor.name;\n }\n\n get code(): Code {\n return this.#code;\n }\n\n // For effect error matching.\n get _tag(): Code {\n return this.#code;\n }\n\n get context() {\n return this.#context;\n }\n}\n", "//\n// Copyright 2025 DXOS.org\n//\n\nimport { BaseError } from './base';\n\nexport class ApiError extends BaseError.extend('API', 'API error') {}\n\nexport class SystemError extends BaseError.extend('SYSTEM', 'System error') {}\n\nexport class InternalError extends BaseError.extend('INTERNAL', 'Internal error') {}\n\nexport class TimeoutError extends BaseError.extend('TIMEOUT', 'Timeout') {}\n\nexport class AbortedError extends BaseError.extend('ABORTED', 'Aborted') {}\n\nexport class NotImplementedError extends BaseError.extend('NOT_IMPLEMENTED', 'Not implemented') {}\n"],
|
|
5
|
-
"mappings": ";
|
|
6
|
-
"names": ["BaseError", "Error", "extend", "code", "message", "is", "error", "wrap", "options", "cause", "
|
|
5
|
+
"mappings": ";AAsBO,IAAMA,YAAN,MAAMA,mBAAgDC,MAAAA;;;;;;;EAO3D,OAAOC,OAAqCC,MAAYC,SAAkB;AACxE,WAAO,cAAcJ,WAAAA;MACnB,OAAOG,OAAOA;MAEd,OAAOE,GAAGC,OAAoC;AAC5C,eAAO,OAAOA,UAAU,YAAYA,UAAU,QAAQ,UAAUA,SAASA,MAAMH,SAASA;MAC1F;MAEA,OAAOI,KAAKC,SAA2C;AACrD,eAAO,CAACF,UAAmB,IAAI,KAAK;UAAEF;UAAS,GAAGI;UAASC,OAAOH;QAAM,CAAA;MAC1E;MAEA,YAAYE,SAA4B;AACtC,cAAML,MAAM;UAAEC,SAASI,SAASJ,WAAWA;UAAS,GAAGI;QAAQ,CAAA;MACjE;IACF;EACF;EAEA;EACA;EAEA,YAAYL,MAAYK,SAA4B;AAClD,UAAMA,SAASJ,SAAS;MAAEK,OAAOD,SAASC;IAAM,CAAA;AAEhD,SAAK,QAAQN;AACb,SAAK,WAAWK,SAASE,WAAW,CAAC;AACrCC,WAAOC,eAAe,MAAM,WAAWC,SAAS;EAClD;EAEA,IAAaC,OAAO;AAClB,WAAO,KAAK;EACd;;EAGA,IAAaV,UAAU;AACrB,WAAO,KAAK,YAAYU;EAC1B;EAEA,IAAIX,OAAa;AACf,WAAO,KAAK;EACd;;EAGA,IAAIY,OAAa;AACf,WAAO,KAAK;EACd;EAEA,IAAIL,UAAU;AACZ,WAAO,KAAK;EACd;AACF;;;ACzEO,IAAMM,WAAN,cAAuBC,UAAUC,OAAO,OAAO,WAAA,EAAA;AAAc;AAE7D,IAAMC,cAAN,cAA0BF,UAAUC,OAAO,UAAU,cAAA,EAAA;AAAiB;AAEtE,IAAME,gBAAN,cAA4BH,UAAUC,OAAO,YAAY,gBAAA,EAAA;AAAmB;AAE5E,IAAMG,eAAN,cAA2BJ,UAAUC,OAAO,WAAW,SAAA,EAAA;AAAY;AAEnE,IAAMI,eAAN,cAA2BL,UAAUC,OAAO,WAAW,SAAA,EAAA;AAAY;AAEnE,IAAMK,sBAAN,cAAkCN,UAAUC,OAAO,mBAAmB,iBAAA,EAAA;AAAoB;",
|
|
6
|
+
"names": ["BaseError", "Error", "extend", "code", "message", "is", "error", "wrap", "options", "cause", "context", "Object", "setPrototypeOf", "prototype", "name", "_tag", "ApiError", "BaseError", "extend", "SystemError", "InternalError", "TimeoutError", "AbortedError", "NotImplementedError"]
|
|
7
7
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"inputs":{"src/base.ts":{"bytes":
|
|
1
|
+
{"inputs":{"src/base.ts":{"bytes":6054,"imports":[],"format":"esm"},"src/errors.ts":{"bytes":2213,"imports":[{"path":"src/base.ts","kind":"import-statement","original":"./base"}],"format":"esm"},"src/index.ts":{"bytes":523,"imports":[{"path":"src/base.ts","kind":"import-statement","original":"./base"},{"path":"src/errors.ts","kind":"import-statement","original":"./errors"}],"format":"esm"}},"outputs":{"dist/lib/browser/index.mjs.map":{"imports":[],"exports":[],"inputs":{},"bytes":4036},"dist/lib/browser/index.mjs":{"imports":[],"exports":["AbortedError","ApiError","BaseError","InternalError","NotImplementedError","SystemError","TimeoutError"],"entryPoint":"src/index.ts","inputs":{"src/base.ts":{"bytesInOutput":1325},"src/index.ts":{"bytesInOutput":0},"src/errors.ts":{"bytesInOutput":491}},"bytes":2007}}}
|
|
@@ -1,61 +1,6 @@
|
|
|
1
1
|
import { createRequire } from 'node:module';const require = createRequire(import.meta.url);
|
|
2
2
|
|
|
3
3
|
// src/base.ts
|
|
4
|
-
function _check_private_redeclaration(obj, privateCollection) {
|
|
5
|
-
if (privateCollection.has(obj)) {
|
|
6
|
-
throw new TypeError("Cannot initialize the same private elements twice on an object");
|
|
7
|
-
}
|
|
8
|
-
}
|
|
9
|
-
function _class_apply_descriptor_get(receiver, descriptor) {
|
|
10
|
-
if (descriptor.get) {
|
|
11
|
-
return descriptor.get.call(receiver);
|
|
12
|
-
}
|
|
13
|
-
return descriptor.value;
|
|
14
|
-
}
|
|
15
|
-
function _class_apply_descriptor_set(receiver, descriptor, value) {
|
|
16
|
-
if (descriptor.set) {
|
|
17
|
-
descriptor.set.call(receiver, value);
|
|
18
|
-
} else {
|
|
19
|
-
if (!descriptor.writable) {
|
|
20
|
-
throw new TypeError("attempted to set read only private field");
|
|
21
|
-
}
|
|
22
|
-
descriptor.value = value;
|
|
23
|
-
}
|
|
24
|
-
}
|
|
25
|
-
function _class_extract_field_descriptor(receiver, privateMap, action) {
|
|
26
|
-
if (!privateMap.has(receiver)) {
|
|
27
|
-
throw new TypeError("attempted to " + action + " private field on non-instance");
|
|
28
|
-
}
|
|
29
|
-
return privateMap.get(receiver);
|
|
30
|
-
}
|
|
31
|
-
function _class_private_field_get(receiver, privateMap) {
|
|
32
|
-
var descriptor = _class_extract_field_descriptor(receiver, privateMap, "get");
|
|
33
|
-
return _class_apply_descriptor_get(receiver, descriptor);
|
|
34
|
-
}
|
|
35
|
-
function _class_private_field_init(obj, privateMap, value) {
|
|
36
|
-
_check_private_redeclaration(obj, privateMap);
|
|
37
|
-
privateMap.set(obj, value);
|
|
38
|
-
}
|
|
39
|
-
function _class_private_field_set(receiver, privateMap, value) {
|
|
40
|
-
var descriptor = _class_extract_field_descriptor(receiver, privateMap, "set");
|
|
41
|
-
_class_apply_descriptor_set(receiver, descriptor, value);
|
|
42
|
-
return value;
|
|
43
|
-
}
|
|
44
|
-
function _define_property(obj, key, value) {
|
|
45
|
-
if (key in obj) {
|
|
46
|
-
Object.defineProperty(obj, key, {
|
|
47
|
-
value,
|
|
48
|
-
enumerable: true,
|
|
49
|
-
configurable: true,
|
|
50
|
-
writable: true
|
|
51
|
-
});
|
|
52
|
-
} else {
|
|
53
|
-
obj[key] = value;
|
|
54
|
-
}
|
|
55
|
-
return obj;
|
|
56
|
-
}
|
|
57
|
-
var _code = /* @__PURE__ */ new WeakMap();
|
|
58
|
-
var _context = /* @__PURE__ */ new WeakMap();
|
|
59
4
|
var BaseError = class _BaseError extends Error {
|
|
60
5
|
/**
|
|
61
6
|
* Primary way of defining new error classes.
|
|
@@ -64,8 +9,8 @@ var BaseError = class _BaseError extends Error {
|
|
|
64
9
|
* @param message - Default error message.
|
|
65
10
|
*/
|
|
66
11
|
static extend(code, message) {
|
|
67
|
-
|
|
68
|
-
|
|
12
|
+
return class extends _BaseError {
|
|
13
|
+
static code = code;
|
|
69
14
|
static is(error) {
|
|
70
15
|
return typeof error === "object" && error !== null && "code" in error && error.code === code;
|
|
71
16
|
}
|
|
@@ -82,38 +27,34 @@ var BaseError = class _BaseError extends Error {
|
|
|
82
27
|
...options
|
|
83
28
|
});
|
|
84
29
|
}
|
|
85
|
-
}
|
|
30
|
+
};
|
|
31
|
+
}
|
|
32
|
+
#code;
|
|
33
|
+
#context;
|
|
34
|
+
constructor(code, options) {
|
|
35
|
+
super(options?.message, {
|
|
36
|
+
cause: options?.cause
|
|
37
|
+
});
|
|
38
|
+
this.#code = code;
|
|
39
|
+
this.#context = options?.context ?? {};
|
|
40
|
+
Object.setPrototypeOf(this, new.target.prototype);
|
|
86
41
|
}
|
|
87
42
|
get name() {
|
|
88
|
-
return
|
|
43
|
+
return this.#code;
|
|
89
44
|
}
|
|
90
45
|
/** Fallback message. */
|
|
91
46
|
get message() {
|
|
92
47
|
return this.constructor.name;
|
|
93
48
|
}
|
|
94
49
|
get code() {
|
|
95
|
-
return
|
|
50
|
+
return this.#code;
|
|
96
51
|
}
|
|
97
52
|
// For effect error matching.
|
|
98
53
|
get _tag() {
|
|
99
|
-
return
|
|
54
|
+
return this.#code;
|
|
100
55
|
}
|
|
101
56
|
get context() {
|
|
102
|
-
return
|
|
103
|
-
}
|
|
104
|
-
constructor(code, options) {
|
|
105
|
-
super(options?.message, {
|
|
106
|
-
cause: options?.cause
|
|
107
|
-
}), _class_private_field_init(this, _code, {
|
|
108
|
-
writable: true,
|
|
109
|
-
value: void 0
|
|
110
|
-
}), _class_private_field_init(this, _context, {
|
|
111
|
-
writable: true,
|
|
112
|
-
value: void 0
|
|
113
|
-
});
|
|
114
|
-
_class_private_field_set(this, _code, code);
|
|
115
|
-
_class_private_field_set(this, _context, options?.context ?? {});
|
|
116
|
-
Object.setPrototypeOf(this, new.target.prototype);
|
|
57
|
+
return this.#context;
|
|
117
58
|
}
|
|
118
59
|
};
|
|
119
60
|
|
|
@@ -2,6 +2,6 @@
|
|
|
2
2
|
"version": 3,
|
|
3
3
|
"sources": ["../../../src/base.ts", "../../../src/errors.ts"],
|
|
4
4
|
"sourcesContent": ["//\n// Copyright 2025 DXOS.org\n//\n\n/**\n * Options for creating a BaseError.\n */\nexport type BaseErrorOptions = ErrorOptions & {\n /**\n * Override base message.\n */\n message?: string;\n\n /**\n * Structured details about the error.\n */\n context?: Record<string, unknown>;\n};\n\n/**\n * Base class for all DXOS errors.\n */\nexport class BaseError<Code extends string = string> extends Error {\n /**\n * Primary way of defining new error classes.\n * Extended class may specialize constructor for required context params.\n * @param code - Error code.\n * @param message - Default error message.\n */\n static extend<Code extends string = string>(code: Code, message?: string) {\n return class extends BaseError<Code> {\n static code = code;\n\n static is(error: unknown): error is BaseError {\n return typeof error === 'object' && error !== null && 'code' in error && error.code === code;\n }\n\n static wrap(options?: Omit<BaseErrorOptions, 'cause'>) {\n return (error: unknown) => new this({ message, ...options, cause: error });\n }\n\n constructor(options?: BaseErrorOptions) {\n super(code, { message: options?.message ?? message, ...options });\n }\n };\n }\n\n #code: Code;\n #context: Record<string, unknown>;\n\n constructor(code: Code, options?: BaseErrorOptions) {\n super(options?.message, { cause: options?.cause });\n\n this.#code = code;\n this.#context = options?.context ?? {};\n Object.setPrototypeOf(this, new.target.prototype);\n }\n\n override get name() {\n return this.#code;\n }\n\n /** Fallback message. */\n override get message() {\n return this.constructor.name;\n }\n\n get code(): Code {\n return this.#code;\n }\n\n // For effect error matching.\n get _tag(): Code {\n return this.#code;\n }\n\n get context() {\n return this.#context;\n }\n}\n", "//\n// Copyright 2025 DXOS.org\n//\n\nimport { BaseError } from './base';\n\nexport class ApiError extends BaseError.extend('API', 'API error') {}\n\nexport class SystemError extends BaseError.extend('SYSTEM', 'System error') {}\n\nexport class InternalError extends BaseError.extend('INTERNAL', 'Internal error') {}\n\nexport class TimeoutError extends BaseError.extend('TIMEOUT', 'Timeout') {}\n\nexport class AbortedError extends BaseError.extend('ABORTED', 'Aborted') {}\n\nexport class NotImplementedError extends BaseError.extend('NOT_IMPLEMENTED', 'Not implemented') {}\n"],
|
|
5
|
-
"mappings": ";;;
|
|
6
|
-
"names": ["BaseError", "Error", "extend", "code", "message", "is", "error", "wrap", "options", "cause", "
|
|
5
|
+
"mappings": ";;;AAsBO,IAAMA,YAAN,MAAMA,mBAAgDC,MAAAA;;;;;;;EAO3D,OAAOC,OAAqCC,MAAYC,SAAkB;AACxE,WAAO,cAAcJ,WAAAA;MACnB,OAAOG,OAAOA;MAEd,OAAOE,GAAGC,OAAoC;AAC5C,eAAO,OAAOA,UAAU,YAAYA,UAAU,QAAQ,UAAUA,SAASA,MAAMH,SAASA;MAC1F;MAEA,OAAOI,KAAKC,SAA2C;AACrD,eAAO,CAACF,UAAmB,IAAI,KAAK;UAAEF;UAAS,GAAGI;UAASC,OAAOH;QAAM,CAAA;MAC1E;MAEA,YAAYE,SAA4B;AACtC,cAAML,MAAM;UAAEC,SAASI,SAASJ,WAAWA;UAAS,GAAGI;QAAQ,CAAA;MACjE;IACF;EACF;EAEA;EACA;EAEA,YAAYL,MAAYK,SAA4B;AAClD,UAAMA,SAASJ,SAAS;MAAEK,OAAOD,SAASC;IAAM,CAAA;AAEhD,SAAK,QAAQN;AACb,SAAK,WAAWK,SAASE,WAAW,CAAC;AACrCC,WAAOC,eAAe,MAAM,WAAWC,SAAS;EAClD;EAEA,IAAaC,OAAO;AAClB,WAAO,KAAK;EACd;;EAGA,IAAaV,UAAU;AACrB,WAAO,KAAK,YAAYU;EAC1B;EAEA,IAAIX,OAAa;AACf,WAAO,KAAK;EACd;;EAGA,IAAIY,OAAa;AACf,WAAO,KAAK;EACd;EAEA,IAAIL,UAAU;AACZ,WAAO,KAAK;EACd;AACF;;;ACzEO,IAAMM,WAAN,cAAuBC,UAAUC,OAAO,OAAO,WAAA,EAAA;AAAc;AAE7D,IAAMC,cAAN,cAA0BF,UAAUC,OAAO,UAAU,cAAA,EAAA;AAAiB;AAEtE,IAAME,gBAAN,cAA4BH,UAAUC,OAAO,YAAY,gBAAA,EAAA;AAAmB;AAE5E,IAAMG,eAAN,cAA2BJ,UAAUC,OAAO,WAAW,SAAA,EAAA;AAAY;AAEnE,IAAMI,eAAN,cAA2BL,UAAUC,OAAO,WAAW,SAAA,EAAA;AAAY;AAEnE,IAAMK,sBAAN,cAAkCN,UAAUC,OAAO,mBAAmB,iBAAA,EAAA;AAAoB;",
|
|
6
|
+
"names": ["BaseError", "Error", "extend", "code", "message", "is", "error", "wrap", "options", "cause", "context", "Object", "setPrototypeOf", "prototype", "name", "_tag", "ApiError", "BaseError", "extend", "SystemError", "InternalError", "TimeoutError", "AbortedError", "NotImplementedError"]
|
|
7
7
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"inputs":{"src/base.ts":{"bytes":
|
|
1
|
+
{"inputs":{"src/base.ts":{"bytes":6054,"imports":[],"format":"esm"},"src/errors.ts":{"bytes":2213,"imports":[{"path":"src/base.ts","kind":"import-statement","original":"./base"}],"format":"esm"},"src/index.ts":{"bytes":523,"imports":[{"path":"src/base.ts","kind":"import-statement","original":"./base"},{"path":"src/errors.ts","kind":"import-statement","original":"./errors"}],"format":"esm"}},"outputs":{"dist/lib/node-esm/index.mjs.map":{"imports":[],"exports":[],"inputs":{},"bytes":4038},"dist/lib/node-esm/index.mjs":{"imports":[],"exports":["AbortedError","ApiError","BaseError","InternalError","NotImplementedError","SystemError","TimeoutError"],"entryPoint":"src/index.ts","inputs":{"src/base.ts":{"bytesInOutput":1325},"src/index.ts":{"bytesInOutput":0},"src/errors.ts":{"bytesInOutput":491}},"bytes":2100}}}
|