Comparing version 0.1.14 to 0.1.15
@@ -0,1 +1,3 @@ | ||
/* tslint:disable */ | ||
/* eslint-disable */ | ||
/** | ||
@@ -11,17 +13,3 @@ * @param {string} s | ||
*/ | ||
export function to_svg(s: string, theme: Readonly<{ | ||
Vscode: 0; | ||
"0": "Vscode"; | ||
Ubuntu: 1; | ||
"1": "Ubuntu"; | ||
Vga: 2; | ||
"2": "Vga"; | ||
Xterm: 3; | ||
"3": "Xterm"; | ||
}>, width?: number | undefined, font?: string | undefined, mode?: Readonly<{ | ||
Dark: 0; | ||
"0": "Dark"; | ||
Light: 1; | ||
"1": "Light"; | ||
}> | undefined, light_bg?: string | undefined, dark_bg?: string | undefined): string; | ||
export function to_svg(s: string, theme: Theme, width?: number, font?: string, mode?: Mode, light_bg?: string, dark_bg?: string): string; | ||
/** | ||
@@ -37,17 +25,3 @@ * @param {string} s | ||
*/ | ||
export function to_html(s: string, theme: Readonly<{ | ||
Vscode: 0; | ||
"0": "Vscode"; | ||
Ubuntu: 1; | ||
"1": "Ubuntu"; | ||
Vga: 2; | ||
"2": "Vga"; | ||
Xterm: 3; | ||
"3": "Xterm"; | ||
}>, width?: number | undefined, font?: string | undefined, mode?: Readonly<{ | ||
Dark: 0; | ||
"0": "Dark"; | ||
Light: 1; | ||
"1": "Light"; | ||
}> | undefined, light_bg?: string | undefined, dark_bg?: string | undefined): string; | ||
export function to_html(s: string, theme: Theme, width?: number, font?: string, mode?: Mode, light_bg?: string, dark_bg?: string): string; | ||
/** | ||
@@ -58,18 +32,13 @@ * @param {string} s | ||
*/ | ||
export function to_text(s: string, width?: number | undefined): string; | ||
export const Mode: Readonly<{ | ||
Dark: 0; | ||
"0": "Dark"; | ||
Light: 1; | ||
"1": "Light"; | ||
}>; | ||
export const Theme: Readonly<{ | ||
Vscode: 0; | ||
"0": "Vscode"; | ||
Ubuntu: 1; | ||
"1": "Ubuntu"; | ||
Vga: 2; | ||
"2": "Vga"; | ||
Xterm: 3; | ||
"3": "Xterm"; | ||
}>; | ||
export function to_text(s: string, width?: number): string; | ||
export enum Mode { | ||
Dark = 0, | ||
Light = 1, | ||
} | ||
export enum Theme { | ||
Vscode = 0, | ||
Ubuntu = 1, | ||
Vga = 2, | ||
Xterm = 3, | ||
} | ||
{ | ||
"name": "ansi2", | ||
"version": "0.1.14", | ||
"version": "0.1.15", | ||
"description": "ansi2", | ||
@@ -19,3 +19,5 @@ "main": "dist/index.js", | ||
}, | ||
"keywords": [], | ||
"keywords": [ | ||
"ansi" | ||
], | ||
"dependencies": { | ||
@@ -26,4 +28,6 @@ "commander": "12.1.0", | ||
"scripts": { | ||
"copy:wasm": "cp ./src-ts/wasm ./dist -r", | ||
"build:lib": "tsc", | ||
"build:cli": "esbuild ./src-ts/cli.ts --bundle --outdir=./dist --platform=node", | ||
"build": "pnpm run build:wasm && pnpm run build:inline && tsc && pnpm run build:cli", | ||
"build": "pnpm run build:wasm && pnpm run build:inline && pnpm run build:lib && pnpm run build:cli && pnpm run copy:wasm", | ||
"build:wasm": "wasm-pack build --target=web --out-dir ./web --release", | ||
@@ -30,0 +34,0 @@ "build:inline": " wasm-pack-inline ./web -d ./src-ts/wasm --name index" |
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
Possible typosquat attack
Supply chain riskThere is a package with a similar name that is downloaded much more often.
Did you mean |
---|
ansis |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
2529557
64991
1