strong-error-handler 1.2.0 → 1.2.1

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/CHANGES.md CHANGED
@@ -1,3 +1,9 @@
1
+ 2017-01-30, Version 1.2.1
2
+ =========================
3
+
4
+ * Stop adding safeFields to original options arg (Miroslav Bajtoš)
5
+
6
+
1
7
  2017-01-30, Version 1.2.0
2
8
  =========================
3
9
 
@@ -35,8 +35,8 @@ module.exports = function buildResponseData(err, options) {
35
35
  fillInternalError(data, err);
36
36
  }
37
37
 
38
- options.safeFields = options.safeFields || [];
39
- fillSafeFields(data, err, options.safeFields);
38
+ var safeFields = options.safeFields || [];
39
+ fillSafeFields(data, err, safeFields);
40
40
 
41
41
  return data;
42
42
  };
package/package.json CHANGED
@@ -2,7 +2,7 @@
2
2
  "name": "strong-error-handler",
3
3
  "description": "Error handler for use in development and production environments.",
4
4
  "license": "MIT",
5
- "version": "1.2.0",
5
+ "version": "1.2.1",
6
6
  "repository": {
7
7
  "type": "git",
8
8
  "url": "https://github.com/strongloop/strong-error-handler.git"