Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

postcss-unit-unit

Package Overview
Dependencies
Maintainers
1
Versions
10
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

postcss-unit-unit - npm Package Compare versions

Comparing version 1.0.7 to 1.0.8

34

index.d.ts

@@ -5,24 +5,24 @@ // 任意样式单位转换工具

interface Px2RpxOptions {
unitToConvert: string;
viewportWidth: number;
unitPrecision: number;
viewportUnit: string;
fontViewportUnit: string;
fullViewportWidth: number;
selectorBlackList: any[];
propList: string[];
minPixelValue: number;
mediaQuery: boolean;
replace: boolean;
landscape: boolean;
landscapeUnit: string;
landscapeWidth: number;
exclude: any;
include: any;
unitToConvert?: string;
viewportWidth?: number;
unitPrecision?: number;
viewportUnit?: string;
fontViewportUnit?: string;
fullViewportWidth?: number;
selectorBlackList?: any[];
propList?: string[];
minPixelValue?: number;
mediaQuery?: boolean;
replace?: boolean;
landscape?: boolean;
landscapeUnit?: string;
landscapeWidth?: number;
exclude?: any;
include?: any;
}
// 定义 px2rpx 函数
declare function px2rpx(options: Px2RpxOptions): any;
declare function px2rpx(options?: Px2RpxOptions): any;
// 导出函数
export = px2rpx;

@@ -5,3 +5,3 @@ {

"description": "A CSS post-processor that converts px to viewport units (vw, vh, rpx, rem, vmin, vmax, ...).",
"version": "1.0.7",
"version": "1.0.8",
"license": "MIT",

@@ -8,0 +8,0 @@ "author": {

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