@yiin/reactive-proxy-state 1.0.24 → 1.0.25
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 +2 -2
- package/dist/index.js +2 -2
- package/package.json +1 -1
package/dist/index.cjs
CHANGED
|
@@ -36476,13 +36476,13 @@ function trackVueReactiveEvents(vueState, emit, options = {}) {
|
|
|
36476
36476
|
} catch (e) {}
|
|
36477
36477
|
}
|
|
36478
36478
|
let prev = deepClone(vueState);
|
|
36479
|
-
const stop = exports_vue.watch(() => vueState, () => {
|
|
36479
|
+
const stop = exports_vue.watch(() => traverse(vueState), () => {
|
|
36480
36480
|
try {
|
|
36481
36481
|
diffAndEmit(vueState, prev, []);
|
|
36482
36482
|
} finally {
|
|
36483
36483
|
prev = deepClone(vueState);
|
|
36484
36484
|
}
|
|
36485
|
-
}, {
|
|
36485
|
+
}, { flush: "sync" });
|
|
36486
36486
|
function diffAndEmit(curr, old, basePath) {
|
|
36487
36487
|
if (curr instanceof Date && old instanceof Date) {
|
|
36488
36488
|
if (+curr !== +old) {
|
package/dist/index.js
CHANGED
|
@@ -36417,13 +36417,13 @@ function trackVueReactiveEvents(vueState, emit, options = {}) {
|
|
|
36417
36417
|
} catch (e) {}
|
|
36418
36418
|
}
|
|
36419
36419
|
let prev = deepClone(vueState);
|
|
36420
|
-
const stop = exports_vue.watch(() => vueState, () => {
|
|
36420
|
+
const stop = exports_vue.watch(() => traverse(vueState), () => {
|
|
36421
36421
|
try {
|
|
36422
36422
|
diffAndEmit(vueState, prev, []);
|
|
36423
36423
|
} finally {
|
|
36424
36424
|
prev = deepClone(vueState);
|
|
36425
36425
|
}
|
|
36426
|
-
}, {
|
|
36426
|
+
}, { flush: "sync" });
|
|
36427
36427
|
function diffAndEmit(curr, old, basePath) {
|
|
36428
36428
|
if (curr instanceof Date && old instanceof Date) {
|
|
36429
36429
|
if (+curr !== +old) {
|