Comparing version 0.8.0 to 0.9.0
@@ -30,3 +30,3 @@ | ||
error handling, and file descriptor leaks. | ||
[koa-spdy-push](https://github.com/koajs/spdy-push) is used under the hood. | ||
[spdy-push](https://github.com/jshttp/spdy-push) is used under the hood. | ||
@@ -33,0 +33,0 @@ - `path` - the path of the push stream |
@@ -13,28 +13,7 @@ | ||
// to do: make threshold configurable | ||
var push = require('koa-spdy-push')(); | ||
var spdy = require('spdy-push'); | ||
context.push = function () { | ||
if (!this.res.isSpdy) return; | ||
// we do all this nonsense type checking to make it closer | ||
// to node-spdy's API | ||
var path; | ||
var options; | ||
var priority; | ||
for (var i = 0; i < arguments.length; i++) { | ||
var arg = arguments[i]; | ||
switch (typeof arg) { | ||
case 'string': | ||
path = arg; | ||
break | ||
case 'object': | ||
options = arg; | ||
break | ||
case 'number': | ||
priority = arg; | ||
break | ||
} | ||
} | ||
if (path) options.path = path; | ||
if (priority) options.priority = priority; | ||
return push(this, options); | ||
var _spdy = spdy(this.res); | ||
return _spdy.push.apply(_spdy, arguments); | ||
} | ||
@@ -41,0 +20,0 @@ |
{ | ||
"name": "koala", | ||
"description": "Koa Framework Suite", | ||
"version": "0.8.0", | ||
"version": "0.9.0", | ||
"author": { | ||
@@ -14,28 +14,28 @@ "name": "Jonathan Ong", | ||
"dependencies": { | ||
"qs": "*", | ||
"ms": "0", | ||
"mz": "1", | ||
"basic-auth": "1", | ||
"bluebird": "2", | ||
"commander": "2", | ||
"debug": "*", | ||
"bluebird": "2", | ||
"delegates": "0", | ||
"commander": "2", | ||
"basic-auth": "1", | ||
"merge-descriptors": "0", | ||
"koa": "0", | ||
"koa-qs": "1", | ||
"koa-etag": "2", | ||
"koa-body-parsers": "1", | ||
"koa-cash": "1", | ||
"koa-compress": "1", | ||
"koa-csrf": "2", | ||
"koa-error": "1", | ||
"koa-etag": "2", | ||
"koa-file-server": "2", | ||
"koa-json": "1", | ||
"koa-error": "1", | ||
"koa-trace": "1", | ||
"koa-logger": "1", | ||
"koa-session": "2", | ||
"koa-compress": "1", | ||
"koa-spdy-push": "0", | ||
"koa-polyfills": "1", | ||
"koa-qs": "1", | ||
"koa-response-time": "1", | ||
"koa-safe-jsonp": "0", | ||
"koa-file-server": "2", | ||
"koa-body-parsers": "1", | ||
"koa-response-time": "1" | ||
"koa-session": "2", | ||
"koa-trace": "1", | ||
"merge-descriptors": "0", | ||
"ms": "0", | ||
"mz": "1", | ||
"qs": "*", | ||
"spdy-push": "^1.0.0" | ||
}, | ||
@@ -42,0 +42,0 @@ "devDependencies": { |
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
31959
245
+ Addedspdy-push@^1.0.0
- Removedkoa-spdy-push@0
- Removedkoa-spdy-push@0.3.2(transitive)