@postalsys/email-text-tools 2.0.0 → 2.0.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.
@@ -6,7 +6,9 @@ const htmlToText = compile({
6
6
  selectors: [
7
7
  { selector: 'p', options: { leadingLineBreaks: 1, trailingLineBreaks: 1 } },
8
8
  { selector: 'pre', options: { leadingLineBreaks: 1, trailingLineBreaks: 1 } },
9
- { selector: 'table.class#id', format: 'dataTable' }
9
+ { selector: 'table.class#id', format: 'dataTable' },
10
+ // ignore images
11
+ { selector: 'img', format: 'skip' }
10
12
  ],
11
13
  hideLinkHrefIfSameAsText: true
12
14
  });
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@postalsys/email-text-tools",
3
- "version": "2.0.0",
3
+ "version": "2.0.1",
4
4
  "description": "Email text tools",
5
5
  "main": "index.js",
6
6
  "scripts": {
@@ -22,11 +22,11 @@
22
22
  "eslint-config-prettier": "8.8.0"
23
23
  },
24
24
  "dependencies": {
25
- "dompurify": "3.0.2",
25
+ "dompurify": "3.0.3",
26
26
  "he": "1.2.0",
27
27
  "html-to-text": "9.0.5",
28
28
  "js-beautify": "1.14.7",
29
- "jsdom": "21.1.1",
29
+ "jsdom": "22.0.0",
30
30
  "juice": "9.0.0",
31
31
  "linkify-it": "4.0.1",
32
32
  "moment-timezone": "0.5.43",