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.7.0 to 0.8.0

lib/stringToParts.js

4

History.md

@@ -0,1 +1,5 @@

0.8.0 / 2020-11-14
==================
* feat: support square bracket indexing for `get()`, `set()`, `has()`, and `unset()`
0.7.0 / 2020-03-24

@@ -2,0 +6,0 @@ ==================

10

lib/index.js

@@ -0,1 +1,3 @@

var stringToParts = require('./stringToParts');
// These properties are special and can open client libraries to security

@@ -49,3 +51,3 @@ // issues

var parts = 'string' == typeof path
? path.split('.')
? stringToParts(path)
: path

@@ -100,3 +102,3 @@

var parts = typeof path === 'string' ?
path.split('.') :
stringToParts(path) :
path;

@@ -129,3 +131,3 @@

var parts = typeof path === 'string' ?
path.split('.') :
stringToParts(path) :
path;

@@ -183,3 +185,3 @@

var parts = 'string' == typeof path
? path.split('.')
? stringToParts(path)
: path

@@ -186,0 +188,0 @@

{
"name": "mpath",
"version": "0.7.0",
"version": "0.8.0",
"description": "{G,S}et object values using MongoDB-like path notation",

@@ -5,0 +5,0 @@ "main": "index.js",

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