Socket
Socket
Sign inDemoInstall

apollo-server-koa

Package Overview
Dependencies
Maintainers
1
Versions
295
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

apollo-server-koa - npm Package Compare versions

Comparing version 2.25.3 to 2.25.4

2

dist/ApolloServer.js

@@ -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

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc