classix 1.0.5 → 1.1.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (2) hide show
  1. package/dist/index.js +5 -6
  2. package/package.json +1 -1
package/dist/index.js CHANGED
@@ -2,13 +2,12 @@
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.cx = void 0;
4
4
  function cx() {
5
- var str = "", i = 0, arg, val;
5
+ var str = "", i = 0, arg;
6
6
  while (i < arguments.length) {
7
- if ((arg = arguments[i++])) {
8
- if ((val = typeof arg === "string" || typeof arg === "number" ? arg : "")) {
9
- str && (str += " ");
10
- str += val;
11
- }
7
+ if ((arg = arguments[i++]) &&
8
+ (typeof arg === "string" || typeof arg === "number")) {
9
+ str && (str += " ");
10
+ str += arg;
12
11
  }
13
12
  }
14
13
  return str;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "classix",
3
- "version": "1.0.5",
3
+ "version": "1.1.0",
4
4
  "description": "A tiny utility for conditionally joining classNames.",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",