Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@gmod/bam

Package Overview
Dependencies
Maintainers
6
Versions
72
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@gmod/bam - npm Package Compare versions

Comparing version 1.1.16 to 1.1.17

8

CHANGELOG.md

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

## [1.1.16](https://github.com/GMOD/bam-js/compare/v1.1.15...v1.1.16) (2022-03-30)
## [1.1.17](https://github.com/GMOD/bam-js/compare/v1.1.16...v1.1.17) (2022-07-18)
- Bump devDeps and generic-filehandle to 3.0.0
## [1.1.16](https://github.com/GMOD/bam-js/compare/v1.1.15...v1.1.16) (2022-03-30)
- Add src directory for better source maps

@@ -9,4 +13,2 @@

- Fix for htsget failing with message 'input must be buffer, number, or string, received object'

@@ -13,0 +15,0 @@ - Speed improvement by caching chunks of features

@@ -31,6 +31,6 @@ /// <reference types="node" />

/**
* calculate the list of bins that may overlap with region [beg,end) (zero-based half-open)
* @returns {Array[number]}
* calculate the list of bins that may overlap with region [beg,end)
* (zero-based half-open)
*/
reg2bins(beg: number, end: number): number[][];
}

@@ -280,6 +280,3 @@ "use strict";

indexData = _b.sent();
if (!indexData) {
return [2 /*return*/, []];
}
ba = indexData.indices[refId];
ba = indexData === null || indexData === void 0 ? void 0 : indexData.indices[refId];
if (!ba) {

@@ -309,4 +306,4 @@ return [2 /*return*/, []];

/**
* calculate the list of bins that may overlap with region [beg,end) (zero-based half-open)
* @returns {Array[number]}
* calculate the list of bins that may overlap with region [beg,end)
* (zero-based half-open)
*/

@@ -313,0 +310,0 @@ CSI.prototype.reg2bins = function (beg, end) {

@@ -31,6 +31,6 @@ /// <reference types="node" />

/**
* calculate the list of bins that may overlap with region [beg,end) (zero-based half-open)
* @returns {Array[number]}
* calculate the list of bins that may overlap with region [beg,end)
* (zero-based half-open)
*/
reg2bins(beg: number, end: number): number[][];
}

@@ -154,6 +154,3 @@ import Long from 'long';

const indexData = await this.parse(opts);
if (!indexData) {
return [];
}
const ba = indexData.indices[refId];
const ba = indexData === null || indexData === void 0 ? void 0 : indexData.indices[refId];
if (!ba) {

@@ -178,4 +175,4 @@ return [];

/**
* calculate the list of bins that may overlap with region [beg,end) (zero-based half-open)
* @returns {Array[number]}
* calculate the list of bins that may overlap with region [beg,end)
* (zero-based half-open)
*/

@@ -182,0 +179,0 @@ reg2bins(beg, end) {

{
"name": "@gmod/bam",
"version": "1.1.16",
"version": "1.1.17",
"description": "Parser for BAM and BAM index (bai) files",

@@ -42,7 +42,7 @@ "license": "MIT",

"dependencies": {
"@gmod/bgzf-filehandle": "^1.3.3",
"@gmod/bgzf-filehandle": "^1.4.4",
"abortable-promise-cache": "^1.5.0",
"buffer-crc32": "^0.2.13",
"cross-fetch": "^3.0.2",
"generic-filehandle": "^2.0.0",
"generic-filehandle": "^3.0.0",
"long": "^4.0.0",

@@ -54,18 +54,18 @@ "object.entries-ponyfill": "^1.0.1",

"@types/buffer-crc32": "^0.2.0",
"@types/jest": "^27.4.1",
"@types/long": "^4.0.0",
"@types/node": "^17.0.21",
"@types/jest": "^28.1.6",
"@types/long": "^4.0.2",
"@types/node": "^18.0.6",
"@types/quick-lru": "^2.0.0",
"@typescript-eslint/eslint-plugin": "^5.14.0",
"@typescript-eslint/parser": "^5.14.0",
"eslint": "^8.11.0",
"@typescript-eslint/eslint-plugin": "^5.30.7",
"@typescript-eslint/parser": "^5.30.7",
"eslint": "^8.20.0",
"eslint-config-prettier": "^8.5.0",
"eslint-plugin-import": "^2.25.4",
"eslint-plugin-prettier": "^4.0.0",
"jest": "^27.5.1",
"prettier": "^2.4.1",
"eslint-plugin-import": "^2.26.0",
"eslint-plugin-prettier": "^4.2.1",
"jest": "^28.1.3",
"prettier": "^2.7.1",
"rimraf": "^3.0.2",
"standard-changelog": "^2.0.27",
"ts-jest": "^27.1.3",
"typescript": "^4.6.2"
"ts-jest": "^28.0.7",
"typescript": "^4.7.4"
},

@@ -72,0 +72,0 @@ "publishConfig": {

@@ -191,6 +191,3 @@ import Long from 'long'

const indexData = await this.parse(opts)
if (!indexData) {
return []
}
const ba = indexData.indices[refId]
const ba = indexData?.indices[refId]
if (!ba) {

@@ -201,3 +198,3 @@ return []

const overlappingBins = this.reg2bins(min, max) // List of bin #s that overlap min, max
const chunks: Chunk[] = []
const chunks = []

@@ -220,4 +217,4 @@ // Find chunks in overlapping bins. Leaf bins (< 4681) are not pruned

/**
* calculate the list of bins that may overlap with region [beg,end) (zero-based half-open)
* @returns {Array[number]}
* calculate the list of bins that may overlap with region [beg,end)
* (zero-based half-open)
*/

@@ -224,0 +221,0 @@ reg2bins(beg: number, end: number) {

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