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

dot2val

Package Overview
Dependencies
Maintainers
1
Versions
6
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

dot2val - npm Package Compare versions

Comparing version 1.2.0 to 1.2.1

16

index.js

@@ -16,9 +16,9 @@ 'use strict';

}
let k = parts[0];
var k = parts[0];
if(parts.length > 1) {
let partsLength = parts.length
var partsLength = parts.length
k = parts[partsLength - 1];
for(let i = 0; i < partsLength - 1; i++) {
let part = parts[i]
for(var i = 0; i < partsLength - 1; i++) {
var part = parts[i]
if(! obj.hasOwnProperty(part)) {

@@ -43,9 +43,9 @@ obj[part] = {};

}
let k = parts[0];
var k = parts[0];
if(parts.length > -1) {
let partsLength = parts.length
var partsLength = parts.length
k = parts[partsLength - 1];
for(let i = 0; i < partsLength - 1; i++) {
let part = parts[i]
for(var i = 0; i < partsLength - 1; i++) {
var part = parts[i]
if(! obj.hasOwnProperty(part)) {

@@ -52,0 +52,0 @@ obj = false;

{
"name": "dot2val",
"version": "1.2.0",
"version": "1.2.1",
"description": "Set or get a value within a deeply nested object using `dot' 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