nemo-observable-util
Advanced tools
Comparing version 5.3.6 to 5.3.7
@@ -830,6 +830,14 @@ 'use strict'; | ||
var isIECompatibleMode = !window.Proxy.toString().includes('native code'); | ||
function createObservable(obj) { | ||
// if it is a complex built-in object or a normal object, wrap it | ||
var handlers = getHandlers(obj) || baseHandlers; | ||
var observable = new Proxy(obj, handlers); | ||
var filterHandlers = isIECompatibleMode ? { | ||
get: handlers.get, | ||
set: handlers.set, | ||
apply: handlers.apply, | ||
construct: handlers.construct | ||
} : handlers; | ||
var observable = new Proxy(obj, filterHandlers); | ||
// save these to switch between the raw object and the wrapped object with ease later | ||
@@ -836,0 +844,0 @@ rawToProxy.set(obj, observable); |
@@ -766,6 +766,14 @@ 'use strict'; | ||
const isIECompatibleMode = !window.Proxy.toString().includes('native code'); | ||
function createObservable(obj) { | ||
// if it is a complex built-in object or a normal object, wrap it | ||
const handlers = getHandlers(obj) || baseHandlers; | ||
const observable = new Proxy(obj, handlers); | ||
const filterHandlers = isIECompatibleMode ? { | ||
get: handlers.get, | ||
set: handlers.set, | ||
apply: handlers.apply, | ||
construct: handlers.construct | ||
} : handlers; | ||
const observable = new Proxy(obj, filterHandlers); | ||
// save these to switch between the raw object and the wrapped object with ease later | ||
@@ -772,0 +780,0 @@ rawToProxy.set(obj, observable); |
@@ -826,6 +826,14 @@ var connectionStore = new WeakMap(); | ||
var isIECompatibleMode = !window.Proxy.toString().includes('native code'); | ||
function createObservable(obj) { | ||
// if it is a complex built-in object or a normal object, wrap it | ||
var handlers = getHandlers(obj) || baseHandlers; | ||
var observable = new Proxy(obj, handlers); | ||
var filterHandlers = isIECompatibleMode ? { | ||
get: handlers.get, | ||
set: handlers.set, | ||
apply: handlers.apply, | ||
construct: handlers.construct | ||
} : handlers; | ||
var observable = new Proxy(obj, filterHandlers); | ||
// save these to switch between the raw object and the wrapped object with ease later | ||
@@ -832,0 +840,0 @@ rawToProxy.set(obj, observable); |
@@ -762,6 +762,14 @@ const connectionStore = new WeakMap(); | ||
const isIECompatibleMode = !window.Proxy.toString().includes('native code'); | ||
function createObservable(obj) { | ||
// if it is a complex built-in object or a normal object, wrap it | ||
const handlers = getHandlers(obj) || baseHandlers; | ||
const observable = new Proxy(obj, handlers); | ||
const filterHandlers = isIECompatibleMode ? { | ||
get: handlers.get, | ||
set: handlers.set, | ||
apply: handlers.apply, | ||
construct: handlers.construct | ||
} : handlers; | ||
const observable = new Proxy(obj, filterHandlers); | ||
// save these to switch between the raw object and the wrapped object with ease later | ||
@@ -768,0 +776,0 @@ rawToProxy.set(obj, observable); |
{ | ||
"name": "nemo-observable-util", | ||
"version": "5.3.6", | ||
"version": "5.3.7", | ||
"description": "Simple transparent reactivity with 100% language coverage. Made with ES6 Proxies.", | ||
@@ -5,0 +5,0 @@ "main": "dist/cjs.es5.js", |
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
131035
3038