Comparing version 0.9.1 to 1.0.0
@@ -6,16 +6,2 @@ | ||
Object.defineProperty(context, 'isSpdy', { | ||
get: function () { | ||
return this.res.isSpdy; | ||
} | ||
}) | ||
// to do: make threshold configurable | ||
var spdy = require('spdy-push'); | ||
context.push = function () { | ||
if (!this.res.isSpdy) return; | ||
var _spdy = spdy(this.res); | ||
return _spdy.push.apply(_spdy, arguments); | ||
} | ||
delegate(context, 'response') | ||
@@ -22,0 +8,0 @@ .method('writeContinue') |
@@ -29,4 +29,4 @@ | ||
app.use(require('koa-file-server')(options.fileServer)); | ||
if (options.polyfills !== false) | ||
app.use(require('koa-polyfills')(options.polyfills)); | ||
// if (options.polyfills !== false) | ||
// app.use(require('koa-polyfills')(options.polyfills)); | ||
if (options.cash) | ||
@@ -37,3 +37,3 @@ app.use(require('koa-cash')(options.cash)); | ||
if (options.session !== false) | ||
app.use(require('koa-session')(options.session)); | ||
app.use(require('koa-session')(options.session, app)); | ||
@@ -40,0 +40,0 @@ return app; |
{ | ||
"name": "koala", | ||
"description": "Koa Framework Suite", | ||
"version": "0.9.1", | ||
"version": "1.0.0", | ||
"author": { | ||
@@ -20,3 +20,3 @@ "name": "Jonathan Ong", | ||
"koa": "0", | ||
"koa-body-parsers": "1", | ||
"koa-body-parsers": "^1.1.0", | ||
"koa-cash": "1", | ||
@@ -30,18 +30,16 @@ "koa-compress": "1", | ||
"koa-logger": "1", | ||
"koa-polyfills": "1", | ||
"koa-qs": "1", | ||
"koa-qs": "^2.0.0", | ||
"koa-response-time": "1", | ||
"koa-safe-jsonp": "0", | ||
"koa-session": "2", | ||
"koa-session": "^3.2.0", | ||
"koa-trace": "1", | ||
"merge-descriptors": "0", | ||
"merge-descriptors": "^1.0.0", | ||
"ms": "0", | ||
"mz": "1", | ||
"qs": ">= 2", | ||
"spdy-push": "1" | ||
"mz": "^2.0.0", | ||
"qs": ">= 2" | ||
}, | ||
"devDependencies": { | ||
"mocha": "1", | ||
"supertest": "0", | ||
"istanbul-harmony": "0" | ||
"istanbul-harmony": "0", | ||
"mocha": "2", | ||
"supertest": "^1.0.1" | ||
}, | ||
@@ -56,5 +54,5 @@ "main": "lib", | ||
"scripts": { | ||
"test": "NODE_ENV=test mocha --harmony-generators --reporter spec --timeout 30s --bail test/app/index.js", | ||
"test-cov": "NODE_ENV=test node --harmony-generators node_modules/.bin/istanbul cover ./node_modules/.bin/_mocha -- --reporter dot --timeout 2m --bail test/app/index.js", | ||
"test-travis": "NODE_ENV=test node --harmony-generators node_modules/.bin/istanbul cover ./node_modules/.bin/_mocha --report lcovonly -- --reporter dot --timeout 2m --bail test/app/index.js" | ||
"test": "NODE_ENV=test mocha --reporter spec --timeout 30s --bail test/app/index.js", | ||
"test-cov": "NODE_ENV=test node node_modules/.bin/istanbul cover ./node_modules/.bin/_mocha -- --reporter dot --timeout 2m --bail test/app/index.js", | ||
"test-travis": "NODE_ENV=test node node_modules/.bin/istanbul cover ./node_modules/.bin/_mocha --report lcovonly -- --reporter dot --timeout 2m --bail test/app/index.js" | ||
}, | ||
@@ -65,3 +63,2 @@ "keywords": [ | ||
"https", | ||
"spdy", | ||
"http2", | ||
@@ -68,0 +65,0 @@ "framework", |
# Koala<sub>α</sub> | ||
[![Gitter chat][gitter-image]][gitter-url] | ||
[![NPM version][npm-image]][npm-url] | ||
@@ -50,3 +51,3 @@ [![Build status][travis-image]][travis-url] | ||
- CSRF protection | ||
- [Polyfills](docs/polyfills.md) - serve polyfill bundles based on the user agent | ||
<!-- - [Polyfills](docs/polyfills.md) - serve polyfill bundles based on the user agent --> | ||
- [Response Caching](docs/response-caching.md) - cache and serve responses using an arbitrary store | ||
@@ -96,2 +97,4 @@ - [JSONP](docs/jsonp.md) - safe jsonp support | ||
[gitter-image]: https://badges.gitter.im/koajs/koala.png | ||
[gitter-url]: https://gitter.im/koajs/koala | ||
[npm-image]: https://img.shields.io/npm/v/koala.svg?style=flat-square | ||
@@ -98,0 +101,0 @@ [npm-url]: https://npmjs.org/package/koala |
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
No v1
QualityPackage is not semver >=1. This means it is not stable and does not support ^ ranges.
Found 1 instance in 1 package
35451
24
37
1
114
233
+ Addedkoa-qs@2.0.0(transitive)
+ Addedkoa-session@3.4.0(transitive)
+ Addedmerge-descriptors@1.0.3(transitive)
+ Addedqs@2.3.3(transitive)
- Removedkoa-polyfills@1
- Removedspdy-push@1
- Removedalign-text@0.1.4(transitive)
- Removedbalanced-match@1.0.2(transitive)
- Removedbrace-expansion@1.1.11(transitive)
- Removedcallsite@1.0.0(transitive)
- Removedcamel-case@1.2.2(transitive)
- Removedcaniuse-db@1.0.30001664(transitive)
- Removedcenter-align@0.1.3(transitive)
- Removedchange-case@2.3.1(transitive)
- Removedclean-css@3.1.93.4.28(transitive)
- Removedcli@0.6.6(transitive)
- Removedcliui@2.1.0(transitive)
- Removedcommander@2.6.02.8.1(transitive)
- Removedconcat-map@0.0.1(transitive)
- Removedconcat-stream@1.4.11(transitive)
- Removedconstant-case@1.1.2(transitive)
- Removeddot-case@1.1.2(transitive)
- Removedexit@0.1.2(transitive)
- Removedflatten@0.0.1(transitive)
- Removedfn-getter@1.0.0(transitive)
- Removedfs.realpath@1.0.0(transitive)
- Removedglob@3.2.117.2.3(transitive)
- Removedgraceful-readlink@1.0.1(transitive)
- Removedhtml-minifier@0.7.2(transitive)
- Removedinflight@1.0.6(transitive)
- Removedis-buffer@1.1.6(transitive)
- Removedis-generator@1.0.3(transitive)
- Removedis-lower-case@1.1.3(transitive)
- Removedis-upper-case@1.1.2(transitive)
- Removedkind-of@3.2.2(transitive)
- Removedkoa-polyfills@1.1.0(transitive)
- Removedkoa-qs@1.1.0(transitive)
- Removedkoa-session@2.0.1(transitive)
- Removedlazy-cache@1.0.4(transitive)
- Removedlazyrequire@1.3.0(transitive)
- Removedlongest@1.0.1(transitive)
- Removedlower-case@1.1.4(transitive)
- Removedlower-case-first@1.0.2(transitive)
- Removedlru-cache@2.7.34.1.5(transitive)
- Removedmemorizer@1.0.1(transitive)
- Removedminimatch@0.3.03.1.2(transitive)
- Removedmnfy@3.1.2(transitive)
- Removedmz@1.3.0(transitive)
- Removedonce@1.4.0(transitive)
- Removedos-tmpdir@1.0.2(transitive)
- Removedparam-case@1.1.2(transitive)
- Removedpascal-case@1.1.2(transitive)
- Removedpath-case@1.1.2(transitive)
- Removedpolyfills@1.13.0(transitive)
- Removedpolyfills-db@1.19.2(transitive)
- Removedpseudomap@1.0.2(transitive)
- Removedpush-polyfills@1.0.1(transitive)
- Removedrelateurl@0.2.7(transitive)
- Removedrepeat-string@1.6.1(transitive)
- Removedright-align@0.1.3(transitive)
- Removedrimraf@2.7.1(transitive)
- Removedsemver@4.3.6(transitive)
- Removedsentence-case@1.1.3(transitive)
- Removedsigmund@1.0.1(transitive)
- Removedslave@1.2.2(transitive)
- Removedsnake-case@1.1.2(transitive)
- Removedsource-map@0.1.430.4.40.5.7(transitive)
- Removedswap-case@1.1.2(transitive)
- Removedtitle-case@1.1.2(transitive)
- Removedtmp@0.0.33(transitive)
- Removedtypedarray@0.0.7(transitive)
- Removeduglify-js@2.8.29(transitive)
- Removedupper-case@1.1.3(transitive)
- Removedupper-case-first@1.1.2(transitive)
- Removeduseragent@2.3.0(transitive)
- Removedwrappy@1.0.2(transitive)
- Removedyallist@2.1.2(transitive)
- Removedyargs@3.10.0(transitive)
Updatedkoa-body-parsers@^1.1.0
Updatedkoa-qs@^2.0.0
Updatedkoa-session@^3.2.0
Updatedmerge-descriptors@^1.0.0
Updatedmz@^2.0.0