@lvce-editor/about-view 4.13.0 → 4.15.0
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/aboutWorkerMain.js +6 -16
- package/package.json +1 -1
package/dist/aboutWorkerMain.js
CHANGED
@@ -813,30 +813,20 @@ const isEqual$1 = (oldState, newState) => {
|
|
813
813
|
return oldState.productName === newState.productName && JSON.stringify(oldState.lines) === JSON.stringify(newState.lines);
|
814
814
|
};
|
815
815
|
|
816
|
-
const DiffAbout = {
|
817
|
-
__proto__: null,
|
818
|
-
diffType: diffType$1,
|
819
|
-
isEqual: isEqual$1
|
820
|
-
};
|
821
|
-
|
822
816
|
const diffType = RenderFocus;
|
823
817
|
const isEqual = (oldState, newState) => {
|
824
818
|
return oldState.focusId === newState.focusId;
|
825
819
|
};
|
826
820
|
|
827
|
-
const
|
828
|
-
|
829
|
-
diffType,
|
830
|
-
isEqual
|
831
|
-
};
|
832
|
-
|
833
|
-
const modules = [DiffAbout, DiffFocus];
|
821
|
+
const modules = [isEqual$1, isEqual];
|
822
|
+
const numbers = [diffType$1, diffType];
|
834
823
|
|
835
824
|
const diff = (oldState, newState) => {
|
836
825
|
const diffResult = [];
|
837
|
-
for (
|
838
|
-
|
839
|
-
|
826
|
+
for (let i = 0; i < modules.length; i++) {
|
827
|
+
const fn = modules[i];
|
828
|
+
if (!fn(oldState, newState)) {
|
829
|
+
diffResult.push(numbers[i]);
|
840
830
|
}
|
841
831
|
}
|
842
832
|
return diffResult;
|