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 +6 -0
- package/lib/data-builder.js +2 -2
- package/package.json +1 -1
package/CHANGES.md
CHANGED
package/lib/data-builder.js
CHANGED
|
@@ -35,8 +35,8 @@ module.exports = function buildResponseData(err, options) {
|
|
|
35
35
|
fillInternalError(data, err);
|
|
36
36
|
}
|
|
37
37
|
|
|
38
|
-
|
|
39
|
-
fillSafeFields(data, err,
|
|
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.
|
|
5
|
+
"version": "1.2.1",
|
|
6
6
|
"repository": {
|
|
7
7
|
"type": "git",
|
|
8
8
|
"url": "https://github.com/strongloop/strong-error-handler.git"
|