graphql-playground-middleware-koa
Advanced tools
Comparing version 1.6.8 to 1.6.9
"use strict"; | ||
var __assign = (this && this.__assign) || Object.assign || function(t) { | ||
for (var s, i = 1, n = arguments.length; i < n; i++) { | ||
s = arguments[i]; | ||
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p)) | ||
t[p] = s[p]; | ||
} | ||
return t; | ||
}; | ||
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) { | ||
@@ -47,6 +39,3 @@ return new (P || (P = Promise))(function (resolve, reject) { | ||
var graphql_playground_html_1 = require("graphql-playground-html"); | ||
/* tslint:disable-next-line */ | ||
var playgroundVersion = require('../package.json').playgroundVersion; | ||
var koa = function (options) { | ||
var middlewareOptions = __assign({}, options, { version: playgroundVersion }); | ||
return function voyager(ctx, next) { | ||
@@ -60,3 +49,3 @@ return __awaiter(this, void 0, void 0, function () { | ||
_a = ctx; | ||
return [4 /*yield*/, graphql_playground_html_1.renderPlaygroundPage(middlewareOptions)]; | ||
return [4 /*yield*/, graphql_playground_html_1.renderPlaygroundPage(options)]; | ||
case 1: | ||
@@ -63,0 +52,0 @@ _a.body = _b.sent(); |
{ | ||
"name": "graphql-playground-middleware-koa", | ||
"version": "1.6.8", | ||
"version": "1.6.9", | ||
"homepage": "https://github.com/graphcool/graphql-playground/tree/master/packages/graphql-playground-middleware-koa", | ||
@@ -17,3 +17,2 @@ "description": "GraphQL IDE for better development workflows (GraphQL Subscriptions, interactive docs & collaboration).", | ||
], | ||
"playgroundVersion": "1.7.8", | ||
"scripts": { | ||
@@ -35,3 +34,3 @@ "build": "rimraf dist && tsc", | ||
"@types/node": "9.4.0", | ||
"koa": "^2.5.1", | ||
"koa": "^2.6.2", | ||
"rimraf": "2.6.2", | ||
@@ -45,4 +44,4 @@ "typescript": "2.6.2" | ||
"dependencies": { | ||
"graphql-playground-html": "1.6.6" | ||
"graphql-playground-html": "1.6.10" | ||
} | ||
} |
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
6309
72
+ Addedgraphql-playground-html@1.6.10(transitive)
- Removedgraphql-playground-html@1.6.6(transitive)