Comparing version 0.8.0 to 0.8.1
@@ -0,1 +1,5 @@ | ||
0.8.1 / 2020-12-10 | ||
================== | ||
* fix(stringToParts): handle empty string and trailing dot the same way that `split()` does for backwards compat | ||
0.8.0 / 2020-11-14 | ||
@@ -2,0 +6,0 @@ ================== |
@@ -28,7 +28,5 @@ 'use strict'; | ||
} | ||
if (curPropertyName.length > 0) { | ||
result.push(curPropertyName); | ||
} | ||
result.push(curPropertyName); | ||
return result; | ||
}; |
{ | ||
"name": "mpath", | ||
"version": "0.8.0", | ||
"version": "0.8.1", | ||
"description": "{G,S}et object values using MongoDB-like path notation", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
@@ -20,2 +20,10 @@ 'use strict'; | ||
}); | ||
it('handles empty string', function() { | ||
assert.deepEqual(stringToParts(''), ['']); | ||
}); | ||
it('handles trailing dot', function() { | ||
assert.deepEqual(stringToParts('a.b.'), ['a', 'b', '']); | ||
}); | ||
}); |
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
90582
2030