graphql-playground-middleware-express
Advanced tools
Comparing version 1.3.1 to 1.3.5
import { Request, Response } from 'express'; | ||
import { MiddlewareOptions } from 'graphql-playground-middleware'; | ||
import { MiddlewareOptions } from 'graphql-playground-html'; | ||
export declare type ExpressPlaygroundMiddleware = (req: Request, res: Response, next: () => void) => void; | ||
@@ -4,0 +4,0 @@ export declare type Register = (options: MiddlewareOptions) => ExpressPlaygroundMiddleware; |
@@ -11,3 +11,3 @@ "use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
var graphql_playground_middleware_1 = require("graphql-playground-middleware"); | ||
var graphql_playground_html_1 = require("graphql-playground-html"); | ||
/* tslint:disable */ | ||
@@ -19,3 +19,3 @@ var version = require('../package.json').version; | ||
res.setHeader('Content-Type', 'text/html'); | ||
res.write(graphql_playground_middleware_1.renderPlaygroundPage(middlewareOptions)); | ||
res.write(graphql_playground_html_1.renderPlaygroundPage(middlewareOptions)); | ||
res.end(); | ||
@@ -22,0 +22,0 @@ next(); |
{ | ||
"name": "graphql-playground-middleware-express", | ||
"version": "1.3.1", | ||
"version": "1.3.5", | ||
"homepage": "https://github.com/graphcool/graphql-playground/tree/master/packages/graphql-playground-middleware-express", | ||
@@ -34,9 +34,10 @@ "description": "GraphQL IDE for better development workflows (GraphQL Subscriptions, interactive docs & collaboration).", | ||
}, | ||
"dependencies": { | ||
"graphql-playground-html": "^1.3.5", | ||
"graphql-playground-middleware": "^1.2.1-beta.6" | ||
}, | ||
"typings": "dist/index.d.ts", | ||
"typescript": { | ||
"definition": "dist/index.d.ts" | ||
}, | ||
"dependencies": { | ||
"graphql-playground-middleware": "^1.2.1-beta.6" | ||
} | ||
} |
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
6594
3
+ Addedcommander@2.20.3(transitive)
+ Addedcssfilter@0.0.10(transitive)
+ Addedgraphql-playground-html@1.6.30(transitive)
+ Addedxss@1.0.15(transitive)