lodash.property
Advanced tools
Comparing version 4.4.0 to 4.4.1
10
index.js
@@ -27,3 +27,4 @@ /** | ||
reIsPlainProp = /^\w*$/, | ||
rePropName = /[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(\.|\[\])(?:\4|$))/g; | ||
reLeadingDot = /^\./, | ||
rePropName = /[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g; | ||
@@ -623,4 +624,9 @@ /** | ||
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)); | ||
@@ -627,0 +633,0 @@ }); |
{ | ||
"name": "lodash.property", | ||
"version": "4.4.0", | ||
"version": "4.4.1", | ||
"description": "The lodash method `_.property` exported as a module.", | ||
@@ -5,0 +5,0 @@ "homepage": "https://lodash.com/", |
@@ -1,2 +0,2 @@ | ||
# lodash.property v4.4.0 | ||
# lodash.property v4.4.1 | ||
@@ -18,2 +18,2 @@ The [lodash](https://lodash.com/) method `_.property` exported as a [Node.js](https://nodejs.org/) module. | ||
See the [documentation](https://lodash.com/docs#property) or [package source](https://github.com/lodash/lodash/blob/4.4.0-npm-packages/lodash.property) for more details. | ||
See the [documentation](https://lodash.com/docs#property) or [package source](https://github.com/lodash/lodash/blob/4.4.1-npm-packages/lodash.property) for more details. |
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
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
Found 1 instance in 1 package
27037
873
0