@holz/console-backend 0.6.0 → 0.6.1
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/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@holz/console-backend",
|
|
3
|
-
"version": "0.6.
|
|
3
|
+
"version": "0.6.1",
|
|
4
4
|
"description": "A console backend for Holz",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "./dist/holz-console-backend.cjs",
|
|
@@ -38,12 +38,15 @@
|
|
|
38
38
|
"test:unit": "vitest --color --passWithNoTests",
|
|
39
39
|
"test:types": "tsc"
|
|
40
40
|
},
|
|
41
|
+
"peerDependencies": {
|
|
42
|
+
"@holz/core": "0.6.0"
|
|
43
|
+
},
|
|
41
44
|
"devDependencies": {
|
|
42
45
|
"@holz/core": "^0.6.0",
|
|
43
46
|
"@types/node": "^18.14.0",
|
|
44
|
-
"@vitest/coverage-
|
|
45
|
-
"typescript": "^
|
|
47
|
+
"@vitest/coverage-v8": "^0.33.0",
|
|
48
|
+
"typescript": "^5.0.0",
|
|
46
49
|
"vite": "^4.0.0",
|
|
47
|
-
"vitest": "^0.
|
|
50
|
+
"vitest": "^0.33.0"
|
|
48
51
|
}
|
|
49
52
|
}
|
|
@@ -36,7 +36,7 @@ describe('Console backend', () => {
|
|
|
36
36
|
logger.info('hello world');
|
|
37
37
|
|
|
38
38
|
expect(output.print).toHaveBeenCalledWith(
|
|
39
|
-
expect.stringContaining('hello world')
|
|
39
|
+
expect.stringContaining('hello world'),
|
|
40
40
|
);
|
|
41
41
|
});
|
|
42
42
|
|
|
@@ -50,7 +50,7 @@ describe('Console backend', () => {
|
|
|
50
50
|
logger.debug('initialized');
|
|
51
51
|
|
|
52
52
|
expect(output.print).toHaveBeenCalledWith(
|
|
53
|
-
expect.stringContaining('my-lib:MyClass')
|
|
53
|
+
expect.stringContaining('my-lib:MyClass'),
|
|
54
54
|
);
|
|
55
55
|
});
|
|
56
56
|
|
|
@@ -63,7 +63,7 @@ describe('Console backend', () => {
|
|
|
63
63
|
|
|
64
64
|
// Hard to test without replicating the implementation.
|
|
65
65
|
expect(output.print).toHaveBeenCalledWith(
|
|
66
|
-
expect.stringContaining('sessionId')
|
|
66
|
+
expect.stringContaining('sessionId'),
|
|
67
67
|
);
|
|
68
68
|
|
|
69
69
|
expect(output.print).toHaveBeenCalledWith(expect.stringContaining('3109'));
|
|
@@ -111,7 +111,7 @@ describe('Console backend', () => {
|
|
|
111
111
|
const backend = createConsoleBackend({ console: output });
|
|
112
112
|
const logger = namespace.reduce(
|
|
113
113
|
(logger, ns) => logger.namespace(ns),
|
|
114
|
-
createLogger(backend)
|
|
114
|
+
createLogger(backend),
|
|
115
115
|
);
|
|
116
116
|
|
|
117
117
|
logger[method](message, { id: 1234 });
|