@aidc/utils
Advanced tools
Comparing version 0.5.27-beta.10 to 0.5.27-beta.11
@@ -10,6 +10,3 @@ interface CompressInfoProps { | ||
} | ||
/** | ||
* Core function to compress the image | ||
*/ | ||
export declare function processImg(imgUrl: string, compressInfo: CompressInfoProps): string; | ||
export {}; |
export * from './check-webp'; | ||
export * from './compress-image'; | ||
/** | ||
* To check webp has already been compressed | ||
*/ | ||
export declare function hasWebpUsed(imgUrl: string): boolean; | ||
/** | ||
* To check whether the image has already been compressed | ||
*/ | ||
export declare function isCompressed(imgUrl: string): boolean; | ||
/** | ||
* To get the format of the original image | ||
*/ | ||
export declare function getImgFormat(imgUrl: string): string | false | undefined; | ||
/** | ||
* When only webp compress is applied | ||
*/ | ||
export declare function onlyWebp(imgUrl: string): string; |
@@ -38,12 +38,4 @@ import { Method, ResponseType } from 'axios'; | ||
export declare function mergeRequestOptions<P>(defaultOptions: DefaultRequestOptions, requestOptions: DefaultRequestOptions | RequestOptions<P>): RequestOptions<P>; | ||
/** | ||
* @name createRequest | ||
* @description 默认的请求参数配置 defaultOptions,将优先使用 baseURL,向后兼容 host | ||
*/ | ||
export declare function createRequest(defaultOptions?: DefaultRequestOptions): <R extends RequestResponse<any> = any, P = any>(url: string | RequestOptions<P>, options?: Omit<RequestOptions<P>, "url"> | undefined) => Promise<R["data"]>; | ||
/** | ||
* @name request | ||
* @description 请求入参 options 配置,将优先使用 baseURL,向后兼容 host | ||
*/ | ||
export declare const request: <R extends RequestResponse<any> = any, P = any>(url: string | RequestOptions<P>, options?: Omit<RequestOptions<P>, "url"> | undefined) => Promise<R["data"]>; | ||
export {}; |
{ | ||
"name": "@aidc/utils", | ||
"version": "0.5.27-beta.10", | ||
"version": "0.5.27-beta.11", | ||
"module": "dist/index.js", | ||
@@ -21,4 +21,4 @@ "types": "dist/index.d.ts", | ||
"dev": "father dev", | ||
"release": "pnpm publish --tag latest --publish-branch main", | ||
"release:beta": "pnpm publish --tag beta --publish-branch beta", | ||
"release:patch": "pnpm publish --tag latest --publish-branch main", | ||
"remove": "rimraf node_modules dist .turbo", | ||
@@ -25,0 +25,0 @@ "version:beta": "pnpm version prerelease --preid=beta", |
AI-detected possible typosquat
Supply chain riskAI has identified this package as a potential typosquat of a more popular package. This suggests that the package may be intentionally mimicking another package's name, description, or other metadata.
Found 1 instance in 1 package
31286
695
3