New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

rc-class

Package Overview
Dependencies
Maintainers
1
Versions
9
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

rc-class - npm Package Compare versions

Comparing version 1.0.1 to 1.0.2

1

example.js

@@ -8,1 +8,2 @@ let rcClass = require('./index.js');

);
console.log(cn({ xyz: { reduce: '-information' } }));

28

index.js

@@ -115,13 +115,13 @@ (function (global, factory) {

for (var attr in _item) {
var _temp = _item[attr];
var temp = _item[attr];
var reduce = void 0;
if (typeof _temp === 'function') {
_temp = _temp();
} else if (_typeof(_temp) === 'object') {
reduce = _temp.reduce;
_temp = _temp.use === undefined ? true : _temp.use;
if (typeof temp === 'function') {
temp = temp();
} else if (_typeof(temp) === 'object') {
reduce = temp.reduce;
temp = temp.use === undefined ? true : temp.use;
}
if (_temp === true) {
if (temp === true) {
out.push(attr, reduce);

@@ -148,14 +148,14 @@ }

for (var key in opt) {
item = opt[key];
var _temp = opt[key];
var _reduce = void 0;
if (typeof item === 'function') {
item = item();
} else if ((typeof temp === "undefined" ? "undefined" : _typeof(temp)) === 'object') {
_reduce = temp.reduce;
item = temp.use === undefined ? true : temp.use;
if (typeof _temp === 'function') {
_temp = _temp();
} else if (_typeof(_temp) === 'object') {
_reduce = _temp.reduce;
_temp = _temp.use === undefined ? true : _temp.use;
}
if (item === true) {
if (_temp === true) {
out.push(key, _reduce);

@@ -162,0 +162,0 @@ }

@@ -72,11 +72,11 @@ class PrefixArray {

for (let key in opt) {
item = opt[key];
let temp = opt[key];
let reduce;
if (typeof item === 'function') {
item = item();
if (typeof temp === 'function') {
temp = temp();
} else if (typeof temp === 'object') {
reduce = temp.reduce;
item = temp.use === undefined ? true : temp.use;
temp = temp.use === undefined ? true : temp.use;
}
if (item === true) {
if (temp === true) {
out.push(key, reduce);

@@ -83,0 +83,0 @@ }

{
"name": "rc-class",
"version": "1.0.1",
"version": "1.0.2",
"description": "handle multiple react classnames",

@@ -5,0 +5,0 @@ "main": "index.js",

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