From fa76131ba115bef56a60dc42a33a5daa96761c78 Mon Sep 17 00:00:00 2001 From: Hagai Cohen Date: Mon, 31 Jul 2017 17:57:07 +0300 Subject: [PATCH 1/3] chore(graphiql): update package and allow full websocket mode --- .../src/renderGraphiQL.ts | 98 +++++++++++-------- 1 file changed, 57 insertions(+), 41 deletions(-) diff --git a/packages/apollo-server-module-graphiql/src/renderGraphiQL.ts b/packages/apollo-server-module-graphiql/src/renderGraphiQL.ts index 6f771f37c17..f99ebc57f00 100644 --- a/packages/apollo-server-module-graphiql/src/renderGraphiQL.ts +++ b/packages/apollo-server-module-graphiql/src/renderGraphiQL.ts @@ -31,7 +31,7 @@ export type GraphiQLData = { // Current latest version of GraphiQL. const GRAPHIQL_VERSION = '0.11.2'; -const SUBSCRIPTIONS_TRANSPORT_VERSION = '0.7.0'; +const SUBSCRIPTIONS_TRANSPORT_VERSION = '0.8.2'; // Ensures string values are safe to be used within a - - - + + + + ${usingEditorTheme ? `` : ''} - ${usingSubscriptions ? - `` + + ${usingHttp ? + `` + : ''} + ${usingWs ? + `` + : ''} + ${usingWs && usingHttp ? '' : ''} +