@smithy/hash-stream-node 3.1.10 → 4.0.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-cjs/index.js
CHANGED
|
@@ -31,11 +31,14 @@ var import_fs = require("fs");
|
|
|
31
31
|
// src/HashCalculator.ts
|
|
32
32
|
var import_util_utf8 = require("@smithy/util-utf8");
|
|
33
33
|
var import_stream = require("stream");
|
|
34
|
-
var
|
|
34
|
+
var HashCalculator = class extends import_stream.Writable {
|
|
35
35
|
constructor(hash, options) {
|
|
36
36
|
super(options);
|
|
37
37
|
this.hash = hash;
|
|
38
38
|
}
|
|
39
|
+
static {
|
|
40
|
+
__name(this, "HashCalculator");
|
|
41
|
+
}
|
|
39
42
|
_write(chunk, encoding, callback) {
|
|
40
43
|
try {
|
|
41
44
|
this.hash.update((0, import_util_utf8.toUint8Array)(chunk));
|
|
@@ -45,8 +48,6 @@ var _HashCalculator = class _HashCalculator extends import_stream.Writable {
|
|
|
45
48
|
callback();
|
|
46
49
|
}
|
|
47
50
|
};
|
|
48
|
-
__name(_HashCalculator, "HashCalculator");
|
|
49
|
-
var HashCalculator = _HashCalculator;
|
|
50
51
|
|
|
51
52
|
// src/fileStreamHasher.ts
|
|
52
53
|
var fileStreamHasher = /* @__PURE__ */ __name((hashCtor, fileStream) => new Promise((resolve, reject) => {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@smithy/hash-stream-node",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "4.0.0",
|
|
4
4
|
"scripts": {
|
|
5
5
|
"build": "concurrently 'yarn:build:cjs' 'yarn:build:es' 'yarn:build:types && yarn build:types:downlevel'",
|
|
6
6
|
"build:cjs": "node ../../scripts/inline hash-stream-node",
|
|
@@ -23,21 +23,21 @@
|
|
|
23
23
|
},
|
|
24
24
|
"license": "Apache-2.0",
|
|
25
25
|
"dependencies": {
|
|
26
|
-
"@smithy/types": "^
|
|
27
|
-
"@smithy/util-utf8": "^
|
|
26
|
+
"@smithy/types": "^4.0.0",
|
|
27
|
+
"@smithy/util-utf8": "^4.0.0",
|
|
28
28
|
"tslib": "^2.6.2"
|
|
29
29
|
},
|
|
30
30
|
"devDependencies": {
|
|
31
31
|
"@aws-crypto/sha256-js": "5.2.0",
|
|
32
|
-
"@smithy/util-hex-encoding": "^
|
|
33
|
-
"@types/node": "^
|
|
32
|
+
"@smithy/util-hex-encoding": "^4.0.0",
|
|
33
|
+
"@types/node": "^18.11.9",
|
|
34
34
|
"concurrently": "7.0.0",
|
|
35
35
|
"downlevel-dts": "0.10.1",
|
|
36
36
|
"rimraf": "3.0.2",
|
|
37
37
|
"typedoc": "0.23.23"
|
|
38
38
|
},
|
|
39
39
|
"engines": {
|
|
40
|
-
"node": ">=
|
|
40
|
+
"node": ">=18.0.0"
|
|
41
41
|
},
|
|
42
42
|
"typesVersions": {
|
|
43
43
|
"<4.0": {
|