Bump to v4.3.1.

This commit is contained in:
John-David Dalton
2016-02-16 00:58:24 -08:00
parent 607a8b4075
commit 5b0364fb20
131 changed files with 715 additions and 8345 deletions

View File

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

View File

@@ -25,7 +25,8 @@ var funcTag = '[object Function]',
/** 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`
@@ -648,8 +649,13 @@ function isMasked(func) {
* @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.setwith",
"version": "4.3.0",
"version": "4.3.1",
"description": "The lodash method `_.setWith` exported as a module.",
"homepage": "https://lodash.com/",
"icon": "https://lodash.com/icon.svg",