Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

http-signature

Package Overview
Dependencies
Maintainers
1
Versions
28
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

http-signature - npm Package Compare versions

Comparing version 0.9.2 to 0.9.3

36

lib/parser.js
// 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": {

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc