command-line-usage
Advanced tools
Comparing version 3.0.5 to 3.0.6
@@ -52,6 +52,6 @@ 'use strict'; | ||
} | ||
Object.assign({ padding: defaultPadding }, content.options); | ||
var options = Object.assign({ padding: defaultPadding }, content.options); | ||
_this.add(tableLayout.lines(content.data.map(function (row) { | ||
return ansiFormatRow(row); | ||
}), content.options)); | ||
}), options)); | ||
} else { | ||
@@ -58,0 +58,0 @@ var message = 'invalid input - \'content\' must be a string, array of strings, or array of plain objects:\n\n' + JSON.stringify(content); |
@@ -42,3 +42,3 @@ 'use strict' | ||
/* { options: object, content: object[] } */ | ||
/* { options: object, data: object[] } */ | ||
} else if (t.isPlainObject(content)) { | ||
@@ -48,3 +48,3 @@ if (!content.options || !content.data) { | ||
} | ||
Object.assign( | ||
const options = Object.assign( | ||
{ padding: defaultPadding }, | ||
@@ -55,3 +55,3 @@ content.options | ||
content.data.map(row => ansiFormatRow(row)), | ||
content.options | ||
options | ||
)) | ||
@@ -58,0 +58,0 @@ } else { |
{ | ||
"name": "command-line-usage", | ||
"author": "Lloyd Brookes <75pound@gmail.com>", | ||
"version": "3.0.5", | ||
"version": "3.0.6", | ||
"description": "Generates command-line usage information", | ||
@@ -21,3 +21,3 @@ "repository": "https://github.com/75lb/command-line-usage.git", | ||
"test": "test-runner test/*.js", | ||
"es5": "babel --presets babel-preset-es2015 --no-comments lib --out-dir es5" | ||
"es5": "rm -rf es5 && babel --presets babel-preset-es2015 --no-comments lib --out-dir es5" | ||
}, | ||
@@ -27,3 +27,3 @@ "dependencies": { | ||
"array-back": "^1.0.3", | ||
"table-layout": "~0.2.2", | ||
"table-layout": "~0.2.3", | ||
"feature-detect-es6": "^1.3.1", | ||
@@ -33,5 +33,5 @@ "typical": "^2.6.0" | ||
"devDependencies": { | ||
"babel-preset-es2015": "^6.16.0", | ||
"babel-preset-es2015": "^6.18.0", | ||
"core-assert": "^0.2.1", | ||
"jsdoc-to-markdown": "^2.0.0", | ||
"jsdoc-to-markdown": "^2.0.1", | ||
"test-runner": "^0.2.5" | ||
@@ -38,0 +38,0 @@ }, |
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
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
853653
39
847
Updatedtable-layout@~0.2.3