Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

graphql-sse

Package Overview
Dependencies
Maintainers
1
Versions
35
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

graphql-sse - npm Package Compare versions

Comparing version 2.5.0 to 2.5.1

8

lib/use/koa.js

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

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