postal-mime 2.4.0 → 2.4.1
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/README.md +1 -1
- package/package.json +1 -1
- package/postal-mime.d.ts +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,12 @@
|
|
|
1
1
|
# Changelog
|
|
2
2
|
|
|
3
|
+
## [2.4.1](https://github.com/postalsys/postal-mime/compare/v2.4.0...v2.4.1) (2025-01-05)
|
|
4
|
+
|
|
5
|
+
|
|
6
|
+
### Bug Fixes
|
|
7
|
+
|
|
8
|
+
* **ts:** Tiny schema fix ([f8761e6](https://github.com/postalsys/postal-mime/commit/f8761e6b57af619264fe1ffe121407859e380fe6))
|
|
9
|
+
|
|
3
10
|
## [2.4.0](https://github.com/postalsys/postal-mime/compare/v2.3.2...v2.4.0) (2025-01-05)
|
|
4
11
|
|
|
5
12
|
|
package/README.md
CHANGED
|
@@ -107,7 +107,7 @@ PostalMime.parse(email, options) -> Promise<ParsedEmail>
|
|
|
107
107
|
- **options**: Optional configuration object:
|
|
108
108
|
- **rfc822Attachments** (boolean, default: `false`): Treat `message/rfc822` attachments without a Content-Disposition as attachments.
|
|
109
109
|
- **forceRfc822Attachments** (boolean, default: `false`): Treat _all_ `message/rfc822` parts as attachments.
|
|
110
|
-
- **attachmentEncoding** (string): Determines how attachment content is decoded in the parsed email:
|
|
110
|
+
- **attachmentEncoding** (string, default: `"arraybuffer"`): Determines how attachment content is decoded in the parsed email:
|
|
111
111
|
- `"base64"`
|
|
112
112
|
- `"utf8"`
|
|
113
113
|
- `"arraybuffer"` (no decoding, returns `ArrayBuffer`)
|
package/package.json
CHANGED
package/postal-mime.d.ts
CHANGED
|
@@ -56,7 +56,7 @@ declare function decodeWords (
|
|
|
56
56
|
declare type PostalMimeOptions = {
|
|
57
57
|
rfc822Attachments?: boolean,
|
|
58
58
|
forceRfc822Attachments?: boolean,
|
|
59
|
-
attachmentEncoding?: "base64" | "utf8"
|
|
59
|
+
attachmentEncoding?: "base64" | "utf8" | "arraybuffer"
|
|
60
60
|
}
|
|
61
61
|
|
|
62
62
|
declare class PostalMime {
|