@jbrowse/plugin-gtf 2.3.2 → 2.3.3

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": "@jbrowse/plugin-gtf",
3
- "version": "2.3.2",
3
+ "version": "2.3.3",
4
4
  "description": "JBrowse 2 gtf feature adapter",
5
5
  "keywords": [
6
6
  "jbrowse",
@@ -49,7 +49,7 @@
49
49
  "mobx-react": "^7.0.0",
50
50
  "mobx-state-tree": "^5.0.0",
51
51
  "react": ">=16.8.0",
52
- "rxjs": "^6.0.0"
52
+ "rxjs": "^7.0.0"
53
53
  },
54
54
  "publishConfig": {
55
55
  "access": "public"
@@ -57,5 +57,5 @@
57
57
  "distModule": "esm/index.js",
58
58
  "srcModule": "src/index.ts",
59
59
  "module": "esm/index.js",
60
- "gitHead": "467d973535bb7b2664e9f66311fb0dc21c1ce5ba"
60
+ "gitHead": "283e0387ccd5acc9f092cf00804d1fcac212e68d"
61
61
  }
@@ -1,4 +1,5 @@
1
1
  import { toArray } from 'rxjs/operators'
2
+ import { firstValueFrom } from 'rxjs'
2
3
  import configSchema from './configSchema'
3
4
  import GtfAdapter from './GtfAdapter'
4
5
 
@@ -21,7 +22,7 @@ describe('adapter can fetch features from volvox.sorted.gtf', () => {
21
22
  })
22
23
  expect(await adapter.hasDataForRefName('ctgA')).toBe(true)
23
24
  expect(await adapter.hasDataForRefName('ctgB')).toBe(false)
24
- const featuresArray = await features.pipe(toArray()).toPromise()
25
+ const featuresArray = await firstValueFrom(features.pipe(toArray()))
25
26
  // There are only 4 features in ctgB
26
27
  expect(featuresArray.length).toBe(6)
27
28
  const featuresJsonArray = featuresArray.map(f => f.toJSON())
@@ -46,7 +47,7 @@ test('can instantiate new GtfAdapter and check for demo data', async () => {
46
47
  start: 0,
47
48
  end: 1100000,
48
49
  })
49
- const featuresArray = await features.pipe(toArray()).toPromise()
50
+ const featuresArray = await firstValueFrom(features.pipe(toArray()))
50
51
  const featuresJsonArray = featuresArray.map(f => f.toJSON())
51
52
  // ENSVPAT00000000407
52
53
  expect(featuresArray.length).toEqual(1)