New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

@aidc/utils

Package Overview
Dependencies
Maintainers
5
Versions
195
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@aidc/utils - npm Package Compare versions

Comparing version 0.5.27-beta.10 to 0.5.27-beta.11

3

dist/image/compress-image.d.ts

@@ -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 {};

4

package.json
{
"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",

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc