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

@gmod/cram

Package Overview
Dependencies
Maintainers
3
Versions
51
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@gmod/cram - npm Package Compare versions

Comparing version 1.0.3 to 1.0.4

2

package.json
{
"name": "@gmod/cram",
"version": "1.0.3",
"version": "1.0.4",
"description": "read CRAM files with pure Javascript",

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

@@ -395,13 +395,21 @@ const {

const refStart = records[0].alignmentStart
const lastRecord = records[records.length - 1]
const refEnd = lastRecord.alignmentStart + lastRecord.lengthOnRef - 1
const seq = await this.file.fetchReferenceSequenceCallback(
sliceHeader.content.refSeqId,
refStart,
refEnd,
)
const refRegion = { seq, start: refStart, end: refEnd }
records.forEach(r => {
r.addReferenceSequence(refRegion, compressionScheme)
})
// need to iterate over the records to find the right end of the span
let refEnd = -Infinity
for (let i = 0; i < records.length; i += 1) {
const end = records[i].alignmentStart + records[i].lengthOnRef - 1
if (end > refEnd) refEnd = end
}
if (refStart <= refEnd) {
const seq = await this.file.fetchReferenceSequenceCallback(
sliceHeader.content.refSeqId,
refStart,
refEnd,
)
const refRegion = { seq, start: refStart, end: refEnd }
records.forEach(r => {
r.addReferenceSequence(refRegion, compressionScheme)
})
}
}

@@ -408,0 +416,0 @@ }

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