node_modules ignore

This commit is contained in:
2025-05-08 23:43:47 +02:00
parent e19d52f172
commit 4574544c9f
65041 changed files with 10593536 additions and 0 deletions

42
server/node_modules/koa-body/lib/utils/patch-util.js generated vendored Normal file
View File

@@ -0,0 +1,42 @@
"use strict";
var __importDefault = (this && this.__importDefault) || function (mod) {
return (mod && mod.__esModule) ? mod : { "default": mod };
};
Object.defineProperty(exports, "__esModule", { value: true });
exports.patchNodeAndKoa = void 0;
const unparsed_1 = __importDefault(require("../unparsed"));
function patchNodeAndKoa(ctx, body, options) {
const { patchKoa, patchNode, isMultipart, includeUnparsed, isText } = options;
if (patchNode) {
if (isMultipart) {
ctx.req.body = body.fields;
ctx.req.files = body.files;
}
else if (includeUnparsed) {
ctx.req.body = body.parsed || {};
if (!isText) {
ctx.req.body[unparsed_1.default] = body.raw;
}
}
else {
ctx.req.body = body;
}
}
if (patchKoa) {
if (isMultipart) {
ctx.request.body = body.fields;
ctx.request.files = body.files;
}
else if (includeUnparsed) {
ctx.request.body = body.parsed || {};
if (!isText) {
ctx.request.body[unparsed_1.default] = body.raw;
}
}
else {
ctx.request.body = body;
}
}
}
exports.patchNodeAndKoa = patchNodeAndKoa;
//# sourceMappingURL=patch-util.js.map