From 38b164172a7eeb149204c380859953838067f3a3 Mon Sep 17 00:00:00 2001 From: exoego Date: Wed, 25 Sep 2019 05:27:37 +0900 Subject: [PATCH 1/2] doc: fix return type --- doc/api/crypto.md | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/doc/api/crypto.md b/doc/api/crypto.md index 5ac8b09820ef60..ba1582bd78d542 100644 --- a/doc/api/crypto.md +++ b/doc/api/crypto.md @@ -1824,7 +1824,7 @@ added: v0.9.3 --> * `name` {string} -* Returns: {DiffieHellman} +* Returns: {DiffieHellmanGroup} An alias for [`crypto.getDiffieHellman()`][] @@ -2194,9 +2194,9 @@ added: v0.7.5 --> * `groupName` {string} -* Returns: {DiffieHellman} +* Returns: {DiffieHellmanGroup} -Creates a predefined `DiffieHellman` key exchange object. The +Creates a predefined `DiffieHellmanGroup` key exchange object. The supported groups are: `'modp1'`, `'modp2'`, `'modp5'` (defined in [RFC 2412][], but see [Caveats][]) and `'modp14'`, `'modp15'`, `'modp16'`, `'modp17'`, `'modp18'` (defined in [RFC 3526][]). The From e10a6f0f88dfc4e3c13534454e7da67bf5ea6d3c Mon Sep 17 00:00:00 2001 From: exoego Date: Sat, 28 Sep 2019 12:08:12 +0900 Subject: [PATCH 2/2] doc: add DiffieHellmanGroup type --- tools/doc/type-parser.js | 1 + 1 file changed, 1 insertion(+) diff --git a/tools/doc/type-parser.js b/tools/doc/type-parser.js index 35039b68d95c8f..4c3ec0503e7701 100644 --- a/tools/doc/type-parser.js +++ b/tools/doc/type-parser.js @@ -52,6 +52,7 @@ const customTypesMap = { 'Cipher': 'crypto.html#crypto_class_cipher', 'Decipher': 'crypto.html#crypto_class_decipher', 'DiffieHellman': 'crypto.html#crypto_class_diffiehellman', + 'DiffieHellmanGroup': 'crypto.html#crypto_class_diffiehellmangroup', 'ECDH': 'crypto.html#crypto_class_ecdh', 'Hash': 'crypto.html#crypto_class_hash', 'Hmac': 'crypto.html#crypto_class_hmac',