New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

@gmod/bbi

Package Overview
Dependencies
Maintainers
6
Versions
57
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@gmod/bbi - npm Package Compare versions

Comparing version 4.0.1 to 4.0.2

6

CHANGELOG.md

@@ -1,5 +0,9 @@

## [4.0.1](https://github.com/GMOD/bbi-js/compare/v4.0.0...v4.0.1) (2023-07-13)
## [4.0.2](https://github.com/GMOD/bbi-js/compare/v4.0.1...v4.0.2) (2023-07-30)
- Fix issue with fetching headers that are large in certain cases
## [4.0.1](https://github.com/GMOD/bbi-js/compare/v4.0.0...v4.0.1) (2023-07-13)
- Fix eslint plugin being in dependencies Accidentally

@@ -6,0 +10,0 @@

10

dist/bbi.js

@@ -97,5 +97,9 @@ "use strict";

* @param filehandle - a filehandle from generic-filehandle or implementing something similar to the node10 fs.promises API
*
* @param path - a Local file path as a string
*
* @param url - a URL string
* @param renameRefSeqs - an optional method to rename the internal reference sequences using a mapping function
*
* @param renameRefSeqs - an optional method to rename the internal reference
* sequences using a mapping function
*/

@@ -140,3 +144,5 @@ constructor(args) {

}
if (header.totalSummaryOffset > requestSize) {
// refetch header if it is too large on first pass,
// 8*5 is the sizeof the totalSummary struct
if (header.totalSummaryOffset > requestSize - 8 * 5) {
return this._getMainHeader(opts, requestSize * 2);

@@ -143,0 +149,0 @@ }

@@ -85,5 +85,9 @@ import { Buffer } from 'buffer';

* @param filehandle - a filehandle from generic-filehandle or implementing something similar to the node10 fs.promises API
*
* @param path - a Local file path as a string
*
* @param url - a URL string
* @param renameRefSeqs - an optional method to rename the internal reference sequences using a mapping function
*
* @param renameRefSeqs - an optional method to rename the internal reference
* sequences using a mapping function
*/

@@ -125,3 +129,5 @@ constructor(args) {

}
if (header.totalSummaryOffset > requestSize) {
// refetch header if it is too large on first pass,
// 8*5 is the sizeof the totalSummary struct
if (header.totalSummaryOffset > requestSize - 8 * 5) {
return this._getMainHeader(opts, requestSize * 2);

@@ -128,0 +134,0 @@ }

{
"name": "@gmod/bbi",
"version": "4.0.1",
"version": "4.0.2",
"description": "Parser for BigWig/BigBed files",

@@ -5,0 +5,0 @@ "license": "MIT",

@@ -151,3 +151,3 @@ # bbi-js

- name: a string to search for in the BigBed extra indices
- opts: an opject that can optionally contain opts.signal, an abort signal
- opts: an object that can optionally contain opts.signal, an abort signal

@@ -154,0 +154,0 @@ Returns a Promise to an array of Features, with an extra field indicating the

@@ -145,5 +145,9 @@ import { Buffer } from 'buffer'

* @param filehandle - a filehandle from generic-filehandle or implementing something similar to the node10 fs.promises API
*
* @param path - a Local file path as a string
*
* @param url - a URL string
* @param renameRefSeqs - an optional method to rename the internal reference sequences using a mapping function
*
* @param renameRefSeqs - an optional method to rename the internal reference
* sequences using a mapping function
*/

@@ -198,5 +202,9 @@ public constructor(args: {

}
if (header.totalSummaryOffset > requestSize) {
// refetch header if it is too large on first pass,
// 8*5 is the sizeof the totalSummary struct
if (header.totalSummaryOffset > requestSize - 8 * 5) {
return this._getMainHeader(opts, requestSize * 2)
}
if (header.totalSummaryOffset) {

@@ -203,0 +211,0 @@ const tail = buffer.subarray(Number(header.totalSummaryOffset))

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc