colorino 0.5.0 → 0.6.0

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/README.md CHANGED
@@ -288,7 +288,7 @@ We welcome contributions! Here's exactly how to get started:
288
288
  # Run only Node.js tests
289
289
  npm run test:node
290
290
 
291
- # Run only Browser tests (JSDOM)
291
+ # Run only Browser tests
292
292
  npm run test:browser
293
293
 
294
294
  # Watch mode with UI (great for dev!)
package/dist/browser.cjs CHANGED
@@ -68,5 +68,6 @@ function createColorino(palette = {}, options = {}) {
68
68
  }
69
69
  const colorino = createColorino();
70
70
 
71
+ exports.themePalettes = determineBaseTheme.themePalettes;
71
72
  exports.colorino = colorino;
72
73
  exports.createColorino = createColorino;
@@ -1,5 +1,5 @@
1
- import { P as Palette, C as ColorinoOptions, a as Colorino } from './shared/colorino.B1MNcUze.cjs';
2
- export { L as LogLevel, T as ThemeName } from './shared/colorino.B1MNcUze.cjs';
1
+ import { P as Palette, C as ColorinoOptions, a as Colorino } from './shared/colorino.DBw7jOfy.cjs';
2
+ export { L as LogLevel, T as ThemeName, t as themePalettes } from './shared/colorino.DBw7jOfy.cjs';
3
3
 
4
4
  declare function createColorino(palette?: Partial<Palette>, options?: ColorinoOptions): Colorino;
5
5
 
@@ -1,5 +1,5 @@
1
- import { P as Palette, C as ColorinoOptions, a as Colorino } from './shared/colorino.B1MNcUze.mjs';
2
- export { L as LogLevel, T as ThemeName } from './shared/colorino.B1MNcUze.mjs';
1
+ import { P as Palette, C as ColorinoOptions, a as Colorino } from './shared/colorino.DBw7jOfy.mjs';
2
+ export { L as LogLevel, T as ThemeName, t as themePalettes } from './shared/colorino.DBw7jOfy.mjs';
3
3
 
4
4
  declare function createColorino(palette?: Partial<Palette>, options?: ColorinoOptions): Colorino;
5
5
 
package/dist/browser.d.ts CHANGED
@@ -1,5 +1,5 @@
1
- import { P as Palette, C as ColorinoOptions, a as Colorino } from './shared/colorino.B1MNcUze.js';
2
- export { L as LogLevel, T as ThemeName } from './shared/colorino.B1MNcUze.js';
1
+ import { P as Palette, C as ColorinoOptions, a as Colorino } from './shared/colorino.DBw7jOfy.js';
2
+ export { L as LogLevel, T as ThemeName, t as themePalettes } from './shared/colorino.DBw7jOfy.js';
3
3
 
4
4
  declare function createColorino(palette?: Partial<Palette>, options?: ColorinoOptions): Colorino;
5
5
 
package/dist/browser.mjs CHANGED
@@ -66,4 +66,4 @@ function createColorino(palette = {}, options = {}) {
66
66
  }
67
67
  const colorino = createColorino();
68
68
 
69
- export { colorino, createColorino };
69
+ export { colorino, createColorino, themePalettes };
package/dist/node.cjs CHANGED
@@ -206,5 +206,6 @@ function createColorino(palette = {}, options = {}) {
206
206
  }
207
207
  const colorino = createColorino();
208
208
 
209
+ exports.themePalettes = determineBaseTheme.themePalettes;
209
210
  exports.colorino = colorino;
210
211
  exports.createColorino = createColorino;
package/dist/node.d.cts CHANGED
@@ -1,5 +1,5 @@
1
- import { P as Palette, C as ColorinoOptions, a as Colorino } from './shared/colorino.B1MNcUze.cjs';
2
- export { L as LogLevel, T as ThemeName } from './shared/colorino.B1MNcUze.cjs';
1
+ import { P as Palette, C as ColorinoOptions, a as Colorino } from './shared/colorino.DBw7jOfy.cjs';
2
+ export { L as LogLevel, T as ThemeName, t as themePalettes } from './shared/colorino.DBw7jOfy.cjs';
3
3
 
4
4
  declare function createColorino(palette?: Partial<Palette>, options?: ColorinoOptions): Colorino;
5
5
 
package/dist/node.d.mts CHANGED
@@ -1,5 +1,5 @@
1
- import { P as Palette, C as ColorinoOptions, a as Colorino } from './shared/colorino.B1MNcUze.mjs';
2
- export { L as LogLevel, T as ThemeName } from './shared/colorino.B1MNcUze.mjs';
1
+ import { P as Palette, C as ColorinoOptions, a as Colorino } from './shared/colorino.DBw7jOfy.mjs';
2
+ export { L as LogLevel, T as ThemeName, t as themePalettes } from './shared/colorino.DBw7jOfy.mjs';
3
3
 
4
4
  declare function createColorino(palette?: Partial<Palette>, options?: ColorinoOptions): Colorino;
5
5
 
package/dist/node.d.ts CHANGED
@@ -1,5 +1,5 @@
1
- import { P as Palette, C as ColorinoOptions, a as Colorino } from './shared/colorino.B1MNcUze.js';
2
- export { L as LogLevel, T as ThemeName } from './shared/colorino.B1MNcUze.js';
1
+ import { P as Palette, C as ColorinoOptions, a as Colorino } from './shared/colorino.DBw7jOfy.js';
2
+ export { L as LogLevel, T as ThemeName, t as themePalettes } from './shared/colorino.DBw7jOfy.js';
3
3
 
4
4
  declare function createColorino(palette?: Partial<Palette>, options?: ColorinoOptions): Colorino;
5
5
 
package/dist/node.mjs CHANGED
@@ -204,4 +204,4 @@ function createColorino(palette = {}, options = {}) {
204
204
  }
205
205
  const colorino = createColorino();
206
206
 
207
- export { colorino, createColorino };
207
+ export { colorino, createColorino, themePalettes };
@@ -1,3 +1,13 @@
1
+ type ConsoleMethod = 'log' | 'info' | 'warn' | 'error' | 'trace' | 'debug';
2
+ type LogLevel = ConsoleMethod & string;
3
+ type Palette = Record<LogLevel, string>;
4
+ type TerminalTheme = 'dark' | 'light' | 'unknown';
5
+ type ThemeName = 'catppuccin-mocha' | 'catppuccin-latte' | 'dracula' | 'github-light';
6
+ interface ColorinoOptions {
7
+ disableWarnings?: boolean;
8
+ theme?: TerminalTheme | ThemeName | 'auto';
9
+ }
10
+
1
11
  declare enum ColorLevel {
2
12
  NO_COLOR = 0,
3
13
  ANSI = 1,
@@ -9,16 +19,6 @@ interface ColorSupportDetectorInterface {
9
19
  getColorLevel(): ColorLevel;
10
20
  }
11
21
 
12
- type ConsoleMethod = 'log' | 'info' | 'warn' | 'error' | 'trace' | 'debug';
13
- type LogLevel = ConsoleMethod & string;
14
- type Palette = Record<LogLevel, string>;
15
- type TerminalTheme = 'dark' | 'light' | 'unknown';
16
- type ThemeName = 'catppuccin-mocha' | 'catppuccin-latte' | 'dracula' | 'github-light';
17
- interface ColorinoOptions {
18
- disableWarnings?: boolean;
19
- theme?: TerminalTheme | ThemeName | 'auto';
20
- }
21
-
22
22
  declare class NodeColorSupportDetector implements ColorSupportDetectorInterface {
23
23
  private readonly _process?;
24
24
  private readonly _envForceColor?;
@@ -451,5 +451,7 @@ declare class Colorino {
451
451
  private _out;
452
452
  }
453
453
 
454
- export { Colorino as a };
454
+ declare const themePalettes: Record<ThemeName, Palette>;
455
+
456
+ export { Colorino as a, themePalettes as t };
455
457
  export type { ColorinoOptions as C, LogLevel as L, Palette as P, ThemeName as T };
@@ -1,3 +1,13 @@
1
+ type ConsoleMethod = 'log' | 'info' | 'warn' | 'error' | 'trace' | 'debug';
2
+ type LogLevel = ConsoleMethod & string;
3
+ type Palette = Record<LogLevel, string>;
4
+ type TerminalTheme = 'dark' | 'light' | 'unknown';
5
+ type ThemeName = 'catppuccin-mocha' | 'catppuccin-latte' | 'dracula' | 'github-light';
6
+ interface ColorinoOptions {
7
+ disableWarnings?: boolean;
8
+ theme?: TerminalTheme | ThemeName | 'auto';
9
+ }
10
+
1
11
  declare enum ColorLevel {
2
12
  NO_COLOR = 0,
3
13
  ANSI = 1,
@@ -9,16 +19,6 @@ interface ColorSupportDetectorInterface {
9
19
  getColorLevel(): ColorLevel;
10
20
  }
11
21
 
12
- type ConsoleMethod = 'log' | 'info' | 'warn' | 'error' | 'trace' | 'debug';
13
- type LogLevel = ConsoleMethod & string;
14
- type Palette = Record<LogLevel, string>;
15
- type TerminalTheme = 'dark' | 'light' | 'unknown';
16
- type ThemeName = 'catppuccin-mocha' | 'catppuccin-latte' | 'dracula' | 'github-light';
17
- interface ColorinoOptions {
18
- disableWarnings?: boolean;
19
- theme?: TerminalTheme | ThemeName | 'auto';
20
- }
21
-
22
22
  declare class NodeColorSupportDetector implements ColorSupportDetectorInterface {
23
23
  private readonly _process?;
24
24
  private readonly _envForceColor?;
@@ -451,5 +451,7 @@ declare class Colorino {
451
451
  private _out;
452
452
  }
453
453
 
454
- export { Colorino as a };
454
+ declare const themePalettes: Record<ThemeName, Palette>;
455
+
456
+ export { Colorino as a, themePalettes as t };
455
457
  export type { ColorinoOptions as C, LogLevel as L, Palette as P, ThemeName as T };
@@ -1,3 +1,13 @@
1
+ type ConsoleMethod = 'log' | 'info' | 'warn' | 'error' | 'trace' | 'debug';
2
+ type LogLevel = ConsoleMethod & string;
3
+ type Palette = Record<LogLevel, string>;
4
+ type TerminalTheme = 'dark' | 'light' | 'unknown';
5
+ type ThemeName = 'catppuccin-mocha' | 'catppuccin-latte' | 'dracula' | 'github-light';
6
+ interface ColorinoOptions {
7
+ disableWarnings?: boolean;
8
+ theme?: TerminalTheme | ThemeName | 'auto';
9
+ }
10
+
1
11
  declare enum ColorLevel {
2
12
  NO_COLOR = 0,
3
13
  ANSI = 1,
@@ -9,16 +19,6 @@ interface ColorSupportDetectorInterface {
9
19
  getColorLevel(): ColorLevel;
10
20
  }
11
21
 
12
- type ConsoleMethod = 'log' | 'info' | 'warn' | 'error' | 'trace' | 'debug';
13
- type LogLevel = ConsoleMethod & string;
14
- type Palette = Record<LogLevel, string>;
15
- type TerminalTheme = 'dark' | 'light' | 'unknown';
16
- type ThemeName = 'catppuccin-mocha' | 'catppuccin-latte' | 'dracula' | 'github-light';
17
- interface ColorinoOptions {
18
- disableWarnings?: boolean;
19
- theme?: TerminalTheme | ThemeName | 'auto';
20
- }
21
-
22
22
  declare class NodeColorSupportDetector implements ColorSupportDetectorInterface {
23
23
  private readonly _process?;
24
24
  private readonly _envForceColor?;
@@ -451,5 +451,7 @@ declare class Colorino {
451
451
  private _out;
452
452
  }
453
453
 
454
- export { Colorino as a };
454
+ declare const themePalettes: Record<ThemeName, Palette>;
455
+
456
+ export { Colorino as a, themePalettes as t };
455
457
  export type { ColorinoOptions as C, LogLevel as L, Palette as P, ThemeName as T };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "colorino",
3
- "version": "0.5.0",
3
+ "version": "0.6.0",
4
4
  "description": "A super simple colorized logger that gets the most out of your terminal",
5
5
  "type": "module",
6
6
  "license": "MIT",