rslog 1.2.8 → 1.2.10

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.
Files changed (2) hide show
  1. package/dist/index.d.ts +6 -3
  2. package/package.json +16 -16
package/dist/index.d.ts CHANGED
@@ -1,4 +1,7 @@
1
- declare type ColorFn = (input: string | number | null | undefined) => string;
1
+ import { ColorFn } from './color.js';
2
+ import { Logger as Logger_2 } from './types.js';
3
+
4
+ declare type ColorFn_2 = (input: string | number | null | undefined) => string;
2
5
 
3
6
  export declare let createLogger: (options?: Options) => Logger;
4
7
 
@@ -51,7 +54,7 @@ export declare type Logger = Record<LogMethods, LogFunction> & {
51
54
  override: (customLogger: Partial<Record<LogMethods, LogFunction>>) => void;
52
55
  };
53
56
 
54
- export declare let logger: Logger;
57
+ export declare let logger: Logger_2;
55
58
 
56
59
  export declare type LogLevel = 'silent' | 'error' | 'warn' | 'info' | 'log' | 'verbose';
57
60
 
@@ -62,7 +65,7 @@ declare type LogMethods = keyof typeof LOG_TYPES;
62
65
  export declare interface LogType {
63
66
  label?: string;
64
67
  level: LogLevel;
65
- color?: ColorFn;
68
+ color?: ColorFn_2;
66
69
  }
67
70
 
68
71
  export declare interface Options {
package/package.json CHANGED
@@ -1,8 +1,11 @@
1
1
  {
2
2
  "name": "rslog",
3
- "version": "1.2.8",
4
- "types": "./dist/index.d.ts",
5
- "main": "./dist/index.cjs",
3
+ "version": "1.2.10",
4
+ "repository": {
5
+ "type": "git",
6
+ "url": "https://github.com/rspack-contrib/rslog.git"
7
+ },
8
+ "license": "MIT",
6
9
  "type": "module",
7
10
  "exports": {
8
11
  ".": {
@@ -11,35 +14,32 @@
11
14
  "require": "./dist/index.cjs"
12
15
  }
13
16
  },
17
+ "main": "./dist/index.cjs",
18
+ "types": "./dist/index.d.ts",
14
19
  "files": [
15
20
  "dist"
16
21
  ],
17
22
  "scripts": {
18
- "prepare": "rslib build",
19
- "preview": "bun run ./preview.ts",
20
23
  "build": "rslib build",
24
+ "bump": "npx bumpp",
21
25
  "dev": "rslib build --watch",
22
- "test": "vitest",
23
- "bump": "npx bumpp"
24
- },
25
- "packageManager": "pnpm@10.12.1",
26
- "repository": {
27
- "type": "git",
28
- "url": "https://github.com/rspack-contrib/rslog.git"
26
+ "prepare": "rslib build",
27
+ "preview": "bun run ./preview.ts",
28
+ "test": "rstest"
29
29
  },
30
30
  "devDependencies": {
31
31
  "@microsoft/api-extractor": "^7.52.8",
32
32
  "@rslib/core": "^0.9.2",
33
+ "@rstest/core": "^0.0.6",
33
34
  "@types/node": "^22.15.31",
34
35
  "prettier": "~3.5.3",
35
36
  "strip-ansi": "^7.1.0",
36
37
  "supports-color": "^10.0.0",
37
- "typescript": "~5.8.3",
38
- "vitest": "^2.1.8"
38
+ "typescript": "~5.8.3"
39
39
  },
40
+ "packageManager": "pnpm@10.12.1",
40
41
  "publishConfig": {
41
42
  "access": "public",
42
- "registry": "https://registry.npmjs.org/",
43
- "provenance": true
43
+ "registry": "https://registry.npmjs.org/"
44
44
  }
45
45
  }