@holz/console-backend 0.6.1 → 0.7.0-rc.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.
@@ -0,0 +1,19 @@
1
+ import { LogProcessor } from '@holz/core';
2
+
3
+ /**
4
+ * A backend that pretty-prints logs to a browser console, or any
5
+ * remote-attached console.
6
+ */
7
+ export declare function createConsoleBackend(options?: Options): LogProcessor;
8
+
9
+ /**
10
+ * A subset of the Console interface. Must support printf-style interpolation.
11
+ * @see https://console.spec.whatwg.org/#formatting-specifiers
12
+ */
13
+ declare type MinimalConsole = Pick<Console, 'debug' | 'info' | 'warn' | 'error'>;
14
+
15
+ declare interface Options {
16
+ console?: MinimalConsole;
17
+ }
18
+
19
+ export { }
package/package.json CHANGED
@@ -1,11 +1,8 @@
1
1
  {
2
2
  "name": "@holz/console-backend",
3
- "version": "0.6.1",
3
+ "version": "0.7.0-rc.1",
4
4
  "description": "A console backend for Holz",
5
5
  "type": "module",
6
- "main": "./dist/holz-console-backend.cjs",
7
- "module": "./dist/holz-console-backend.js",
8
- "types": "./src/index.ts",
9
6
  "repository": {
10
7
  "type": "git",
11
8
  "url": "https://github.com/PsychoLlama/holz",
@@ -13,6 +10,7 @@
13
10
  },
14
11
  "exports": {
15
12
  ".": {
13
+ "types": "./dist/holz-console-backend.d.ts",
16
14
  "require": "./dist/holz-console-backend.cjs",
17
15
  "import": "./dist/holz-console-backend.js"
18
16
  }
@@ -39,14 +37,17 @@
39
37
  "test:types": "tsc"
40
38
  },
41
39
  "peerDependencies": {
42
- "@holz/core": "0.6.0"
40
+ "@holz/core": "0.7.0-rc.1"
43
41
  },
44
42
  "devDependencies": {
45
- "@holz/core": "^0.6.0",
46
- "@types/node": "^18.14.0",
47
- "@vitest/coverage-v8": "^0.33.0",
43
+ "@holz/core": "^0.7.0-rc.1",
44
+ "@types/node": "^22.0.0",
45
+ "@vitest/coverage-v8": "^3.0.8",
48
46
  "typescript": "^5.0.0",
49
- "vite": "^4.0.0",
50
- "vitest": "^0.33.0"
51
- }
47
+ "vite": "^6.0.0",
48
+ "vite-plugin-dts": "^4.5.3",
49
+ "vite-tsconfig-paths": "^5.1.4",
50
+ "vitest": "^3.0.8"
51
+ },
52
+ "stableVersion": "0.6.1"
52
53
  }