notification-processor 6.0.1 → 6.0.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 +7 -0
- package/lib/processors/maxRetries.processor.js +17 -17
- package/package.json +11 -5
package/CHANGELOG.md
CHANGED
|
@@ -1,3 +1,10 @@
|
|
|
1
|
+
## [6.0.2](https://github.com/Parsimotion/notification-processor/compare/v6.0.1...v6.0.2) (2025-09-11)
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
### Bug Fixes
|
|
5
|
+
|
|
6
|
+
* enter en max retry ([2c08986](https://github.com/Parsimotion/notification-processor/commit/2c089862dff18a8b146b01a9e18f0eb13519dd1c))
|
|
7
|
+
|
|
1
8
|
## [6.0.1](https://github.com/Parsimotion/notification-processor/compare/v6.0.0...v6.0.1) (2025-09-09)
|
|
2
9
|
|
|
3
10
|
|
|
@@ -23,26 +23,26 @@ function _classCallCheck(instance, Constructor) { if (!(instance instanceof Cons
|
|
|
23
23
|
this._onIgnoredError_ = this._onIgnoredError_.bind(this);
|
|
24
24
|
this.processor = processor;
|
|
25
25
|
this.maxRetries = maxRetries;
|
|
26
|
-
({
|
|
27
|
-
process: function process(notification, context, executionId) {
|
|
28
|
-
var _this = this;
|
|
29
|
-
|
|
30
|
-
return this.processor(notification, context, executionId).tap(function (it) {
|
|
31
|
-
return _this._onSuccess_(notification, it);
|
|
32
|
-
}).catch(function (err) {
|
|
33
|
-
if (_this._isIgnoredError_(err)) {
|
|
34
|
-
return _this._onIgnoredError_(notification, err);
|
|
35
|
-
}
|
|
36
|
-
if (_this._shouldRetry_(notification, err)) {
|
|
37
|
-
throw _this._sanitizeError_(err);
|
|
38
|
-
}
|
|
39
|
-
return _this._onMaxRetryExceeded_(notification, err);
|
|
40
|
-
});
|
|
41
|
-
}
|
|
42
|
-
});
|
|
43
26
|
}
|
|
44
27
|
|
|
45
28
|
_createClass(MaxRetriesProcessor, [{
|
|
29
|
+
key: "process",
|
|
30
|
+
value: function process(notification, context, executionId) {
|
|
31
|
+
var _this = this;
|
|
32
|
+
|
|
33
|
+
return this.processor(notification, context, executionId).tap(function (it) {
|
|
34
|
+
return _this._onSuccess_(notification, it);
|
|
35
|
+
}).catch(function (err) {
|
|
36
|
+
if (_this._isIgnoredError_(err)) {
|
|
37
|
+
return _this._onIgnoredError_(notification, err);
|
|
38
|
+
}
|
|
39
|
+
if (_this._shouldRetry_(notification, err)) {
|
|
40
|
+
throw _this._sanitizeError_(err);
|
|
41
|
+
}
|
|
42
|
+
return _this._onMaxRetryExceeded_(notification, err);
|
|
43
|
+
});
|
|
44
|
+
}
|
|
45
|
+
}, {
|
|
46
46
|
key: "_shouldRetry_",
|
|
47
47
|
value: function _shouldRetry_(_ref2, err) {
|
|
48
48
|
var _ref2$meta$dequeueCou = _ref2.meta.dequeueCount,
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "notification-processor",
|
|
3
|
-
"version": "6.0.
|
|
3
|
+
"version": "6.0.2",
|
|
4
4
|
"description": "notification-processor",
|
|
5
5
|
"main": "index.js",
|
|
6
6
|
"scripts": {
|
|
@@ -31,12 +31,13 @@
|
|
|
31
31
|
},
|
|
32
32
|
"husky": {
|
|
33
33
|
"hooks": {
|
|
34
|
-
"commit-msg": "
|
|
34
|
+
"commit-msg": "npx linterteca-commitlint --edit $1",
|
|
35
|
+
"pre-commit": "npx lint-staged",
|
|
36
|
+
"pre-push": "npx linterteca"
|
|
35
37
|
}
|
|
36
38
|
},
|
|
37
39
|
"devDependencies": {
|
|
38
|
-
"@
|
|
39
|
-
"@commitlint/config-conventional": "^11.0.0",
|
|
40
|
+
"@producteca/linterteca": "^1.3.2",
|
|
40
41
|
"babel-core": "^6.26.3",
|
|
41
42
|
"babel-preset-env": "^1.7.0",
|
|
42
43
|
"coffeescript": "^2.3.1",
|
|
@@ -63,5 +64,10 @@
|
|
|
63
64
|
"bugs": {
|
|
64
65
|
"url": "https://github.com/Parsimotion/notification-processor/issues"
|
|
65
66
|
},
|
|
66
|
-
"homepage": "https://github.com/Parsimotion/notification-processor#readme"
|
|
67
|
+
"homepage": "https://github.com/Parsimotion/notification-processor#readme",
|
|
68
|
+
"lint-staged": {
|
|
69
|
+
"*.{js,jsx}": [
|
|
70
|
+
"linterteca-lint"
|
|
71
|
+
]
|
|
72
|
+
}
|
|
67
73
|
}
|