simple-hmac-auth
Advanced tools
Comparing version 3.1.1 to 3.2.0
{ | ||
"name": "simple-hmac-auth", | ||
"version": "3.1.1", | ||
"version": "3.2.0", | ||
"description": "Library designed to make building APIs that use HMAC signatures simple.", | ||
@@ -5,0 +5,0 @@ "main": "src/index.js", |
@@ -21,8 +21,15 @@ // | ||
} | ||
toJSON() { | ||
// Explicitly pull non-enumerable properties | ||
const { message } = this; // message, name, stack | ||
// Pull all enumerable properties | ||
return { ...this, message }; | ||
} | ||
} | ||
Object.defineProperty(AuthError.prototype, 'name', { | ||
value: 'AuthError' | ||
}); | ||
Object.defineProperty(AuthError.prototype, 'name', { value: 'AuthError' }); | ||
module.exports = AuthError; |
41819
752