├── .changeset ├── README.md └── config.json ├── .github ├── dependabot.yml ├── issue_template.md └── workflows │ ├── ci.yaml │ ├── preview-release.yml │ └── release.yml ├── .gitignore ├── .nvmrc ├── CHANGELOG.md ├── LICENSE ├── README.md ├── biome.json ├── examples ├── avatar.png ├── koa-router.ts ├── multer.ts ├── multipart.ts └── uploads │ └── .gitignore ├── package.json ├── pnpm-lock.yaml ├── src ├── index.test.ts ├── index.ts ├── types.ts └── utils │ ├── body-type-util.ts │ ├── parse-with-formidable.ts │ ├── patch-util.ts │ ├── string-method-to-enum-method.ts │ └── throwable-to-error.ts └── tsconfig.json /.changeset/README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/koajs/koa-body/HEAD/.changeset/README.md -------------------------------------------------------------------------------- /.changeset/config.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/koajs/koa-body/HEAD/.changeset/config.json -------------------------------------------------------------------------------- /.github/dependabot.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/koajs/koa-body/HEAD/.github/dependabot.yml -------------------------------------------------------------------------------- /.github/issue_template.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/koajs/koa-body/HEAD/.github/issue_template.md -------------------------------------------------------------------------------- /.github/workflows/ci.yaml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/koajs/koa-body/HEAD/.github/workflows/ci.yaml -------------------------------------------------------------------------------- /.github/workflows/preview-release.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/koajs/koa-body/HEAD/.github/workflows/preview-release.yml -------------------------------------------------------------------------------- /.github/workflows/release.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/koajs/koa-body/HEAD/.github/workflows/release.yml -------------------------------------------------------------------------------- /.gitignore: -------------------------------------------------------------------------------- 1 | node_modules 2 | dist 3 | .idea 4 | .tshy* 5 | 6 | -------------------------------------------------------------------------------- /.nvmrc: -------------------------------------------------------------------------------- 1 | v22.21.0 2 | -------------------------------------------------------------------------------- /CHANGELOG.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/koajs/koa-body/HEAD/CHANGELOG.md -------------------------------------------------------------------------------- /LICENSE: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/koajs/koa-body/HEAD/LICENSE -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/koajs/koa-body/HEAD/README.md -------------------------------------------------------------------------------- /biome.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/koajs/koa-body/HEAD/biome.json -------------------------------------------------------------------------------- /examples/avatar.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/koajs/koa-body/HEAD/examples/avatar.png -------------------------------------------------------------------------------- /examples/koa-router.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/koajs/koa-body/HEAD/examples/koa-router.ts -------------------------------------------------------------------------------- /examples/multer.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/koajs/koa-body/HEAD/examples/multer.ts -------------------------------------------------------------------------------- /examples/multipart.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/koajs/koa-body/HEAD/examples/multipart.ts -------------------------------------------------------------------------------- /examples/uploads/.gitignore: -------------------------------------------------------------------------------- 1 | * 2 | !.gitignore 3 | -------------------------------------------------------------------------------- /package.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/koajs/koa-body/HEAD/package.json -------------------------------------------------------------------------------- /pnpm-lock.yaml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/koajs/koa-body/HEAD/pnpm-lock.yaml -------------------------------------------------------------------------------- /src/index.test.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/koajs/koa-body/HEAD/src/index.test.ts -------------------------------------------------------------------------------- /src/index.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/koajs/koa-body/HEAD/src/index.ts -------------------------------------------------------------------------------- /src/types.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/koajs/koa-body/HEAD/src/types.ts -------------------------------------------------------------------------------- /src/utils/body-type-util.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/koajs/koa-body/HEAD/src/utils/body-type-util.ts -------------------------------------------------------------------------------- /src/utils/parse-with-formidable.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/koajs/koa-body/HEAD/src/utils/parse-with-formidable.ts -------------------------------------------------------------------------------- /src/utils/patch-util.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/koajs/koa-body/HEAD/src/utils/patch-util.ts -------------------------------------------------------------------------------- /src/utils/string-method-to-enum-method.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/koajs/koa-body/HEAD/src/utils/string-method-to-enum-method.ts -------------------------------------------------------------------------------- /src/utils/throwable-to-error.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/koajs/koa-body/HEAD/src/utils/throwable-to-error.ts -------------------------------------------------------------------------------- /tsconfig.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/koajs/koa-body/HEAD/tsconfig.json --------------------------------------------------------------------------------