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

one-spaces

Package Overview
Dependencies
Maintainers
1
Versions
57
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

one-spaces - npm Package Compare versions

Comparing version 0.5.1 to 0.6.1

16

dist/index.js
/**
* @author TroyTae
* @version 0.5.1
* @version 0.6.1
* @name one-spaces
*/
'use strict';function index () {
var k;
var argument;
var className = '';
var i = arguments.length;
while (i--) {
className += (' ' + arguments[i]);
argument = arguments[i];
if (typeof argument === 'object') {
for (k in argument) {
if (argument[k]) {
className += (' ' + k);
}
}
}
else {
className += (' ' + argument);
}
}
return className;
}module.exports=index;

2

dist/one-spaces.js

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

var OneSpaces=function(){"use strict";return function(){for(var n="",r=arguments.length;r--;)n+=" "+arguments[r];return n}}();
var OneSpaces=function(){"use strict";return function(){for(var e,n,r="",t=arguments.length;t--;)if("object"==typeof(n=arguments[t]))for(e in n)n[e]&&(r+=" "+e);else r+=" "+n;return r}}();
{
"name": "one-spaces",
"version": "0.5.1",
"version": "0.6.1",
"description": "A tiny module for making className 😎",

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

export default function() {
let k;
let argument;
let className = '';
let i = arguments.length;
while (i--) {
className += (' ' + arguments[i]);
argument = arguments[i];
if (typeof argument === 'object') {
for (k in argument) {
if (argument[k]) {
className += (' ' + k);
}
}
} else {
className += (' ' + argument);
}
}
return className;
}

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