commit 738a0ddcfec0b290f5d54137897c37705c52724e
parent 3410633db277602af4234c1dc29eea29fcc5cf89
Author: Konstantin Tarkus <hello@tarkus.me>
Date: Thu, 10 Mar 2016 17:45:01 +0300
Update npm modules
Diffstat:
4 files changed, 13 insertions(+), 14 deletions(-)
diff --git a/docs/recipes/how-to-integrate-disqus.md b/docs/recipes/how-to-integrate-disqus.md
@@ -6,7 +6,6 @@ https://disqus.com/admin/create/
```js
import React, { PropTypes } from 'react';
-import { canUseDOM } from 'fbjs/lib/ExecutionEnvironment';
const SHORTNAME = 'example';
const WEBSITE_URL = 'http://www.example.com';
@@ -47,7 +46,7 @@ class DisqusThread {
render() {
let { id, title, path, ...other} = this.props;
- if (canUseDOM) {
+ if (process.env.BROWSER) {
/* eslint-disable camelcase */
window.disqus_shortname = SHORTNAME;
window.disqus_identifier = id;
diff --git a/package.json b/package.json
@@ -7,7 +7,7 @@
"dependencies": {
"babel-polyfill": "6.6.1",
"babel-runtime": "6.6.1",
- "bluebird": "3.3.3",
+ "bluebird": "3.3.4",
"body-parser": "1.15.0",
"classnames": "2.2.3",
"cookie-parser": "1.4.1",
@@ -18,7 +18,7 @@
"fastclick": "1.0.6",
"fbjs": "0.7.2",
"front-matter": "2.0.6",
- "graphiql": "0.5.0",
+ "graphiql": "0.6.0",
"graphql": "0.4.18",
"history": "2.0.1",
"isomorphic-style-loader": "0.0.12",
@@ -38,11 +38,11 @@
"whatwg-fetch": "0.11.0"
},
"devDependencies": {
- "assets-webpack-plugin": "^3.3.0",
+ "assets-webpack-plugin": "^3.4.0",
"autoprefixer": "^6.3.3",
"babel-cli": "^6.6.5",
"babel-eslint": "^5.0.0",
- "babel-jest": "^9.0.1",
+ "babel-jest": "^9.0.2",
"babel-loader": "^6.2.4",
"babel-plugin-react-transform": "^2.0.2",
"babel-plugin-transform-runtime": "^6.6.0",
@@ -50,15 +50,15 @@
"babel-preset-react": "^6.5.0",
"babel-preset-stage-0": "^6.5.0",
"browser-sync": "^2.11.1",
- "core-js": "^2.1.3",
+ "core-js": "^2.1.4",
"css-loader": "^0.23.1",
"csscomb": "^3.1.8",
"del": "^2.2.0",
- "enzyme": "^2.0.0",
+ "enzyme": "^2.1.0",
"eslint": "^2.3.0",
"eslint-config-airbnb": "^6.1.0",
"eslint-loader": "^1.3.0",
- "eslint-plugin-react": "^4.2.0",
+ "eslint-plugin-react": "^4.2.1",
"estraverse-fb": "^1.3.1",
"extend": "^3.0.0",
"file-loader": "^0.8.5",
@@ -66,7 +66,7 @@
"git-repository": "^0.1.1",
"glob": "^7.0.3",
"jade-loader": "^0.8.0",
- "jest-cli": "^0.9.0",
+ "jest-cli": "^0.9.1",
"jscs": "^2.11.0",
"json-loader": "^0.5.4",
"mkdirp": "^0.5.1",
@@ -84,7 +84,7 @@
"replace": "^0.3.0",
"url-loader": "^0.5.7",
"webpack": "^1.12.14",
- "webpack-hot-middleware": "^2.9.1",
+ "webpack-hot-middleware": "^2.10.0",
"webpack-middleware": "^1.5.1"
},
"jest": {
diff --git a/src/data/queries/news.js b/src/data/queries/news.js
@@ -26,7 +26,7 @@ const news = {
return lastFetchTask;
}
- if ((new Date() - lastFetchTime) > 1000 * 3 /* 10 mins */) {
+ if ((new Date() - lastFetchTime) > 1000 * 60 * 10 /* 10 mins */) {
lastFetchTime = new Date();
lastFetchTask = fetch(url)
.then(response => response.json())
diff --git a/tools/start.js b/tools/start.js
@@ -83,8 +83,8 @@ async function start() {
.filter(compiler => compiler.options.target !== 'node')
.map(compiler => webpackHotMiddleware(compiler));
- var handleServerBundleComplete = () => { // eslint-disable-line no-var,vars-on-top
- runServer((err, host) => { // github.com/kriasoft/react-starter-kit/issues/490
+ let handleServerBundleComplete = () => {
+ runServer((err, host) => {
if (!err) {
const bs = Browsersync.create();
bs.init({