@datapos/datapos-shared 0.3.577 → 0.3.578
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.
|
@@ -44,10 +44,10 @@ async function b(e, s, o) {
|
|
|
44
44
|
}
|
|
45
45
|
return new i(t, o, n);
|
|
46
46
|
}
|
|
47
|
-
function
|
|
47
|
+
function p(e) {
|
|
48
48
|
return e.map((s) => s.message).join(" ");
|
|
49
49
|
}
|
|
50
|
-
function
|
|
50
|
+
function k(e) {
|
|
51
51
|
try {
|
|
52
52
|
e();
|
|
53
53
|
} catch {
|
|
@@ -78,6 +78,10 @@ function h(e) {
|
|
|
78
78
|
t = { body: n.body, locator: n.locator, message: r.message, name: "APIError", stack: r.stack }, r = r.cause == null ? null : a(r.cause);
|
|
79
79
|
break;
|
|
80
80
|
}
|
|
81
|
+
case "AppError": {
|
|
82
|
+
t = { body: void 0, locator: r.locator, message: r.message, name: "AppError", stack: r.stack }, r = r.cause == null ? null : a(r.cause);
|
|
83
|
+
break;
|
|
84
|
+
}
|
|
81
85
|
case "ConnectorError": {
|
|
82
86
|
t = { body: void 0, locator: r.locator, message: r.message, name: "ConnectorError", stack: r.stack }, r = r.cause == null ? null : a(r.cause);
|
|
83
87
|
break;
|
|
@@ -92,7 +96,7 @@ function h(e) {
|
|
|
92
96
|
break;
|
|
93
97
|
}
|
|
94
98
|
default:
|
|
95
|
-
r.name ? (t = { body: void 0, locator: "", message: r.message, name: r.name, stack: r.stack }, r = r.cause == null ? null : a(r.cause)) : (t = { body: void 0, locator: "", message:
|
|
99
|
+
r.name ? (t = { body: void 0, locator: "", message: r.message, name: r.name, stack: r.stack }, r = r.cause == null ? null : a(r.cause)) : (t = { body: void 0, locator: "", message: g(r), name: "Error", stack: void 0 }, r = null);
|
|
96
100
|
}
|
|
97
101
|
/(?:\.{3}|[.!?])$/.test(t.message) || (t.message += "."), o.push(t);
|
|
98
102
|
}
|
|
@@ -124,7 +128,7 @@ function w(e) {
|
|
|
124
128
|
}
|
|
125
129
|
return s;
|
|
126
130
|
}
|
|
127
|
-
function
|
|
131
|
+
function g(e) {
|
|
128
132
|
let s;
|
|
129
133
|
try {
|
|
130
134
|
s = JSON.stringify(e);
|
|
@@ -145,8 +149,8 @@ export {
|
|
|
145
149
|
d as EngineError,
|
|
146
150
|
i as FetchError,
|
|
147
151
|
b as buildFetchError,
|
|
148
|
-
|
|
149
|
-
|
|
152
|
+
p as concatenateSerialisedErrorMessages,
|
|
153
|
+
k as ignoreErrors,
|
|
150
154
|
a as normalizeToError,
|
|
151
155
|
h as serialiseError,
|
|
152
156
|
w as unserialiseError
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@datapos/datapos-shared",
|
|
3
|
-
"version": "0.3.
|
|
3
|
+
"version": "0.3.578",
|
|
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>",
|