graphql-sse
Advanced tools
Comparing version 2.5.0 to 2.5.1
@@ -55,5 +55,7 @@ "use strict"; | ||
body: () => { | ||
if (ctx.body) { | ||
// in case koa has a body parser | ||
return ctx.body; | ||
// in case koa has a body parser | ||
const body = ctx.request.body || | ||
ctx.req.body; | ||
if (body) { | ||
return body; | ||
} | ||
@@ -60,0 +62,0 @@ return new Promise((resolve) => { |
{ | ||
"name": "graphql-sse", | ||
"version": "2.5.0", | ||
"version": "2.5.1", | ||
"description": "Zero-dependency, HTTP/1 safe, simple, GraphQL over Server-Sent Events Protocol server and client", | ||
@@ -115,2 +115,3 @@ "keywords": [ | ||
"@types/koa": "^2.13.12", | ||
"@types/koa-bodyparser": "^4", | ||
"@types/koa-mount": "^4.0.5", | ||
@@ -127,2 +128,3 @@ "@typescript-eslint/eslint-plugin": "^6.13.1", | ||
"koa": "^2.14.2", | ||
"koa-bodyparser": "^4.4.1", | ||
"koa-mount": "^4.0.0", | ||
@@ -129,0 +131,0 @@ "prettier": "^3.1.0", |
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
307498
5998
32