@drunkcod/express-kit 0.0.16 → 0.0.17
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/cjs/loggable.d.ts +1 -1
- package/lib/cjs/loggable.js +2 -2
- package/lib/loggable.d.ts +1 -1
- package/lib/loggable.js +2 -2
- package/package.json +5 -5
package/lib/cjs/loggable.d.ts
CHANGED
package/lib/cjs/loggable.js
CHANGED
|
@@ -19,7 +19,7 @@ function at(message) {
|
|
|
19
19
|
}
|
|
20
20
|
function loggableStack(message, stopAt) {
|
|
21
21
|
const s = {};
|
|
22
|
-
Error.captureStackTrace(s,
|
|
22
|
+
Error.captureStackTrace(s, stopAt);
|
|
23
23
|
if (message)
|
|
24
24
|
message = `: ${message}`;
|
|
25
25
|
else
|
|
@@ -45,7 +45,7 @@ function asLoggableCause(cause) {
|
|
|
45
45
|
r.stack = stack;
|
|
46
46
|
return Object.assign(r, rest);
|
|
47
47
|
}
|
|
48
|
-
return
|
|
48
|
+
return cause;
|
|
49
49
|
}
|
|
50
50
|
function asLoggableError(error) {
|
|
51
51
|
if (error instanceof Error)
|
package/lib/loggable.d.ts
CHANGED
package/lib/loggable.js
CHANGED
|
@@ -14,7 +14,7 @@ export function at(message) {
|
|
|
14
14
|
}
|
|
15
15
|
function loggableStack(message, stopAt) {
|
|
16
16
|
const s = {};
|
|
17
|
-
Error.captureStackTrace(s,
|
|
17
|
+
Error.captureStackTrace(s, stopAt);
|
|
18
18
|
if (message)
|
|
19
19
|
message = `: ${message}`;
|
|
20
20
|
else
|
|
@@ -40,7 +40,7 @@ function asLoggableCause(cause) {
|
|
|
40
40
|
r.stack = stack;
|
|
41
41
|
return Object.assign(r, rest);
|
|
42
42
|
}
|
|
43
|
-
return
|
|
43
|
+
return cause;
|
|
44
44
|
}
|
|
45
45
|
export function asLoggableError(error) {
|
|
46
46
|
if (error instanceof Error)
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@drunkcod/express-kit",
|
|
3
3
|
"type": "module",
|
|
4
|
-
"version": "0.0.
|
|
4
|
+
"version": "0.0.17",
|
|
5
5
|
"description": "Express4 utility things",
|
|
6
6
|
"main": "lib/index.js",
|
|
7
7
|
"types": "lib/index.d.ts",
|
|
@@ -40,16 +40,16 @@
|
|
|
40
40
|
],
|
|
41
41
|
"dependencies": {
|
|
42
42
|
"@drunkcod/argis": "^0.0.11",
|
|
43
|
-
"@drunkcod/express-async": "^0.0.
|
|
43
|
+
"@drunkcod/express-async": "^0.0.17"
|
|
44
44
|
},
|
|
45
45
|
"devDependencies": {
|
|
46
46
|
"@drunkcod/ts-jest-esm": "^0.0.1",
|
|
47
47
|
"@jest/globals": "^29.7.0",
|
|
48
|
-
"@types/node": "^22.
|
|
48
|
+
"@types/node": "^22.13.10",
|
|
49
49
|
"jest": "^29.7.0",
|
|
50
50
|
"npm-run-all": "^4.1.5",
|
|
51
51
|
"rimraf": "^6.0.1",
|
|
52
|
-
"ts-jest": "^29.2.
|
|
53
|
-
"typescript": "^5.
|
|
52
|
+
"ts-jest": "^29.2.6",
|
|
53
|
+
"typescript": "^5.8.2"
|
|
54
54
|
}
|
|
55
55
|
}
|