Bump to v3.0.1.

This commit is contained in:
jdalton
2015-01-29 23:56:52 -08:00
committed by John-David Dalton
parent bb53dde973
commit 60b8329a73
490 changed files with 2148 additions and 2159 deletions

View File

@@ -1,4 +1,4 @@
# lodash._createpad v3.0.0
# lodash._createpad v3.0.1
The [modern build](https://github.com/lodash/lodash/wiki/Build-Differences) of [lodashs](https://lodash.com/) internal `createPad` exported as a [Node.js](http://nodejs.org/)/[io.js](https://iojs.org/) module.
@@ -17,4 +17,4 @@ In Node.js/io.js:
var createPad = require('lodash._createpad');
```
See the [package source](https://github.com/lodash/lodash/blob/3.0.0-npm-packages/lodash._createpad) for more details.
See the [package source](https://github.com/lodash/lodash/blob/3.0.1-npm-packages/lodash._createpad) for more details.

View File

@@ -1,5 +1,5 @@
/**
* lodash 3.0.0 (Custom Build) <https://lodash.com/>
* lodash 3.0.1 (Custom Build) <https://lodash.com/>
* Build: `lodash modern modularize exports="npm" -o ./`
* Copyright 2012-2015 The Dojo Foundation <http://dojofoundation.org/>
* Based on Underscore.js 1.7.0 <http://underscorejs.org/LICENSE>
@@ -8,21 +8,6 @@
*/
var repeat = require('lodash.repeat');
/**
* Converts `value` to a string if it is not one. An empty string is returned
* for `null` or `undefined` values.
*
* @private
* @param {*} value The value to process.
* @returns {string} Returns the string.
*/
function baseToString(value) {
if (typeof value == 'string') {
return value;
}
return value == null ? '' : (value + '');
}
/** Native method references. */
var ceil = Math.ceil;
@@ -48,7 +33,7 @@ function createPad(string, length, chars) {
return '';
}
var padLength = length - strLength;
chars = chars == null ? ' ' : baseToString(chars);
chars = chars == null ? ' ' : (chars + '');
return repeat(chars, ceil(padLength / chars.length)).slice(0, padLength);
}

View File

@@ -1,6 +1,6 @@
{
"name": "lodash._createpad",
"version": "3.0.0",
"version": "3.0.1",
"description": "The modern build of lodashs internal `createPad` as a module.",
"homepage": "https://lodash.com/",
"icon": "https://lodash.com/icon.svg",