@tryghost/errors 1.3.8 → 1.3.9
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 +1 -1
- package/README.md +1 -1
- package/cjs/GhostError.js +1 -4
- package/cjs/index.js +6 -6
- package/es/GhostError.js +1 -4
- package/es/index.js +2 -2
- package/package.json +5 -6
package/LICENSE
CHANGED
package/README.md
CHANGED
package/cjs/GhostError.js
CHANGED
|
@@ -17,10 +17,7 @@ var __copyProps = (to, from, except, desc) => {
|
|
|
17
17
|
return to;
|
|
18
18
|
};
|
|
19
19
|
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
20
|
-
var __publicField = (obj, key, value) =>
|
|
21
|
-
__defNormalProp(obj, typeof key !== "symbol" ? key + "" : key, value);
|
|
22
|
-
return value;
|
|
23
|
-
};
|
|
20
|
+
var __publicField = (obj, key, value) => __defNormalProp(obj, typeof key !== "symbol" ? key + "" : key, value);
|
|
24
21
|
var GhostError_exports = {};
|
|
25
22
|
__export(GhostError_exports, {
|
|
26
23
|
GhostError: () => GhostError
|
package/cjs/index.js
CHANGED
|
@@ -27,16 +27,16 @@ var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__ge
|
|
|
27
27
|
mod
|
|
28
28
|
));
|
|
29
29
|
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
30
|
-
var
|
|
31
|
-
__export(
|
|
32
|
-
default: () =>
|
|
30
|
+
var index_exports = {};
|
|
31
|
+
__export(index_exports, {
|
|
32
|
+
default: () => index_default,
|
|
33
33
|
utils: () => utils
|
|
34
34
|
});
|
|
35
|
-
module.exports = __toCommonJS(
|
|
35
|
+
module.exports = __toCommonJS(index_exports);
|
|
36
36
|
var ghostErrors = __toESM(require("./errors"));
|
|
37
37
|
var import_utils = require("./utils");
|
|
38
|
-
__reExport(
|
|
39
|
-
var
|
|
38
|
+
__reExport(index_exports, require("./errors"), module.exports);
|
|
39
|
+
var index_default = ghostErrors;
|
|
40
40
|
const utils = {
|
|
41
41
|
serialize: import_utils.serialize,
|
|
42
42
|
deserialize: import_utils.deserialize,
|
package/es/GhostError.js
CHANGED
|
@@ -1,9 +1,6 @@
|
|
|
1
1
|
var __defProp = Object.defineProperty;
|
|
2
2
|
var __defNormalProp = (obj, key, value) => key in obj ? __defProp(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
3
|
-
var __publicField = (obj, key, value) =>
|
|
4
|
-
__defNormalProp(obj, typeof key !== "symbol" ? key + "" : key, value);
|
|
5
|
-
return value;
|
|
6
|
-
};
|
|
3
|
+
var __publicField = (obj, key, value) => __defNormalProp(obj, typeof key !== "symbol" ? key + "" : key, value);
|
|
7
4
|
import { v1 as uuidv1 } from "uuid";
|
|
8
5
|
import { wrapStack } from "./wrap-stack";
|
|
9
6
|
class GhostError extends Error {
|
package/es/index.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import * as ghostErrors from "./errors";
|
|
2
2
|
import { deserialize, isGhostError, prepareStackForUser, serialize } from "./utils";
|
|
3
3
|
export * from "./errors";
|
|
4
|
-
var
|
|
4
|
+
var index_default = ghostErrors;
|
|
5
5
|
const utils = {
|
|
6
6
|
serialize,
|
|
7
7
|
deserialize,
|
|
@@ -9,6 +9,6 @@ const utils = {
|
|
|
9
9
|
prepareStackForUser
|
|
10
10
|
};
|
|
11
11
|
export {
|
|
12
|
-
|
|
12
|
+
index_default as default,
|
|
13
13
|
utils
|
|
14
14
|
};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@tryghost/errors",
|
|
3
|
-
"version": "1.3.
|
|
3
|
+
"version": "1.3.9",
|
|
4
4
|
"repository": {
|
|
5
5
|
"type": "git",
|
|
6
6
|
"url": "git+https://github.com/TryGhost/framework.git",
|
|
@@ -39,16 +39,15 @@
|
|
|
39
39
|
"@types/mocha": "^10.0.3",
|
|
40
40
|
"@types/uuid": "^9.0.6",
|
|
41
41
|
"c8": "10.1.3",
|
|
42
|
-
"esbuild": "^0.
|
|
42
|
+
"esbuild": "^0.25.0",
|
|
43
43
|
"lodash": "^4.17.21",
|
|
44
|
-
"mocha": "
|
|
44
|
+
"mocha": "11.7.5",
|
|
45
45
|
"should": "13.2.3",
|
|
46
46
|
"ts-node": "^10.9.1",
|
|
47
|
-
"typescript": "5.
|
|
47
|
+
"typescript": "5.9.3"
|
|
48
48
|
},
|
|
49
49
|
"dependencies": {
|
|
50
50
|
"@stdlib/utils-copy": "^0.2.0",
|
|
51
51
|
"uuid": "^9.0.0"
|
|
52
|
-
}
|
|
53
|
-
"gitHead": "e395f1d79edee4aecc36e572bb402016a8ba9273"
|
|
52
|
+
}
|
|
54
53
|
}
|