Socket
Socket
Sign inDemoInstall

autohost

Package Overview
Dependencies
Maintainers
5
Versions
110
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

autohost - npm Package Compare versions

Comparing version 0.5.0 to 0.5.1

7

CHANGELOG.md
## 0.5.x
### 0.5.1
* Bug fix - error results not getting rendered correctly from hyped
* Change default error strategy to use an object with a `message` property to match other AH default responses
* No longer return errors as message body (too dangerous a default behavior)
* Add `method` property to httpEnvelope
* Remove demo and dependencies on auth provider libraries
### 0.5.0

@@ -4,0 +11,0 @@ * A query string value can no longer override a URL parameter (Matches behavior of the `data` object)

4

package.json
{
"name": "autohost",
"version": "0.5.0",
"version": "0.5.1",
"description": "Resource driven, transport agnostic host",

@@ -27,4 +27,2 @@ "main": "src/index.js",

"devDependencies": {
"autohost-nedb-auth": "~0.2.0",
"autohost-riak-auth": "~0.2.0",
"biggulp": "0.0.*",

@@ -31,0 +29,0 @@ "chai": "^2.0.0",

@@ -20,2 +20,3 @@ var request;

this.path = this.url = req.url;
this.method = req.method.toLowerCase();
this.responseStream = res;

@@ -122,3 +123,3 @@ this.session = req.session;

status: 500,
body: error.message
body: { message: 'Server error' }
};

@@ -148,3 +149,3 @@ var hostError = host.errors ? host.errors[ error.name ] : undefined;

};
this.reply( reply );
this.reply( this.render( host, resource, action, reply ) );
}

@@ -151,0 +152,0 @@ };

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