Comparing version 0.5.2 to 0.5.3
# Changelog | ||
## Version 0.5.3 | ||
* string: fix maximum output length | ||
* package: update author url | ||
## Version 0.5.2 | ||
@@ -5,0 +10,0 @@ |
@@ -284,3 +284,2 @@ | ||
this.fitField(token); | ||
str += '' + token.arg; | ||
@@ -439,3 +438,3 @@ } | ||
if(token.maxWidth >= 0 && token.arg.length > token.maxWidth){ | ||
return token.arg.substring(0, token.maxWidth); | ||
token.arg = token.arg.substring(0, token.maxWidth); | ||
} | ||
@@ -461,3 +460,2 @@ if(token.zeroPad){ | ||
module.exports = function(){ | ||
@@ -464,0 +462,0 @@ var args = Array.prototype.slice.call(arguments), |
{ | ||
"name": "printf", | ||
"version": "0.5.2", | ||
"version": "0.5.3", | ||
"description": "Full implementation of the `printf` family in pure JS.", | ||
@@ -15,6 +15,4 @@ "keywords": [ | ||
"license": "MIT", | ||
"author": "David Worms <david@adaltas.com>", | ||
"maintainers": [ | ||
"David Worms <david@adaltas.com>" | ||
], | ||
"author": "David Worms <david@adaltas.com> (https://www.adaltas.com)", | ||
"maintainers": [], | ||
"contributors": [ | ||
@@ -27,2 +25,15 @@ "David Worms <david@adaltas.com>", | ||
], | ||
"coffeelintConfig": { | ||
"indentation": { | ||
"level": "error", | ||
"value": 2 | ||
}, | ||
"line_endings": { | ||
"level": "error", | ||
"value": "unix" | ||
}, | ||
"max_line_length": { | ||
"level": "ignore" | ||
} | ||
}, | ||
"main": "./lib/printf", | ||
@@ -29,0 +40,0 @@ "types": "./lib/printf.d.ts", |
@@ -148,3 +148,3 @@ [![Build Status](https://secure.travis-ci.org/adaltas/node-printf.svg)](http://travis-ci.org/adaltas/node-printf) | ||
Lenght and precision can now be variable: | ||
Length and precision can now be variable: | ||
@@ -151,0 +151,0 @@ ``` javascript |
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
23256