@swc/html
Advanced tools
Comparing version 0.0.20 to 0.0.24
@@ -7,33 +7,25 @@ /* tslint:disable */ | ||
export interface Diagnostic { | ||
level: string; | ||
message: string; | ||
span: any; | ||
level: string | ||
message: string | ||
span: any | ||
} | ||
export interface TransformOutput { | ||
code: string; | ||
errors?: Array<Diagnostic>; | ||
code: string | ||
errors?: Array<Diagnostic> | ||
} | ||
export interface Attribute { | ||
namespace?: string; | ||
prefix?: string; | ||
name: string; | ||
value?: string; | ||
namespace?: string | ||
prefix?: string | ||
name: string | ||
value?: string | ||
} | ||
export interface Element { | ||
tagName: string; | ||
namespace: string; | ||
attributes: Array<Attribute>; | ||
isSelfClosing: boolean; | ||
tagName: string | ||
namespace: string | ||
attributes: Array<Attribute> | ||
isSelfClosing: boolean | ||
} | ||
export function minify( | ||
code: Buffer, | ||
opts: Buffer, | ||
signal?: AbortSignal | undefined | null | ||
): Promise<TransformOutput>; | ||
export function minifyFragment( | ||
code: Buffer, | ||
opts: Buffer, | ||
signal?: AbortSignal | undefined | null | ||
): Promise<TransformOutput>; | ||
export function minifySync(code: Buffer, opts: Buffer): TransformOutput; | ||
export function minifyFragmentSync(code: Buffer, opts: Buffer): TransformOutput; | ||
export function minify(code: Buffer, opts: Buffer, signal?: AbortSignal | undefined | null): Promise<TransformOutput> | ||
export function minifyFragment(code: Buffer, opts: Buffer, signal?: AbortSignal | undefined | null): Promise<TransformOutput> | ||
export function minifySync(code: Buffer, opts: Buffer): TransformOutput | ||
export function minifyFragmentSync(code: Buffer, opts: Buffer): TransformOutput |
{ | ||
"name": "@swc/html", | ||
"version": "0.0.20", | ||
"packageManager": "yarn@3.2.3", | ||
"version": "0.0.24", | ||
"description": "Super-fast alternative for posthtml", | ||
@@ -29,3 +30,2 @@ "homepage": "https://swc.rs", | ||
"x86_64-unknown-linux-musl", | ||
"x86_64-unknown-freebsd", | ||
"i686-pc-windows-msvc", | ||
@@ -57,17 +57,20 @@ "aarch64-unknown-linux-gnu", | ||
}, | ||
"devDependencies": { | ||
"@napi-rs/cli": "^2.16.1", | ||
"typescript": "^5.1.6" | ||
}, | ||
"optionalDependencies": { | ||
"@swc/html-win32-x64-msvc": "0.0.20", | ||
"@swc/html-darwin-x64": "0.0.20", | ||
"@swc/html-linux-x64-gnu": "0.0.20", | ||
"@swc/html-linux-x64-musl": "0.0.20", | ||
"@swc/html-freebsd-x64": "0.0.20", | ||
"@swc/html-win32-ia32-msvc": "0.0.20", | ||
"@swc/html-linux-arm64-gnu": "0.0.20", | ||
"@swc/html-linux-arm-gnueabihf": "0.0.20", | ||
"@swc/html-darwin-arm64": "0.0.20", | ||
"@swc/html-android-arm64": "0.0.20", | ||
"@swc/html-linux-arm64-musl": "0.0.20", | ||
"@swc/html-win32-arm64-msvc": "0.0.20", | ||
"@swc/html-android-arm-eabi": "0.0.20" | ||
"@swc/html-win32-x64-msvc": "0.0.24", | ||
"@swc/html-darwin-x64": "0.0.24", | ||
"@swc/html-linux-x64-gnu": "0.0.24", | ||
"@swc/html-linux-x64-musl": "0.0.24", | ||
"@swc/html-win32-ia32-msvc": "0.0.24", | ||
"@swc/html-linux-arm64-gnu": "0.0.24", | ||
"@swc/html-linux-arm-gnueabihf": "0.0.24", | ||
"@swc/html-darwin-arm64": "0.0.24", | ||
"@swc/html-android-arm64": "0.0.24", | ||
"@swc/html-linux-arm64-musl": "0.0.24", | ||
"@swc/html-win32-arm64-msvc": "0.0.24", | ||
"@swc/html-android-arm-eabi": "0.0.24" | ||
} | ||
} |
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
Found 1 instance in 1 package
Filesystem access
Supply chain riskAccesses the file system, and could potentially read sensitive data.
Found 1 instance in 1 package
12
0
7456
2
4
140
1