one-spaces
Advanced tools
Comparing version 1.3.4 to 1.3.5
/** | ||
* @author TroyTae | ||
* @version 1.3.4 | ||
* @version 1.3.5 | ||
* @name one-spaces | ||
*/ | ||
function OneSpaces() { | ||
var args = []; | ||
for (var _i = 0; _i < arguments.length; _i++) { | ||
args[_i] = arguments[_i]; | ||
function OneSpaces(args) { | ||
var item, index = 0, str = ''; | ||
while (index < args.length) { | ||
if ( | ||
(item = args[index++]) && | ||
(!item.pop || (item = OneSpaces(item))) | ||
) { | ||
str && (str += ' '); | ||
str += item; | ||
} | ||
return (args | ||
.filter(Boolean) | ||
.join() | ||
.replace(/,/g, ' ')); | ||
} | ||
return str; | ||
} | ||
export default OneSpaces; | ||
function index () { | ||
return OneSpaces(arguments); | ||
} | ||
export default index; |
/** | ||
* @author TroyTae | ||
* @version 1.3.4 | ||
* @version 1.3.5 | ||
* @name one-spaces | ||
@@ -8,13 +8,22 @@ */ | ||
function OneSpaces() { | ||
var args = []; | ||
for (var _i = 0; _i < arguments.length; _i++) { | ||
args[_i] = arguments[_i]; | ||
function OneSpaces(args) { | ||
var item, index = 0, str = ''; | ||
while (index < args.length) { | ||
if ( | ||
(item = args[index++]) && | ||
(!item.pop || (item = OneSpaces(item))) | ||
) { | ||
str && (str += ' '); | ||
str += item; | ||
} | ||
return (args | ||
.filter(Boolean) | ||
.join() | ||
.replace(/,/g, ' ')); | ||
} | ||
return str; | ||
} | ||
module.exports = OneSpaces; | ||
function index () { | ||
return OneSpaces(arguments); | ||
} | ||
module.exports = index; |
@@ -1,1 +0,1 @@ | ||
var OneSpaces=function(){for(var e=[],n=0;n<arguments.length;n++)e[n]=arguments[n];return e.filter(Boolean).join().replace(/,/g," ")}; | ||
var OneSpaces=function(){function n(r){for(var t,e=0,u="";e<r.length;)!(t=r[e++])||t.pop&&!(t=n(t))||(u&&(u+=" "),u+=t);return u}return function(){return n(arguments)}}(); |
{ | ||
"name": "one-spaces", | ||
"version": "1.3.4", | ||
"version": "1.3.5", | ||
"description": "A tiny module for making className 😎", | ||
@@ -25,5 +25,4 @@ "main": "dist/index.js", | ||
"devDependencies": { | ||
"eslint-config-troy-recommended": "git://github.com/TroyTae/eslint-config-troy-recommended.git", | ||
"rollup-config-troy-recommended": "git://github.com/TroyTae/rollup-config-troy-recommended.git", | ||
"jest": "^25.1.0" | ||
"eslint-config-troy-recommended": "git+https://github.com/TroyTae/eslint-config-troy-recommended.git", | ||
"troyjs": "git+https://github.com/TroyTae/troyjs.git" | ||
}, | ||
@@ -30,0 +29,0 @@ "scripts": { |
@@ -0,0 +0,0 @@ [![build](https://img.shields.io/github/workflow/status/TroyTae/one-spaces/one-spaces/master?style=flat-square)](https://github.com/TroyTae/one-spaces/actions?query=workflow%3Aone-spaces) |
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
No bug tracker
MaintenancePackage does not have a linked bug tracker in package.json.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
No bug tracker
MaintenancePackage does not have a linked bug tracker in package.json.
Found 1 instance in 1 package
5515
2
8
54