@cumulus/checksum 9.9.0 → 10.0.0-beta.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/checksum.js CHANGED
@@ -25,7 +25,7 @@ const crypto = __importStar(require("crypto"));
25
25
  // Calculate the cksum of a readable stream
26
26
  async function getCksumFromStream(stream) {
27
27
  return await new Promise((resolve, reject) => stream
28
- .pipe(cksum.stream((value) => resolve(value.readUInt32BE(0))))
28
+ .pipe(cksum.stream((value) => resolve(value.readUInt32BE(0).toString())))
29
29
  .on('error', reject));
30
30
  }
31
31
  // Calculate the hash of a readable stream using `crypto.createHash()`
package/dist/validate.js CHANGED
@@ -16,7 +16,7 @@ const checksum_1 = require("./checksum");
16
16
  */
17
17
  async function validateChecksumFromStream(algorithm, stream, expectedSum, options = {}) {
18
18
  const calculatedSum = await (0, checksum_1.generateChecksumFromStream)(algorithm, stream, options);
19
- return expectedSum === calculatedSum;
19
+ return expectedSum.toString() === calculatedSum.toString();
20
20
  }
21
21
  exports.validateChecksumFromStream = validateChecksumFromStream;
22
22
  //# sourceMappingURL=validate.js.map
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@cumulus/checksum",
3
- "version": "9.9.0",
3
+ "version": "10.0.0-beta.0",
4
4
  "description": "Cumulus checksum utilities",
5
5
  "engines": {
6
6
  "node": ">=12.18.0"
@@ -39,5 +39,5 @@
39
39
  "dependencies": {
40
40
  "cksum": "^1.3.0"
41
41
  },
42
- "gitHead": "ac89218dfaa5ba8cc228db95321e1371d3e46e88"
42
+ "gitHead": "bc283986be627ba06a4084cabd4e01d1540d14c7"
43
43
  }