@jbrowse/plugin-legacy-jbrowse 2.15.3 → 2.16.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.
|
@@ -8,6 +8,7 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
8
8
|
* Adapted from https://github.com/GMOD/jbrowse/blob/master/src/JBrowse/Store/Hash.js
|
|
9
9
|
*/
|
|
10
10
|
const crc32_1 = __importDefault(require("crc/crc32"));
|
|
11
|
+
const buffer_1 = require("buffer");
|
|
11
12
|
class HttpMap {
|
|
12
13
|
constructor(args) {
|
|
13
14
|
// make sure url has a trailing slash
|
|
@@ -85,7 +86,7 @@ class HttpMap {
|
|
|
85
86
|
return '';
|
|
86
87
|
}
|
|
87
88
|
hash(data) {
|
|
88
|
-
return (0, crc32_1.default)(Buffer.from(data)).toString(16).toLowerCase().replace('-', 'n');
|
|
89
|
+
return (0, crc32_1.default)(buffer_1.Buffer.from(data)).toString(16).toLowerCase().replace('-', 'n');
|
|
89
90
|
}
|
|
90
91
|
}
|
|
91
92
|
exports.default = HttpMap;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@jbrowse/plugin-legacy-jbrowse",
|
|
3
|
-
"version": "2.
|
|
3
|
+
"version": "2.16.0",
|
|
4
4
|
"description": "JBrowse 2 plugin for connecting to and reading JBrowse 1 data",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"jbrowse",
|
|
@@ -55,5 +55,5 @@
|
|
|
55
55
|
"distModule": "esm/index.js",
|
|
56
56
|
"srcModule": "src/index.ts",
|
|
57
57
|
"module": "esm/index.js",
|
|
58
|
-
"gitHead": "
|
|
58
|
+
"gitHead": "1e6d4fbc27ce684eed19e3c217f34bd2da24ab75"
|
|
59
59
|
}
|