This repository was archived by the owner on Jan 6, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 11
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
deps: upgrade koa-onerror to 2.0.0 (#9)
- Loading branch information
1 parent
f49a6aa
commit 3be6f96
Showing
7 changed files
with
55 additions
and
57 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
sudo: false | ||
language: node_js | ||
node_js: | ||
- '4' | ||
- '6' | ||
install: | ||
- npm i npminstall && npminstall | ||
script: | ||
- npm test |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,19 +1,9 @@ | ||
/*! | ||
* koa-middlewares - example.js | ||
* Copyright(c) 2014 dead_horse <[email protected]> | ||
* MIT Licensed | ||
*/ | ||
|
||
'use strict'; | ||
|
||
/** | ||
* Module dependencies. | ||
*/ | ||
|
||
var koa = require('koa'); | ||
var middlewares = require('./'); | ||
const koa = require('koa'); | ||
const middlewares = require('./'); | ||
|
||
var app = koa(); | ||
const app = koa(); | ||
|
||
app.use(middlewares.bodyParser()); | ||
app.use(middlewares.gzip({minLength: 100})); | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,15 +1,5 @@ | ||
/*! | ||
* koa-middlewares - index.js | ||
* Copyright(c) 2014 dead_horse <[email protected]> | ||
* MIT Licensed | ||
*/ | ||
|
||
'use strict'; | ||
|
||
/** | ||
* Module dependencies. | ||
*/ | ||
|
||
exports.resourceRouter = exports.ResourceRouter = require('koa-resource-router'); | ||
exports.bodyparser = exports.bodyParser = require('koa-bodyparser'); | ||
exports.redisStore = exports.RedisStore = require('koa-redis'); | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -4,11 +4,11 @@ | |
"description": "easy way to require some useful koa middlewares", | ||
"main": "index.js", | ||
"scripts": { | ||
"test": "echo \"Error: no test specified\" && exit 1" | ||
"test": "node index.js" | ||
}, | ||
"repository": { | ||
"type": "git", | ||
"url": "git://github.com/dead-horse/koa-middlewares.git" | ||
"url": "git://github.com/cnpm/koa-middlewares.git" | ||
}, | ||
"keywords": [ | ||
"koa", | ||
|
@@ -21,9 +21,9 @@ | |
"author": "dead_horse <[email protected]> (http://deadhorse.me)", | ||
"license": "MIT", | ||
"bugs": { | ||
"url": "https://github.com/dead-horse/koa-middlewares/issues" | ||
"url": "https://github.com/cnpm/koa-middlewares/issues" | ||
}, | ||
"homepage": "https://github.com/dead-horse/koa-middlewares", | ||
"homepage": "https://github.com/cnpm/koa-middlewares", | ||
"dependencies": { | ||
"koa-bodyparser": "^2.0.1", | ||
"koa-compress": "^1.0.9", | ||
|
@@ -34,7 +34,7 @@ | |
"koa-favicon": "^1.2.1", | ||
"koa-generic-session": "^1.10.2", | ||
"koa-logger": "^1.3.0", | ||
"koa-onerror": "^1.3.1", | ||
"koa-onerror": "^2.0.0", | ||
"koa-redis": "^2.0.1", | ||
"koa-resource-router": "^0.4.0", | ||
"koa-rewrite": "^1.1.1", | ||
|
@@ -45,8 +45,8 @@ | |
"koa-static-cache": "^3.1.7" | ||
}, | ||
"devDependencies": { | ||
"autod": "^2.5.1", | ||
"koa": "^1.2.0" | ||
"autod": "2", | ||
"koa": "1" | ||
}, | ||
"files": [ | ||
"index.js" | ||
|