mailauth 4.7.1 → 4.7.2
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/CHANGELOG.md +7 -0
- package/lib/dkim/body/index.js +6 -1
- package/man/mailauth.1 +1 -1
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,12 @@
|
|
|
1
1
|
# Changelog
|
|
2
2
|
|
|
3
|
+
## [4.7.2](https://github.com/postalsys/mailauth/compare/v4.7.1...v4.7.2) (2024-10-02)
|
|
4
|
+
|
|
5
|
+
|
|
6
|
+
### Bug Fixes
|
|
7
|
+
|
|
8
|
+
* **dkim:** Store byteLength in BodyHashStream ([081f823](https://github.com/postalsys/mailauth/commit/081f82340505d4beb88f12728919d851d35b6576))
|
|
9
|
+
|
|
3
10
|
## [4.7.1](https://github.com/postalsys/mailauth/compare/v4.7.0...v4.7.1) (2024-10-02)
|
|
4
11
|
|
|
5
12
|
|
package/lib/dkim/body/index.js
CHANGED
|
@@ -43,6 +43,8 @@ class BodyHashStream extends Transform {
|
|
|
43
43
|
this.finished = false;
|
|
44
44
|
this.finishCb = null;
|
|
45
45
|
|
|
46
|
+
this.byteLength = 0;
|
|
47
|
+
|
|
46
48
|
this.messageHasher = new MessageHasher(canonicalization, ...options);
|
|
47
49
|
this.bodyHash = null;
|
|
48
50
|
this.messageHasher.once('finish', () => this.finishHashing());
|
|
@@ -73,12 +75,15 @@ class BodyHashStream extends Transform {
|
|
|
73
75
|
chunk = Buffer.from(chunk, encoding);
|
|
74
76
|
}
|
|
75
77
|
|
|
78
|
+
this.byteLength += chunk.length;
|
|
79
|
+
|
|
80
|
+
this.push(chunk);
|
|
81
|
+
|
|
76
82
|
if (this.messageHasher.write(chunk) === false) {
|
|
77
83
|
// wait for drain
|
|
78
84
|
return this.messageHasher.once('drain', done);
|
|
79
85
|
}
|
|
80
86
|
|
|
81
|
-
this.push(chunk);
|
|
82
87
|
done();
|
|
83
88
|
}
|
|
84
89
|
|
package/man/mailauth.1
CHANGED