@tryghost/errors 1.2.25 → 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/LICENSE CHANGED
@@ -1,6 +1,6 @@
1
1
  MIT License
2
2
 
3
- Copyright (c) 2013-2022 Ghost Foundation
3
+ Copyright (c) 2013-2023 Ghost Foundation
4
4
 
5
5
  Permission is hereby granted, free of charge, to any person obtaining a copy
6
6
  of this software and associated documentation files (the "Software"), to deal
package/README.md CHANGED
@@ -36,4 +36,4 @@ Follow the instructions for the top-level repo.
36
36
 
37
37
  # Copyright & License
38
38
 
39
- Copyright (c) 2013-2022 Ghost Foundation - Released under the [MIT license](LICENSE).
39
+ Copyright (c) 2013-2023 Ghost Foundation - Released under the [MIT license](LICENSE).
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
- /* eslint-disable no-restricted-syntax */
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.25",
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": "7.13.0",
22
+ "c8": "8.0.1",
23
23
  "mocha": "10.2.0",
24
24
  "should": "13.2.3",
25
- "sinon": "15.0.4"
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": "4bf425a83dabe8e70ee28dffa37cf678b640068e"
32
+ "gitHead": "a655bcfba6531944b8fd997bf53ccefb9dcf1685"
33
33
  }