mailparser 3.6.5 → 3.6.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/.github/workflows/release.yaml +37 -0
- package/.github/workflows/test.yml +4 -4
- package/CHANGELOG.md +10 -0
- package/lib/mail-parser.js +1 -1
- package/package.json +9 -8
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
on:
|
|
2
|
+
push:
|
|
3
|
+
branches:
|
|
4
|
+
- master
|
|
5
|
+
|
|
6
|
+
permissions:
|
|
7
|
+
contents: write
|
|
8
|
+
pull-requests: write
|
|
9
|
+
id-token: write
|
|
10
|
+
|
|
11
|
+
name: release
|
|
12
|
+
jobs:
|
|
13
|
+
release-please:
|
|
14
|
+
runs-on: ubuntu-latest
|
|
15
|
+
steps:
|
|
16
|
+
- uses: google-github-actions/release-please-action@v3
|
|
17
|
+
id: release
|
|
18
|
+
with:
|
|
19
|
+
release-type: node
|
|
20
|
+
package-name: ${{vars.NPM_MODULE_NAME}}
|
|
21
|
+
pull-request-title-pattern: 'chore${scope}: release ${version} [skip-ci]'
|
|
22
|
+
# The logic below handles the npm publication:
|
|
23
|
+
- uses: actions/checkout@v3
|
|
24
|
+
# these if statements ensure that a publication only occurs when
|
|
25
|
+
# a new release is created:
|
|
26
|
+
if: ${{ steps.release.outputs.release_created }}
|
|
27
|
+
- uses: actions/setup-node@v3
|
|
28
|
+
with:
|
|
29
|
+
node-version: 18
|
|
30
|
+
registry-url: 'https://registry.npmjs.org'
|
|
31
|
+
if: ${{ steps.release.outputs.release_created }}
|
|
32
|
+
- run: npm ci
|
|
33
|
+
if: ${{ steps.release.outputs.release_created }}
|
|
34
|
+
- run: npm publish --provenance --access public
|
|
35
|
+
env:
|
|
36
|
+
NODE_AUTH_TOKEN: ${{secrets.NPM_TOKEN}}
|
|
37
|
+
if: ${{ steps.release.outputs.release_created }}
|
|
@@ -8,13 +8,13 @@ jobs:
|
|
|
8
8
|
test:
|
|
9
9
|
strategy:
|
|
10
10
|
matrix:
|
|
11
|
-
node: [
|
|
12
|
-
os: [ubuntu-latest
|
|
11
|
+
node: [18.x, 20.x, 21.x]
|
|
12
|
+
os: [ubuntu-latest]
|
|
13
13
|
runs-on: ${{ matrix.os }}
|
|
14
14
|
steps:
|
|
15
|
-
- uses: actions/checkout@
|
|
15
|
+
- uses: actions/checkout@v3
|
|
16
16
|
- name: Use Node.js ${{ matrix.node }}
|
|
17
|
-
uses: actions/setup-node@
|
|
17
|
+
uses: actions/setup-node@v3
|
|
18
18
|
with:
|
|
19
19
|
node-version: ${{ matrix.node }}
|
|
20
20
|
- run: npm install
|
package/CHANGELOG.md
ADDED
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
# Changelog
|
|
2
|
+
|
|
3
|
+
## [3.6.6](https://github.com/nodemailer/mailparser/compare/v3.6.5...v3.6.6) (2024-01-04)
|
|
4
|
+
|
|
5
|
+
|
|
6
|
+
### Bug Fixes
|
|
7
|
+
|
|
8
|
+
* **deploy:** added auto-deployment ([d6eb56f](https://github.com/nodemailer/mailparser/commit/d6eb56fe09fe8b415e5bbf2e53704f6788ca0fee))
|
|
9
|
+
* Fix produced text address list string according to rfc 2822 ([#340](https://github.com/nodemailer/mailparser/issues/340)) ([6bae600](https://github.com/nodemailer/mailparser/commit/6bae600a3f4a0452ee7ca43634a11939de7bcc6d))
|
|
10
|
+
* **test:** updated test matrix (18, 20, 21) ([a2ba9c2](https://github.com/nodemailer/mailparser/commit/a2ba9c236dcd7f990c9d53a386ffaa5b564181b3))
|
package/lib/mail-parser.js
CHANGED
|
@@ -1015,7 +1015,7 @@ class MailParser extends Transform {
|
|
|
1015
1015
|
.map(address => {
|
|
1016
1016
|
let str = '';
|
|
1017
1017
|
if (address.name) {
|
|
1018
|
-
str += address.name + (address.group ? ': ' : '');
|
|
1018
|
+
str += `"${address.name}"` + (address.group ? ': ' : '');
|
|
1019
1019
|
}
|
|
1020
1020
|
if (address.address) {
|
|
1021
1021
|
let link = address.address;
|
package/package.json
CHANGED
|
@@ -1,10 +1,11 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "mailparser",
|
|
3
|
-
"version": "3.6.
|
|
3
|
+
"version": "3.6.6",
|
|
4
4
|
"description": "Parse e-mails",
|
|
5
5
|
"main": "index.js",
|
|
6
6
|
"scripts": {
|
|
7
|
-
"test": "grunt"
|
|
7
|
+
"test": "grunt",
|
|
8
|
+
"update": "rm -rf node_modules package-lock.json && ncu -u && npm install"
|
|
8
9
|
},
|
|
9
10
|
"author": "Andris Reinman",
|
|
10
11
|
"contributors": [
|
|
@@ -21,20 +22,20 @@
|
|
|
21
22
|
"html-to-text": "9.0.5",
|
|
22
23
|
"iconv-lite": "0.6.3",
|
|
23
24
|
"libmime": "5.2.1",
|
|
24
|
-
"linkify-it": "
|
|
25
|
+
"linkify-it": "5.0.0",
|
|
25
26
|
"mailsplit": "5.4.0",
|
|
26
|
-
"nodemailer": "6.9.
|
|
27
|
-
"tlds": "1.
|
|
27
|
+
"nodemailer": "6.9.8",
|
|
28
|
+
"tlds": "1.248.0"
|
|
28
29
|
},
|
|
29
30
|
"devDependencies": {
|
|
30
31
|
"ajv": "8.12.0",
|
|
31
|
-
"eslint": "8.
|
|
32
|
+
"eslint": "8.56.0",
|
|
32
33
|
"eslint-config-nodemailer": "1.2.0",
|
|
33
|
-
"eslint-config-prettier": "
|
|
34
|
+
"eslint-config-prettier": "9.1.0",
|
|
34
35
|
"grunt": "1.6.1",
|
|
35
36
|
"grunt-cli": "1.4.3",
|
|
36
37
|
"grunt-contrib-nodeunit": "5.0.0",
|
|
37
|
-
"grunt-eslint": "24.
|
|
38
|
+
"grunt-eslint": "24.3.0",
|
|
38
39
|
"iconv": "3.0.1",
|
|
39
40
|
"random-message": "1.1.0"
|
|
40
41
|
},
|