diff --git a/index.js b/index.js index a94845b..bf50686 100644 --- a/index.js +++ b/index.js @@ -582,8 +582,8 @@ class DHT extends EventEmitter { } DHT.ERROR_UNKNOWN_COMMAND = UNKNOWN_COMMAND -DHT.ERROR_BAD_COMMAND = BAD_COMMAND DHT.ERROR_INVALID_TOKEN = INVALID_TOKEN +DHT.ERROR_BAD_COMMAND = BAD_COMMAND module.exports = DHT diff --git a/lib/errors.js b/lib/errors.js index 6e6a08d..79141e0 100644 --- a/lib/errors.js +++ b/lib/errors.js @@ -1,6 +1,6 @@ exports.UNKNOWN_COMMAND = 1 -exports.BAD_COMMAND = 2 -exports.INVALID_TOKEN = 3 +exports.INVALID_TOKEN = 2 +exports.BAD_COMMAND = 3 exports.TIMEOUT = new Error('Request timed out') exports.TIMEOUT.code = 'ETIMEDOUT'