notification-processor 6.0.6-alpha.1 → 6.0.6

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/CHANGELOG.md CHANGED
@@ -1,9 +1,9 @@
1
- ## [6.0.6-alpha.1](https://github.com/Parsimotion/notification-processor/compare/v6.0.5...v6.0.6-alpha.1) (2026-02-19)
1
+ ## [6.0.6](https://github.com/Parsimotion/notification-processor/compare/v6.0.5...v6.0.6) (2026-03-13)
2
2
 
3
3
 
4
4
  ### Bug Fixes
5
5
 
6
- * get message from Message object ([ebc26c0](https://github.com/Parsimotion/notification-processor/commit/ebc26c05af0098faa206b2b048e05156d0008fec))
6
+ * Handle error in job processor with notifications ([80e1dfb](https://github.com/Parsimotion/notification-processor/commit/80e1dfb53df880e38efa456a023454833dfc4b2c))
7
7
 
8
8
  ## [6.0.5](https://github.com/Parsimotion/notification-processor/compare/v6.0.4...v6.0.5) (2026-02-19)
9
9
 
@@ -103,13 +103,13 @@ function _inherits(subClass, superClass) { if (typeof superClass !== "function"
103
103
 
104
104
  var message = _ref3.message;
105
105
 
106
- var errorMessage;
106
+ var errorMessage, ref, ref1, ref2;
107
107
  boundMethodCheck(this, JobProcessor);
108
108
  errorMessage = {
109
109
  message: message,
110
- statusCode: error.detail.response.statusCode,
110
+ statusCode: error != null ? (ref = error.detail) != null ? (ref1 = ref.response) != null ? ref1.statusCode : void 0 : void 0 : void 0,
111
111
  error: error,
112
- request: _.omit(error.detail.request, ["resolveWithFullResponse"])
112
+ request: _.omit(error != null ? (ref2 = error.detail) != null ? ref2.request : void 0 : void 0, ["resolveWithFullResponse"])
113
113
  };
114
114
  return this._ifJobIsNotStopped(message, function () {
115
115
  return _this4._notificationsApi(message).fail(errorMessage).throw(new NonRetryable("Max retry exceeded", error));
@@ -12,7 +12,7 @@
12
12
  message = _ref.message;
13
13
 
14
14
  return {
15
- message: !_.isObject(message.Message) ? JSON.parse(message.Message) : message.Message,
15
+ message: message,
16
16
  meta: {
17
17
  insertionTime: _.get(context, "bindingData.sentTimestamp"),
18
18
  dequeueCount: _.get(context, "bindingData.approximateReceiveCount"),
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "notification-processor",
3
- "version": "6.0.6-alpha.1",
3
+ "version": "6.0.6",
4
4
  "description": "notification-processor",
5
5
  "main": "index.js",
6
6
  "scripts": {