Skip to content

Commit 4ea55e1

Browse files
committed
Vendor xz-decompress to avoid browser field stuff
1 parent c28c592 commit 4ea55e1

File tree

4 files changed

+649
-448
lines changed

4 files changed

+649
-448
lines changed

package.json

Lines changed: 7 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -50,28 +50,27 @@
5050
],
5151
"dependencies": {
5252
"crc": "^4.3.2",
53-
"generic-filehandle2": "^2.0.1",
53+
"generic-filehandle2": "^2.0.10",
5454
"md5": "^2.2.1",
5555
"pako": "^1.0.4",
56-
"quick-lru": "^4.0.1",
57-
"xz-decompress": "^0.2.1"
56+
"quick-lru": "^4.0.1"
5857
},
5958
"devDependencies": {
60-
"@gmod/indexedfasta": "^4.0.1",
59+
"@gmod/indexedfasta": "^4.0.6",
6160
"@types/md5": "^2.3.2",
6261
"@types/pako": "^1.0.3",
63-
"@vitest/coverage-v8": "^3.0.1",
62+
"@vitest/coverage-v8": "^3.2.3",
6463
"buffer": "^6.0.3",
6564
"documentation": "^14.0.3",
66-
"eslint": "^9.9.0",
65+
"eslint": "^9.28.0",
6766
"eslint-plugin-import": "^2.31.0",
6867
"eslint-plugin-unicorn": "^59.0.0",
6968
"mock-fs": "^5.2.0",
7069
"prettier": "^3.2.5",
7170
"rimraf": "^6.0.1",
7271
"typescript": "^5.7.0",
73-
"typescript-eslint": "^8.31.1",
74-
"vitest": "^3.0.1",
72+
"typescript-eslint": "^8.34.0",
73+
"vitest": "^3.2.3",
7574
"webpack": "^5.99.7",
7675
"webpack-cli": "^6.0.1"
7776
},

src/cramFile/file.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import crc32 from 'crc/calculators/crc32'
22
import QuickLRU from 'quick-lru'
3-
import { XzReadableStream } from 'xz-decompress'
3+
import { XzReadableStream } from './xz-decompress'
44

55
import { CramMalformedError, CramUnimplementedError } from '../errors.ts'
66
import * as htscodecs from '../htscodecs/index.ts'

0 commit comments

Comments
 (0)