@suprsend/node-sdk 1.7.0 → 1.7.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.
@@ -195,7 +195,7 @@ var _BulkEventsChunk = /*#__PURE__*/function () {
195
195
  _context.prev = 12;
196
196
  _context.t0 = _context["catch"](4);
197
197
  error_status = _context.t0.status || 500;
198
- return _context.abrupt("return", {
198
+ this.response = {
199
199
  status: "fail",
200
200
  status_code: error_status,
201
201
  message: _context.t0.message,
@@ -209,7 +209,7 @@ var _BulkEventsChunk = /*#__PURE__*/function () {
209
209
  code: error_status
210
210
  };
211
211
  })
212
- });
212
+ };
213
213
 
214
214
  case 16:
215
215
  case "end":
@@ -190,7 +190,7 @@ var _BulkSubscribersChunk = /*#__PURE__*/function () {
190
190
  _context.prev = 12;
191
191
  _context.t0 = _context["catch"](4);
192
192
  error_status = _context.t0.status || 500;
193
- return _context.abrupt("return", {
193
+ this.response = {
194
194
  status: "fail",
195
195
  status_code: error_status,
196
196
  message: _context.t0.message,
@@ -204,7 +204,7 @@ var _BulkSubscribersChunk = /*#__PURE__*/function () {
204
204
  code: error_status
205
205
  };
206
206
  })
207
- });
207
+ };
208
208
 
209
209
  case 16:
210
210
  case "end":
@@ -194,7 +194,7 @@ var _BulkWorkflowsChunk = /*#__PURE__*/function () {
194
194
  _context.prev = 12;
195
195
  _context.t0 = _context["catch"](4);
196
196
  error_status = _context.t0.status || 500;
197
- return _context.abrupt("return", {
197
+ this.response = {
198
198
  status: "fail",
199
199
  status_code: error_status,
200
200
  message: _context.t0.message,
@@ -208,7 +208,7 @@ var _BulkWorkflowsChunk = /*#__PURE__*/function () {
208
208
  code: error_status
209
209
  };
210
210
  })
211
- });
211
+ };
212
212
 
213
213
  case 16:
214
214
  case "end":
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@suprsend/node-sdk",
3
- "version": "1.7.0",
3
+ "version": "1.7.1",
4
4
  "description": "Suprsend Node SDK to trigger workflow from backend",
5
5
  "main": "dist/index.js",
6
6
  "scripts": {
@@ -135,7 +135,7 @@ class _BulkEventsChunk {
135
135
  }
136
136
  } catch (err) {
137
137
  const error_status = err.status || 500;
138
- return {
138
+ this.response = {
139
139
  status: "fail",
140
140
  status_code: error_status,
141
141
  message: err.message,
@@ -128,7 +128,7 @@ class _BulkSubscribersChunk {
128
128
  }
129
129
  } catch (err) {
130
130
  const error_status = err.status || 500;
131
- return {
131
+ this.response = {
132
132
  status: "fail",
133
133
  status_code: error_status,
134
134
  message: err.message,
@@ -134,7 +134,7 @@ class _BulkWorkflowsChunk {
134
134
  }
135
135
  } catch (err) {
136
136
  const error_status = err.status || 500;
137
- return {
137
+ this.response = {
138
138
  status: "fail",
139
139
  status_code: error_status,
140
140
  message: err.message,