Comparing version
@@ -40,3 +40,3 @@ import os from 'os'; | ||
* | ||
* @type {<T extends string>(configFile: T | null, cwd?: string) => Promise<T extends string ? import('./svgo.js').Config : import('./svgo.js').Config | null>} | ||
* @type {<T extends string | null>(configFile?: T, cwd?: string) => Promise<T extends string ? import('./svgo.js').Config : import('./svgo.js').Config | null>} | ||
*/ | ||
@@ -43,0 +43,0 @@ export const loadConfig = async (configFile, cwd = process.cwd()) => { |
@@ -7,2 +7,2 @@ /** | ||
*/ | ||
export const VERSION = '4.0.0-rc.2'; | ||
export const VERSION = '4.0.0-rc.3'; |
{ | ||
"packageManager": "yarn@3.8.7", | ||
"name": "svgo", | ||
"version": "4.0.0-rc.2", | ||
"version": "4.0.0-rc.3", | ||
"description": "SVGO is a Node.js library and command-line application for optimizing vector images.", | ||
@@ -6,0 +6,0 @@ "license": "MIT", |
@@ -7,5 +7,5 @@ export * from "./svgo.js"; | ||
* | ||
* @type {<T extends string>(configFile: T | null, cwd?: string) => Promise<T extends string ? import('./svgo.js').Config : import('./svgo.js').Config | null>} | ||
* @type {<T extends string | null>(configFile?: T, cwd?: string) => Promise<T extends string ? import('./svgo.js').Config : import('./svgo.js').Config | null>} | ||
*/ | ||
export const loadConfig: <T extends string>(configFile: T | null, cwd?: string) => Promise<T extends string ? import("./svgo.js").Config : import("./svgo.js").Config | null>; | ||
export const loadConfig: <T extends string | null>(configFile?: T, cwd?: string) => Promise<T extends string ? import("./svgo.js").Config : import("./svgo.js").Config | null>; | ||
export function optimize(input: string, config?: import("./svgo.js").Config | undefined): import("./svgo.js").Output; |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is too big to display
Deprecated
MaintenanceThe maintainer of the package marked it as deprecated. This could indicate that a single version should not be used, or that the package is no longer maintained and any new vulnerabilities will not be fixed.
Found 1 instance in 1 package
URL strings
Supply chain riskPackage contains fragments of external URLs or IP addresses, which the package may be accessing at runtime.
Found 1 instance in 1 package
URL strings
Supply chain riskPackage contains fragments of external URLs or IP addresses, which the package may be accessing at runtime.
Found 1 instance in 1 package
1445376
01
Infinity%