Skip to content

Commit

Permalink
fix(koa): Replace koa-bodyparser with koa-body (#3093)
Browse files Browse the repository at this point in the history
  • Loading branch information
8BallBomBom committed Mar 8, 2023
1 parent 98fdda5 commit 2456bf8
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 4 deletions.
2 changes: 1 addition & 1 deletion docs/api/koa.md
Original file line number Diff line number Diff line change
Expand Up @@ -253,7 +253,7 @@ app.use(

### bodyParser

A reference to the [koa-bodyparser](https://github.com/koajs/bodyparser) module.
A reference to the [koa-body](https://github.com/koajs/koa-body) module.

### cors

Expand Down
3 changes: 1 addition & 2 deletions packages/koa/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -56,12 +56,11 @@
"@feathersjs/transport-commons": "^5.0.0",
"@koa/cors": "^4.0.0",
"@types/koa": "^2.13.5",
"@types/koa-bodyparser": "^4.3.10",
"@types/koa-qs": "^2.0.0",
"@types/koa-static": "^4.0.2",
"@types/koa__cors": "^3.3.1",
"koa": "^2.14.1",
"koa-bodyparser": "^4.3.0",
"koa-body": "^6.0.1",
"koa-compose": "^4.1.0",
"koa-qs": "^3.0.0",
"koa-static": "^5.0.0"
Expand Down
2 changes: 1 addition & 1 deletion packages/koa/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import koaQs from 'koa-qs'
import { Application as FeathersApplication } from '@feathersjs/feathers'
import { routing } from '@feathersjs/transport-commons'
import { createDebug } from '@feathersjs/commons'
import bodyParser from 'koa-bodyparser'
import { koaBody as bodyParser } from 'koa-body'
import cors from '@koa/cors'
import serveStatic from 'koa-static'

Expand Down

0 comments on commit 2456bf8

Please sign in to comment.