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

@gmod/cram

Package Overview
Dependencies
Maintainers
0
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 3.0.3 to 3.0.4

4

dist/cramFile/file.js

@@ -16,3 +16,3 @@ "use strict";

const buffer_1 = require("buffer");
const buffer_crc32_1 = __importDefault(require("buffer-crc32"));
const crc32_1 = __importDefault(require("crc/crc32"));
const quick_lru_1 = __importDefault(require("quick-lru"));

@@ -169,3 +169,3 @@ const htscodecs_1 = __importDefault(require("@jkbonfield/htscodecs"));

yield this.file.read(b, 0, length, position);
const calculatedCrc32 = buffer_crc32_1.default.unsigned(b);
const calculatedCrc32 = crc32_1.default.unsigned(b);
if (calculatedCrc32 !== recordedCrc32) {

@@ -172,0 +172,0 @@ throw new errors_1.CramMalformedError(`crc mismatch in ${description}: recorded CRC32 = ${recordedCrc32}, but calculated CRC32 = ${calculatedCrc32}`);

import { Buffer } from 'buffer';
import crc32 from 'buffer-crc32';
import crc32 from 'crc/crc32';
import QuickLRU from 'quick-lru';

@@ -4,0 +4,0 @@ import htscodecs from '@jkbonfield/htscodecs';

{
"name": "@gmod/cram",
"version": "3.0.3",
"version": "3.0.4",
"description": "read CRAM files with pure Javascript",

@@ -46,4 +46,4 @@ "license": "MIT",

"@jkbonfield/htscodecs": "^0.5.1",
"buffer-crc32": "^1.0.0",
"bzip2": "^0.1.1",
"crc": "^4.3.2",
"long": "^4.0.0",

@@ -50,0 +50,0 @@ "md5": "^2.2.1",

import { Buffer } from 'buffer'
import crc32 from 'buffer-crc32'
import crc32 from 'crc/crc32'
import QuickLRU from 'quick-lru'

@@ -4,0 +4,0 @@ import htscodecs from '@jkbonfield/htscodecs'

Sorry, the diff of this file is too big to display

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