crc32-stream
Advanced tools
Comparing version 4.0.0 to 4.0.1
@@ -13,3 +13,3 @@ /** | ||
const {crc32} = require('crc'); | ||
const crc32 = require('crc-32'); | ||
@@ -27,3 +27,3 @@ class CRC32Stream extends Transform { | ||
if (chunk) { | ||
this.checksum = crc32(chunk, this.checksum); | ||
this.checksum = crc32.buf(chunk, this.checksum) >>> 0; | ||
this.rawSize += chunk.length; | ||
@@ -30,0 +30,0 @@ } |
@@ -13,3 +13,3 @@ /** | ||
const {crc32} = require('crc'); | ||
const crc32 = require('crc-32'); | ||
@@ -37,3 +37,3 @@ class DeflateCRC32Stream extends DeflateRaw { | ||
if (chunk) { | ||
this.checksum = crc32(chunk, this.checksum); | ||
this.checksum = crc32.buf(chunk, this.checksum) >>> 0; | ||
this.rawSize += chunk.length; | ||
@@ -40,0 +40,0 @@ } |
{ | ||
"name": "crc32-stream", | ||
"version": "4.0.0", | ||
"version": "4.0.1", | ||
"description": "a streaming CRC32 checksumer", | ||
@@ -29,3 +29,3 @@ "homepage": "https://github.com/archiverjs/node-crc32-stream", | ||
"dependencies": { | ||
"crc": "^3.4.4", | ||
"crc-32": "^1.2.0", | ||
"readable-stream": "^3.4.0" | ||
@@ -32,0 +32,0 @@ }, |
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
7924
+ Addedcrc-32@^1.2.0
+ Addedcrc-32@1.2.2(transitive)
- Removedcrc@^3.4.4
- Removedbase64-js@1.5.1(transitive)
- Removedbuffer@5.7.1(transitive)
- Removedcrc@3.8.0(transitive)
- Removedieee754@1.2.1(transitive)