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

@warp-ds/uno

Package Overview
Dependencies
Maintainers
6
Versions
139
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@warp-ds/uno - npm Package Compare versions

Comparing version 1.0.0-alpha.48 to 1.0.0-alpha.49

2

package.json
{
"name": "@warp-ds/uno",
"repository": "git@github.com:warp-ds/drive.git",
"version": "1.0.0-alpha.48",
"version": "1.0.0-alpha.49",
"type": "module",

@@ -6,0 +6,0 @@ "exports": {

@@ -1,13 +0,5 @@

import { handler as h, resolveBreakpoints, resolveVerticalBreakpoints } from '#utils';
import { handler as h, resolveBreakpoints, resolveVerticalBreakpoints, resolveArbitraryValues } from '#utils';
const sizeMapping = { h: 'height', w: 'width' };
const getPropName = (minmax, hw) => `${minmax || ''}${sizeMapping[hw]}`;
const resolveArbitraryValues = (value, unit, context) => {
if (unit === "rem") return h.rem(`${value}${unit}`);
if (unit === "px" || context.theme.usingPixels) return h.px(value);
if (value.startsWith('--')) {
return `var(${value})`;
}
return h.rem(value) || value;
};

@@ -14,0 +6,0 @@ function getSizeValue(minmax, hw, theme, prop) {

@@ -1,2 +0,2 @@

import { textMap, lineHeightMap } from '#utils';
import { textMap, lineHeightMap, resolveArbitraryValues } from '#utils';

@@ -12,2 +12,3 @@ export const typography = [

],
[/^leading-\[(.+)(rem|px)?\]/, ([, value, unit], context) => ({ 'line-height': resolveArbitraryValues(value, unit, context) })],
];

@@ -221,1 +221,10 @@ import { toArray } from '@unocss/core';

}
export function resolveArbitraryValues(value, unit, context) {
if (unit === "rem") return h.rem(`${value}${unit}`);
if (unit === "px" || context.theme.usingPixels) return h.px(value);
if (value.startsWith('--')) {
return `var(${value})`;
}
return h.rem(value) || value;
};

Sorry, the diff of this file is too big to display

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