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

q-http

Package Overview
Dependencies
Maintainers
1
Versions
22
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

q-http - npm Package Compare versions

Comparing version 0.1.13 to 0.1.14

4

CHANGES.md
<!-- vim:ts=4:sts=4:sw=4:et:tw=60 -->
# 0.1.14
- Support UNIX socket listen form #3
# 0.1.13

@@ -4,0 +8,0 @@

6

package.json
{
"name": "q-http",
"version": "0.1.13",
"version": "0.1.14",
"description": "Q promise based HTTP client and server interface",

@@ -19,4 +19,4 @@ "homepage": "http://github.com/kriskowal/q-http/",

"dependencies": {
"q": "0.8.2",
"q-io": "0.0.12"
"q": "0.8.4",
"q-io": "0.0.13"
},

@@ -23,0 +23,0 @@ "devDependencies": {

@@ -127,9 +127,7 @@ /**

*/
self.listen = function (port, host) {
self.listen = function (/*...args*/) {
if (typeof server.port !== "undefined")
return Q.reject(new Error("A server cannot be restarted or " +
"started on a new port"));
self.port = port >>> 0;
self.host = '' + host;
server.listen(self.port);
server.listen.apply(server, arguments);
return listening.promise;

@@ -146,2 +144,18 @@ };

Object.defineProperties(exports.Server, {
port: {
get: function () {
return this.node.port;
}
},
host: {
get: function () {
return this.node.host;
}
}
});
/**

@@ -159,3 +173,3 @@ * A wrapper for a Node HTTP Request, as received by

request.path = _request.url;
/*** {String} pathInfo, starting with `"/"`, the
/*** {String} pathInfo, starting with `"/"`, the
* portion of the path that has not yet

@@ -162,0 +176,0 @@ * been routed (JSGI) */

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