sim-node-lib 0.0.45 → 0.0.46

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.
@@ -22,7 +22,7 @@ class AxiosService {
22
22
  var _a;
23
23
  let authEnv = (_a = process.env.AUTHORIZATION) !== null && _a !== void 0 ? _a : '';
24
24
  headers = {
25
- authorization: auth !== null && auth !== void 0 ? auth : authEnv
25
+ authorization: auth !== null && auth !== void 0 ? auth : authEnv,
26
26
  };
27
27
  return this;
28
28
  }
@@ -39,7 +39,8 @@ class AxiosService {
39
39
  return data;
40
40
  })
41
41
  .catch((e) => {
42
- throw e.response.data;
42
+ var _a;
43
+ throw (_a = e.response.data) !== null && _a !== void 0 ? _a : e;
43
44
  });
44
45
  });
45
46
  }
@@ -56,7 +57,8 @@ class AxiosService {
56
57
  return data;
57
58
  })
58
59
  .catch((e) => {
59
- throw e.response.data;
60
+ var _a;
61
+ throw (_a = e.response.data) !== null && _a !== void 0 ? _a : e;
60
62
  });
61
63
  });
62
64
  }
@@ -73,7 +75,8 @@ class AxiosService {
73
75
  return data;
74
76
  })
75
77
  .catch((e) => {
76
- throw e.response.data;
78
+ var _a;
79
+ throw (_a = e.response.data) !== null && _a !== void 0 ? _a : e;
77
80
  });
78
81
  });
79
82
  }
@@ -90,7 +93,8 @@ class AxiosService {
90
93
  return data;
91
94
  })
92
95
  .catch((e) => {
93
- throw e.response.data;
96
+ var _a;
97
+ throw (_a = e.response.data) !== null && _a !== void 0 ? _a : e;
94
98
  });
95
99
  });
96
100
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "sim-node-lib",
3
- "version": "0.0.45",
3
+ "version": "0.0.46",
4
4
  "description": "Library from SIMLabs",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",