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

css-in-props

Package Overview
Dependencies
Maintainers
1
Versions
135
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

css-in-props - npm Package Compare versions

Comparing version 0.8.28 to 0.8.29

src/_fromClass.js

11

package.json

@@ -6,3 +6,3 @@ {

"author": "symbo.ls",
"version": "0.8.28",
"version": "0.8.29",
"repository": "https://github.com/symbo-ls/smbls",

@@ -17,4 +17,4 @@ "main": "src/index.js",

"scripts": {
"start": "parcel showcase/index.html",
"build": "parcel build showcase/index.html --public-url .",
"start": "parcel index.html",
"build": "parcel build index.html --public-url .",
"deploy": "yarn build && gh-pages -d dist",

@@ -25,3 +25,6 @@ "clean": "rm yarn.lock && rm -rf node_modules && rm -rf dist && rm -rf .cache",

},
"dependencies": {},
"dependencies": {
"@domql/utils": "^2.2.1",
"@symbo.ls/scratch": "^0.3.19"
},
"devDependencies": {

@@ -28,0 +31,0 @@ "@babel/core": "^7.14.6",

'use strict'
import { classNames } from './classNames'
import { keySetters } from './subprops'
export * from '@symbo.ls/scratch'
export const transformClassname = props => {
const CLASS_NAMES = {}
for (const key in props) {
const setter = keySetters[key.slice(0, 1)]
const hasCSS = classNames[key]
if (setter) setter(key, props[key], CLASS_NAMES)
else if (hasCSS) CLASS_NAMES[key] = hasCSS
}
return CLASS_NAMES
}
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