Comparing version 1.4.1 to 1.4.2
@@ -1,3 +0,1 @@ | ||
const rpad = require('pad-right'); | ||
const GAP = 4; | ||
@@ -12,3 +10,3 @@ const __ = ' '; | ||
let len = maxLen( arr.map(x => x[0]) ) + GAP; | ||
let join = a => rpad(a[0], len, ' ') + a[1] + (a[2] == null ? '' : ` (default ${a[2]})`); | ||
let join = a => a[0] + ' '.repeat(len - a[0].length) + a[1] + (a[2] == null ? '' : ` (default ${a[2]})`); | ||
return arr.map(join); | ||
@@ -15,0 +13,0 @@ } |
{ | ||
"name": "sade", | ||
"version": "1.4.1", | ||
"version": "1.4.2", | ||
"description": "Smooth (CLI) operator 🎶", | ||
@@ -20,4 +20,3 @@ "repository": "lukeed/sade", | ||
"dependencies": { | ||
"mri": "^1.1.0", | ||
"pad-right": "^0.2.2" | ||
"mri": "^1.1.0" | ||
}, | ||
@@ -24,0 +23,0 @@ "engines": { |
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
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
1
20538
203
- Removedpad-right@^0.2.2
- Removedpad-right@0.2.2(transitive)
- Removedrepeat-string@1.6.1(transitive)