@cumulus/checksum
Advanced tools
Comparing version 9.9.0 to 10.0.0-beta.0
@@ -28,3 +28,3 @@ "use strict"; | ||
return await new Promise((resolve, reject) => stream | ||
.pipe(cksum.stream((value) => resolve(value.readUInt32BE(0)))) | ||
.pipe(cksum.stream((value) => resolve(value.readUInt32BE(0).toString()))) | ||
.on('error', reject)); | ||
@@ -31,0 +31,0 @@ } |
@@ -19,5 +19,5 @@ "use strict"; | ||
const calculatedSum = await (0, checksum_1.generateChecksumFromStream)(algorithm, stream, options); | ||
return expectedSum === calculatedSum; | ||
return expectedSum.toString() === calculatedSum.toString(); | ||
} | ||
exports.validateChecksumFromStream = validateChecksumFromStream; | ||
//# sourceMappingURL=validate.js.map |
{ | ||
"name": "@cumulus/checksum", | ||
"version": "9.9.0", | ||
"version": "10.0.0-beta.0", | ||
"description": "Cumulus checksum utilities", | ||
@@ -42,3 +42,3 @@ "engines": { | ||
}, | ||
"gitHead": "ac89218dfaa5ba8cc228db95321e1371d3e46e88" | ||
"gitHead": "bc283986be627ba06a4084cabd4e01d1540d14c7" | ||
} |
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
No v1
QualityPackage is not semver >=1. This means it is not stable and does not support ^ ranges.
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
19116
1