@jbrowse/app-core 3.1.0 → 3.2.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/menus.js CHANGED
@@ -43,7 +43,7 @@ function appendToSubMenu({ menus, menuPath, menuItem, }) {
43
43
  }
44
44
  let { menuItems: subMenu } = topMenu;
45
45
  const pathSoFar = [menuPath[0]];
46
- menuPath.slice(1).forEach(menuName => {
46
+ for (const menuName of menuPath.slice(1)) {
47
47
  pathSoFar.push(menuName);
48
48
  let sm = subMenu.find(mi => 'label' in mi && mi.label === menuName);
49
49
  if (!sm) {
@@ -54,7 +54,7 @@ function appendToSubMenu({ menus, menuPath, menuItem, }) {
54
54
  throw new Error(`"${menuName}" in path "${pathSoFar}" is not a subMenu`);
55
55
  }
56
56
  subMenu = sm.subMenu;
57
- });
57
+ }
58
58
  return subMenu.push(menuItem);
59
59
  }
60
60
  function insertInSubMenu({ menus, menuPath, menuItem, position, }) {
@@ -65,7 +65,7 @@ function insertInSubMenu({ menus, menuPath, menuItem, position, }) {
65
65
  }
66
66
  let { menuItems: subMenu } = topMenu;
67
67
  const pathSoFar = [menuPath[0]];
68
- menuPath.slice(1).forEach(menuName => {
68
+ for (const menuName of menuPath.slice(1)) {
69
69
  pathSoFar.push(menuName);
70
70
  let sm = subMenu.find(mi => 'label' in mi && mi.label === menuName);
71
71
  if (!sm) {
@@ -76,7 +76,7 @@ function insertInSubMenu({ menus, menuPath, menuItem, position, }) {
76
76
  throw new Error(`"${menuName}" in path "${pathSoFar}" is not a subMenu`);
77
77
  }
78
78
  subMenu = sm.subMenu;
79
- });
79
+ }
80
80
  subMenu.splice(position, 0, menuItem);
81
81
  return subMenu.length;
82
82
  }
package/esm/menus.js CHANGED
@@ -34,7 +34,7 @@ export function appendToSubMenu({ menus, menuPath, menuItem, }) {
34
34
  }
35
35
  let { menuItems: subMenu } = topMenu;
36
36
  const pathSoFar = [menuPath[0]];
37
- menuPath.slice(1).forEach(menuName => {
37
+ for (const menuName of menuPath.slice(1)) {
38
38
  pathSoFar.push(menuName);
39
39
  let sm = subMenu.find(mi => 'label' in mi && mi.label === menuName);
40
40
  if (!sm) {
@@ -45,7 +45,7 @@ export function appendToSubMenu({ menus, menuPath, menuItem, }) {
45
45
  throw new Error(`"${menuName}" in path "${pathSoFar}" is not a subMenu`);
46
46
  }
47
47
  subMenu = sm.subMenu;
48
- });
48
+ }
49
49
  return subMenu.push(menuItem);
50
50
  }
51
51
  export function insertInSubMenu({ menus, menuPath, menuItem, position, }) {
@@ -56,7 +56,7 @@ export function insertInSubMenu({ menus, menuPath, menuItem, position, }) {
56
56
  }
57
57
  let { menuItems: subMenu } = topMenu;
58
58
  const pathSoFar = [menuPath[0]];
59
- menuPath.slice(1).forEach(menuName => {
59
+ for (const menuName of menuPath.slice(1)) {
60
60
  pathSoFar.push(menuName);
61
61
  let sm = subMenu.find(mi => 'label' in mi && mi.label === menuName);
62
62
  if (!sm) {
@@ -67,7 +67,7 @@ export function insertInSubMenu({ menus, menuPath, menuItem, position, }) {
67
67
  throw new Error(`"${menuName}" in path "${pathSoFar}" is not a subMenu`);
68
68
  }
69
69
  subMenu = sm.subMenu;
70
- });
70
+ }
71
71
  subMenu.splice(position, 0, menuItem);
72
72
  return subMenu.length;
73
73
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@jbrowse/app-core",
3
- "version": "3.1.0",
3
+ "version": "3.2.0",
4
4
  "description": "JBrowse 2 code shared between the 'full featured' apps e.g. jbrowse-web and jbrowse-desktop",
5
5
  "keywords": [
6
6
  "jbrowse",
@@ -42,7 +42,7 @@
42
42
  },
43
43
  "dependencies": {
44
44
  "@babel/runtime": "^7.16.3",
45
- "@jbrowse/product-core": "^3.1.0",
45
+ "@jbrowse/product-core": "^3.2.0",
46
46
  "@mui/icons-material": "^6.0.0",
47
47
  "@mui/material": "^6.0.0",
48
48
  "copy-to-clipboard": "^3.3.1",
@@ -59,5 +59,5 @@
59
59
  "publishConfig": {
60
60
  "access": "public"
61
61
  },
62
- "gitHead": "91492049ddea0aed90eb24d3c066c2d9f5a6b189"
62
+ "gitHead": "c750e3f56706a490c19ba75abd807fec5e38aebf"
63
63
  }