Skip to content

Commit

Permalink
refactor: make decode non-enumerable
Browse files Browse the repository at this point in the history
see #741
  • Loading branch information
panva authored and Marcos Castany committed Sep 10, 2020
1 parent 5f10bf9 commit 15a1bc4
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion 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'),
});

0 comments on commit 15a1bc4

Please sign in to comment.