@datapos/datapos-shared 0.3.580 → 0.3.582

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.
@@ -10,14 +10,14 @@ class f extends c {
10
10
  console.log("aaaa", o, s, r), super(o, s, r), this.name = "AppError";
11
11
  }
12
12
  }
13
- class E extends c {
13
+ class d extends c {
14
14
  body;
15
15
  // Sanitized snapshot of the response body
16
16
  constructor(o, s, r, t) {
17
17
  super(o, s, t), this.name = "APIError", this.body = l(r ?? void 0);
18
18
  }
19
19
  }
20
- class d extends c {
20
+ class E extends c {
21
21
  constructor(o, s, r) {
22
22
  super(o, s, r), this.name = "EngineError";
23
23
  }
@@ -68,11 +68,12 @@ function a(e) {
68
68
  }
69
69
  function h(e) {
70
70
  const o = /* @__PURE__ */ new Set(), s = [];
71
+ console.log("bbbb", e.name, e.message, e.locator);
71
72
  let r = a(e);
72
- for (; r != null && !o.has(r); ) {
73
+ for (console.log("cccc", r.name, r.message, r.locator); r != null && !o.has(r); ) {
73
74
  o.add(r);
74
75
  let t;
75
- switch (console.log("bbbb", r.name, r), r.name) {
76
+ switch (r.name) {
76
77
  case "APIError": {
77
78
  const n = r;
78
79
  t = { body: n.body, locator: n.locator, message: r.message, name: "APIError", stack: r.stack }, r = r.cause == null ? null : a(r.cause);
@@ -80,7 +81,7 @@ function h(e) {
80
81
  }
81
82
  case "AppError": {
82
83
  const n = r;
83
- console.log("cccc", n), t = { body: void 0, locator: n.locator, message: r.message, name: "AppError", stack: r.stack }, r = r.cause == null ? null : a(r.cause);
84
+ console.log("dddd", n), t = { body: void 0, locator: n.locator, message: r.message, name: "AppError", stack: r.stack }, r = r.cause == null ? null : a(r.cause);
84
85
  break;
85
86
  }
86
87
  case "ConnectorError": {
@@ -110,13 +111,13 @@ function w(e) {
110
111
  let r;
111
112
  switch (s.name) {
112
113
  case "APIError":
113
- r = new E(s.message, s.locator, s.body, { cause: o });
114
+ r = new d(s.message, s.locator, s.body, { cause: o });
114
115
  break;
115
116
  case "ConnectorError":
116
117
  r = new m(s.message, s.locator, { cause: o });
117
118
  break;
118
119
  case "EngineError":
119
- r = new d(s.message, s.locator, { cause: o });
120
+ r = new E(s.message, s.locator, { cause: o });
120
121
  break;
121
122
  case "FetchError":
122
123
  r = new i(s.message, s.locator, s.body, { cause: o });
@@ -143,11 +144,11 @@ function l(e) {
143
144
  return e.length > 2048 ? `${e.slice(0, 2048)}... [truncated]` : e;
144
145
  }
145
146
  export {
146
- E as APIError,
147
+ d as APIError,
147
148
  f as AppError,
148
149
  m as ConnectorError,
149
150
  c as DPUError,
150
- d as EngineError,
151
+ E as EngineError,
151
152
  i as FetchError,
152
153
  y as buildFetchError,
153
154
  k as concatenateSerialisedErrorMessages,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@datapos/datapos-shared",
3
- "version": "0.3.580",
3
+ "version": "0.3.582",
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>",