@yiin/reactive-proxy-state 1.0.33 → 1.0.35
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.cjs +3 -2
- package/dist/index.js +3 -2
- package/package.json +1 -1
package/dist/index.cjs
CHANGED
|
@@ -3766,7 +3766,7 @@ function reactive(obj, emit, path = [], options) {
|
|
|
3766
3766
|
return wrapSet(val, emit, subPath);
|
|
3767
3767
|
if (val instanceof Date)
|
|
3768
3768
|
return new Date(val.getTime());
|
|
3769
|
-
return reactive(val, emit, subPath);
|
|
3769
|
+
return reactive(val, emit, subPath, options);
|
|
3770
3770
|
}
|
|
3771
3771
|
const proxy = new Proxy(obj, {
|
|
3772
3772
|
get(target, prop, receiver) {
|
|
@@ -3793,7 +3793,7 @@ function reactive(obj, emit, path = [], options) {
|
|
|
3793
3793
|
const oldValue = target[prop];
|
|
3794
3794
|
if (oldValue === value)
|
|
3795
3795
|
return true;
|
|
3796
|
-
if (isObject3(oldValue) && isObject3(value) && deepEqual(oldValue, value, new WeakMap))
|
|
3796
|
+
if (!options?.async && isObject3(oldValue) && isObject3(value) && deepEqual(oldValue, value, new WeakMap))
|
|
3797
3797
|
return true;
|
|
3798
3798
|
const descriptor = Reflect.getOwnPropertyDescriptor(target, prop);
|
|
3799
3799
|
const result = Reflect.set(target, prop, value, receiver);
|
|
@@ -4054,6 +4054,7 @@ function trackVueReactiveEvents(vueState, emit, options = {}) {
|
|
|
4054
4054
|
prev[k] = result;
|
|
4055
4055
|
}
|
|
4056
4056
|
} catch (e) {
|
|
4057
|
+
console.error("[trackVueReactiveEvents] diffAndClone threw for key", k, e);
|
|
4057
4058
|
pathStack.length = 0;
|
|
4058
4059
|
prev[k] = deepClone(vueState[k]);
|
|
4059
4060
|
return;
|
package/dist/index.js
CHANGED
|
@@ -3706,7 +3706,7 @@ function reactive(obj, emit, path = [], options) {
|
|
|
3706
3706
|
return wrapSet(val, emit, subPath);
|
|
3707
3707
|
if (val instanceof Date)
|
|
3708
3708
|
return new Date(val.getTime());
|
|
3709
|
-
return reactive(val, emit, subPath);
|
|
3709
|
+
return reactive(val, emit, subPath, options);
|
|
3710
3710
|
}
|
|
3711
3711
|
const proxy = new Proxy(obj, {
|
|
3712
3712
|
get(target, prop, receiver) {
|
|
@@ -3733,7 +3733,7 @@ function reactive(obj, emit, path = [], options) {
|
|
|
3733
3733
|
const oldValue = target[prop];
|
|
3734
3734
|
if (oldValue === value)
|
|
3735
3735
|
return true;
|
|
3736
|
-
if (isObject3(oldValue) && isObject3(value) && deepEqual(oldValue, value, new WeakMap))
|
|
3736
|
+
if (!options?.async && isObject3(oldValue) && isObject3(value) && deepEqual(oldValue, value, new WeakMap))
|
|
3737
3737
|
return true;
|
|
3738
3738
|
const descriptor = Reflect.getOwnPropertyDescriptor(target, prop);
|
|
3739
3739
|
const result = Reflect.set(target, prop, value, receiver);
|
|
@@ -3994,6 +3994,7 @@ function trackVueReactiveEvents(vueState, emit, options = {}) {
|
|
|
3994
3994
|
prev[k] = result;
|
|
3995
3995
|
}
|
|
3996
3996
|
} catch (e) {
|
|
3997
|
+
console.error("[trackVueReactiveEvents] diffAndClone threw for key", k, e);
|
|
3997
3998
|
pathStack.length = 0;
|
|
3998
3999
|
prev[k] = deepClone(vueState[k]);
|
|
3999
4000
|
return;
|