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

graphql-http

Package Overview
Dependencies
Maintainers
1
Versions
37
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

graphql-http - npm Package Compare versions

Comparing version 1.10.0 to 1.11.0

lib/use/koa.d.mts

11

package.json
{
"name": "graphql-http",
"version": "1.10.0",
"version": "1.11.0",
"description": "Simple, pluggable, zero-dependency, GraphQL over HTTP Protocol compliant server and client",

@@ -58,2 +58,7 @@ "keywords": [

},
"./lib/use/koa": {
"types": "./lib/use/koa.d.ts",
"require": "./lib/use/koa.js",
"import": "./lib/use/koa.mjs"
},
"./package.json": "./package.json"

@@ -109,2 +114,4 @@ },

"@types/jest": "^29.2.4",
"@types/koa": "^2.13.5",
"@types/koa-mount": "^4.0.2",
"@typescript-eslint/eslint-plugin": "^5.47.0",

@@ -121,2 +128,4 @@ "@typescript-eslint/parser": "^5.47.0",

"jest-jasmine2": "^29.3.1",
"koa": "^2.14.1",
"koa-mount": "^4.0.0",
"node-fetch": "^3.3.0",

@@ -123,0 +132,0 @@ "prettier": "^2.8.1",

@@ -144,2 +144,17 @@ <div align="center">

##### With [`Koa`](https://koajs.com/)
```js
import Koa from 'koa'; // yarn add koa
import mount from 'koa-mount'; // yarn add koa-mount
import { createHandler } from 'graphql-http/lib/use/koa';
import { schema } from './previous-step';
const app = new Koa();
app.use(mount('/graphql', createHandler({ schema })));
app.listen({ port: 4000 });
console.log('Listening to port 4000');
```
##### With [`Deno`](https://deno.land/)

@@ -737,2 +752,3 @@

| [hotchocolate](https://chillicream.com/docs/hotchocolate) | [✅ Compliant](/implementations/hotchocolate/README.md) |
| [pioneer](https://pioneer.dexclaimation.com/) | [✅ Compliant](/implementations/pioneer/README.md) |
| [postgraphile](https://www.graphile.org/postgraphile/) | [✅ Compliant](/implementations/postgraphile/README.md) |

@@ -739,0 +755,0 @@ | [apollo-server](https://www.apollographql.com/docs/apollo-server/) | [✅ Compliant](/implementations/apollo-server/README.md) |

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