classed-components
Advanced tools
Comparing version 1.0.0-beta.1 to 1.0.0
@@ -25,4 +25,3 @@ "use strict"; | ||
const compileClassnames = (placeholders, classes) => { | ||
let className = ''; | ||
placeholders.forEach((placeholder, i) => className += classes[i] + placeholder); | ||
const className = placeholders.reduce((acc, placeholder, i) => acc + classes[i] + placeholder, ''); | ||
return (className + classes[classes.length - 1]).replace(/\s+/g, ' ').trim(); | ||
@@ -29,0 +28,0 @@ }; |
{ | ||
"name": "classed-components", | ||
"version": "1.0.0-beta.1", | ||
"version": "1.0.0", | ||
"description": "CSS Classes for the component age. Apply your Css with the power of Javascript.", | ||
@@ -45,2 +45,3 @@ "keywords": [ | ||
"jest": "^24.8.0", | ||
"react": "^16.8.6", | ||
"react-test-renderer": "^16.8.6", | ||
@@ -47,0 +48,0 @@ "ts-jest": "^24.0.2", |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
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
New author
Supply chain riskA new npm collaborator published a version of the package for the first time. New collaborators are usually benign additions to a project, but do indicate a change to the security surface area of a package.
Found 1 instance in 1 package
No v1
QualityPackage is not semver >=1. This means it is not stable and does not support ^ ranges.
Found 1 instance in 1 package
27943
0
0
13
362