pad
Advanced tools
Comparing version 1.2.1 to 2.0.0
# Changelog | ||
## v2.0.0 | ||
* package: upgrade to CoffeeScript 2 | ||
## v1.2.1 | ||
* package revers to CoffeeScript 1 | ||
## v1.2.0 | ||
@@ -5,0 +13,0 @@ |
@@ -1,2 +0,2 @@ | ||
// Generated by CoffeeScript 1.12.7 | ||
// Generated by CoffeeScript 2.0.1 | ||
var pad; | ||
@@ -6,6 +6,3 @@ | ||
module.exports = function(string, size, options) { | ||
if (options == null) { | ||
options = {}; | ||
} | ||
module.exports = function(string, size, options = {}) { | ||
if (typeof options === 'string') { | ||
@@ -12,0 +9,0 @@ options = { |
@@ -1,2 +0,2 @@ | ||
// Generated by CoffeeScript 1.12.7 | ||
// Generated by CoffeeScript 2.0.1 | ||
var wcwidth; | ||
@@ -6,10 +6,7 @@ | ||
module.exports = function(text, length, options) { | ||
var escapecolor, invert, pad, padlength, ref, textnocolors; | ||
if (options == null) { | ||
options = {}; | ||
} | ||
module.exports = function(text, length, options = {}) { | ||
var escapecolor, invert, pad, padlength, textnocolors; | ||
invert = typeof text === 'number'; | ||
if (invert) { | ||
ref = [text, length], length = ref[0], text = ref[1]; | ||
[length, text] = [text, length]; | ||
} | ||
@@ -16,0 +13,0 @@ if (typeof options === 'string') { |
{ | ||
"name": "pad", | ||
"description": "Left and right string padding", | ||
"version": "1.2.1", | ||
"version": "2.0.0", | ||
"author": "David Worms <david@adaltas.com>", | ||
@@ -36,5 +36,4 @@ "contributors": [ | ||
"dependencies": { | ||
"coffee-script": "^1.12.7", | ||
"wcwidth": "^1.0.1" | ||
} | ||
} |
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
Found 1 instance in 1 package
16153
1
10
340
1
- Removedcoffee-script@^1.12.7
- Removedcoffee-script@1.12.7(transitive)