notification-processor 6.0.5 → 6.0.6-alpha.2

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,3 +1,10 @@
1
+ ## [6.0.6-alpha.2](https://github.com/Parsimotion/notification-processor/compare/v6.0.6-alpha.1...v6.0.6-alpha.2) (2026-02-19)
2
+
3
+
4
+ ### Bug Fixes
5
+
6
+ * add logs ([07bab16](https://github.com/Parsimotion/notification-processor/commit/07bab16acd79f3fceb24a61139b51795537e2cc7))
7
+
1
8
  ## [6.0.5](https://github.com/Parsimotion/notification-processor/compare/v6.0.4...v6.0.5) (2026-02-19)
2
9
 
3
10
 
@@ -112,7 +112,12 @@ function _inherits(subClass, superClass) { if (typeof superClass !== "function"
112
112
  request: _.omit(error.detail.request, ["resolveWithFullResponse"])
113
113
  };
114
114
  return this._ifJobIsNotStopped(message, function () {
115
- return _this4._notificationsApi(message).fail(errorMessage).throw(new NonRetryable("Max retry exceeded", error));
115
+ console.log("Max retry exceeded for job " + message.JobId + " with error " + errorMessage.error);
116
+ console.log("Sending NotificationsApi fail");
117
+ return _this4._notificationsApi(message).fail(errorMessage).then(function (response) {
118
+ console.log("NotificationsApi fail response: " + response);
119
+ return response;
120
+ }).throw(new NonRetryable("Max retry exceeded", error));
116
121
  });
117
122
  }
118
123
  }, {
@@ -204,6 +204,9 @@ function _classCallCheck(instance, Constructor) { if (!(instance instanceof Cons
204
204
  }
205
205
  console.log("Error sending status to notifications-api. Retrying via notifications-api-async");
206
206
  return retryRequest();
207
+ }).tapCatch(function (e) {
208
+ console.log("Error sending status to notifications-api-async. Ignoring error.");
209
+ return console.log(e);
207
210
  }).catchReturn();
208
211
  }
209
212
  }, {
@@ -48,6 +48,7 @@ function _classCallCheck(instance, Constructor) { if (!(instance instanceof Cons
48
48
  var _ref2$meta$dequeueCou = _ref2.meta.dequeueCount,
49
49
  dequeueCount = _ref2$meta$dequeueCou === undefined ? 0 : _ref2$meta$dequeueCou;
50
50
 
51
+ console.log("dequeue count is " + dequeueCount + " and max retries is " + this.maxRetries);
51
52
  return dequeueCount < this.maxRetries;
52
53
  }
53
54
  }, {
@@ -12,7 +12,7 @@
12
12
  message = _ref.message;
13
13
 
14
14
  return {
15
- message: message,
15
+ message: !_.isObject(message.Message) ? JSON.parse(message.Message) : 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.5",
3
+ "version": "6.0.6-alpha.2",
4
4
  "description": "notification-processor",
5
5
  "main": "index.js",
6
6
  "scripts": {