@tryghost/errors 1.2.26 → 1.2.27
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/errors.js +1 -2
- package/package.json +4 -4
package/lib/errors.js
CHANGED
|
@@ -39,9 +39,8 @@ class GhostError extends Error {
|
|
|
39
39
|
if (options.err) {
|
|
40
40
|
// CASE: Support err as string (it happens that third party libs return a string instead of an error instance)
|
|
41
41
|
if (isString(options.err)) {
|
|
42
|
-
|
|
42
|
+
// eslint-disable-next-line ghost/ghost-custom/no-native-error
|
|
43
43
|
options.err = new Error(options.err);
|
|
44
|
-
/* eslint-enable no-restricted-syntax */
|
|
45
44
|
}
|
|
46
45
|
|
|
47
46
|
Object.getOwnPropertyNames(options.err).forEach((property) => {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@tryghost/errors",
|
|
3
|
-
"version": "1.2.
|
|
3
|
+
"version": "1.2.27",
|
|
4
4
|
"repository": "https://github.com/TryGhost/framework/tree/main/packages/errors",
|
|
5
5
|
"author": "Ghost Foundation",
|
|
6
6
|
"license": "MIT",
|
|
@@ -19,15 +19,15 @@
|
|
|
19
19
|
"access": "public"
|
|
20
20
|
},
|
|
21
21
|
"devDependencies": {
|
|
22
|
-
"c8": "
|
|
22
|
+
"c8": "8.0.1",
|
|
23
23
|
"mocha": "10.2.0",
|
|
24
24
|
"should": "13.2.3",
|
|
25
|
-
"sinon": "
|
|
25
|
+
"sinon": "17.0.1"
|
|
26
26
|
},
|
|
27
27
|
"dependencies": {
|
|
28
28
|
"@stdlib/utils-copy": "^0.0.7",
|
|
29
29
|
"lodash": "^4.17.21",
|
|
30
30
|
"uuid": "^9.0.0"
|
|
31
31
|
},
|
|
32
|
-
"gitHead": "
|
|
32
|
+
"gitHead": "a655bcfba6531944b8fd997bf53ccefb9dcf1685"
|
|
33
33
|
}
|