From 15a1bc449ab529d540eb9c2be4e093f9f5b0278d Mon Sep 17 00:00:00 2001 From: Filip Skokan Date: Fri, 4 Sep 2020 22:05:00 +0200 Subject: [PATCH] refactor: make decode non-enumerable see #741 --- index.js | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/index.js b/index.js index 161eb2d..a480f1d 100644 --- a/index.js +++ b/index.js @@ -1,8 +1,12 @@ module.exports = { - decode: require('./decode'), verify: require('./verify'), sign: require('./sign'), JsonWebTokenError: require('./lib/JsonWebTokenError'), NotBeforeError: require('./lib/NotBeforeError'), TokenExpiredError: require('./lib/TokenExpiredError'), }; + +Object.defineProperty(module.exports, 'decode', { + enumerable: false, + value: require('./decode'), +});