Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

mpath

Package Overview
Dependencies
Maintainers
2
Versions
19
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

mpath - npm Package Compare versions

Comparing version 0.8.0 to 0.8.1

4

History.md

@@ -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 @@ ==================

4

lib/stringToParts.js

@@ -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', '']);
});
});
SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc