postal-mime
Advanced tools
Comparing version 2.2.1 to 2.2.2
# Changelog | ||
## [2.2.2](https://github.com/postalsys/postal-mime/compare/v2.2.1...v2.2.2) (2024-04-10) | ||
### Bug Fixes | ||
* **parse:** Do not throw on empty input when initializing an array buffer object ([ddae5b4](https://github.com/postalsys/postal-mime/commit/ddae5b40d44eaebbfc9117609259a204f27ed4cf)) | ||
## [2.2.1](https://github.com/postalsys/postal-mime/compare/v2.2.0...v2.2.1) (2024-03-31) | ||
@@ -4,0 +11,0 @@ |
{ | ||
"name": "postal-mime", | ||
"version": "2.2.1", | ||
"version": "2.2.2", | ||
"description": "Email parser for browser environments", | ||
@@ -5,0 +5,0 @@ "main": "./src/postal-mime.js", |
@@ -331,3 +331,3 @@ import MimeNode from './mime-node.js'; | ||
// Should it throw for an empty value instead of defaulting to an empty ArrayBuffer? | ||
buf = buf || ArrayBuffer(0); | ||
buf = buf || new ArrayBuffer(0); | ||
@@ -334,0 +334,0 @@ // Cast string input to Uint8Array |
129292