Comparing version 1.0.2 to 1.0.3
11
index.js
@@ -6,13 +6,4 @@ 'use strict'; | ||
/** | ||
* Left pad a string to align with the longest string in an array | ||
* | ||
* @param {String} str | ||
* @param {Array} arr | ||
* @param {Number} indent | ||
* @api public | ||
*/ | ||
module.exports = function (str, arr, indent) { | ||
if (!arr || !Array.isArray(arr)) { | ||
if (!Array.isArray(arr)) { | ||
throw new Error('`arr` is required'); | ||
@@ -19,0 +10,0 @@ } |
{ | ||
"name": "lpad-align", | ||
"version": "1.0.2", | ||
"version": "1.0.3", | ||
"description": "Left pad a string to align with the longest string in an array", | ||
@@ -27,3 +27,3 @@ "license": "MIT", | ||
"dependencies": { | ||
"longest": "^0.2.1", | ||
"longest": "^1.0.0", | ||
"lpad": "^1.0.0" | ||
@@ -30,0 +30,0 @@ }, |
Trivial Package
Supply chain riskPackages less than 10 lines of code are easily copied into your own project and may not warrant the additional supply chain risk of an external dependency.
Found 1 instance in 1 package
2653
4
10
1
+ Addedlongest@1.0.1(transitive)
- Removedlongest@0.2.1(transitive)
Updatedlongest@^1.0.0