From e30c8cfca869b98d544e43f0dd07bcb6a709914a Mon Sep 17 00:00:00 2001 From: imolorhe Date: Tue, 5 Dec 2017 08:58:01 +0100 Subject: [PATCH] Upgraded to v1.5.6 Fixed backward compatibility bug with HTTP verbs. --- chrome-ext-files/manifest.json | 2 +- package.json | 2 +- src/app/containers/window/window.component.ts | 5 +++++ 3 files changed, 7 insertions(+), 2 deletions(-) diff --git a/chrome-ext-files/manifest.json b/chrome-ext-files/manifest.json index 1d87533f78..1f3754563f 100644 --- a/chrome-ext-files/manifest.json +++ b/chrome-ext-files/manifest.json @@ -3,7 +3,7 @@ "name": "Altair GraphQL Client", "short_name": "Altair", "description": "The only graphQL client you'll ever need.", - "version": "1.5.5", + "version": "1.5.6", "icons": { "16": "assets/img/altair_logo_128.png", "48": "assets/img/altair_logo_128.png", diff --git a/package.json b/package.json index f9248bc0ce..486b64e2f0 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "altair", - "version": "1.5.5", + "version": "1.5.6", "license": "MIT", "author": "Samuel Imolorhe (https://sirmuel.design/)", "description": "The best graphQL client you will ever need", diff --git a/src/app/containers/window/window.component.ts b/src/app/containers/window/window.component.ts index 9b4b75e25c..fdee03e82a 100644 --- a/src/app/containers/window/window.component.ts +++ b/src/app/containers/window/window.component.ts @@ -127,6 +127,11 @@ export class WindowComponent implements OnInit { this.store.dispatch(new schemaActions.SetSchemaAction(this.windowId, schema)); } } + + // Backward compatibility: set the HTTP verb if it is not set. + if (!this.httpVerb) { + this.store.dispatch(new queryActions.SetHTTPMethodAction({ httpVerb: 'POST' }, this.windowId)); + } // console.log(data.query); });