@lvce-editor/about-view 4.14.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.
@@ -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 DiffFocus = {
828
- __proto__: null,
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 (const module of modules) {
838
- if (!module.isEqual(oldState, newState)) {
839
- diffResult.push(module.diffType);
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;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@lvce-editor/about-view",
3
- "version": "4.14.0",
3
+ "version": "4.15.0",
4
4
  "description": "About View Worker",
5
5
  "keywords": [
6
6
  "about-view"