fill-range
Advanced tools
Comparing version 2.1.0 to 2.2.0
10
index.js
@@ -5,3 +5,3 @@ /*! | ||
* Copyright (c) 2014-2015, Jon Schlinkert. | ||
* Licensed under the MIT license. | ||
* Licensed under the MIT License. | ||
*/ | ||
@@ -389,5 +389,9 @@ | ||
if (hasZeros(origA) || hasZeros(origB)) { | ||
var alen = length(origA), blen = length(origB); | ||
var len = alen >= blen ? alen : blen; | ||
var alen = length(origA); | ||
var blen = length(origB); | ||
var len = alen >= blen | ||
? alen | ||
: blen; | ||
return function (a) { | ||
@@ -394,0 +398,0 @@ return repeatStr('0', len - length(a)); |
{ | ||
"name": "fill-range", | ||
"description": "Fill in a range of numbers or letters, optionally passing an increment or multiplier to use.", | ||
"version": "2.1.0", | ||
"version": "2.2.0", | ||
"homepage": "https://github.com/jonschlinkert/fill-range", | ||
@@ -19,4 +19,7 @@ "author": { | ||
"type": "MIT", | ||
"url": "https://github.com/jonschlinkert/fill-range/blob/master/LICENSE-MIT" | ||
"url": "https://github.com/jonschlinkert/fill-range/blob/master/LICENSE" | ||
}, | ||
"files": [ | ||
"index.js" | ||
], | ||
"main": "index.js", | ||
@@ -26,7 +29,4 @@ "engines": { | ||
}, | ||
"files": [ | ||
"index.js" | ||
], | ||
"scripts": { | ||
"test": "mocha -R spec" | ||
"test": "mocha" | ||
}, | ||
@@ -33,0 +33,0 @@ "dependencies": { |
@@ -1,2 +0,2 @@ | ||
# fill-range [![NPM version](https://badge.fury.io/js/fill-range.svg)](http://badge.fury.io/js/fill-range) | ||
# fill-range [![NPM version](https://badge.fury.io/js/fill-range.svg)](http://badge.fury.io/js/fill-range) [![Build Status](https://travis-ci.org/jonschlinkert/fill-range.svg)](https://travis-ci.org/jonschlinkert/fill-range) | ||
@@ -261,3 +261,3 @@ > Fill in a range of numbers or letters, optionally passing an increment or multiplier to use. | ||
_This file was generated by [verb](https://github.com/assemble/verb) on January 30, 2015._ | ||
_This file was generated by [verb](https://github.com/assemble/verb) on February 25, 2015._ | ||
@@ -264,0 +264,0 @@ [randomatic]: https://github.com/jonschlinkert/randomatic |
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
16482
4
333