@apollo-annotation/mst 1.0.0 → 1.1.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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@apollo-annotation/mst",
3
- "version": "1.0.0",
3
+ "version": "1.1.0",
4
4
  "repository": {
5
5
  "type": "git",
6
6
  "url": "https://github.com/GMOD/Apollo3.git",
@@ -13,8 +13,8 @@
13
13
  "build": "tsc"
14
14
  },
15
15
  "dependencies": {
16
- "@jbrowse/core": "^4.1.1",
17
- "@jbrowse/mobx-state-tree": "^5.5.0",
16
+ "@jbrowse/core": "^4.3.0",
17
+ "@jbrowse/mobx-state-tree": "^5.8.7",
18
18
  "mobx": "^6.6.1",
19
19
  "react-dom": "^18.2.0",
20
20
  "rxjs": "^7.4.0",
@@ -90,6 +90,7 @@ export const AnnotationFeatureModel = types
90
90
  */
91
91
  get minWithChildren() {
92
92
  let { min } = self
93
+ // eslint-disable-next-line @typescript-eslint/no-unnecessary-type-assertion
93
94
  const children = self.children as Children
94
95
  if (!children) {
95
96
  return min
@@ -106,6 +107,7 @@ export const AnnotationFeatureModel = types
106
107
  */
107
108
  get maxWithChildren() {
108
109
  let { max } = self
110
+ // eslint-disable-next-line @typescript-eslint/no-unnecessary-type-assertion
109
111
  const children = self.children as Children
110
112
  if (!children) {
111
113
  return max
@@ -116,7 +118,7 @@ export const AnnotationFeatureModel = types
116
118
  return max
117
119
  },
118
120
  hasDescendant(featureId: string) {
119
- const children = self.children as Children
121
+ const { children } = self
120
122
  if (!children) {
121
123
  return false
122
124
  }
@@ -143,7 +145,7 @@ export const AnnotationFeatureModel = types
143
145
  'Feature is not a transcript or equivalent, cannot calculate exon locations',
144
146
  )
145
147
  }
146
- const children = self.children as Children
148
+ const { children } = self
147
149
  if (!children) {
148
150
  throw new Error('No exons in transcript')
149
151
  }
@@ -192,6 +194,7 @@ export const AnnotationFeatureModel = types
192
194
  'Only features of type "transcript" or equivalent can calculate CDS locations',
193
195
  )
194
196
  }
197
+ // eslint-disable-next-line @typescript-eslint/no-unnecessary-type-assertion
195
198
  const children = self.children as Children
196
199
  if (!children) {
197
200
  throw new Error('no CDS or exons in transcript')