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 1.4.0 to 1.4.1

8

dist/dot-object.js

@@ -413,11 +413,11 @@ (function(global, exportName) {

*
* @param {Object} receipt Transform reciepe
* @param {Object} recipe Transform recipe
* @param {Object} obj Object to be transformed
* @param {Array} mods modifiers for the target
*/
DotObject.prototype.transform = function(tran, obj, tgt) {
DotObject.prototype.transform = function(recipe, obj, tgt) {
obj = obj || {}
tgt = tgt || {}
Object.keys(tran).forEach(function(key) {
this.set(tran[key], this.pick(key, obj), tgt)
Object.keys(recipe).forEach(function(key) {
this.set(recipe[key], this.pick(key, obj), tgt)
}.bind(this))

@@ -424,0 +424,0 @@ return tgt

@@ -407,11 +407,11 @@ 'use strict'

*
* @param {Object} receipt Transform reciepe
* @param {Object} recipe Transform recipe
* @param {Object} obj Object to be transformed
* @param {Array} mods modifiers for the target
*/
DotObject.prototype.transform = function (tran, obj, tgt) {
DotObject.prototype.transform = function (recipe, obj, tgt) {
obj = obj || {}
tgt = tgt || {}
Object.keys(tran).forEach(function (key) {
this.set(tran[key], this.pick(key, obj), tgt)
Object.keys(recipe).forEach(function (key) {
this.set(recipe[key], this.pick(key, obj), tgt)
}.bind(this))

@@ -418,0 +418,0 @@ return tgt

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

@@ -6,0 +6,0 @@ "name": "Rob Halff",

@@ -407,11 +407,11 @@ 'use strict'

*
* @param {Object} receipt Transform reciepe
* @param {Object} recipe Transform recipe
* @param {Object} obj Object to be transformed
* @param {Array} mods modifiers for the target
*/
DotObject.prototype.transform = function (tran, obj, tgt) {
DotObject.prototype.transform = function (recipe, obj, tgt) {
obj = obj || {}
tgt = tgt || {}
Object.keys(tran).forEach(function (key) {
this.set(tran[key], this.pick(key, obj), tgt)
Object.keys(recipe).forEach(function (key) {
this.set(recipe[key], this.pick(key, obj), tgt)
}.bind(this))

@@ -418,0 +418,0 @@ return tgt

Sorry, the diff of this file is not supported yet

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