Big News: Socket raises $60M Series C at a $1B valuation to secure software supply chains for AI-driven development.Announcement
Sign In

@zenweb/body

Package Overview
Dependencies
Maintainers
1
Versions
56
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@zenweb/body - npm Package Compare versions

Comparing version
2.0.0
to
2.0.1
+2
-3
package.json
{
"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": {

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"}