graphql-playground-middleware-hapi
GraphQL IDE for better development workflows (GraphQL Subscriptions, interactive docs & collaboration).
Last updated 3 years ago by acao .
MIT · Repository · Bugs · Original npm · Tarball · package.json
$ npm install graphql-playground-middleware-hapi 
SYNC missed versions from official npm registry.

graphql-playground-middleware-hapi

Koa middleware to expose an endpoint for the GraphQL Playground IDE SECURITY NOTE: All versions of graphql-playground-middleware-hapi until 1.6.13 or later have a security vulnerability when unsanitized user input is used while invoking hapiPlayground(). Read more below

Installation

Using yarn:

yarn add graphql-playground-middleware-hapi

Or npm:

npm install graphql-playground-middleware-hapi --save

Usage

See full example in examples/basic.

minimal example:

const hapiPlayground = require('graphql-playground-middleware-hapi').default

const playground = {
  plugin: hapiPlayground,
  options: {
    path: '/playground',
    endpoint: '/graphql',
  },
}

const app = new Hapi.server({
  port: 3000,
})

app.register(playground)
;(async () => await app.start())()

Security Notes

All versions before 1.6.13 were vulnerable to user-defined input to hapiPlayground(). Read more in the security notes

Security Upgrade Steps

To fix the issue, you can upgrade to 1.6.13 or later. If you aren't able to upgrade, see the security notes for a workaround.

yarn: yarn add graphql-playground-middleware-hapi@^1.6.13

npm: npm install --save graphql-playground-middleware-hapi@^1.6.13

Current Tags

  • 1.3.0-beta.3                                ...           beta (7 years ago)
  • 1.6.20                                ...           latest (3 years ago)

42 Versions

  • 1.6.20                                ...           3 years ago
  • 1.6.19                                ...           4 years ago
  • 1.6.18                                ...           4 years ago
  • 1.6.17                                ...           4 years ago
  • 1.6.16                                ...           4 years ago
  • 1.6.15                                ...           4 years ago
  • 1.6.13                                ...           4 years ago
  • 1.6.12                                ...           4 years ago
  • 1.6.11                                ...           6 years ago
  • 1.6.10                                ...           6 years ago
  • 1.7.9                                ...           6 years ago
  • 1.7.8                                ...           6 years ago
  • 1.7.7                                ...           6 years ago
  • 1.7.6                                ...           6 years ago
  • 1.7.5                                ...           6 years ago
  • 1.7.4                                ...           6 years ago
  • 1.7.3                                ...           6 years ago
  • 1.7.2                                ...           6 years ago
  • 1.7.1                                ...           6 years ago
  • 1.7.0                                ...           6 years ago
  • 1.6.2                                ...           6 years ago
  • 1.6.1                                ...           7 years ago
  • 1.6.0                                ...           7 years ago
  • 1.5.2                                ...           7 years ago
  • 1.5.1                                ...           7 years ago
  • 1.5.0                                ...           7 years ago
  • 1.4.0                                ...           7 years ago
  • 1.3.8                                ...           7 years ago
  • 1.3.7                                ...           7 years ago
  • 1.3.6                                ...           7 years ago
  • 1.3.5                                ...           7 years ago
  • 1.3.1                                ...           7 years ago
  • 1.3.0                                ...           7 years ago
  • 1.3.0-beta.3                                ...           7 years ago
  • 1.3.0-beta.2                                ...           7 years ago
  • 1.3.0-beta.1                                ...           7 years ago
  • 1.2.1-beta.7                                ...           7 years ago
  • 1.2.1-beta.4                                ...           7 years ago
  • 1.2.0                                ...           7 years ago
  • 1.1.4                                ...           7 years ago
  • 1.1.3                                ...           7 years ago
  • 1.1.2                                ...           7 years ago
Downloads
Total 1
Today 0
This Week 0
This Month 0
Last Day 0
Last Week 0
Last Month 0
Dependencies (1)
Dev Dependencies (4)
Dependents (1)

© 2010 - cnpmjs.org x YWFE | Home | YWFE