Socket
Socket
Sign inDemoInstall

style-unit

Package Overview
Dependencies
Maintainers
7
Versions
65
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

style-unit - npm Package Compare versions

Comparing version 2.0.1 to 3.0.0

2

lib/index.js

@@ -74,3 +74,3 @@ "use strict";

// In Weex convert rpx to 'px'
// '375rpx' => 375 * rpx
// '375rpx' => 375 * px
return str.replace(RPX_REG, decimalPixelTransformer);

@@ -77,0 +77,0 @@ } else {

{
"name": "style-unit",
"version": "2.0.1",
"version": "3.0.0",
"description": "style-unit",

@@ -5,0 +5,0 @@ "license": "BSD-3-Clause",

@@ -13,3 +13,3 @@ # style-unit

| prop | string | true | |
| platform | string | false | Different platforms have different rpx conversion. Details are as follows. |
| platform | string | false | Auto assignment with [universal-env](https://www.npmjs.com/package/universal-env), different platforms have different rpx conversion. Details are as follows. |

@@ -33,3 +33,3 @@ ## Web

In Web, Calculate rpx to px (viewport width is 750).
In Weex, Calculate rpx to px (viewport width is 750).

@@ -36,0 +36,0 @@ 750rpx -> 750px

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