@postalsys/email-text-tools 2.1.4 → 2.1.6
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 +14 -0
- package/lib/text-to-html.js +0 -7
- package/package.json +1 -2
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,19 @@
|
|
|
1
1
|
# Changelog
|
|
2
2
|
|
|
3
|
+
## [2.1.6](https://github.com/postalsys/email-text-tools/compare/v2.1.5...v2.1.6) (2024-02-18)
|
|
4
|
+
|
|
5
|
+
|
|
6
|
+
### Bug Fixes
|
|
7
|
+
|
|
8
|
+
* **deps:** removed js-beautify ([a73ccc9](https://github.com/postalsys/email-text-tools/commit/a73ccc97a4acf9bfa7e439939c41869c2554b073))
|
|
9
|
+
|
|
10
|
+
## [2.1.5](https://github.com/postalsys/email-text-tools/compare/v2.1.4...v2.1.5) (2024-02-18)
|
|
11
|
+
|
|
12
|
+
|
|
13
|
+
### Bug Fixes
|
|
14
|
+
|
|
15
|
+
* **deps:** fixed deps ([ccf26e2](https://github.com/postalsys/email-text-tools/commit/ccf26e2f0f8047482b9cc7e71cd0a3e61b286ddc))
|
|
16
|
+
|
|
3
17
|
## [2.1.4](https://github.com/postalsys/email-text-tools/compare/v2.1.3...v2.1.4) (2024-02-18)
|
|
4
18
|
|
|
5
19
|
|
package/lib/text-to-html.js
CHANGED
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
const beautifyHtml = require('js-beautify').html;
|
|
4
3
|
const linkifyIt = require('linkify-it');
|
|
5
4
|
const tlds = require('tlds');
|
|
6
5
|
const he = require('he');
|
|
@@ -192,12 +191,6 @@ function textToHtml(text) {
|
|
|
192
191
|
|
|
193
192
|
let generatedHtml = processQuotedNode(tree);
|
|
194
193
|
|
|
195
|
-
try {
|
|
196
|
-
return beautifyHtml(generatedHtml);
|
|
197
|
-
} catch (err) {
|
|
198
|
-
// ignore, might fail
|
|
199
|
-
}
|
|
200
|
-
|
|
201
194
|
return generatedHtml;
|
|
202
195
|
}
|
|
203
196
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@postalsys/email-text-tools",
|
|
3
|
-
"version": "2.1.
|
|
3
|
+
"version": "2.1.6",
|
|
4
4
|
"description": "Email text tools",
|
|
5
5
|
"main": "index.js",
|
|
6
6
|
"scripts": {
|
|
@@ -26,7 +26,6 @@
|
|
|
26
26
|
"dompurify": "3.0.8",
|
|
27
27
|
"he": "1.2.0",
|
|
28
28
|
"html-to-text": "9.0.5",
|
|
29
|
-
"js-beautify": "1.15.1",
|
|
30
29
|
"jsdom": "24.0.0",
|
|
31
30
|
"juice": "10.0.0",
|
|
32
31
|
"linkify-it": "5.0.0",
|