@zenweb/body
Advanced tools
+2
-3
| { | ||
| "name": "@zenweb/body", | ||
| "version": "2.0.0", | ||
| "version": "2.0.1", | ||
| "description": "Zenweb Body module", | ||
@@ -8,4 +8,3 @@ "exports": "./dist/index.js", | ||
| "scripts": { | ||
| "prepublishOnly": "tsc", | ||
| "test": "echo \"Error: no test specified\" && exit 1" | ||
| "prepublishOnly": "rm -fr dist && tsc" | ||
| }, | ||
@@ -12,0 +11,0 @@ "author": { |
+9
-0
| import { Core } from '@zenweb/core'; | ||
| import * as koaBody from 'koa-body'; | ||
| import { Files } from 'formidable'; | ||
| export { IKoaBodyOptions as BodyOption } from 'koa-body'; | ||
@@ -8,1 +9,9 @@ | ||
| } | ||
| declare module 'koa' { | ||
| interface Request { | ||
| // 不知为何 typescript 找不到 koa-body 中的 ts 定义,这里重复添加一下 | ||
| body?: any; | ||
| files?: Files; | ||
| } | ||
| } |
| import { Core } from '@zenweb/core'; | ||
| import * as koaBody from 'koa-body'; | ||
| export { IKoaBodyOptions as BodyOption } from 'koa-body'; | ||
| export declare function setup(core: Core, options?: koaBody.IKoaBodyOptions): void; |
| "use strict"; | ||
| Object.defineProperty(exports, "__esModule", { value: true }); | ||
| exports.setup = void 0; | ||
| const koaBody = require("koa-body"); | ||
| function setup(core, options) { | ||
| core.use(koaBody(options)); | ||
| } | ||
| exports.setup = setup; | ||
| //# sourceMappingURL=index.js.map |
| {"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":";;;AACA,oCAAoC;AAGpC,SAAgB,KAAK,CAAC,IAAU,EAAE,OAAiC;IACjE,IAAI,CAAC,GAAG,CAAC,OAAO,CAAC,OAAO,CAAC,CAAC,CAAC;AAC7B,CAAC;AAFD,sBAEC"} |
No tests
QualityPackage does not have any tests. This is a strong signal of a poorly maintained or low quality package.
Found 1 instance in 1 package
1
-50%1564
-28.19%4
-42.86%34
-10.53%