mailparser 3.6.5 → 3.6.7

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.
@@ -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: [14.x, 16.x, 18.x]
12
- os: [ubuntu-latest, macos-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@v2
15
+ - uses: actions/checkout@v3
16
16
  - name: Use Node.js ${{ matrix.node }}
17
- uses: actions/setup-node@v1
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,17 @@
1
+ # Changelog
2
+
3
+ ## [3.6.7](https://github.com/nodemailer/mailparser/compare/v3.6.6...v3.6.7) (2024-02-01)
4
+
5
+
6
+ ### Bug Fixes
7
+
8
+ * :arrow_up: update nodemailer dependency to resolve security issue GHSA-9h6g-pr28-7cqp ([#357](https://github.com/nodemailer/mailparser/issues/357)) ([8bc4225](https://github.com/nodemailer/mailparser/commit/8bc42251fca6f538ece599f0a5bebe09b0aeff4f))
9
+
10
+ ## [3.6.6](https://github.com/nodemailer/mailparser/compare/v3.6.5...v3.6.6) (2024-01-04)
11
+
12
+
13
+ ### Bug Fixes
14
+
15
+ * **deploy:** added auto-deployment ([d6eb56f](https://github.com/nodemailer/mailparser/commit/d6eb56fe09fe8b415e5bbf2e53704f6788ca0fee))
16
+ * 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))
17
+ * **test:** updated test matrix (18, 20, 21) ([a2ba9c2](https://github.com/nodemailer/mailparser/commit/a2ba9c236dcd7f990c9d53a386ffaa5b564181b3))
@@ -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.5",
3
+ "version": "3.6.7",
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": "4.0.1",
25
+ "linkify-it": "5.0.0",
25
26
  "mailsplit": "5.4.0",
26
- "nodemailer": "6.9.3",
27
- "tlds": "1.240.0"
27
+ "nodemailer": "6.9.9",
28
+ "tlds": "1.248.0"
28
29
  },
29
30
  "devDependencies": {
30
31
  "ajv": "8.12.0",
31
- "eslint": "8.44.0",
32
+ "eslint": "8.56.0",
32
33
  "eslint-config-nodemailer": "1.2.0",
33
- "eslint-config-prettier": "8.8.0",
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.2.0",
38
+ "grunt-eslint": "24.3.0",
38
39
  "iconv": "3.0.1",
39
40
  "random-message": "1.1.0"
40
41
  },
@@ -45,4 +46,4 @@
45
46
  "bugs": {
46
47
  "url": "https://github.com/nodemailer/mailparser/issues"
47
48
  }
48
- }
49
+ }