@visulima/fmt 1.1.19 → 1.1.21

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/CHANGELOG.md CHANGED
@@ -1,3 +1,20 @@
1
+ ## @visulima/fmt [1.1.21](https://github.com/visulima/visulima/compare/@visulima/fmt@1.1.20...@visulima/fmt@1.1.21) (2025-11-13)
2
+
3
+ ### Bug Fixes
4
+
5
+ * bump packem, to fix minified version of the code ([2a36ceb](https://github.com/visulima/visulima/commit/2a36ceb09251b0ca1178701a26547a871ed717a7))
6
+
7
+ ## @visulima/fmt [1.1.20](https://github.com/visulima/visulima/compare/@visulima/fmt@1.1.19...@visulima/fmt@1.1.20) (2025-11-12)
8
+
9
+ ### Bug Fixes
10
+
11
+ * update package configurations and TypeScript definitions ([b59aa59](https://github.com/visulima/visulima/commit/b59aa59dac1508216b944f4b917fb4a7ab1f70a4))
12
+
13
+ ### Miscellaneous Chores
14
+
15
+ * Add jsr file to all packages for release ([#565](https://github.com/visulima/visulima/issues/565)) ([ec91652](https://github.com/visulima/visulima/commit/ec91652b4e4112adf14ba152c1239a7703ba425a))
16
+ * update license files and clean up TypeScript definitions ([fe668cc](https://github.com/visulima/visulima/commit/fe668cc26de23591d4df54a0954455ebbe31b22d))
17
+
1
18
  ## @visulima/fmt [1.1.19](https://github.com/visulima/visulima/compare/@visulima/fmt@1.1.18...@visulima/fmt@1.1.19) (2025-11-07)
2
19
 
3
20
  ### Bug Fixes
package/dist/index.d.cts CHANGED
@@ -1,11 +1,8 @@
1
- declare const format: (fmt: Record<string, any> | string, arguments_?: any[], options?: Options) => string;
2
- declare const build: (options?: Options) => (f: NonNullable<Record<string, any> | string>, arguments_?: any[], formatOptions?: Omit<Options, "formatters">) => string;
3
- type FormatterFunction = (argument: any) => string;
4
- type FormatterMap = Record<number, FormatterFunction>;
5
- interface Options {
1
+ export declare const format: (fmt: Record<string, any> | string, arguments_?: any[], options?: Options) => string;
2
+ export declare const build: (options?: Options) => (f: NonNullable<Record<string, any> | string>, arguments_?: any[], formatOptions?: Omit<Options, "formatters">) => string;
3
+ export type FormatterFunction = (argument: any) => string;
4
+ export type FormatterMap = Record<number, FormatterFunction>;
5
+ export interface Options {
6
6
  formatters?: Record<string, FormatterFunction>;
7
7
  stringify?: (o: any) => string;
8
8
  }
9
-
10
- export { build, format };
11
- export type { FormatterFunction, FormatterMap, Options };
package/dist/index.d.mts CHANGED
@@ -1,11 +1,8 @@
1
- declare const format: (fmt: Record<string, any> | string, arguments_?: any[], options?: Options) => string;
2
- declare const build: (options?: Options) => (f: NonNullable<Record<string, any> | string>, arguments_?: any[], formatOptions?: Omit<Options, "formatters">) => string;
3
- type FormatterFunction = (argument: any) => string;
4
- type FormatterMap = Record<number, FormatterFunction>;
5
- interface Options {
1
+ export declare const format: (fmt: Record<string, any> | string, arguments_?: any[], options?: Options) => string;
2
+ export declare const build: (options?: Options) => (f: NonNullable<Record<string, any> | string>, arguments_?: any[], formatOptions?: Omit<Options, "formatters">) => string;
3
+ export type FormatterFunction = (argument: any) => string;
4
+ export type FormatterMap = Record<number, FormatterFunction>;
5
+ export interface Options {
6
6
  formatters?: Record<string, FormatterFunction>;
7
7
  stringify?: (o: any) => string;
8
8
  }
9
-
10
- export { build, format };
11
- export type { FormatterFunction, FormatterMap, Options };
package/dist/index.d.ts CHANGED
@@ -1,11 +1,8 @@
1
- declare const format: (fmt: Record<string, any> | string, arguments_?: any[], options?: Options) => string;
2
- declare const build: (options?: Options) => (f: NonNullable<Record<string, any> | string>, arguments_?: any[], formatOptions?: Omit<Options, "formatters">) => string;
3
- type FormatterFunction = (argument: any) => string;
4
- type FormatterMap = Record<number, FormatterFunction>;
5
- interface Options {
1
+ export declare const format: (fmt: Record<string, any> | string, arguments_?: any[], options?: Options) => string;
2
+ export declare const build: (options?: Options) => (f: NonNullable<Record<string, any> | string>, arguments_?: any[], formatOptions?: Omit<Options, "formatters">) => string;
3
+ export type FormatterFunction = (argument: any) => string;
4
+ export type FormatterMap = Record<number, FormatterFunction>;
5
+ export interface Options {
6
6
  formatters?: Record<string, FormatterFunction>;
7
7
  stringify?: (o: any) => string;
8
8
  }
9
-
10
- export { build, format };
11
- export type { FormatterFunction, FormatterMap, Options };
@@ -0,0 +1,12 @@
1
+ type CssObject = {
2
+ __proto__: null;
3
+ backgroundColor: string | null;
4
+ color: string | null;
5
+ fontStyle: string | null;
6
+ fontWeight: string | null;
7
+ textDecorationColor: [number, number, number] | null;
8
+ textDecorationLine: string[];
9
+ };
10
+ export declare const parseCss: (cssString: string) => CssObject;
11
+ export declare const cssToAnsi: (css: CssObject, previousCss?: CssObject | null) => string;
12
+ export {};
@@ -0,0 +1,12 @@
1
+ type CssObject = {
2
+ __proto__: null;
3
+ backgroundColor: string | null;
4
+ color: string | null;
5
+ fontStyle: string | null;
6
+ fontWeight: string | null;
7
+ textDecorationColor: [number, number, number] | null;
8
+ textDecorationLine: string[];
9
+ };
10
+ export declare const parseCss: (cssString: string) => CssObject;
11
+ export declare const cssToAnsi: (css: CssObject, previousCss?: CssObject | null) => string;
12
+ export {};
@@ -0,0 +1,12 @@
1
+ type CssObject = {
2
+ __proto__: null;
3
+ backgroundColor: string | null;
4
+ color: string | null;
5
+ fontStyle: string | null;
6
+ fontWeight: string | null;
7
+ textDecorationColor: [number, number, number] | null;
8
+ textDecorationLine: string[];
9
+ };
10
+ export declare const parseCss: (cssString: string) => CssObject;
11
+ export declare const cssToAnsi: (css: CssObject, previousCss?: CssObject | null) => string;
12
+ export {};
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@visulima/fmt",
3
- "version": "1.1.19",
3
+ "version": "1.1.21",
4
4
  "description": "Util.format-like string formatting utility.",
5
5
  "keywords": [
6
6
  "anolilab",