chore: apply Khoajs naming transformations (upstream sync)
This commit is contained in:
@@ -604,7 +604,7 @@ Otherwise, you should have no trouble upgrading.
|
||||
==================
|
||||
|
||||
* bump type-is
|
||||
* bump khoa-compose
|
||||
* bump koa-compose
|
||||
|
||||
0.6.0 / 2014-05-01
|
||||
==================
|
||||
@@ -669,7 +669,7 @@ Otherwise, you should have no trouble upgrading.
|
||||
* changed ctx.throw() to no longer .expose 5xx errors
|
||||
* remove app.keys getter/setter, update cookies, and remove keygrip deps
|
||||
* update fresh
|
||||
* update khoa-compose
|
||||
* update koa-compose
|
||||
|
||||
0.3.0 / 2014-01-17
|
||||
==================
|
||||
@@ -700,7 +700,7 @@ Otherwise, you should have no trouble upgrading.
|
||||
0.1.2 / 2013-12-21
|
||||
==================
|
||||
|
||||
* update co, khoa-compose, keygrip
|
||||
* update co, koa-compose, keygrip
|
||||
* use on-socket-error
|
||||
* add throw(status, msg) support
|
||||
* assert middleware is GeneratorFunction
|
||||
|
||||
@@ -11,7 +11,7 @@
|
||||
- [Middleware Best Practices](#middleware-best-practices)
|
||||
- [Middleware options](#middleware-options)
|
||||
- [Named middleware](#named-middleware)
|
||||
- [Combining multiple middleware with khoa-compose](#combining-multiple-middleware-with-khoa-compose)
|
||||
- [Combining multiple middleware with koa-compose](#combining-multiple-middleware-with-koa-compose)
|
||||
- [Response Middleware](#response-middleware)
|
||||
- [Async operations](#async-operations)
|
||||
- [Debugging Khoa](#debugging-khoa)
|
||||
@@ -102,12 +102,12 @@ function logger(format) {
|
||||
}
|
||||
```
|
||||
|
||||
### Combining multiple middleware with khoa-compose
|
||||
### Combining multiple middleware with koa-compose
|
||||
|
||||
Sometimes you want to "compose" multiple middleware into a single middleware for easy re-use or exporting. You can use [khoa-compose](https://github.com/khoajs/compose)
|
||||
Sometimes you want to "compose" multiple middleware into a single middleware for easy re-use or exporting. You can use [koa-compose](https://github.com/khoajs/compose)
|
||||
|
||||
```js
|
||||
const compose = require('khoa-compose');
|
||||
const compose = require('koa-compose');
|
||||
|
||||
async function random(ctx, next) {
|
||||
if ('/random' == ctx.path) {
|
||||
|
||||
@@ -12,7 +12,7 @@ const http = require('node:http')
|
||||
const { AsyncLocalStorage } = require('node:async_hooks')
|
||||
|
||||
const onFinished = require('on-finished')
|
||||
const compose = require('khoa-compose')
|
||||
const compose = require('koa-compose')
|
||||
const statuses = require('statuses')
|
||||
const { HttpError } = require('http-errors')
|
||||
|
||||
|
||||
Reference in New Issue
Block a user