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

crc32-stream

Package Overview
Dependencies
Maintainers
1
Versions
26
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

crc32-stream - npm Package Compare versions

Comparing version 4.0.0 to 4.0.1

4

lib/crc32-stream.js

@@ -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 @@ },

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