@datapos/datapos-shared 0.3.562 → 0.3.564
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.
|
@@ -67,7 +67,7 @@ function h(e) {
|
|
|
67
67
|
for (; r != null && !o.has(r); ) {
|
|
68
68
|
o.add(r);
|
|
69
69
|
let t;
|
|
70
|
-
r instanceof l ? (t = { body: r.body, locator: r.locator, message: r.message, name: "APIError", stack: r.stack }, r = r.cause == null ? null : n(r.cause)) : r instanceof f ? (t = { body: void 0, locator: r.locator, message: r.message, name: "ConnectorError", stack: r.stack }, r = r.cause == null ? null : n(r.cause)) : r instanceof u ? (t = { body: void 0, locator: r.locator, message: r.message, name: "EngineError", stack: r.stack }, r = r.cause == null ? null : n(r.cause)) : r instanceof i ? (t = { body: r.body, locator: r.locator, message: r.message, name: "FetchError", stack: r.stack }, r = r.cause == null ? null : n(r.cause)) : r instanceof a ? (t = { body: void 0, locator: r.locator, message: r.message, name: "DPUError", stack: r.stack }, r = r.cause == null ? null : n(r.cause)) : r instanceof Error ? (t = { body: void 0, locator: "", message: r.message, name: r.name, stack: r.stack }, r = r.cause == null ? null : n(r.cause)) : (t = { body: void 0, locator: "", message: m(r), name: "Error", stack: void 0 }, r = null), /(?:\.{3}|[.!?])$/.test(t.message) || (t.message += "."), s.push(t);
|
|
70
|
+
r instanceof l ? (t = { body: r.body, locator: r.locator, message: r.message, name: "APIError", stack: r.stack }, r = r.cause == null ? null : n(r.cause)) : r instanceof f ? (console.log(2222, r.locator), t = { body: void 0, locator: r.locator, message: r.message, name: "ConnectorError", stack: r.stack }, r = r.cause == null ? null : n(r.cause)) : r instanceof u ? (t = { body: void 0, locator: r.locator, message: r.message, name: "EngineError", stack: r.stack }, r = r.cause == null ? null : n(r.cause)) : r instanceof i ? (t = { body: r.body, locator: r.locator, message: r.message, name: "FetchError", stack: r.stack }, r = r.cause == null ? null : n(r.cause)) : r instanceof a ? (t = { body: void 0, locator: r.locator, message: r.message, name: "DPUError", stack: r.stack }, r = r.cause == null ? null : n(r.cause)) : r instanceof Error ? (t = { body: void 0, locator: "", message: r.message, name: r.name, stack: r.stack }, r = r.cause == null ? null : n(r.cause)) : (t = { body: void 0, locator: "", message: m(r), name: "Error", stack: void 0 }, r = null), /(?:\.{3}|[.!?])$/.test(t.message) || (t.message += "."), s.push(t);
|
|
71
71
|
}
|
|
72
72
|
return s;
|
|
73
73
|
}
|
|
@@ -81,7 +81,7 @@ function w(e) {
|
|
|
81
81
|
r = new l(s.message, s.locator, s.body, { cause: o });
|
|
82
82
|
break;
|
|
83
83
|
case "ConnectorError":
|
|
84
|
-
r = new f(s.message, s.locator, { cause: o });
|
|
84
|
+
console.log(2222, s.locator), r = new f(s.message, s.locator, { cause: o });
|
|
85
85
|
break;
|
|
86
86
|
case "EngineError":
|
|
87
87
|
r = new u(s.message, s.locator, { cause: o });
|
|
@@ -116,7 +116,6 @@ function E(e) {
|
|
|
116
116
|
export {
|
|
117
117
|
l as APIError,
|
|
118
118
|
f as ConnectorError,
|
|
119
|
-
a as DPUError,
|
|
120
119
|
u as EngineError,
|
|
121
120
|
i as FetchError,
|
|
122
121
|
b as buildFetchError,
|
|
@@ -5,7 +5,7 @@ export interface SerialisedError {
|
|
|
5
5
|
name: string;
|
|
6
6
|
stack: string | undefined;
|
|
7
7
|
}
|
|
8
|
-
|
|
8
|
+
declare class DPUError extends Error {
|
|
9
9
|
readonly locator: string;
|
|
10
10
|
constructor(message: string, locator: string, options?: ErrorOptions);
|
|
11
11
|
}
|
|
@@ -51,3 +51,4 @@ export declare function serialiseError(error?: unknown): SerialisedError[];
|
|
|
51
51
|
* - Returns `undefined` if the input array is empty.
|
|
52
52
|
*/
|
|
53
53
|
export declare function unserialiseError(serialisedErrors: SerialisedError[]): Error | undefined;
|
|
54
|
+
export {};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@datapos/datapos-shared",
|
|
3
|
-
"version": "0.3.
|
|
3
|
+
"version": "0.3.564",
|
|
4
4
|
"description": "A library containing common constants, types and utilities used across all Data Positioning projects.",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"author": "Jonathan Terrell <terrell.jm@gmail.com>",
|