Socket
Socket
Sign inDemoInstall

doc-path

Package Overview
Dependencies
Maintainers
1
Versions
44
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

doc-path - npm Package Compare versions

Comparing version 1.0.2 to 1.0.3

6

lib/path.js

@@ -7,4 +7,4 @@ var controller = {};

// If there is a '.' in the keyPath, recur on the subdoc and ...
if (indexOfDot >= 0) {
// If there is a '.' in the keyPath and keyPath doesn't present in the document, recur on the subdoc and ...
if (indexOfDot >= 0 && !document[keyPath]) {
var currentKey = keyPath.slice(0, indexOfDot),

@@ -38,2 +38,2 @@ remainingKeyPath = keyPath.slice(indexOfDot + 1);

module.exports = controller;
module.exports = controller;

@@ -5,3 +5,3 @@ {

"description": "A document path library for Node.JS",
"version": "1.0.2",
"version": "1.0.3",
"repository": {

@@ -41,2 +41,2 @@ "type": "git",

"license": "MIT"
}
}
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