Comparing version 0.1.13 to 0.1.14
<!-- 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 @@ |
{ | ||
"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) */ |
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
25846
525
+ Addedq@0.8.4(transitive)
+ Addedq-io@0.0.13(transitive)
- Removedevent-queue@0.2.0(transitive)
- Removedq@0.8.2(transitive)
- Removedq-io@0.0.12(transitive)
Updatedq@0.8.4
Updatedq-io@0.0.13