http-signature
Advanced tools
Comparing version 0.9.2 to 0.9.3
// Copyright 2011 Joyent, Inc. All rights reserved. | ||
var assert = require('assert'); | ||
var util = require('util'); | ||
@@ -33,32 +34,35 @@ | ||
function HttpSignatureError(message, caller) { | ||
if (Error.captureStackTrace) | ||
Error.captureStackTrace(this, caller || HttpSignatureError); | ||
this.message = message; | ||
this.__defineGetter__('name', function() { | ||
return caller.name; | ||
}); | ||
} | ||
util.inherits(HttpSignatureError, Error); | ||
function ExpiredRequestError(message) { | ||
this.name = 'ExpiredRequestError'; | ||
this.message = message; | ||
this.stack = (new Error()).stack; | ||
HttpSignatureError.call(this, message, ExpiredRequestError); | ||
} | ||
ExpiredRequestError.prototype = new Error(); | ||
util.inherits(ExpiredRequestError, HttpSignatureError); | ||
function InvalidHeaderError(message) { | ||
this.name = 'InvalidHeaderError'; | ||
this.message = message; | ||
this.stack = (new Error()).stack; | ||
HttpSignatureError.call(this, message, InvalidHeaderError); | ||
} | ||
InvalidHeaderError.prototype = new Error(); | ||
util.inherits(InvalidHeaderError, HttpSignatureError); | ||
function InvalidParamsError(message) { | ||
this.name = 'InvalidParamsError'; | ||
this.message = message; | ||
this.stack = (new Error()).stack; | ||
HttpSignatureError.call(this, message, InvalidParamsError); | ||
} | ||
InvalidParamsError.prototype = new Error(); | ||
util.inherits(InvalidParamsError, HttpSignatureError); | ||
function MissingHeaderError(message) { | ||
this.name = 'MissingHeaderError'; | ||
this.message = message; | ||
this.stack = (new Error()).stack; | ||
HttpSignatureError.call(this, message, MissingHeaderError); | ||
} | ||
MissingHeaderError.prototype = new Error(); | ||
util.inherits(MissingHeaderError, HttpSignatureError); | ||
@@ -65,0 +69,0 @@ |
@@ -5,3 +5,3 @@ { | ||
"description": "Reference implementation of Joyent's HTTP Signature Scheme", | ||
"version": "0.9.2", | ||
"version": "0.9.3", | ||
"homepage": "http://www.joyent.com", | ||
@@ -8,0 +8,0 @@ "repository": { |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
51494
1203