Skip to content

Commit

Permalink
fix(stubs): allow decode method to be stubbed (#876)
Browse files Browse the repository at this point in the history
* refactor: revert 15a1bc4 to to solve #875, #870, and possibly also #876
  • Loading branch information
jakelacey2012 authored Apr 3, 2023
1 parent e1fa9dc commit a99fd4b
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions index.js
Original file line number Diff line number Diff line change
@@ -1,12 +1,8 @@
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 a99fd4b

Please sign in to comment.