@suprsend/node-sdk 1.13.0 → 1.13.1
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/users_api.js +3 -3
- package/package.json +1 -1
- package/src/users_api.js +3 -3
package/dist/users_api.js
CHANGED
|
@@ -62,7 +62,7 @@ var UsersApi = /*#__PURE__*/function () {
|
|
|
62
62
|
case 13:
|
|
63
63
|
_context.prev = 13;
|
|
64
64
|
_context.t0 = _context["catch"](6);
|
|
65
|
-
throw new _utils.SuprsendApiError(
|
|
65
|
+
throw new _utils.SuprsendApiError(_context.t0);
|
|
66
66
|
case 16:
|
|
67
67
|
case "end":
|
|
68
68
|
return _context.stop();
|
|
@@ -114,7 +114,7 @@ var UsersApi = /*#__PURE__*/function () {
|
|
|
114
114
|
case 11:
|
|
115
115
|
_context2.prev = 11;
|
|
116
116
|
_context2.t0 = _context2["catch"](4);
|
|
117
|
-
throw new _utils.SuprsendApiError(
|
|
117
|
+
throw new _utils.SuprsendApiError(_context2.t0);
|
|
118
118
|
case 14:
|
|
119
119
|
case "end":
|
|
120
120
|
return _context2.stop();
|
|
@@ -160,7 +160,7 @@ var UsersApi = /*#__PURE__*/function () {
|
|
|
160
160
|
case 14:
|
|
161
161
|
_context3.prev = 14;
|
|
162
162
|
_context3.t0 = _context3["catch"](7);
|
|
163
|
-
throw new _utils.SuprsendApiError(
|
|
163
|
+
throw new _utils.SuprsendApiError(_context3.t0);
|
|
164
164
|
case 17:
|
|
165
165
|
case "end":
|
|
166
166
|
return _context3.stop();
|
package/package.json
CHANGED
package/src/users_api.js
CHANGED
|
@@ -42,7 +42,7 @@ export default class UsersApi {
|
|
|
42
42
|
const resp = await axios.get(url, { headers });
|
|
43
43
|
return resp.data;
|
|
44
44
|
} catch (error) {
|
|
45
|
-
throw new SuprsendApiError(
|
|
45
|
+
throw new SuprsendApiError(error);
|
|
46
46
|
}
|
|
47
47
|
}
|
|
48
48
|
|
|
@@ -77,7 +77,7 @@ export default class UsersApi {
|
|
|
77
77
|
const resp = await axios.get(url, { headers });
|
|
78
78
|
return resp.data;
|
|
79
79
|
} catch (error) {
|
|
80
|
-
throw new SuprsendApiError(
|
|
80
|
+
throw new SuprsendApiError(error);
|
|
81
81
|
}
|
|
82
82
|
}
|
|
83
83
|
|
|
@@ -99,7 +99,7 @@ export default class UsersApi {
|
|
|
99
99
|
const resp = await axios.post(url, content_text, { headers });
|
|
100
100
|
return resp.data;
|
|
101
101
|
} catch (error) {
|
|
102
|
-
throw new SuprsendApiError(
|
|
102
|
+
throw new SuprsendApiError(error);
|
|
103
103
|
}
|
|
104
104
|
}
|
|
105
105
|
|