Socket
Socket
Sign inDemoInstall

koala

Package Overview
Dependencies
Maintainers
3
Versions
17
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

koala - npm Package Compare versions

Comparing version 0.9.1 to 1.0.0

LICENSE

14

lib/context.js

@@ -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')

6

lib/middleware/index.js

@@ -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>&alpha;</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

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