Skip to content

Commit 4e087c3

Browse files
committed
Misc
1 parent 0c50d25 commit 4e087c3

File tree

5 files changed

+676
-774
lines changed

5 files changed

+676
-774
lines changed

CHANGELOG.md

Lines changed: 0 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -1,35 +1,19 @@
11
## [6.0.8](https://github.com/GMOD/vcf-js/compare/v6.0.7...v6.0.8) (2025-02-13)
22

3-
4-
53
## [6.0.7](https://github.com/GMOD/vcf-js/compare/v6.0.6...v6.0.7) (2025-01-29)
64

7-
8-
95
## [6.0.6](https://github.com/GMOD/vcf-js/compare/v6.0.5...v6.0.6) (2025-01-16)
106

11-
12-
137
## [6.0.5](https://github.com/GMOD/vcf-js/compare/v6.0.4...v6.0.5) (2025-01-16)
148

15-
16-
179
## [6.0.4](https://github.com/GMOD/vcf-js/compare/v6.0.3...v6.0.4) (2025-01-16)
1810

19-
20-
2111
## [6.0.3](https://github.com/GMOD/vcf-js/compare/v6.0.2...v6.0.3) (2025-01-16)
2212

23-
24-
2513
## [6.0.2](https://github.com/GMOD/vcf-js/compare/v6.0.1...v6.0.2) (2025-01-07)
2614

27-
28-
2915
## [6.0.1](https://github.com/GMOD/vcf-js/compare/v6.0.0...v6.0.1) (2024-12-17)
3016

31-
32-
3317
# [6.0.0](https://github.com/GMOD/vcf-js/compare/v5.0.10...v6.0.0) (2024-11-30)
3418

3519
- Changes the default Variant object to have a SAMPLES() function call instead

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@
5555
"@vitest/coverage-v8": "^3.0.4",
5656
"documentation": "^14.0.1",
5757
"eslint": "^9.7.0",
58-
"eslint-plugin-unicorn": "^56.0.0",
58+
"eslint-plugin-unicorn": "^58.0.0",
5959
"prettier": "^3.2.4",
6060
"rimraf": "^6.0.1",
6161
"standard-changelog": "^6.0.0",

src/parseGenotypesOnly.ts

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,8 +16,9 @@ export function parseGenotypesOnly(
1616
const gtIndex = formatSplit.indexOf('GT')
1717
if (gtIndex === 0) {
1818
for (const sample of samples) {
19-
const idx = rest[i++]!.indexOf(':')
20-
genotypes[sample] = idx !== -1 ? rest[i++]!.slice(0, idx) : rest[i++]!
19+
const val = rest[i++]!
20+
const idx = val.indexOf(':')
21+
genotypes[sample] = idx !== -1 ? val.slice(0, idx) : val
2122
}
2223
} else {
2324
for (const sample of samples) {

tsconfig.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@
44
"outDir": "dist",
55
"target": "es2015",
66
"lib": ["dom", "esnext"],
7+
"skipLibCheck": true,
78
"declaration": true,
89
"moduleResolution": "node",
910
"sourceMap": true,

0 commit comments

Comments
 (0)