crc32-stream
Advanced tools
Comparing version 0.1.0 to 0.1.1
@@ -15,3 +15,4 @@ /** | ||
Transform.call(this, options); | ||
this.checksum = 0; | ||
this.checksum = new Buffer(4); | ||
this.checksum.writeInt32BE(0, 0); | ||
} | ||
@@ -18,0 +19,0 @@ |
{ | ||
"name": "crc32-stream", | ||
"version": "0.1.0", | ||
"version": "0.1.1", | ||
"description": "a streaming CRC32 checksumer", | ||
@@ -32,3 +32,2 @@ "homepage": "https://github.com/ctalkington/node-crc32-stream", | ||
"readable-stream": "~1.0.24", | ||
"lodash.defaults": "~2.4.1", | ||
"buffer-crc32": "~0.2.1" | ||
@@ -38,5 +37,3 @@ }, | ||
"chai": "~1.8.1", | ||
"mocha": "~1.16.0", | ||
"rimraf": "~2.2.0", | ||
"mkdirp": "~0.3.5" | ||
"mocha": "~1.16.0" | ||
}, | ||
@@ -43,0 +40,0 @@ "keywords": [ |
@@ -1,2 +0,2 @@ | ||
# crc32-stream v0.1.0 [![Build Status](https://travis-ci.org/ctalkington/node-crc32-stream.svg?branch=master)](https://travis-ci.org/ctalkington/node-crc32-stream) | ||
# crc32-stream v0.1.1 [![Build Status](https://travis-ci.org/ctalkington/node-crc32-stream.svg?branch=master)](https://travis-ci.org/ctalkington/node-crc32-stream) | ||
@@ -3,0 +3,0 @@ crc32-stream is a streaming CRC32 checksumer. It uses [buffer-crc32](https://www.npmjs.org/package/buffer-crc32) behind the scenes to reliably handle binary data and fancy character sets. Data is passed through untouched. |
@@ -25,2 +25,15 @@ /*global before,describe,it */ | ||
}); | ||
it('should gracefully handle having no data chunks passed to it', function(done) { | ||
var checksum = new CRC32Stream(); | ||
var deadend = new DeadEndStream(); | ||
checksum.on('end', function() { | ||
assert.equal(checksum.digest(), 0); | ||
done(); | ||
}); | ||
checksum.pipe(deadend); | ||
checksum.end(); | ||
}); | ||
}); |
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
8648
2
2
120
- Removedlodash.defaults@~2.4.1
- Removedlodash._isnative@2.4.1(transitive)
- Removedlodash._objecttypes@2.4.1(transitive)
- Removedlodash._shimkeys@2.4.1(transitive)
- Removedlodash.defaults@2.4.1(transitive)
- Removedlodash.isobject@2.4.1(transitive)
- Removedlodash.keys@2.4.1(transitive)