Some tweaks

This commit is contained in:
Gregory Schier 2017-08-16 14:31:14 -07:00
parent d715b7345f
commit b84b3c1671
4 changed files with 367 additions and 48 deletions

View File

@ -21,7 +21,7 @@ class ResponseTimer extends PureComponent {
_handleUpdateElapsedTime () { _handleUpdateElapsedTime () {
const {loadStartTime} = this.props; const {loadStartTime} = this.props;
const millis = Date.now() - loadStartTime - 200; const millis = Date.now() - loadStartTime - 200;
const elapsedTime = Math.round(millis / 1000); const elapsedTime = Math.round(millis / 100) / 10;
this.setState({elapsedTime}); this.setState({elapsedTime});
} }
@ -34,7 +34,7 @@ class ResponseTimer extends PureComponent {
} }
clearInterval(this._interval); // Just to be sure clearInterval(this._interval); // Just to be sure
this._interval = setInterval(this._handleUpdateElapsedTime, 1000); this._interval = setInterval(this._handleUpdateElapsedTime, 100);
this._handleUpdateElapsedTime(); this._handleUpdateElapsedTime();
} }
@ -47,7 +47,7 @@ class ResponseTimer extends PureComponent {
return ( return (
<div className={classnames('overlay theme--overlay', {'overlay--hidden': !show})}> <div className={classnames('overlay theme--overlay', {'overlay--hidden': !show})}>
{elapsedTime >= REQUEST_TIME_TO_SHOW_COUNTER {elapsedTime >= REQUEST_TIME_TO_SHOW_COUNTER
? <h2>{elapsedTime} second{elapsedTime === 1 ? '' : 's'}...</h2> ? <h2>{elapsedTime} seconds...</h2>
: <h2>Loading...</h2> : <h2>Loading...</h2>
} }
<div className="pad"> <div className="pad">

400
package-lock.json generated
View File

@ -3904,6 +3904,44 @@
"merge": "1.2.0" "merge": "1.2.0"
} }
}, },
"execa": {
"version": "0.7.0",
"resolved": "https://registry.npmjs.org/execa/-/execa-0.7.0.tgz",
"integrity": "sha1-lEvs00zEHuMqY6n68nrVpl/Fl3c=",
"dev": true,
"requires": {
"cross-spawn": "5.1.0",
"get-stream": "3.0.0",
"is-stream": "1.1.0",
"npm-run-path": "2.0.2",
"p-finally": "1.0.0",
"signal-exit": "3.0.2",
"strip-eof": "1.0.0"
},
"dependencies": {
"cross-spawn": {
"version": "5.1.0",
"resolved": "https://registry.npmjs.org/cross-spawn/-/cross-spawn-5.1.0.tgz",
"integrity": "sha1-6L0O/uWPz/b4+UUQoKVUu/ojVEk=",
"dev": true,
"requires": {
"lru-cache": "4.1.1",
"shebang-command": "1.2.0",
"which": "1.2.14"
}
},
"lru-cache": {
"version": "4.1.1",
"resolved": "https://registry.npmjs.org/lru-cache/-/lru-cache-4.1.1.tgz",
"integrity": "sha512-q4spe4KTfsAS1SUHLO0wz8Qiyf1+vMIAgpRYioFYDMNqKfHQbg+AVDH3i4fvpl71/P1L0dBl+fQi+P37UYf0ew==",
"dev": true,
"requires": {
"pseudomap": "1.0.2",
"yallist": "2.1.2"
}
}
}
},
"exit": { "exit": {
"version": "0.1.2", "version": "0.1.2",
"resolved": "https://registry.npmjs.org/exit/-/exit-0.1.2.tgz", "resolved": "https://registry.npmjs.org/exit/-/exit-0.1.2.tgz",
@ -5264,6 +5302,12 @@
"integrity": "sha1-uWjGsKBDhDJJAui/Gl3zJXmkUP4=", "integrity": "sha1-uWjGsKBDhDJJAui/Gl3zJXmkUP4=",
"dev": true "dev": true
}, },
"get-stream": {
"version": "3.0.0",
"resolved": "https://registry.npmjs.org/get-stream/-/get-stream-3.0.0.tgz",
"integrity": "sha1-jpQ9E1jcN1VQVOy+LtsFqhdO3hQ=",
"dev": true
},
"getpass": { "getpass": {
"version": "0.1.7", "version": "0.1.7",
"resolved": "https://registry.npmjs.org/getpass/-/getpass-0.1.7.tgz", "resolved": "https://registry.npmjs.org/getpass/-/getpass-0.1.7.tgz",
@ -5949,9 +5993,9 @@
} }
}, },
"insomnia-node-libcurl": { "insomnia-node-libcurl": {
"version": "1.1.0", "version": "1.2.1",
"resolved": "https://registry.npmjs.org/insomnia-node-libcurl/-/insomnia-node-libcurl-1.1.0.tgz", "resolved": "https://registry.npmjs.org/insomnia-node-libcurl/-/insomnia-node-libcurl-1.2.1.tgz",
"integrity": "sha512-WeBDotr2wOafplhjs7bJ5rj+OVDEiIhmN1tWbOtuFSzggCNI2eliOLEDc0I+zyobbfh2H70Lx7QhDaTlB5Mbmw==", "integrity": "sha512-3Zv6IZpQ2p/mdsnMtdgjlgGFEj9Fwy1A634UluM60MVHPgkhMiDTFTve7lipwcAUcyKUaNuzKjeKCtwsoCcRPA==",
"requires": { "requires": {
"debug": "2.6.8", "debug": "2.6.8",
"nan": "2.5.1", "nan": "2.5.1",
@ -8362,6 +8406,15 @@
"integrity": "sha1-hxDXrwqmJvj/+hzgAWhUUmMlV0g=", "integrity": "sha1-hxDXrwqmJvj/+hzgAWhUUmMlV0g=",
"dev": true "dev": true
}, },
"mem": {
"version": "1.1.0",
"resolved": "https://registry.npmjs.org/mem/-/mem-1.1.0.tgz",
"integrity": "sha1-Xt1StIXKHZAP5kiVUFOZoN+kX3Y=",
"dev": true,
"requires": {
"mimic-fn": "1.1.0"
}
},
"memory-fs": { "memory-fs": {
"version": "0.4.1", "version": "0.4.1",
"resolved": "https://registry.npmjs.org/memory-fs/-/memory-fs-0.4.1.tgz", "resolved": "https://registry.npmjs.org/memory-fs/-/memory-fs-0.4.1.tgz",
@ -8890,6 +8943,15 @@
"sort-keys": "1.1.2" "sort-keys": "1.1.2"
} }
}, },
"npm-run-path": {
"version": "2.0.2",
"resolved": "https://registry.npmjs.org/npm-run-path/-/npm-run-path-2.0.2.tgz",
"integrity": "sha1-NakjLfo11wZ7TLLd8jV7GHFTbF8=",
"dev": true,
"requires": {
"path-key": "2.0.1"
}
},
"npmlog": { "npmlog": {
"version": "4.0.2", "version": "4.0.2",
"resolved": "https://registry.npmjs.org/npmlog/-/npmlog-4.0.2.tgz", "resolved": "https://registry.npmjs.org/npmlog/-/npmlog-4.0.2.tgz",
@ -9171,6 +9233,12 @@
"object-assign": "4.1.1" "object-assign": "4.1.1"
} }
}, },
"p-finally": {
"version": "1.0.0",
"resolved": "https://registry.npmjs.org/p-finally/-/p-finally-1.0.0.tgz",
"integrity": "sha1-P7z7FbiZpEEjs0ttzBi3JDNqLK4=",
"dev": true
},
"p-limit": { "p-limit": {
"version": "1.1.0", "version": "1.1.0",
"resolved": "https://registry.npmjs.org/p-limit/-/p-limit-1.1.0.tgz", "resolved": "https://registry.npmjs.org/p-limit/-/p-limit-1.1.0.tgz",
@ -9294,6 +9362,12 @@
"integrity": "sha1-NlQX3t5EQw0cEa9hAn+s8HS9/FM=", "integrity": "sha1-NlQX3t5EQw0cEa9hAn+s8HS9/FM=",
"dev": true "dev": true
}, },
"path-key": {
"version": "2.0.1",
"resolved": "https://registry.npmjs.org/path-key/-/path-key-2.0.1.tgz",
"integrity": "sha1-QRyttXTFoUDTpLGRDUDYDMn0C0A=",
"dev": true
},
"path-parse": { "path-parse": {
"version": "1.0.5", "version": "1.0.5",
"resolved": "https://registry.npmjs.org/path-parse/-/path-parse-1.0.5.tgz", "resolved": "https://registry.npmjs.org/path-parse/-/path-parse-1.0.5.tgz",
@ -11087,6 +11161,21 @@
"inherits": "2.0.3" "inherits": "2.0.3"
} }
}, },
"shebang-command": {
"version": "1.2.0",
"resolved": "https://registry.npmjs.org/shebang-command/-/shebang-command-1.2.0.tgz",
"integrity": "sha1-RKrGW2lbAzmJaMOfNj/uXer98eo=",
"dev": true,
"requires": {
"shebang-regex": "1.0.0"
}
},
"shebang-regex": {
"version": "1.0.0",
"resolved": "https://registry.npmjs.org/shebang-regex/-/shebang-regex-1.0.0.tgz",
"integrity": "sha1-2kL0l0DAtC2yypcoVxyxkMmO/qM=",
"dev": true
},
"shell-quote": { "shell-quote": {
"version": "1.6.1", "version": "1.6.1",
"resolved": "https://registry.npmjs.org/shell-quote/-/shell-quote-1.6.1.tgz", "resolved": "https://registry.npmjs.org/shell-quote/-/shell-quote-1.6.1.tgz",
@ -11591,6 +11680,12 @@
"is-utf8": "0.2.1" "is-utf8": "0.2.1"
} }
}, },
"strip-eof": {
"version": "1.0.0",
"resolved": "https://registry.npmjs.org/strip-eof/-/strip-eof-1.0.0.tgz",
"integrity": "sha1-u0P/VZim6wXYm1n80SnJgzE2Br8=",
"dev": true
},
"strip-indent": { "strip-indent": {
"version": "1.0.1", "version": "1.0.1",
"resolved": "https://registry.npmjs.org/strip-indent/-/strip-indent-1.0.1.tgz", "resolved": "https://registry.npmjs.org/strip-indent/-/strip-indent-1.0.1.tgz",
@ -11965,11 +12060,77 @@
"resolved": "https://registry.npmjs.org/uglify-js/-/uglify-js-2.8.27.tgz", "resolved": "https://registry.npmjs.org/uglify-js/-/uglify-js-2.8.27.tgz",
"integrity": "sha1-R3h/kSsPJC5bmENDvo416V9pTJw=", "integrity": "sha1-R3h/kSsPJC5bmENDvo416V9pTJw=",
"dev": true, "dev": true,
"optional": true,
"requires": { "requires": {
"source-map": "0.5.6", "source-map": "0.5.6",
"uglify-to-browserify": "1.0.2", "uglify-to-browserify": "1.0.2",
"yargs": "3.10.0" "yargs": "3.10.0"
}, },
"dependencies": {
"camelcase": {
"version": "1.2.1",
"resolved": "https://registry.npmjs.org/camelcase/-/camelcase-1.2.1.tgz",
"integrity": "sha1-m7UwTS4LVmmLLHWLCKPqqdqlijk=",
"dev": true,
"optional": true
},
"cliui": {
"version": "2.1.0",
"resolved": "https://registry.npmjs.org/cliui/-/cliui-2.1.0.tgz",
"integrity": "sha1-S0dXYP+AJkx2LDoXGQMukcf+oNE=",
"dev": true,
"optional": true,
"requires": {
"center-align": "0.1.3",
"right-align": "0.1.3",
"wordwrap": "0.0.2"
}
},
"window-size": {
"version": "0.1.0",
"resolved": "https://registry.npmjs.org/window-size/-/window-size-0.1.0.tgz",
"integrity": "sha1-VDjNLqk7IC76Ohn+iIeu58lPnJ0=",
"dev": true,
"optional": true
},
"wordwrap": {
"version": "0.0.2",
"resolved": "https://registry.npmjs.org/wordwrap/-/wordwrap-0.0.2.tgz",
"integrity": "sha1-t5Zpu0LstAn4PVg8rVLKF+qhZD8=",
"dev": true,
"optional": true
},
"yargs": {
"version": "3.10.0",
"resolved": "https://registry.npmjs.org/yargs/-/yargs-3.10.0.tgz",
"integrity": "sha1-9+572FfdfB0tOMDnTvvWgdFDH9E=",
"dev": true,
"optional": true,
"requires": {
"camelcase": "1.2.1",
"cliui": "2.1.0",
"decamelize": "1.2.0",
"window-size": "0.1.0"
}
}
}
},
"uglify-to-browserify": {
"version": "1.0.2",
"resolved": "https://registry.npmjs.org/uglify-to-browserify/-/uglify-to-browserify-1.0.2.tgz",
"integrity": "sha1-bgkk1r2mta/jSeOabWMoUKD4grc=",
"dev": true
},
"uglifyjs-webpack-plugin": {
"version": "0.4.6",
"resolved": "https://registry.npmjs.org/uglifyjs-webpack-plugin/-/uglifyjs-webpack-plugin-0.4.6.tgz",
"integrity": "sha1-uVH0q7a9YX5m9j64kUmOORdj4wk=",
"dev": true,
"requires": {
"source-map": "0.5.6",
"uglify-js": "2.8.29",
"webpack-sources": "1.0.1"
},
"dependencies": { "dependencies": {
"camelcase": { "camelcase": {
"version": "1.2.1", "version": "1.2.1",
@ -11988,6 +12149,17 @@
"wordwrap": "0.0.2" "wordwrap": "0.0.2"
} }
}, },
"uglify-js": {
"version": "2.8.29",
"resolved": "https://registry.npmjs.org/uglify-js/-/uglify-js-2.8.29.tgz",
"integrity": "sha1-KcVzMUgFe7Th913zW3qcty5qWd0=",
"dev": true,
"requires": {
"source-map": "0.5.6",
"uglify-to-browserify": "1.0.2",
"yargs": "3.10.0"
}
},
"window-size": { "window-size": {
"version": "0.1.0", "version": "0.1.0",
"resolved": "https://registry.npmjs.org/window-size/-/window-size-0.1.0.tgz", "resolved": "https://registry.npmjs.org/window-size/-/window-size-0.1.0.tgz",
@ -12014,12 +12186,6 @@
} }
} }
}, },
"uglify-to-browserify": {
"version": "1.0.2",
"resolved": "https://registry.npmjs.org/uglify-to-browserify/-/uglify-to-browserify-1.0.2.tgz",
"integrity": "sha1-bgkk1r2mta/jSeOabWMoUKD4grc=",
"dev": true
},
"underscore": { "underscore": {
"version": "1.6.0", "version": "1.6.0",
"resolved": "https://registry.npmjs.org/underscore/-/underscore-1.6.0.tgz", "resolved": "https://registry.npmjs.org/underscore/-/underscore-1.6.0.tgz",
@ -12328,73 +12494,215 @@
"dev": true "dev": true
}, },
"webpack": { "webpack": {
"version": "2.2.1", "version": "3.5.5",
"resolved": "https://registry.npmjs.org/webpack/-/webpack-2.2.1.tgz", "resolved": "https://registry.npmjs.org/webpack/-/webpack-3.5.5.tgz",
"integrity": "sha1-e7HXKuIIfdGkr1Jq/sFe7RfdpHU=", "integrity": "sha512-qeUx4nIbeLL53qqNTs3kObPBMkUVDrOjEfp/hTvMlx21qL2MsGNr8/tXCoX/lS12dLl9qtZaXv2qfBEctPScDg==",
"dev": true, "dev": true,
"requires": { "requires": {
"acorn": "4.0.13", "acorn": "5.1.1",
"acorn-dynamic-import": "2.0.2", "acorn-dynamic-import": "2.0.2",
"ajv": "4.11.8", "ajv": "5.2.2",
"ajv-keywords": "1.5.1", "ajv-keywords": "2.1.0",
"async": "2.4.1", "async": "2.4.1",
"enhanced-resolve": "3.4.1", "enhanced-resolve": "3.4.1",
"escope": "3.6.0",
"interpret": "1.0.3", "interpret": "1.0.3",
"json-loader": "0.5.7", "json-loader": "0.5.7",
"json5": "0.5.1",
"loader-runner": "2.3.0", "loader-runner": "2.3.0",
"loader-utils": "0.2.17", "loader-utils": "1.1.0",
"memory-fs": "0.4.1", "memory-fs": "0.4.1",
"mkdirp": "0.5.1", "mkdirp": "0.5.1",
"node-libs-browser": "2.0.0", "node-libs-browser": "2.0.0",
"source-map": "0.5.6", "source-map": "0.5.6",
"supports-color": "3.2.3", "supports-color": "4.2.1",
"tapable": "0.2.8", "tapable": "0.2.8",
"uglify-js": "2.8.27", "uglifyjs-webpack-plugin": "0.4.6",
"watchpack": "1.4.0", "watchpack": "1.4.0",
"webpack-sources": "0.1.5", "webpack-sources": "1.0.1",
"yargs": "6.6.0" "yargs": "8.0.2"
}, },
"dependencies": { "dependencies": {
"acorn": { "acorn": {
"version": "4.0.13", "version": "5.1.1",
"resolved": "https://registry.npmjs.org/acorn/-/acorn-4.0.13.tgz", "resolved": "https://registry.npmjs.org/acorn/-/acorn-5.1.1.tgz",
"integrity": "sha1-EFSVrlNh1pe9GVyCUZLhrX8lN4c=", "integrity": "sha512-vOk6uEMctu0vQrvuSqFdJyqj1Q0S5VTDL79qtjo+DhRr+1mmaD+tluFSCZqhvi/JUhXSzoZN2BhtstaPEeE8cw==",
"dev": true
},
"ajv": {
"version": "5.2.2",
"resolved": "https://registry.npmjs.org/ajv/-/ajv-5.2.2.tgz",
"integrity": "sha1-R8aNaehvXZUxA7AHSpQw3GPaXjk=",
"dev": true,
"requires": {
"co": "4.6.0",
"fast-deep-equal": "1.0.0",
"json-schema-traverse": "0.3.1",
"json-stable-stringify": "1.0.1"
}
},
"ajv-keywords": {
"version": "2.1.0",
"resolved": "https://registry.npmjs.org/ajv-keywords/-/ajv-keywords-2.1.0.tgz",
"integrity": "sha1-opbhf3v658HOT34N5T0pyzIWLfA=",
"dev": true
},
"ansi-regex": {
"version": "3.0.0",
"resolved": "https://registry.npmjs.org/ansi-regex/-/ansi-regex-3.0.0.tgz",
"integrity": "sha1-7QMXwyIGT3lGbAKWa922Bas32Zg=",
"dev": true "dev": true
}, },
"camelcase": { "camelcase": {
"version": "4.1.0",
"resolved": "https://registry.npmjs.org/camelcase/-/camelcase-4.1.0.tgz",
"integrity": "sha1-1UVjW+HjPFQmScaRc+Xeas+uNN0=",
"dev": true
},
"has-flag": {
"version": "2.0.0",
"resolved": "https://registry.npmjs.org/has-flag/-/has-flag-2.0.0.tgz",
"integrity": "sha1-6CB68cx7MNRGzHC3NLXovhj4jVE=",
"dev": true
},
"is-fullwidth-code-point": {
"version": "2.0.0",
"resolved": "https://registry.npmjs.org/is-fullwidth-code-point/-/is-fullwidth-code-point-2.0.0.tgz",
"integrity": "sha1-o7MKXE8ZkYMWeqq5O+764937ZU8=",
"dev": true
},
"load-json-file": {
"version": "2.0.0",
"resolved": "https://registry.npmjs.org/load-json-file/-/load-json-file-2.0.0.tgz",
"integrity": "sha1-eUfkIUmvgNaWy/eXvKq8/h/inKg=",
"dev": true,
"requires": {
"graceful-fs": "4.1.11",
"parse-json": "2.2.0",
"pify": "2.3.0",
"strip-bom": "3.0.0"
}
},
"loader-utils": {
"version": "1.1.0",
"resolved": "https://registry.npmjs.org/loader-utils/-/loader-utils-1.1.0.tgz",
"integrity": "sha1-yYrvSIvM7aL/teLeZG1qdUQp9c0=",
"dev": true,
"requires": {
"big.js": "3.1.3",
"emojis-list": "2.1.0",
"json5": "0.5.1"
}
},
"os-locale": {
"version": "2.1.0",
"resolved": "https://registry.npmjs.org/os-locale/-/os-locale-2.1.0.tgz",
"integrity": "sha512-3sslG3zJbEYcaC4YVAvDorjGxc7tv6KVATnLPZONiljsUncvihe9BQoVCEs0RZ1kmf4Hk9OBqlZfJZWI4GanKA==",
"dev": true,
"requires": {
"execa": "0.7.0",
"lcid": "1.0.0",
"mem": "1.1.0"
}
},
"path-type": {
"version": "2.0.0",
"resolved": "https://registry.npmjs.org/path-type/-/path-type-2.0.0.tgz",
"integrity": "sha1-8BLMuEFbcJb8LaoQVMPXI4lZTHM=",
"dev": true,
"requires": {
"pify": "2.3.0"
}
},
"read-pkg": {
"version": "2.0.0",
"resolved": "https://registry.npmjs.org/read-pkg/-/read-pkg-2.0.0.tgz",
"integrity": "sha1-jvHAYjxqbbDcZxPEv6xGMysjaPg=",
"dev": true,
"requires": {
"load-json-file": "2.0.0",
"normalize-package-data": "2.3.8",
"path-type": "2.0.0"
}
},
"read-pkg-up": {
"version": "2.0.0",
"resolved": "https://registry.npmjs.org/read-pkg-up/-/read-pkg-up-2.0.0.tgz",
"integrity": "sha1-a3KoBImE4MQeeVEP1en6mbO1Sb4=",
"dev": true,
"requires": {
"find-up": "2.1.0",
"read-pkg": "2.0.0"
}
},
"string-width": {
"version": "2.1.1",
"resolved": "https://registry.npmjs.org/string-width/-/string-width-2.1.1.tgz",
"integrity": "sha512-nOqH59deCq9SRHlxq1Aw85Jnt4w6KvLKqWVik6oA9ZklXLNIOlqg4F2yrT1MVaTjAqvVwdfeZ7w7aCvJD7ugkw==",
"dev": true,
"requires": {
"is-fullwidth-code-point": "2.0.0",
"strip-ansi": "4.0.0"
}
},
"strip-ansi": {
"version": "4.0.0",
"resolved": "https://registry.npmjs.org/strip-ansi/-/strip-ansi-4.0.0.tgz",
"integrity": "sha1-qEeQIusaw2iocTibY1JixQXuNo8=",
"dev": true,
"requires": {
"ansi-regex": "3.0.0"
}
},
"strip-bom": {
"version": "3.0.0", "version": "3.0.0",
"resolved": "https://registry.npmjs.org/camelcase/-/camelcase-3.0.0.tgz", "resolved": "https://registry.npmjs.org/strip-bom/-/strip-bom-3.0.0.tgz",
"integrity": "sha1-MvxLn82vhF/N9+c7uXysImHwqwo=", "integrity": "sha1-IzTBjpx1n3vdVv3vfprj1YjmjtM=",
"dev": true "dev": true
}, },
"supports-color": { "supports-color": {
"version": "3.2.3", "version": "4.2.1",
"resolved": "https://registry.npmjs.org/supports-color/-/supports-color-3.2.3.tgz", "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-4.2.1.tgz",
"integrity": "sha1-ZawFBLOVQXHYpklGsq48u4pfVPY=", "integrity": "sha512-qxzYsob3yv6U+xMzPrv170y8AwGP7i74g+pbixCfD6rgso8BscLT2qXIuz6TpOaiJZ3mFgT5O9lyT9nMU4LfaA==",
"dev": true, "dev": true,
"requires": { "requires": {
"has-flag": "1.0.0" "has-flag": "2.0.0"
} }
}, },
"which-module": {
"version": "2.0.0",
"resolved": "https://registry.npmjs.org/which-module/-/which-module-2.0.0.tgz",
"integrity": "sha1-2e8H3Od7mQK4o6j6SzHD4/fm6Ho=",
"dev": true
},
"yargs": { "yargs": {
"version": "6.6.0", "version": "8.0.2",
"resolved": "https://registry.npmjs.org/yargs/-/yargs-6.6.0.tgz", "resolved": "https://registry.npmjs.org/yargs/-/yargs-8.0.2.tgz",
"integrity": "sha1-eC7CHvQDNF+DCoCMo9UTr1YGUgg=", "integrity": "sha1-YpmpBVsc78lp/355wdkY3Osiw2A=",
"dev": true, "dev": true,
"requires": { "requires": {
"camelcase": "3.0.0", "camelcase": "4.1.0",
"cliui": "3.2.0", "cliui": "3.2.0",
"decamelize": "1.2.0", "decamelize": "1.2.0",
"get-caller-file": "1.0.2", "get-caller-file": "1.0.2",
"os-locale": "1.4.0", "os-locale": "2.1.0",
"read-pkg-up": "1.0.1", "read-pkg-up": "2.0.0",
"require-directory": "2.1.1", "require-directory": "2.1.1",
"require-main-filename": "1.0.1", "require-main-filename": "1.0.1",
"set-blocking": "2.0.0", "set-blocking": "2.0.0",
"string-width": "1.0.2", "string-width": "2.1.1",
"which-module": "1.0.0", "which-module": "2.0.0",
"y18n": "3.2.1", "y18n": "3.2.1",
"yargs-parser": "4.2.1" "yargs-parser": "7.0.0"
}
},
"yargs-parser": {
"version": "7.0.0",
"resolved": "https://registry.npmjs.org/yargs-parser/-/yargs-parser-7.0.0.tgz",
"integrity": "sha1-jQrELxbqVd69MyyvTEA4s+P139k=",
"dev": true,
"requires": {
"camelcase": "4.1.0"
} }
} }
} }
@ -12508,13 +12816,21 @@
} }
}, },
"webpack-sources": { "webpack-sources": {
"version": "0.1.5", "version": "1.0.1",
"resolved": "https://registry.npmjs.org/webpack-sources/-/webpack-sources-0.1.5.tgz", "resolved": "https://registry.npmjs.org/webpack-sources/-/webpack-sources-1.0.1.tgz",
"integrity": "sha1-qh86vw8NdNtxEcQOUAuE+WZkB1A=", "integrity": "sha512-05tMxipUCwHqYaVS8xc7sYPTly8PzXayRCB4dTxLhWTqlKUiwH6ezmEe0OSreL1c30LAuA3Zqmc+uEBUGFJDjw==",
"dev": true, "dev": true,
"requires": { "requires": {
"source-list-map": "0.1.8", "source-list-map": "2.0.0",
"source-map": "0.5.6" "source-map": "0.5.6"
},
"dependencies": {
"source-list-map": {
"version": "2.0.0",
"resolved": "https://registry.npmjs.org/source-list-map/-/source-list-map-2.0.0.tgz",
"integrity": "sha512-I2UmuJSRr/T8jisiROLU3A3ltr+swpniSmNPI4Ml3ZCX6tVnDsuZzK7F2hl5jTqbZBWCEKlj5HRQiPExXLgE8A==",
"dev": true
}
} }
}, },
"webpack-target-electron-renderer": { "webpack-target-electron-renderer": {

View File

@ -128,7 +128,7 @@
"iconv-lite": "^0.4.15", "iconv-lite": "^0.4.15",
"insomnia-httpsnippet": "^1.16.5", "insomnia-httpsnippet": "^1.16.5",
"insomnia-importers": "^1.3.9", "insomnia-importers": "^1.3.9",
"insomnia-node-libcurl": "^1.1.0", "insomnia-node-libcurl": "^1.2.1",
"jsonlint": "^1.6.2", "jsonlint": "^1.6.2",
"jsonpath": "^0.2.11", "jsonpath": "^0.2.11",
"marked": "^0.3.6", "marked": "^0.3.6",
@ -199,7 +199,7 @@
"redux-mock-store": "^1.0.2", "redux-mock-store": "^1.0.2",
"style-loader": "^0.13.2", "style-loader": "^0.13.2",
"url-loader": "^0.5.8", "url-loader": "^0.5.8",
"webpack": "^2.2.1", "webpack": "^3.5.5",
"webpack-dev-middleware": "^1.10.1", "webpack-dev-middleware": "^1.10.1",
"webpack-dev-server": "^2.4.1", "webpack-dev-server": "^2.4.1",
"webpack-hot-middleware": "^2.17.1", "webpack-hot-middleware": "^2.17.1",

View File

@ -1,3 +1,4 @@
const webpack = require('webpack');
const path = require('path'); const path = require('path');
const pkg = require('../app/package.json'); const pkg = require('../app/package.json');
@ -58,6 +59,8 @@ module.exports = {
// To get jsonlint working... // To get jsonlint working...
'file', 'system' 'file', 'system'
], ],
plugins: [], plugins: [
new webpack.optimize.ModuleConcatenationPlugin(),
],
target: 'electron-renderer' target: 'electron-renderer'
}; };