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

cnbuilder

Package Overview
Dependencies
Maintainers
1
Versions
39
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

cnbuilder - npm Package Compare versions

Comparing version 1.0.11 to 1.0.12

55

dist/cnbuilder.esm.js

@@ -15,35 +15,48 @@ function _typeof(obj) {

var arrayReducer = function arrayReducer(result, item) {
var type = _typeof(item);
var isArray = Array.isArray;
var hasProp = Object.prototype.hasOwnProperty;
if (type === "string") {
return item ? result + (result && " ") + item : result;
}
var arrayReduce = function arrayReduce(args) {
var res = "",
len = args.length,
item,
type,
i,
n;
if (Array.isArray(item)) {
var tmp = item.length ? item.length > 1 ? item.reduce(arrayReducer, "") : arrayReducer("", item[0]) : "";
return tmp ? result + (result && " ") + tmp : result;
}
for (i = 0; i < len; i++) {
if (!args[i]) {
continue;
}
if (type === "object" && item) {
var _tmp = "";
item = args[i];
type = _typeof(item);
for (var i in item) {
if (item[i] && item.hasOwnProperty(i)) {
_tmp += (_tmp && " ") + i;
if (type === "string") {
res += (res && " ") + item;
continue;
}
if (isArray(item)) {
if (item = arrayReduce(item)) {
res += (res && " ") + item;
}
continue;
}
return _tmp ? result + (result && " ") + _tmp : result;
if (type === "object") {
for (n in item) {
if (hasProp.call(item, n) && item[n] && n) {
res += (res && " ") + n;
}
}
}
}
return result;
return res;
};
var cnb = function cnb() {
for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {
args[_key] = arguments[_key];
}
return args.length ? args.length > 1 ? args.reduce(arrayReducer, "") : arrayReducer("", args[0]) : "";
return arrayReduce(arguments);
};

@@ -50,0 +63,0 @@

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

!function(t,e){"object"==typeof exports&&"undefined"!=typeof module?e(exports):"function"==typeof define&&define.amd?define(["exports"],e):e((t=t||self).cnbuilder={})}(this,function(t){"use strict";function e(t){return(e="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}var n=function t(n,r){var o=e(r);if("string"===o)return r?n+(n&&" ")+r:n;if(Array.isArray(r)){var f=r.length?r.length>1?r.reduce(t,""):t("",r[0]):"";return f?n+(n&&" ")+f:n}if("object"===o&&r){var u="";for(var i in r)r[i]&&r.hasOwnProperty(i)&&(u+=(u&&" ")+i);return u?n+(n&&" ")+u:n}return n},r=function(){for(var t=arguments.length,e=new Array(t),r=0;r<t;r++)e[r]=arguments[r];return e.length?e.length>1?e.reduce(n,""):n("",e[0]):""};t.cnb=r,t.default=r});
!function(t,e){"object"==typeof exports&&"undefined"!=typeof module?e(exports):"function"==typeof define&&define.amd?define(["exports"],e):e((t=t||self).cnbuilder={})}(this,function(t){"use strict";function e(t){return(e="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}var o=Array.isArray,n=Object.prototype.hasOwnProperty,r=function(){return function t(r){var f,i,u,y,c="",l=r.length;for(u=0;u<l;u++)if(r[u])if("string"!==(i=e(f=r[u]))){if(o(f))(f=t(f))&&(c+=(c&&" ")+f);else if("object"===i)for(y in f)n.call(f,y)&&f[y]&&y&&(c+=(c&&" ")+y)}else c+=(c&&" ")+f;return c}(arguments)};t.cnb=r,t.default=r});
//# sourceMappingURL=cnbuilder.js.map

@@ -7,3 +7,3 @@ export declare type ClassValue = string | null | boolean | undefined | ClassListDictionary | ClassListArray;

}
export declare const cnb: (...args: ClassListArray) => string;
export declare const cnb: () => string;
export default cnb;
{
"name": "cnbuilder",
"version": "1.0.11",
"version": "1.0.12",
"main": "dist/cnbuilder.js",

@@ -5,0 +5,0 @@ "module": "dist/cnbuilder.esm.js",

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