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

@nozbe/zacs

Package Overview
Dependencies
Maintainers
6
Versions
44
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@nozbe/zacs - npm Package Compare versions

Comparing version 2.0.0-6 to 2.0.0-7

2

package.json
{
"name": "@nozbe/zacs",
"version": "2.0.0-6",
"version": "2.0.0-7",
"description": "Zero Abstraction Cost Styling (for React DOM and React Native)",

@@ -5,0 +5,0 @@ "main": "src/index.js",

@@ -80,2 +80,16 @@ const { getTarget } = require('./state')

}
const pushFromObject = object => {
Object.entries(object).forEach(([key, value]) => {
pushProp(t.objectProperty(t.identifier(key), value))
})
}
const pushPropOrShorthands = property => {
const key = property.key.name
const shorthandLines = resolveShorthands(key, property.value)
if (shorthandLines) {
pushFromObject(shorthandLines)
} else {
pushProp(property)
}
}
const pushFromInner = objectExpr => {

@@ -90,11 +104,6 @@ objectExpr.properties.forEach(property => {

} else {
pushProp(property)
pushPropOrShorthands(property)
}
})
}
const pushFromObject = object => {
Object.entries(object).forEach(([key, value]) => {
pushProp(t.objectProperty(t.identifier(key), value))
})
}
styleset.value.properties.forEach(property => {

@@ -118,8 +127,3 @@ if (property.type === 'SpreadElement') {

} else {
const shorthandLines = resolveShorthands(key, property.value)
if (shorthandLines) {
pushFromObject(shorthandLines)
} else {
pushProp(property)
}
pushPropOrShorthands(property)
}

@@ -126,0 +130,0 @@ })

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