Comparing version 2.2.1 to 2.2.2
@@ -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 |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
776
28733