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

@styli/css-object-processor

Package Overview
Dependencies
Maintainers
1
Versions
14
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@styli/css-object-processor - npm Package Compare versions

Comparing version 1.4.0 to 1.5.0

3

dist/css-object-processor.cjs.development.js

@@ -71,3 +71,3 @@ 'use strict';

value = _Object$entries$_i[1];
str += key + ": " + value;
str += utils.jsKeyToCssKey(key) + ": " + value;
}

@@ -79,2 +79,3 @@

* to rules can insertRule
* TODO: need improve
* @param cssObj

@@ -81,0 +82,0 @@ * @param className

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

"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("@styli/utils");function r(e){return/^::?.+/.test(e)}function t(e){return e?"object"!=typeof e||Array.isArray(e)?e:Object.keys(e).reduce((function(r,n){var o,c=t(e[n]);return Array.isArray(c)?c.reduce((function(e,r){return[].concat(e,[[n].concat(r)])}),r):[].concat(r,[[(o={},o[n]=c,o)]])}),[]):e}function n(e){return t(e).reduce((function(e,t){var n=t.pop(),o=t.reduce((function(e,t){return r(t)?""+e+t:e+" "+t}),""),c="child";return r(o)&&(c="pseudo"),""===o&&(c="void"),[].concat(e,[{selector:o,style:n,selectorType:c}])}),[])}exports.flatten=t,exports.parse=n,exports.toRules=function(r,t){var o=t?"."+t:"";return n(r).map((function(r){var t=r.selector,n=r.selectorType,c=r.style,u=function(e){for(var r="",t=0,n=Object.entries(e);t<n.length;t++){var o=n[t];r+=o[0]+": "+o[1]}return r}(c);return"void"===n?"."+(e.objectToClassName(c)||o)+" {"+u+"}":o+("pseudo"===n?"":" ")+t+" {"+u+"}"}))};
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("@styli/utils");function r(e){return/^::?.+/.test(e)}function t(e){return e?"object"!=typeof e||Array.isArray(e)?e:Object.keys(e).reduce((function(r,n){var o,c=t(e[n]);return Array.isArray(c)?c.reduce((function(e,r){return[].concat(e,[[n].concat(r)])}),r):[].concat(r,[[(o={},o[n]=c,o)]])}),[]):e}function n(e){return t(e).reduce((function(e,t){var n=t.pop(),o=t.reduce((function(e,t){return r(t)?""+e+t:e+" "+t}),""),c="child";return r(o)&&(c="pseudo"),""===o&&(c="void"),[].concat(e,[{selector:o,style:n,selectorType:c}])}),[])}exports.flatten=t,exports.parse=n,exports.toRules=function(r,t){var o=t?"."+t:"";return n(r).map((function(r){var t=r.selector,n=r.selectorType,c=r.style,u=function(r){for(var t="",n=0,o=Object.entries(r);n<o.length;n++){var c=o[n],u=c[1];t+=e.jsKeyToCssKey(c[0])+": "+u}return t}(c);return"void"===n?"."+(e.objectToClassName(c)||o)+" {"+u+"}":o+("pseudo"===n?"":" ")+t+" {"+u+"}"}))};
//# sourceMappingURL=css-object-processor.cjs.production.min.js.map

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

import { objectToClassName } from '@styli/utils';
import { objectToClassName, jsKeyToCssKey } from '@styli/utils';

@@ -67,3 +67,3 @@ function isPseudo(key) {

value = _Object$entries$_i[1];
str += key + ": " + value;
str += jsKeyToCssKey(key) + ": " + value;
}

@@ -75,2 +75,3 @@

* to rules can insertRule
* TODO: need improve
* @param cssObj

@@ -77,0 +78,0 @@ * @param className

@@ -20,2 +20,3 @@ import * as CSS from 'csstype';

* to rules can insertRule
* TODO: need improve
* @param cssObj

@@ -22,0 +23,0 @@ * @param className

{
"name": "@styli/css-object-processor",
"version": "1.4.0",
"version": "1.5.0",
"license": "MIT",

@@ -24,6 +24,6 @@ "main": "dist/index.js",

"dependencies": {
"@styli/utils": "^1.4.0",
"@styli/utils": "^1.5.0",
"csstype": "^3.0.7"
},
"gitHead": "c441726d3d15bb7453c5fe2592874cdd65b0b9c7"
"gitHead": "434839ec8db46d6b1585cbae262b03d1aef91bc9"
}

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

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