notification-processor 4.19.1 → 4.19.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.
@@ -118,12 +118,12 @@ function _classCallCheck(instance, Constructor) { if (!(instance instanceof Cons
118
118
  job = _ref3.job,
119
119
  partialMessage = _ref3.partialMessage;
120
120
 
121
- var errorDescription, now, theRequest;
121
+ var errorType, now, theRequest;
122
122
  if (!eventId) {
123
123
  return Promise.resolve({});
124
124
  }
125
125
  theRequest = _.get(err, "detail.request") || _.get(err, "cause.detail.request");
126
- errorDescription = err && _(["cause.message", "message", "cause.type", "type"]).map(function (property) {
126
+ errorType = err && _(["cause.message", "message", "cause.type", "type"]).map(function (property) {
127
127
  return _.get(err, property);
128
128
  }).reject(_.isEmpty).get(0, "unknown");
129
129
  now = new Date();
@@ -150,7 +150,6 @@ function _classCallCheck(instance, Constructor) { if (!(instance instanceof Cons
150
150
  app: _this3.app,
151
151
  error: _.omit(err, ["detail.request", "cause.detail.request"]),
152
152
  request: _.omit(theRequest, _.castArray(_this3.propertiesToOmit).concat("auth")),
153
- type: errorDescription,
154
153
  tags: _.get(err, "tags", []),
155
154
  message: partialMessage || notification.message
156
155
  }),
@@ -159,7 +158,7 @@ function _classCallCheck(instance, Constructor) { if (!(instance instanceof Cons
159
158
  integration: _this3.app + "|" + (job || _this3.job),
160
159
  // Generic app fields
161
160
  event_timestamp: eventTimestamp || now.getTime(),
162
- output_message: errorDescription,
161
+ error_type: errorType,
163
162
  user_settings_version: null, //TODO
164
163
  env_version: null, //TODO
165
164
  code_version: null //TODO
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "notification-processor",
3
- "version": "4.19.1",
3
+ "version": "4.19.2",
4
4
  "description": "notification-processor",
5
5
  "main": "index.js",
6
6
  "scripts": {