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

@gmod/bbi

Package Overview
Dependencies
Maintainers
6
Versions
55
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.2 to 4.0.3

11

CHANGELOG.md

@@ -1,5 +0,14 @@

## [4.0.2](https://github.com/GMOD/bbi-js/compare/v4.0.1...v4.0.2) (2023-07-30)
## [4.0.3](https://github.com/GMOD/bbi-js/compare/v4.0.2...v4.0.3) (2024-01-16)
### Performance Improvements
* optimize `parseBigBedBlock` ([#58](https://github.com/GMOD/bbi-js/issues/58)) ([eb3f7a4](https://github.com/GMOD/bbi-js/commit/eb3f7a4885c4e8262c6e3e63696b533e53072463))
- Small perf improvement (#58)
## [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

@@ -6,0 +15,0 @@

3

dist/block-view.js

@@ -291,3 +291,4 @@ "use strict";

const res = this.bigBedParser.parse(data.subarray(currOffset));
items.push(Object.assign(Object.assign({}, res), { uniqueId: `bb-${offset + currOffset}` }));
res.uniqueId = `bb-${offset + currOffset}`;
items.push(res);
currOffset += res.offset;

@@ -294,0 +295,0 @@ }

@@ -0,1 +1,2 @@

/// <reference types="node" />
export { inflateSync as unzip } from 'zlib';

@@ -13,3 +13,2 @@ "use strict";

exports.abortBreakPoint = exports.checkAbortSignal = exports.groupBlocks = exports.AbortError = void 0;
/* eslint no-bitwise: ["error", { "allow": ["|"] }] */
class AbortError extends Error {

@@ -16,0 +15,0 @@ constructor(message) {

@@ -274,3 +274,4 @@ import { Buffer } from 'buffer';

const res = this.bigBedParser.parse(data.subarray(currOffset));
items.push({ ...res, uniqueId: `bb-${offset + currOffset}` });
res.uniqueId = `bb-${offset + currOffset}`;
items.push(res);
currOffset += res.offset;

@@ -277,0 +278,0 @@ }

@@ -0,1 +1,2 @@

/// <reference types="node" />
export { inflateSync as unzip } from 'zlib';

@@ -1,2 +0,1 @@

/* eslint no-bitwise: ["error", { "allow": ["|"] }] */
export class AbortError extends Error {

@@ -3,0 +2,0 @@ constructor(message) {

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

@@ -26,2 +26,3 @@ "license": "MIT",

"lint": "eslint --report-unused-disable-directives --max-warnings 0 --ext .js,.ts src",
"format": "prettier",
"clean": "rimraf dist esm",

@@ -54,20 +55,18 @@ "prebuild": "npm run clean",

"@gmod/bed": "^2.1.2",
"@types/jest": "^29.5.0",
"@types/long": "^5.0.0",
"@types/node": "^18.15.7",
"@types/jest": "^29.5.3",
"@types/node": "^20.4.5",
"@types/pako": "^2.0.0",
"@typescript-eslint/eslint-plugin": "^5.56.0",
"@typescript-eslint/parser": "^5.56.0",
"eslint": "^8.36.0",
"eslint-config-prettier": "^8.8.0",
"eslint-plugin-import": "^2.27.5",
"eslint-plugin-prettier": "^4.0.0",
"eslint-plugin-unicorn": "^46.0.0",
"jest": "^29.5.0",
"jest-environment-jsdom": "^29.5.0",
"prettier": "^2.8.7",
"rimraf": "^5.0.0",
"standard-changelog": "^2.0.11",
"ts-jest": "^29.0.5",
"typescript": "^5.0.2"
"@typescript-eslint/eslint-plugin": "^6.2.0",
"@typescript-eslint/parser": "^6.2.0",
"eslint": "^8.46.0",
"eslint-config-prettier": "^9.1.0",
"eslint-plugin-prettier": "^5.1.3",
"eslint-plugin-unicorn": "^50.0.1",
"jest": "^29.6.2",
"jest-environment-jsdom": "^29.6.2",
"prettier": "^3.0.0",
"rimraf": "^5.0.1",
"standard-changelog": "^3.0.0",
"ts-jest": "^29.1.1",
"typescript": "^5.1.6"
},

@@ -74,0 +73,0 @@ "publishConfig": {

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

```typescript
import {BigBed} from '@gmod/bbi'
import { BigBed } from '@gmod/bbi'
import BED from '@gmod/bed'

@@ -174,8 +174,8 @@

})
const {autoSql} = await ti.getHeader()
const { autoSql } = await ti.getHeader()
const feats = await ti.getFeatures('chr7', 0, 100000)
const parser = new BED({autoSql})
const parser = new BED({ autoSql })
const lines = feats.map(f => {
const { start, end, rest, uniqueId } = f
return parser.parseLine(`chr7\t${start}\t${end}\t${rest}, { uniqueId })\
const { start, end, rest, uniqueId } = f
return parser.parseLine(`chr7\t${start}\t${end}\t${rest}`, { uniqueId })
})

@@ -182,0 +182,0 @@ // @gmod/bbi returns features with {uniqueId, start, end, rest}

@@ -378,3 +378,4 @@ import { Buffer } from 'buffer'

const res = this.bigBedParser.parse(data.subarray(currOffset))
items.push({ ...res, uniqueId: `bb-${offset + currOffset}` })
res.uniqueId = `bb-${offset + currOffset}`
items.push(res)
currOffset += res.offset

@@ -381,0 +382,0 @@ }

@@ -15,4 +15,4 @@ /* eslint prefer-rest-params:0, no-nested-ternary:0 */

: 0 in arg1
? Object.assign({}, arg1)
: [arg1]
? Object.assign({}, arg1)
: [arg1]
}

@@ -19,0 +19,0 @@

@@ -1,2 +0,1 @@

/* eslint no-bitwise: ["error", { "allow": ["|"] }] */
export class AbortError extends Error {

@@ -3,0 +2,0 @@ public code: string

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

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