apollo-server-koa
Advanced tools
Comparing version 2.25.3 to 2.25.4
@@ -38,3 +38,3 @@ "use strict"; | ||
const fileUploadMiddleware = (uploadsConfig, server) => (ctx, next) => __awaiter(void 0, void 0, void 0, function* () { | ||
if (type_is_1.default(ctx.req, ['multipart/form-data'])) { | ||
if (!server.disableUploads() && type_is_1.default(ctx.req, ['multipart/form-data'])) { | ||
try { | ||
@@ -41,0 +41,0 @@ ctx.request.body = yield apollo_server_core_1.processFileUploads(ctx.req, ctx.res, uploadsConfig); |
{ | ||
"name": "apollo-server-koa", | ||
"version": "2.25.3", | ||
"version": "2.25.4", | ||
"description": "Production-ready Node.js GraphQL server for Koa", | ||
@@ -37,3 +37,3 @@ "main": "dist/index.js", | ||
"accepts": "^1.3.5", | ||
"apollo-server-core": "^2.25.3", | ||
"apollo-server-core": "^2.25.4", | ||
"apollo-server-types": "^0.9.0", | ||
@@ -48,3 +48,3 @@ "graphql-subscriptions": "^1.0.0", | ||
"devDependencies": { | ||
"apollo-server-integration-testsuite": "^2.25.3" | ||
"apollo-server-integration-testsuite": "^2.25.4" | ||
}, | ||
@@ -54,3 +54,3 @@ "peerDependencies": { | ||
}, | ||
"gitHead": "a725306525a99650af46effb72ae9afe780ed88b" | ||
"gitHead": "ae444b2916deb2fa37dbd8fa091201235dc2ec6d" | ||
} |
@@ -39,3 +39,3 @@ import Koa, { Middleware } from 'koa'; | ||
) => async (ctx: Koa.Context, next: Function) => { | ||
if (typeis(ctx.req, ['multipart/form-data'])) { | ||
if (!server.disableUploads() && typeis(ctx.req, ['multipart/form-data'])) { | ||
try { | ||
@@ -42,0 +42,0 @@ ctx.request.body = await processFileUploads( |
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
62343
Updatedapollo-server-core@^2.25.4