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

@cleartrip/ct-design-accordion

Package Overview
Dependencies
Maintainers
0
Versions
216
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@cleartrip/ct-design-accordion - npm Package Compare versions

Comparing version 3.13.0 to 3.13.1-SNAPSHOT-mevc-common.0

57

dist/ct-design-accordion.umd.js

@@ -120,30 +120,41 @@ (function (global, factory) {

function classNames() {
var classes = [];
var classes = '';
for (var i = 0; i < arguments.length; i++) {
var arg = arguments[i];
if (!arg) continue;
var argType = typeof arg;
if (argType === 'string' || argType === 'number') {
classes.push(arg);
} else if (Array.isArray(arg)) {
if (arg.length) {
var inner = classNames.apply(null, arg);
if (inner) {
classes.push(inner);
}
}
} else if (argType === 'object') {
if (arg.toString !== Object.prototype.toString && !arg.toString.toString().includes('[native code]')) {
classes.push(arg.toString());
continue;
}
for (var key in arg) {
if (hasOwn.call(arg, key) && arg[key]) {
classes.push(key);
}
}
if (arg) {
classes = appendClass(classes, parseValue(arg));
}
}
return classes.join(' ');
return classes;
}
function parseValue(arg) {
if (typeof arg === 'string' || typeof arg === 'number') {
return arg;
}
if (typeof arg !== 'object') {
return '';
}
if (Array.isArray(arg)) {
return classNames.apply(null, arg);
}
if (arg.toString !== Object.prototype.toString && !arg.toString.toString().includes('[native code]')) {
return arg.toString();
}
var classes = '';
for (var key in arg) {
if (hasOwn.call(arg, key) && arg[key]) {
classes = appendClass(classes, key);
}
}
return classes;
}
function appendClass(value, newClass) {
if (!newClass) {
return value;
}
if (value) {
return value + ' ' + newClass;
}
return value + newClass;
}
if (module.exports) {

@@ -150,0 +161,0 @@ classNames.default = classNames;

{
"name": "@cleartrip/ct-design-accordion",
"version": "3.13.0",
"version": "3.13.1-SNAPSHOT-mevc-common.0",
"description": "Accordion Component",

@@ -18,10 +18,10 @@ "types": "dist/index.d.ts",

"dependencies": {
"@cleartrip/ct-design-transition": "3.13.0",
"@cleartrip/ct-design-icons": "31.0.1-SNAPSHOT-mevc-common.0",
"@cleartrip/ct-design-container": "3.13.0",
"@cleartrip/ct-design-typography": "3.13.0",
"@cleartrip/ct-design-icons": "31.0.0",
"@cleartrip/ct-design-theme": "3.13.0"
"@cleartrip/ct-design-typography": "3.14.0-SNAPSHOT-mevc-common.0",
"@cleartrip/ct-design-theme": "3.14.0-SNAPSHOT-mevc-common.0",
"@cleartrip/ct-design-transition": "3.13.1-SNAPSHOT-mevc-common.0"
},
"devDependencies": {
"@cleartrip/ct-design-types": "3.13.0"
"@cleartrip/ct-design-types": "3.13.1-SNAPSHOT-mevc-common.0"
},

@@ -28,0 +28,0 @@ "peerDependencies": {

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