Comparing version 0.0.16 to 0.0.17
@@ -6,5 +6,11 @@ /* tslint:disable */ | ||
export interface Diagnostic { | ||
level: string; | ||
message: string; | ||
span: any; | ||
} | ||
export interface TransformOutput { | ||
code: string; | ||
map?: string; | ||
errors?: Array<Diagnostic>; | ||
} | ||
@@ -11,0 +17,0 @@ export function minify( |
import * as binding from "./binding"; | ||
type Options = { | ||
filename?: string; | ||
sourceMap?: boolean; | ||
}; | ||
export async function minify( | ||
content: Buffer, | ||
options: any | ||
options: Options | ||
): Promise<binding.TransformOutput> { | ||
@@ -10,3 +15,3 @@ return binding.minify(content, toBuffer(options ?? {})); | ||
export function minifySync(content: Buffer, options: any) { | ||
export function minifySync(content: Buffer, options: Options) { | ||
return binding.minifySync(content, toBuffer(options ?? {})); | ||
@@ -13,0 +18,0 @@ } |
{ | ||
"name": "@swc/css", | ||
"version": "0.0.16", | ||
"version": "0.0.17", | ||
"description": "Super-fast alternative for postcss", | ||
@@ -57,16 +57,16 @@ "homepage": "https://swc.rs", | ||
"optionalDependencies": { | ||
"@swc/css-win32-x64-msvc": "0.0.16", | ||
"@swc/css-darwin-x64": "0.0.16", | ||
"@swc/css-linux-x64-gnu": "0.0.16", | ||
"@swc/css-linux-x64-musl": "0.0.16", | ||
"@swc/css-freebsd-x64": "0.0.16", | ||
"@swc/css-win32-ia32-msvc": "0.0.16", | ||
"@swc/css-linux-arm64-gnu": "0.0.16", | ||
"@swc/css-linux-arm-gnueabihf": "0.0.16", | ||
"@swc/css-darwin-arm64": "0.0.16", | ||
"@swc/css-android-arm64": "0.0.16", | ||
"@swc/css-linux-arm64-musl": "0.0.16", | ||
"@swc/css-win32-arm64-msvc": "0.0.16", | ||
"@swc/css-android-arm-eabi": "0.0.16" | ||
"@swc/css-win32-x64-msvc": "0.0.17", | ||
"@swc/css-darwin-x64": "0.0.17", | ||
"@swc/css-linux-x64-gnu": "0.0.17", | ||
"@swc/css-linux-x64-musl": "0.0.17", | ||
"@swc/css-freebsd-x64": "0.0.17", | ||
"@swc/css-win32-ia32-msvc": "0.0.17", | ||
"@swc/css-linux-arm64-gnu": "0.0.17", | ||
"@swc/css-linux-arm-gnueabihf": "0.0.17", | ||
"@swc/css-darwin-arm64": "0.0.17", | ||
"@swc/css-android-arm64": "0.0.17", | ||
"@swc/css-linux-arm64-musl": "0.0.17", | ||
"@swc/css-win32-arm64-msvc": "0.0.17", | ||
"@swc/css-android-arm-eabi": "0.0.17" | ||
} | ||
} |
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
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
11671
311
0