notification-processor 6.0.6 → 6.1.0

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,15 @@
1
+ # [6.1.0](https://github.com/Parsimotion/notification-processor/compare/v6.0.6...v6.1.0) (2026-04-16)
2
+
3
+
4
+ ### Bug Fixes
5
+
6
+ * vuelvo script para atras ([805d0ed](https://github.com/Parsimotion/notification-processor/commit/805d0edee15651511d88f85f86fec2bb2ed5ba4d))
7
+
8
+
9
+ ### Features
10
+
11
+ * agrego shouldretry antes del process, corrijo script ([3d983e3](https://github.com/Parsimotion/notification-processor/commit/3d983e3fed98d054c3da29a0cd29700a57bb7b66))
12
+
1
13
  ## [6.0.6](https://github.com/Parsimotion/notification-processor/compare/v6.0.5...v6.0.6) (2026-03-13)
2
14
 
3
15
 
package/copyToFunction CHANGED
@@ -1,7 +1,7 @@
1
1
  #!/bin/bash
2
2
  FUNCTION=$1
3
3
 
4
- npm run build
4
+ npm run build
5
5
  echo "Removing old version from $FUNCTION"
6
6
  rm -rf "../$FUNCTION/node_modules/notification-processor/lib/"
7
7
  echo "Removed. Copying new version to $FUNCTION"
@@ -30,6 +30,9 @@ function _classCallCheck(instance, Constructor) { if (!(instance instanceof Cons
30
30
  value: function process(notification, context, executionId) {
31
31
  var _this = this;
32
32
 
33
+ if (!this._shouldRetry_(notification)) {
34
+ this._onMaxRetryExceeded_(notification, new Error("max retries exceeded"));
35
+ }
33
36
  return this.processor(notification, context, executionId).tap(function (it) {
34
37
  return _this._onSuccess_(notification, it);
35
38
  }).catch(function (err) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "notification-processor",
3
- "version": "6.0.6",
3
+ "version": "6.1.0",
4
4
  "description": "notification-processor",
5
5
  "main": "index.js",
6
6
  "scripts": {