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

on-change

Package Overview
Dependencies
Maintainers
2
Versions
38
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

on-change - npm Package Compare versions

Comparing version 2.2.1 to 2.2.2

4

index.js

@@ -88,3 +88,3 @@ 'use strict';

return cache.getProxy(value, path.concat(cache.getPath(target), property), handler);
return cache.getProxy(value, path.concat(cache.getPath(target), property), handler, proxyTarget);
},

@@ -171,3 +171,3 @@

return (SmartClone.isHandledType(result) && isHandledMethod) ?
cache.getProxy(result, applyPath, handler) :
cache.getProxy(result, applyPath, handler, proxyTarget) :
result;

@@ -174,0 +174,0 @@ }

@@ -53,3 +53,3 @@ 'use strict';

getProxy(target, path, handler) {
getProxy(target, path, handler, proxyTarget) {
if (this.isUnsubscribed) {

@@ -64,3 +64,6 @@ return target;

if (proxy === undefined) {
proxy = new Proxy(target, handler);
proxy = target[proxyTarget] === undefined ?
new Proxy(target, handler) :
target;
this._proxyCache.set(target, proxy);

@@ -67,0 +70,0 @@ }

{
"name": "on-change",
"version": "2.2.1",
"version": "2.2.2",
"description": "Watch an object or array for changes",

@@ -5,0 +5,0 @@ "license": "MIT",

@@ -1,2 +0,2 @@

# on-change [![Build Status](https://travis-ci.com/sindresorhus/on-change.svg?branch=master)](https://travis-ci.org/sindresorhus/on-change)
# on-change

@@ -3,0 +3,0 @@ > Watch an object or array for changes

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