From d91eb01131b72ad64c0f384a461f6c0fb6066d13 Mon Sep 17 00:00:00 2001 From: Ewan Date: Thu, 17 Sep 2020 15:15:14 +0100 Subject: [PATCH] Update error message typo Was 'TypeError: secret must be a string or bufferor a KeyObject' Now 'TypeError: secret must be a string or buffer or a KeyObject' Space between buffer and or --- index.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/index.js b/index.js index d2061ef..f495b12 100644 --- a/index.js +++ b/index.js @@ -12,7 +12,7 @@ var MSG_INVALID_SIGNER_KEY = 'key must be a string, a buffer or an object'; var supportsKeyObjects = typeof crypto.createPublicKey === 'function'; if (supportsKeyObjects) { MSG_INVALID_VERIFIER_KEY += ' or a KeyObject'; - MSG_INVALID_SECRET += 'or a KeyObject'; + MSG_INVALID_SECRET += ' or a KeyObject'; } function checkIsPublicKey(key) {