Bump to v4.5.1.

This commit is contained in:
John-David Dalton
2016-02-24 08:12:35 -08:00
parent 0ceb6d1dad
commit 33d94a2a5e
178 changed files with 926 additions and 2372 deletions

View File

@@ -1,4 +1,4 @@
# lodash.pullat v4.5.0
# lodash.pullat v4.5.1
The [lodash](https://lodash.com/) method `_.pullAt` exported as a [Node.js](https://nodejs.org/) module.
@@ -15,4 +15,4 @@ In Node.js:
var pullAt = require('lodash.pullat');
```
See the [documentation](https://lodash.com/docs#pullAt) or [package source](https://github.com/lodash/lodash/blob/4.5.0-npm-packages/lodash.pullat) for more details.
See the [documentation](https://lodash.com/docs#pullAt) or [package source](https://github.com/lodash/lodash/blob/4.5.1-npm-packages/lodash.pullat) for more details.

View File

@@ -26,7 +26,8 @@ var argsTag = '[object Arguments]',
/** Used to match property names within property paths. */
var reIsDeepProp = /\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,
reIsPlainProp = /^\w*$/,
rePropName = /[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(\.|\[\])(?:\4|$))/g;
reLeadingDot = /^\./,
rePropName = /[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g;
/**
* Used to match `RegExp`
@@ -830,7 +831,7 @@ function getNative(object, key) {
*/
function isFlattenable(value) {
return isArray(value) || isArguments(value) ||
!!(spreadableSymbol && value && value[spreadableSymbol])
!!(spreadableSymbol && value && value[spreadableSymbol]);
}
/**
@@ -914,8 +915,13 @@ function parent(object, path) {
* @returns {Array} Returns the property path array.
*/
var stringToPath = memoize(function(string) {
string = toString(string);
var result = [];
toString(string).replace(rePropName, function(match, number, quote, string) {
if (reLeadingDot.test(string)) {
result.push('');
}
string.replace(rePropName, function(match, number, quote, string) {
result.push(quote ? string.replace(reEscapeChar, '$1') : (number || match));
});
return result;

View File

@@ -1,6 +1,6 @@
{
"name": "lodash.pullat",
"version": "4.5.0",
"version": "4.5.1",
"description": "The lodash method `_.pullAt` exported as a module.",
"homepage": "https://lodash.com/",
"icon": "https://lodash.com/icon.svg",