historical-deadletter-processor
Advanced tools
Comparing version 2.5.0 to 3.0.0
@@ -24,3 +24,5 @@ "use strict"; | ||
app = _ref.app, | ||
job = _ref.job; | ||
job = _ref.job, | ||
propertiesToOmit = _ref.propertiesToOmit, | ||
clientId = _ref.clientId; | ||
@@ -32,2 +34,4 @@ _classCallCheck(this, Mapper); | ||
this.job = job; | ||
this.propertiesToOmit = propertiesToOmit; | ||
this.clientId = clientId; | ||
} | ||
@@ -47,4 +51,5 @@ | ||
notification: JSON.stringify(notification), | ||
user: "" + this.sender.user(notification) | ||
}, normalizeError(err)); | ||
user: "" + this.sender.user(notification), | ||
clientId: this.clientId | ||
}, normalizeError(err, this.propertiesToOmit)); | ||
} | ||
@@ -51,0 +56,0 @@ }]); |
@@ -1,2 +0,2 @@ | ||
"use strict"; | ||
'use strict'; | ||
@@ -10,4 +10,7 @@ // Generated by CoffeeScript 2.4.1 | ||
module.exports = function (err) { | ||
var propertiesToOmit = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : 'auth'; | ||
return { | ||
error: JSON.stringify(err), | ||
error: JSON.stringify(_.omit(err, 'detail.request')), | ||
request: JSON.stringify(_.omit(_.get(err, 'detail.request'), propertiesToOmit)), | ||
type: _.get(err, "message") || "unknown_error" | ||
@@ -14,0 +17,0 @@ }; |
{ | ||
"name": "historical-deadletter-processor", | ||
"version": "2.5.0", | ||
"version": "3.0.0", | ||
"description": "historical-deadletter-processor", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
Found 1 instance in 1 package
87
512
0
28403
14