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

update-diff

Package Overview
Dependencies
Maintainers
1
Versions
5
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

update-diff - npm Package Compare versions

Comparing version 1.0.2 to 1.0.3

12

index.js

@@ -7,8 +7,14 @@ /**

var cache = new WeakMap;
var cache = global.WeakMap ? new WeakMap : null;
module.exports = function updateDiff (obj, diff, mappers) {
var raw = cache.get(obj) || {}
var raw
cache.set(obj, diff)
if (cache) {
raw = cache.get(obj) || {}
cache.set(obj, diff)
}
else {
raw = {}
}

@@ -15,0 +21,0 @@ if (!Array.isArray(mappers)) mappers = [].slice.call(arguments, 2)

{
"name": "update-diff",
"version": "1.0.2",
"version": "1.0.3",
"description": "Update object by mapping diff properties",

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