ff-stream-web

git clone git://archive.git.mtrnord.blog/MTRNord/ff-stream-web.git
Log | Files | Refs | README | LICENSE

commit bd6ac863bb12def1f0df6ddf282e72c013b06f39
parent eb0da472d2b4bbc8b69dc2e1be41edc2384c738c
Author: Konstantin Tarkus <hello@tarkus.me>
Date:   Sat, 27 Feb 2016 18:07:11 +0300

Update babel-loader; fix ESLint warning in routes.js

Diffstat:
Mpackage.json | 6+++---
Msrc/routes.js | 3++-
2 files changed, 5 insertions(+), 4 deletions(-)

diff --git a/package.json b/package.json @@ -5,8 +5,8 @@ "npm": ">=3.3 <4" }, "dependencies": { - "babel-polyfill": "^6.5.0", - "babel-runtime": "^6.5.0", + "babel-polyfill": "6.5.0", + "babel-runtime": "6.5.0", "bluebird": "3.3.3", "body-parser": "1.15.0", "classnames": "2.2.3", @@ -40,7 +40,7 @@ "autoprefixer": "^6.3.3", "babel-cli": "^6.5.1", "babel-eslint": "^5.0.0", - "babel-loader": "^6.2.3", + "babel-loader": "^6.2.4", "babel-plugin-react-transform": "^2.0.0", "babel-plugin-transform-runtime": "^6.5.2", "babel-preset-es2015": "^6.5.0", diff --git a/src/routes.js b/src/routes.js @@ -31,7 +31,8 @@ const router = new Router(on => { on('/register', async () => <RegisterPage />); on('*', async (state) => { - const response = await fetch(`/graphql?query={content(path:"${state.path}"){path,title,content,component}}`); + const query = `/graphql?query={content(path:"${state.path}"){path,title,content,component}}`; + const response = await fetch(query); const { data } = await response.json(); return data && data.content && <ContentPage {...data.content} />; });