@jbrowse/plugin-hic 2.15.3 → 2.15.4

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.
@@ -8,6 +8,7 @@ const BaseAdapter_1 = require("@jbrowse/core/data_adapters/BaseAdapter");
8
8
  const rxjs_1 = require("@jbrowse/core/util/rxjs");
9
9
  const io_1 = require("@jbrowse/core/util/io");
10
10
  const hic_straw_1 = __importDefault(require("hic-straw"));
11
+ const buffer_1 = require("buffer");
11
12
  // wraps generic-filehandle so the read function only takes a position and
12
13
  // length in some ways, generic-filehandle wishes it was just this but it has
13
14
  // to adapt to the node.js fs promises API
@@ -16,7 +17,7 @@ class GenericFilehandleWrapper {
16
17
  this.filehandle = filehandle;
17
18
  }
18
19
  async read(position, length) {
19
- const { buffer } = await this.filehandle.read(Buffer.alloc(length), 0, length, position);
20
+ const { buffer } = await this.filehandle.read(buffer_1.Buffer.alloc(length), 0, length, position);
20
21
  return buffer.buffer.slice(buffer.byteOffset, buffer.byteOffset + buffer.byteLength);
21
22
  }
22
23
  }
@@ -2,6 +2,7 @@ import { BaseFeatureDataAdapter, } from '@jbrowse/core/data_adapters/BaseAdapter
2
2
  import { ObservableCreate } from '@jbrowse/core/util/rxjs';
3
3
  import { openLocation } from '@jbrowse/core/util/io';
4
4
  import HicStraw from 'hic-straw';
5
+ import { Buffer } from 'buffer';
5
6
  // wraps generic-filehandle so the read function only takes a position and
6
7
  // length in some ways, generic-filehandle wishes it was just this but it has
7
8
  // to adapt to the node.js fs promises API
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@jbrowse/plugin-hic",
3
- "version": "2.15.3",
3
+ "version": "2.15.4",
4
4
  "description": "JBrowse 2 hic adapters, tracks, etc.",
5
5
  "keywords": [
6
6
  "jbrowse",
@@ -55,5 +55,5 @@
55
55
  "publishConfig": {
56
56
  "access": "public"
57
57
  },
58
- "gitHead": "c0f82fe7b210622dd462e702641cc6da01109c6e"
58
+ "gitHead": "686b4ad9016b3586e8230180f7adb44c238ba4fb"
59
59
  }