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

postcss-preset-mantine

Package Overview
Dependencies
Maintainers
1
Versions
36
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

postcss-preset-mantine - npm Package Compare versions

Comparing version 1.9.1 to 1.10.0

17

dist/postcss-rem-em.js

@@ -7,3 +7,6 @@ "use strict";

function createConverter(units, { shouldScale = false } = {}) {
return (value) => {
function converter(value) {
if (value === 0 || value === '0') {
return '0';
}
if (typeof value === 'number') {

@@ -14,2 +17,11 @@ const val = `${value / 16}${units}`;

if (typeof value === 'string') {
if (value.startsWith('calc(') || value.startsWith('var(')) {
return value;
}
if (value.includes(' ')) {
return value
.split(' ')
.map((val) => converter(val))
.join(' ');
}
if (value.includes(units)) {

@@ -25,3 +37,4 @@ return shouldScale ? scaleRem(value) : value;

return value;
};
}
return converter;
}

@@ -28,0 +41,0 @@ const rem = createConverter('rem', { shouldScale: true });

2

package.json
{
"name": "postcss-preset-mantine",
"version": "1.9.1",
"version": "1.10.0",
"description": "PostCSS preset for Mantine (7.0+) applications",

@@ -5,0 +5,0 @@ "main": "dist/preset.js",

Sorry, the diff of this file is not supported yet

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