mailauth 4.0.2 → 4.1.0

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/lib/tools.js CHANGED
@@ -10,7 +10,6 @@ const https = require('https');
10
10
  const packageData = require('../package');
11
11
  const parseDkimHeaders = require('./parse-dkim-headers');
12
12
  const psl = require('psl');
13
- const pki = require('node-forge').pki;
14
13
  const Joi = require('joi');
15
14
  const base64Schema = Joi.string().base64({ paddingRequired: false });
16
15
 
@@ -288,14 +287,7 @@ const getPublicKey = async (type, name, minBitLength, resolver) => {
288
287
  throw err;
289
288
  }
290
289
 
291
- let modulusLength;
292
- if (publicKeyObj.asymmetricKeyDetails) {
293
- modulusLength = publicKeyObj.asymmetricKeyDetails.modulusLength;
294
- } else {
295
- // fall back to node-forge
296
- const pubKeyData = pki.publicKeyFromPem(publicKeyPem.toString());
297
- modulusLength = pubKeyData.n.bitLength();
298
- }
290
+ let modulusLength = publicKeyObj.asymmetricKeyDetails.modulusLength;
299
291
 
300
292
  if (keyType === 'rsa' && modulusLength < 1024) {
301
293
  let err = new Error('RSA key too short');
package/licenses.txt CHANGED
@@ -1,9 +1,9 @@
1
1
  name license type link installed version author
2
2
  ---- ------------ ---- ----------------- ------
3
3
  @postalsys/vmc MIT https://registry.npmjs.org/@postalsys/vmc/-/vmc-1.0.6.tgz 1.0.6 Postal Systems OÜ
4
- fast-xml-parser MIT git+https://github.com/NaturalIntelligence/fast-xml-parser.git 4.0.9 Amit Gupta (https://amitkumargupta.work/)
4
+ fast-xml-parser MIT git+https://github.com/NaturalIntelligence/fast-xml-parser.git 4.0.10 Amit Gupta (https://amitkumargupta.work/)
5
5
  ipaddr.js MIT git://github.com/whitequark/ipaddr.js.git 2.0.1 whitequark <whitequark@whitequark.org>
6
- joi BSD-3-Clause git://github.com/sideway/joi.git 17.6.0 n/a
6
+ joi BSD-3-Clause git://github.com/hapijs/joi.git 17.6.1 n/a
7
7
  libmime MIT git://github.com/andris9/libmime.git 5.1.0 Andris Reinman <andris@kreata.ee>
8
8
  node-forge (BSD-3-Clause OR GPL-2.0) git+https://github.com/digitalbazaar/forge.git 1.3.1 Digital Bazaar, Inc. support@digitalbazaar.com http://digitalbazaar.com/
9
9
  nodemailer MIT git+https://github.com/nodemailer/nodemailer.git 6.7.8 Andris Reinman
package/man/mailauth.1 CHANGED
@@ -1,4 +1,4 @@
1
- .TH "MAILAUTH" "1" "September 2022" "v4.0.1" "Mailauth Help"
1
+ .TH "MAILAUTH" "1" "January 2023" "v4.0.2" "Mailauth Help"
2
2
  .SH "NAME"
3
3
  \fBmailauth\fR
4
4
  .QP
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "mailauth",
3
- "version": "4.0.2",
3
+ "version": "4.1.0",
4
4
  "description": "Email authentication library for Node.js",
5
5
  "main": "lib/mailauth.js",
6
6
  "scripts": {
@@ -32,29 +32,28 @@
32
32
  },
33
33
  "homepage": "https://github.com/postalsys/mailauth",
34
34
  "devDependencies": {
35
- "chai": "4.3.6",
36
- "eslint": "8.24.0",
35
+ "chai": "4.3.7",
36
+ "eslint": "8.32.0",
37
37
  "eslint-config-nodemailer": "1.2.0",
38
- "eslint-config-prettier": "8.5.0",
38
+ "eslint-config-prettier": "8.6.0",
39
39
  "js-yaml": "4.1.0",
40
- "license-report": "6.1.0",
40
+ "license-report": "6.3.0",
41
41
  "marked": "0.7.0",
42
42
  "marked-man": "0.7.0",
43
43
  "mbox-reader": "1.1.5",
44
- "mocha": "10.0.0",
44
+ "mocha": "10.2.0",
45
45
  "pkg": "5.8.0"
46
46
  },
47
47
  "dependencies": {
48
48
  "@postalsys/vmc": "1.0.6",
49
- "fast-xml-parser": "4.0.10",
49
+ "fast-xml-parser": "4.0.15",
50
50
  "ipaddr.js": "2.0.1",
51
- "joi": "17.6.1",
52
- "libmime": "5.1.0",
53
- "node-forge": "1.3.1",
54
- "nodemailer": "6.7.8",
51
+ "joi": "17.7.0",
52
+ "libmime": "5.2.0",
53
+ "nodemailer": "6.9.0",
55
54
  "psl": "1.9.0",
56
- "punycode": "2.1.1",
57
- "yargs": "17.5.1"
55
+ "punycode": "2.3.0",
56
+ "yargs": "17.6.2"
58
57
  },
59
58
  "engines": {
60
59
  "node": ">=16.0.0"