@tryghost/errors 1.2.5 → 1.2.8
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/lib/utils.js +1 -1
- package/package.json +4 -4
package/lib/utils.js
CHANGED
|
@@ -188,7 +188,7 @@ exports.prepareStackForUser = function prepareStackForUser(error) {
|
|
|
188
188
|
|
|
189
189
|
// We build this up backwards, so we always insert at position 1
|
|
190
190
|
|
|
191
|
-
if (process.env.NODE_ENV === 'production') {
|
|
191
|
+
if (process.env.NODE_ENV === 'production' || error.hideStack) {
|
|
192
192
|
stackbits.splice(1, stackbits.length - 1);
|
|
193
193
|
} else {
|
|
194
194
|
// Clearly mark the strack trace
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@tryghost/errors",
|
|
3
|
-
"version": "1.2.
|
|
3
|
+
"version": "1.2.8",
|
|
4
4
|
"repository": "https://github.com/TryGhost/framework/tree/main/packages/errors",
|
|
5
5
|
"author": "Ghost Foundation",
|
|
6
6
|
"license": "MIT",
|
|
@@ -20,14 +20,14 @@
|
|
|
20
20
|
},
|
|
21
21
|
"devDependencies": {
|
|
22
22
|
"c8": "7.11.0",
|
|
23
|
-
"mocha": "9.2.
|
|
23
|
+
"mocha": "9.2.2",
|
|
24
24
|
"should": "13.2.3",
|
|
25
25
|
"sinon": "13.0.1"
|
|
26
26
|
},
|
|
27
27
|
"dependencies": {
|
|
28
28
|
"lodash": "^4.17.21",
|
|
29
|
-
"utils-copy-error": "1.0.1",
|
|
29
|
+
"utils-copy-error": "^1.0.1",
|
|
30
30
|
"uuid": "^8.3.2"
|
|
31
31
|
},
|
|
32
|
-
"gitHead": "
|
|
32
|
+
"gitHead": "bb0a6f800de127930357aadb6c52e7938c769ac2"
|
|
33
33
|
}
|