Comparing version 1.2.4 to 1.3.0
@@ -27,3 +27,3 @@ 'use strict'; | ||
create: function create(styles) { | ||
var stylesheet = arguments.length <= 1 || arguments[1] === undefined ? globalStylesheet : arguments[1]; | ||
var stylesheet = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : globalStylesheet; | ||
@@ -33,8 +33,7 @@ if (!(stylesheet instanceof _map2.default)) throw new Error(stylesheet + ' should be a Map'); | ||
return (0, _keys2.default)(styles).reduce(function (acc, key) { | ||
var _seperateStyles = (0, _utils.seperateStyles)(styles[key]); | ||
var _seperateStyles = (0, _utils.seperateStyles)(styles[key]), | ||
style = _seperateStyles.style, | ||
pseudos = _seperateStyles.pseudos, | ||
mediaQueries = _seperateStyles.mediaQueries; | ||
var style = _seperateStyles.style; | ||
var pseudos = _seperateStyles.pseudos; | ||
var mediaQueries = _seperateStyles.mediaQueries; | ||
var className = (0, _utils.createClassName)((0, _utils.sortObject)(style)); | ||
@@ -102,4 +101,4 @@ | ||
render: function render() { | ||
var options = arguments.length <= 0 || arguments[0] === undefined ? { pretty: false } : arguments[0]; | ||
var stylesheet = arguments.length <= 1 || arguments[1] === undefined ? globalStylesheet : arguments[1]; | ||
var options = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : { pretty: false }; | ||
var stylesheet = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : globalStylesheet; | ||
@@ -151,3 +150,3 @@ var stylesheetEntries = stylesheet.entries(); | ||
clear: function clear() { | ||
var stylesheet = arguments.length <= 0 || arguments[0] === undefined ? globalStylesheet : arguments[0]; | ||
var stylesheet = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : globalStylesheet; | ||
@@ -154,0 +153,0 @@ stylesheet.clear(); |
{ | ||
"name": "stilr", | ||
"version": "1.2.4", | ||
"version": "1.3.0", | ||
"description": "Encapsulated styling for your javascript components with all the power of javascript and CSS combined. Usefull with React", | ||
@@ -36,23 +36,20 @@ "main": "dist", | ||
"dependencies": { | ||
"babel-runtime": "^6.6.1", | ||
"react": ">=0.11.0" | ||
"babel-runtime": "^6.6.1" | ||
}, | ||
"devDependencies": { | ||
"babel-cli": "^6.7.5", | ||
"babel-core": "^6.7.6", | ||
"babel-eslint": "^6.0.2", | ||
"babel-loader": "^6.2.4", | ||
"babel-plugin-add-module-exports": "^0.1.2", | ||
"babel-plugin-transform-runtime": "^6.7.5", | ||
"babel-polyfill": "^6.7.4", | ||
"babel-preset-es2015": "^6.6.0", | ||
"babel-register": "^6.7.2", | ||
"babel-cli": "^6.18.0", | ||
"babel-core": "^6.18.2", | ||
"babel-loader": "^6.2.8", | ||
"babel-plugin-add-module-exports": "^0.2.1", | ||
"babel-plugin-transform-runtime": "^6.15.0", | ||
"babel-polyfill": "^6.16.0", | ||
"babel-preset-es2015": "^6.18.0", | ||
"babel-register": "^6.18.0", | ||
"css": "^2.2.0", | ||
"eslint": "^2.7.0", | ||
"eslint-plugin-react": "^4.0.0", | ||
"mocha": "^2.2.4", | ||
"eslint": "^3.10.2", | ||
"mocha": "^3.1.2", | ||
"mocha-clean": "^1.0.0", | ||
"semver": "^5.1.0" | ||
"semver": "^5.3.0" | ||
}, | ||
"repository": "kodyl/stilr" | ||
} |
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
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
Found 1 instance in 1 package
Environment variable access
Supply chain riskPackage accesses environment variables, which may be a sign of credential stuffing or data theft.
Found 1 instance in 1 package
63987
1
13
21
1476
9
1
- Removedreact@>=0.11.0
- Removedreact@19.0.0(transitive)