Comparing version 5.0.0 to 5.0.1
@@ -0,1 +1,5 @@ | ||
## [5.0.1](https://github.com/GMOD/bbi-js/compare/v5.0.0...v5.0.1) (2024-08-09) | ||
# [5.0.0](https://github.com/GMOD/bbi-js/compare/v4.0.6...v5.0.0) (2024-08-09) | ||
@@ -2,0 +6,0 @@ |
@@ -20,5 +20,2 @@ "use strict"; | ||
const BIG_BED_MAGIC = -2021002517; | ||
function myToString(arr) { | ||
return new TextDecoder().decode(arr); | ||
} | ||
class BBI { | ||
@@ -162,3 +159,3 @@ getHeader(opts) { | ||
autoSql: asOffset | ||
? myToString(buffer.subarray(asOffset, buffer.indexOf(0, asOffset))) | ||
? buffer.subarray(asOffset, buffer.indexOf(0, asOffset)).toString() | ||
: '', | ||
@@ -165,0 +162,0 @@ }; |
@@ -8,5 +8,2 @@ import { Buffer } from 'buffer'; | ||
const BIG_BED_MAGIC = -2021002517; | ||
function myToString(arr) { | ||
return new TextDecoder().decode(arr); | ||
} | ||
export class BBI { | ||
@@ -147,3 +144,3 @@ getHeader(opts) { | ||
autoSql: asOffset | ||
? myToString(buffer.subarray(asOffset, buffer.indexOf(0, asOffset))) | ||
? buffer.subarray(asOffset, buffer.indexOf(0, asOffset)).toString() | ||
: '', | ||
@@ -150,0 +147,0 @@ }; |
{ | ||
"name": "@gmod/bbi", | ||
"version": "5.0.0", | ||
"version": "5.0.1", | ||
"description": "Parser for BigWig/BigBed files", | ||
@@ -5,0 +5,0 @@ "license": "MIT", |
@@ -10,5 +10,2 @@ import { Buffer } from 'buffer' | ||
function myToString(arr: Uint8Array) { | ||
return new TextDecoder().decode(arr) | ||
} | ||
interface ZoomLevel { | ||
@@ -237,3 +234,3 @@ reductionLevel: number | ||
autoSql: asOffset | ||
? myToString(buffer.subarray(asOffset, buffer.indexOf(0, asOffset))) | ||
? buffer.subarray(asOffset, buffer.indexOf(0, asOffset)).toString() | ||
: '', | ||
@@ -240,0 +237,0 @@ } |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
241513
3957