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 +1 -1
- package/dist/browser.cjs +1 -0
- package/dist/browser.d.cts +2 -2
- package/dist/browser.d.mts +2 -2
- package/dist/browser.d.ts +2 -2
- package/dist/browser.mjs +1 -1
- package/dist/node.cjs +1 -0
- package/dist/node.d.cts +2 -2
- package/dist/node.d.mts +2 -2
- package/dist/node.d.ts +2 -2
- package/dist/node.mjs +1 -1
- package/dist/shared/{colorino.B1MNcUze.d.cts → colorino.DBw7jOfy.d.cts} +13 -11
- package/dist/shared/{colorino.B1MNcUze.d.mts → colorino.DBw7jOfy.d.mts} +13 -11
- package/dist/shared/{colorino.B1MNcUze.d.ts → colorino.DBw7jOfy.d.ts} +13 -11
- package/package.json +1 -1
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
|
|
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
package/dist/browser.d.cts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { P as Palette, C as ColorinoOptions, a as Colorino } from './shared/colorino.
|
|
2
|
-
export { L as LogLevel, T as ThemeName } from './shared/colorino.
|
|
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/browser.d.mts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { P as Palette, C as ColorinoOptions, a as Colorino } from './shared/colorino.
|
|
2
|
-
export { L as LogLevel, T as ThemeName } from './shared/colorino.
|
|
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.
|
|
2
|
-
export { L as LogLevel, T as ThemeName } from './shared/colorino.
|
|
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
package/dist/node.cjs
CHANGED
package/dist/node.d.cts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { P as Palette, C as ColorinoOptions, a as Colorino } from './shared/colorino.
|
|
2
|
-
export { L as LogLevel, T as ThemeName } from './shared/colorino.
|
|
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.
|
|
2
|
-
export { L as LogLevel, T as ThemeName } from './shared/colorino.
|
|
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.
|
|
2
|
-
export { L as LogLevel, T as ThemeName } from './shared/colorino.
|
|
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
|
@@ -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
|
-
|
|
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
|
-
|
|
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
|
-
|
|
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 };
|