🚀 Big News: Socket Acquires Coana to Bring Reachability Analysis to Every Appsec Team.Learn more

graphql-playground-middleware-hapi

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

graphql-playground-middleware-hapi - npm Package Compare versions

Comparing version

to
1.6.10

@@ -21,5 +21,3 @@ "use strict";

var graphql_playground_html_1 = require("graphql-playground-html");
var pkg = require('../package.json');
var plugin = {
pkg: pkg,
register: function (server, options) {

@@ -30,3 +28,3 @@ if (arguments.length !== 2) {

var path = options.path, _a = options.route, config = _a === void 0 ? {} : _a, rest = __rest(options, ["path", "route"]);
var middlewareOptions = __assign({}, rest, { version: pkg.playgroundVersion });
var middlewareOptions = __assign({}, rest);
server.route({

@@ -36,7 +34,9 @@ method: 'GET',

config: config,
handler: function (request, h) { return h.response(graphql_playground_html_1.renderPlaygroundPage(middlewareOptions)).type('text/html'); }
handler: function (request, h) {
return h.response(graphql_playground_html_1.renderPlaygroundPage(middlewareOptions)).type('text/html');
},
});
}
},
};
exports.default = plugin;
//# sourceMappingURL=index.js.map
{
"name": "graphql-playground-middleware-hapi",
"version": "1.6.2",
"version": "1.6.10",
"homepage": "https://github.com/graphcool/graphql-playground/tree/master/packages/graphql-playground-middleware-hapi",

@@ -18,3 +18,2 @@ "description": "GraphQL IDE for better development workflows (GraphQL Subscriptions, interactive docs & collaboration).",

],
"playgroundVersion": "1.6.7",
"scripts": {

@@ -36,2 +35,3 @@ "build": "rimraf dist && tsc",

"@types/node": "9.4.0",
"hapi": "^18.0.0",
"rimraf": "2.6.2",

@@ -45,4 +45,4 @@ "typescript": "2.6.2"

"dependencies": {
"graphql-playground-html": "1.5.4"
"graphql-playground-html": "1.6.12"
}
}

Sorry, the diff of this file is not supported yet