Comparing version 1.0.4 to 1.1.0
@@ -5,3 +5,3 @@ function toVal(mix) { | ||
if (typeof mix === 'object') { | ||
if (!!mix.push) { | ||
if (Array.isArray(mix)) { | ||
for (k=0; k < mix.length; k++) { | ||
@@ -8,0 +8,0 @@ if (mix[k] && (y = toVal(mix[k]))) { |
@@ -5,3 +5,3 @@ function toVal(mix) { | ||
if (typeof mix === 'object') { | ||
if (!!mix.push) { | ||
if (Array.isArray(mix)) { | ||
for (k=0; k < mix.length; k++) { | ||
@@ -8,0 +8,0 @@ if (mix[k] && (y = toVal(mix[k]))) { |
@@ -1,1 +0,1 @@ | ||
!function(e,n){"object"==typeof exports&&"undefined"!=typeof module?module.exports=n():"function"==typeof define&&define.amd?define(n):e.clsx=n()}(this,function(){function e(n){var o,f,t="";if(n)if("object"==typeof n)if(n.push)for(o=0;o<n.length;o++)n[o]&&(f=e(n[o]))&&(t&&(t+=" "),t+=f);else for(o in n)n[o]&&(f=e(o))&&(t&&(t+=" "),t+=f);else"boolean"==typeof n||n.call||(t&&(t+=" "),t+=n);return t}return function(){for(var n,o=0,f="";o<arguments.length;)(n=e(arguments[o++]))&&(f&&(f+=" "),f+=n);return f}}); | ||
!function(e,n){"object"==typeof exports&&"undefined"!=typeof module?module.exports=n():"function"==typeof define&&define.amd?define(n):e.clsx=n()}(this,function(){function e(n){var o,f,t="";if(n)if("object"==typeof n)if(Array.isArray(n))for(o=0;o<n.length;o++)n[o]&&(f=e(n[o]))&&(t&&(t+=" "),t+=f);else for(o in n)n[o]&&(f=e(o))&&(t&&(t+=" "),t+=f);else"boolean"==typeof n||n.call||(t&&(t+=" "),t+=n);return t}return function(){for(var n,o=0,f="";o<arguments.length;)(n=e(arguments[o++]))&&(f&&(f+=" "),f+=n);return f}}); |
{ | ||
"name": "clsx", | ||
"version": "1.0.4", | ||
"version": "1.1.0", | ||
"repository": "lukeed/clsx", | ||
"description": "A tiny (223B) utility for constructing className strings conditionally.", | ||
"description": "A tiny (229B) utility for constructing className strings conditionally.", | ||
"module": "dist/clsx.m.js", | ||
@@ -14,3 +14,3 @@ "unpkg": "dist/clsx.min.js", | ||
"email": "luke.edwards05@gmail.com", | ||
"url": "lukeed.com" | ||
"url": "https://lukeed.com" | ||
}, | ||
@@ -35,3 +35,3 @@ "engines": { | ||
"devDependencies": { | ||
"bundt": "^0.1.1", | ||
"bundt": "^0.4.0", | ||
"tap-spec": "^5.0.0", | ||
@@ -38,0 +38,0 @@ "tape": "^4.9.1" |
# clsx [![Build Status](https://travis-ci.org/lukeed/clsx.svg?branch=master)](https://travis-ci.org/lukeed/clsx) | ||
> A tiny (223B) utility for constructing `className` strings conditionally.<Br>Also serves as a [faster](/bench) & smaller drop-in replacement for the `classnames` module. | ||
> A tiny (229B) utility for constructing `className` strings conditionally.<Br>Also serves as a [faster](/bench) & smaller drop-in replacement for the `classnames` module. | ||
@@ -71,3 +71,11 @@ This module is available in three formats: | ||
## Support | ||
All versions of Node.js are supported. | ||
All browsers that support [`Array.isArray`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Array/isArray#Browser_compatibility) are supported (IE9+). | ||
>**Note:** For IE8 support and older, please install `clsx@1.0.x` and beware of [#17](https://github.com/lukeed/clsx/issues/17). | ||
## Related | ||
@@ -74,0 +82,0 @@ |
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
6183
87