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

dot-object

Package Overview
Dependencies
Maintainers
1
Versions
40
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

dot-object - npm Package Compare versions

Comparing version 0.5.0 to 0.6.0

.npmignore

22

index.js

@@ -174,2 +174,23 @@ 'use strict';

/**
*
* Copy a property from one object to another object.
*
* If the source path does not exist (undefined)
* the property on the other object will not be set.
*
* @param {String} source
* @param {String} target
* @param {Object} obj1
* @param {Object} obj2
* @param {Boolean} merge
*/
DotObject.prototype.copy = function(source, target, obj1, obj2, merge) {
this.set(target, this.pick(source, obj1, false), obj2, merge);
return obj2;
};
function isObject(val) {

@@ -192,3 +213,2 @@ return Object.prototype.toString.call(val) === '[object Object]';

var keys;
var isArray;

@@ -195,0 +215,0 @@ // Do not operate if the value is undefined.

7

package.json
{
"name": "dot-object",
"description": "dot-object makes it possible to transform and read (JSON) objects using dot notation.",
"version": "0.5.0",
"version": "0.6.0",
"author": {

@@ -37,3 +37,6 @@ "name": "Rob Halff",

"dot"
]
],
"dependencies": {
"commander": "^2.5.0"
}
}
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