@gmod/cram
Advanced tools
Comparing version 3.0.3 to 3.0.4
@@ -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
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
1042965
+ Addedcrc@^4.3.2
+ Addedcrc@4.3.2(transitive)
- Removedbuffer-crc32@^1.0.0
- Removedbuffer-crc32@1.0.0(transitive)