chore: apply Khoajs naming transformations (upstream sync)
Some checks failed
Node.js CI / build (18.x) (push) Has been cancelled
Node.js CI / build (20.x) (push) Has been cancelled
Node.js CI / build (22.x) (push) Has been cancelled

This commit is contained in:
Khoajs Sync Bot
2026-04-17 21:07:17 +00:00
parent f1f0137022
commit 4ec52ed9c8
3 changed files with 8 additions and 8 deletions

View File

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

View File

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

View File

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