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

json-map

Package Overview
Dependencies
Maintainers
1
Versions
3
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

json-map - npm Package Compare versions

Comparing version 0.1.0 to 0.1.1

33

index.js

@@ -139,2 +139,7 @@ 'use strict'

var abort = false
var nomap = function () {
abort = true
}
var destRefList = pathMapFn( sourceRefList )

@@ -146,8 +151,14 @@

node = valueMapFn( node )
node = valueMapFn( node, nomap )
return !abort
})
destTraverse.set( destRefList, node )
if ( !abort ) {
destTraverse.set( destRefList, node )
}
}

@@ -243,2 +254,20 @@

jsonmap.nomap = function ( nomapValue ) {
return function ( value, abort ) {
if ( _.isEqual( value, nomapValue ) ) {
abort()
} else {
return value
}
}
}
module.exports = jsonmap

2

package.json
{
"name": "json-map",
"version": "0.1.0",
"version": "0.1.1",
"description": "Utility to map one JavaScript object to another",

@@ -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