Custom node defaults (#1829)

* Add eth-exists dep

* Add elementary support for custom nodes

* Update eth-exists references
This commit is contained in:
HenryNguyen5 2018-06-12 13:01:14 -04:00 committed by Daniel Ternyak
parent 256a8fdf5b
commit 74cb8de16e
3 changed files with 317 additions and 230 deletions

View File

@ -13,6 +13,7 @@ import {
} from 'selectors/config';
import { Input, Dropdown } from 'components/ui';
import './CustomNodeModal.scss';
import { exists, SuccessConfig, FailConfig } from 'mycrypto-eth-exists';
const CUSTOM = { label: 'Custom', value: 'custom' };
@ -42,12 +43,13 @@ interface State {
hasAuth: boolean;
username: string;
password: string;
defaultNodes: ((SuccessConfig | FailConfig) & { display: string; index: number })[];
}
type Props = OwnProps & StateProps & DispatchProps;
class CustomNodeModal extends React.Component<Props, State> {
public INITIAL_STATE = {
public INITIAL_STATE: State = {
name: '',
url: '',
network: Object.keys(this.props.staticNetworks)[0],
@ -56,10 +58,19 @@ class CustomNodeModal extends React.Component<Props, State> {
customNetworkChainId: '',
hasAuth: false,
username: '',
password: ''
password: '',
defaultNodes: []
};
public state: State = this.INITIAL_STATE;
private timer: number | null;
constructor(props: Props) {
super(props);
this.pollForDefaultNodes();
}
public componentDidUpdate(prevProps: Props) {
// Reset state when modal opens
if (!prevProps.isOpen && prevProps.isOpen !== this.props.isOpen) {
@ -67,6 +78,13 @@ class CustomNodeModal extends React.Component<Props, State> {
}
}
public componentWillUnmount() {
if (this.timer) {
window.clearInterval(this.timer);
}
this.timer = null;
}
public render() {
const { customNetworks, handleClose, staticNetworks, isOpen } = this.props;
const { network, customNetworkChainId } = this.state;
@ -114,6 +132,8 @@ class CustomNodeModal extends React.Component<Props, State> {
</div>
)}
{this.renderDefaultNodeDropdown()}
<form className="CustomNodeModal">
<div className="flex-wrapper">
<label className="col-sm-9 input-group flex-grow-1">
@ -228,6 +248,53 @@ class CustomNodeModal extends React.Component<Props, State> {
);
}
private pollForDefaultNodes() {
const pollingInterval = 3000;
this.timer = window.setInterval(async () => {
const results = await exists(
[
// tslint:disable-next-line:no-http-string
{ type: 'http', addr: 'http://localhost', port: 8545, timeout: 3000 }
],
{ includeDefaults: false }
);
if (!this.timer) {
return;
}
this.setState({
defaultNodes: results.filter(r => r.success).map((r, index) => ({
...r,
display: `${r.addr}:${r.port}`,
index
}))
});
}, pollingInterval);
}
private renderDefaultNodeDropdown() {
const { defaultNodes } = this.state;
if (!defaultNodes.length) {
return null;
}
return (
<label className="col-sm-12 input-group">
<div className="input-group-header"> {'Default Nodes Found'}</div>
<Dropdown
options={this.state.defaultNodes.map(n => ({ label: n.display, value: n.index }))}
onChange={({ value }: { value: string }) => {
const result = this.state.defaultNodes.find(d => d.index === +value);
if (!result) {
return;
}
const { addr, port } = result;
this.setState({ url: `${addr}:${port}`, name: 'MyDefaultNode' });
}}
/>
</label>
);
}
private getInvalids(): { [key: string]: boolean } {
const {
url,

View File

@ -18,6 +18,7 @@
"bootstrap-sass": "3.3.7",
"classnames": "2.2.5",
"electron-updater": "2.21.10",
"mycrypto-eth-exists": "1.0.0",
"ethereum-blockies-base64": "1.0.1",
"ethereumjs-abi": "git://github.com/ethereumjs/ethereumjs-abi.git#09c3c48fd3bed143df7fa8f36f6f164205e23796",
"ethereumjs-tx": "1.3.4",

475
yarn.lock
View File

@ -22,6 +22,10 @@
"7zip-bin-mac" "~1.0.1"
"7zip-bin-win" "~2.2.0"
"7zip-bin@~4.0.2":
version "4.0.2"
resolved "https://registry.yarnpkg.com/7zip-bin/-/7zip-bin-4.0.2.tgz#6abbdc22f33cab742053777a26db2e25ca527179"
"@babel/code-frame@^7.0.0-beta.35":
version "7.0.0-beta.44"
resolved "https://registry.yarnpkg.com/@babel/code-frame/-/code-frame-7.0.0-beta.44.tgz#2a02643368de80916162be70865c97774f3adbd9"
@ -43,12 +47,12 @@
core-js "^2.5.3"
regenerator-runtime "^0.11.1"
"@parity/qr-signer@0.2.0":
version "0.2.0"
resolved "https://registry.yarnpkg.com/@parity/qr-signer/-/qr-signer-0.2.0.tgz#5c6c41c03265608c117346f0a9d7ab89699352fa"
"@parity/qr-signer@0.2.1":
version "0.2.1"
resolved "https://registry.yarnpkg.com/@parity/qr-signer/-/qr-signer-0.2.1.tgz#f8b0e0ff5d8ee90b1788951c8524cdf8b1aadf27"
dependencies:
qrcode-generator "1.3.1"
react-qr-reader "2.0.1"
react-qr-reader "2.1.0"
"@sindresorhus/is@^0.7.0":
version "0.7.0"
@ -279,6 +283,10 @@ ajv-keywords@^3.1.0:
version "3.1.0"
resolved "https://registry.yarnpkg.com/ajv-keywords/-/ajv-keywords-3.1.0.tgz#ac2b27939c543e95d2c06e7f7f5c27be4aa543be"
ajv-keywords@^3.2.0:
version "3.2.0"
resolved "https://registry.yarnpkg.com/ajv-keywords/-/ajv-keywords-3.2.0.tgz#e86b819c602cf8821ad637413698f1dec021847a"
ajv@^4.9.1:
version "4.11.8"
resolved "https://registry.yarnpkg.com/ajv/-/ajv-4.11.8.tgz#82ffb02b29e662ae53bdc20af15947706739c536"
@ -295,7 +303,7 @@ ajv@^5.1.0:
fast-json-stable-stringify "^2.0.0"
json-schema-traverse "^0.3.0"
ajv@^6.1.0, ajv@^6.1.1:
ajv@^6.1.0:
version "6.4.0"
resolved "https://registry.yarnpkg.com/ajv/-/ajv-6.4.0.tgz#d3aff78e9277549771daf0164cff48482b754fc6"
dependencies:
@ -304,6 +312,15 @@ ajv@^6.1.0, ajv@^6.1.1:
json-schema-traverse "^0.3.0"
uri-js "^3.0.2"
ajv@^6.4.0:
version "6.5.1"
resolved "https://registry.yarnpkg.com/ajv/-/ajv-6.5.1.tgz#88ebc1263c7133937d108b80c5572e64e1d9322d"
dependencies:
fast-deep-equal "^2.0.1"
fast-json-stable-stringify "^2.0.0"
json-schema-traverse "^0.4.1"
uri-js "^4.2.1"
align-text@^0.1.1, align-text@^0.1.3:
version "0.1.4"
resolved "https://registry.yarnpkg.com/align-text/-/align-text-0.1.4.tgz#0cd90a561093f35d0a99256c22b7069433fad117"
@ -396,65 +413,29 @@ anymatch@^2.0.0:
micromatch "^3.1.4"
normalize-path "^2.1.1"
app-builder-bin-linux@1.7.2:
version "1.7.2"
resolved "https://registry.yarnpkg.com/app-builder-bin-linux/-/app-builder-bin-linux-1.7.2.tgz#a764c8e52ecf1b5b068f32c820c6daf1ffed6a8f"
app-builder-bin-linux@1.8.6:
version "1.8.6"
resolved "https://registry.yarnpkg.com/app-builder-bin-linux/-/app-builder-bin-linux-1.8.6.tgz#81176bbcb2929958a90f2184afb54df90b7210a3"
app-builder-bin-linux@1.8.3:
version "1.8.3"
resolved "https://registry.yarnpkg.com/app-builder-bin-linux/-/app-builder-bin-linux-1.8.3.tgz#4bf638a7bd29365e5534d2ba554baf1350fb4a87"
app-builder-bin-mac@1.8.6:
version "1.8.6"
resolved "https://registry.yarnpkg.com/app-builder-bin-mac/-/app-builder-bin-mac-1.8.6.tgz#20d7233c5cadf00472e7b0ccaf85627b53f90787"
app-builder-bin-linux@1.8.4:
version "1.8.4"
resolved "https://registry.yarnpkg.com/app-builder-bin-linux/-/app-builder-bin-linux-1.8.4.tgz#9fa4f4f6af21f147cdedc69279940134c77d297f"
app-builder-bin-win@1.8.6:
version "1.8.6"
resolved "https://registry.yarnpkg.com/app-builder-bin-win/-/app-builder-bin-win-1.8.6.tgz#d09f78fb1dd5a5f8ea231294828fd5c9ad0358a5"
app-builder-bin-mac@1.7.2:
version "1.7.2"
resolved "https://registry.yarnpkg.com/app-builder-bin-mac/-/app-builder-bin-mac-1.7.2.tgz#c4ee0d950666c97c12a45ac74ec6396be3357644"
app-builder-bin-mac@1.8.3:
version "1.8.3"
resolved "https://registry.yarnpkg.com/app-builder-bin-mac/-/app-builder-bin-mac-1.8.3.tgz#8e2c63e9d822fce2eee8db2f9f817d7b68532df7"
app-builder-bin-mac@1.8.4:
version "1.8.4"
resolved "https://registry.yarnpkg.com/app-builder-bin-mac/-/app-builder-bin-mac-1.8.4.tgz#abd35353167b037a15353fe44c84b0b17045d12f"
app-builder-bin-win@1.7.2:
version "1.7.2"
resolved "https://registry.yarnpkg.com/app-builder-bin-win/-/app-builder-bin-win-1.7.2.tgz#7acac890782f4118f09941b343ba06c56452a6f6"
app-builder-bin-win@1.8.3:
version "1.8.3"
resolved "https://registry.yarnpkg.com/app-builder-bin-win/-/app-builder-bin-win-1.8.3.tgz#3598ec1c523dd197e8bb5dfeab3e2fe70905ae79"
app-builder-bin-win@1.8.4:
version "1.8.4"
resolved "https://registry.yarnpkg.com/app-builder-bin-win/-/app-builder-bin-win-1.8.4.tgz#ba5f7a7d8ae48d32c400691b3c45f6f746c27748"
app-builder-bin@1.7.2:
version "1.7.2"
resolved "https://registry.yarnpkg.com/app-builder-bin/-/app-builder-bin-1.7.2.tgz#daf67060a6bad8f5f611a0d2876d9db897a83f06"
app-builder-bin@1.8.6:
version "1.8.6"
resolved "https://registry.yarnpkg.com/app-builder-bin/-/app-builder-bin-1.8.6.tgz#85604ece9c1b63ed0437abe92ddaf41c88c3f2e4"
optionalDependencies:
app-builder-bin-linux "1.7.2"
app-builder-bin-mac "1.7.2"
app-builder-bin-win "1.7.2"
app-builder-bin-linux "1.8.6"
app-builder-bin-mac "1.8.6"
app-builder-bin-win "1.8.6"
app-builder-bin@1.8.3:
version "1.8.3"
resolved "https://registry.yarnpkg.com/app-builder-bin/-/app-builder-bin-1.8.3.tgz#902174b5864521e5068fe1d8ae5566633a5b9c44"
optionalDependencies:
app-builder-bin-linux "1.8.3"
app-builder-bin-mac "1.8.3"
app-builder-bin-win "1.8.3"
app-builder-bin@1.8.4:
version "1.8.4"
resolved "https://registry.yarnpkg.com/app-builder-bin/-/app-builder-bin-1.8.4.tgz#ca8fd02209c2e0681de97fdb4c559d93381cc812"
optionalDependencies:
app-builder-bin-linux "1.8.4"
app-builder-bin-mac "1.8.4"
app-builder-bin-win "1.8.4"
app-builder-bin@1.9.11:
version "1.9.11"
resolved "https://registry.yarnpkg.com/app-builder-bin/-/app-builder-bin-1.9.11.tgz#bf04d4cdfc0a8ed83acedc5f9ab16be73b5a3a57"
app-root-path@^2.0.1:
version "2.0.1"
@ -686,6 +667,13 @@ aws4@^1.2.1, aws4@^1.6.0:
version "1.7.0"
resolved "https://registry.yarnpkg.com/aws4/-/aws4-1.7.0.tgz#d4d0e9b9dbfca77bf08eeb0a8a471550fe39e289"
axios@^0.18.0:
version "0.18.0"
resolved "https://registry.yarnpkg.com/axios/-/axios-0.18.0.tgz#32d53e4851efdc0a11993b6cd000789d70c05102"
dependencies:
follow-redirects "^1.3.0"
is-buffer "^1.1.5"
babel-code-frame@^6.22.0, babel-code-frame@^6.26.0:
version "6.26.0"
resolved "https://registry.yarnpkg.com/babel-code-frame/-/babel-code-frame-6.26.0.tgz#63fd43f7dc1e3bb7ce35947db8fe369a3f58c74b"
@ -1747,80 +1735,52 @@ buffer@^4.3.0:
ieee754 "^1.1.4"
isarray "^1.0.0"
builder-util-runtime@4.1.0:
version "4.1.0"
resolved "https://registry.yarnpkg.com/builder-util-runtime/-/builder-util-runtime-4.1.0.tgz#7dcd042d555d2f161a5538d7a0ea8c292daa0683"
builder-util-runtime@4.2.1, builder-util-runtime@^4.2.1, builder-util-runtime@~4.2.1:
version "4.2.1"
resolved "https://registry.yarnpkg.com/builder-util-runtime/-/builder-util-runtime-4.2.1.tgz#0caa358f1331d70680010141ca591952b69b35bc"
dependencies:
bluebird-lst "^1.0.5"
debug "^3.1.0"
fs-extra-p "^4.5.2"
fs-extra-p "^4.6.0"
sax "^1.2.4"
builder-util-runtime@4.2.0, builder-util-runtime@^4.1.0, builder-util-runtime@^4.2.0, builder-util-runtime@~4.2.0:
version "4.2.0"
resolved "https://registry.yarnpkg.com/builder-util-runtime/-/builder-util-runtime-4.2.0.tgz#c56aa18d34390143da031c418c9d3a055fbd3522"
dependencies:
bluebird-lst "^1.0.5"
debug "^3.1.0"
fs-extra-p "^4.5.2"
sax "^1.2.4"
builder-util@5.6.7:
version "5.6.7"
resolved "https://registry.yarnpkg.com/builder-util/-/builder-util-5.6.7.tgz#662ff2ba4f70416ee0c085126f16af48fbf97900"
builder-util@5.8.1:
version "5.8.1"
resolved "https://registry.yarnpkg.com/builder-util/-/builder-util-5.8.1.tgz#8dd953c018b7a7b2a56c3427b2c62ef77c925ac7"
dependencies:
"7zip-bin" "~3.1.0"
app-builder-bin "1.7.2"
app-builder-bin "1.8.6"
bluebird-lst "^1.0.5"
builder-util-runtime "^4.1.0"
chalk "^2.3.2"
builder-util-runtime "^4.2.1"
chalk "^2.4.1"
debug "^3.1.0"
fs-extra-p "^4.5.2"
fs-extra-p "^4.6.0"
is-ci "^1.1.0"
js-yaml "^3.11.0"
lazy-val "^1.0.3"
semver "^5.5.0"
source-map-support "^0.5.4"
source-map-support "^0.5.5"
stat-mode "^0.2.2"
temp-file "^3.1.1"
temp-file "^3.1.2"
builder-util@5.7.4:
version "5.7.4"
resolved "https://registry.yarnpkg.com/builder-util/-/builder-util-5.7.4.tgz#d6e9a56e2865f0d0a504a07ea0f8dc35185b4795"
builder-util@^5.8.1:
version "5.11.4"
resolved "https://registry.yarnpkg.com/builder-util/-/builder-util-5.11.4.tgz#24d72aa567ecfeacca72b0740b4ddbffaaef617c"
dependencies:
"7zip-bin" "~3.1.0"
app-builder-bin "1.8.3"
"7zip-bin" "~4.0.2"
app-builder-bin "1.9.11"
bluebird-lst "^1.0.5"
builder-util-runtime "^4.2.0"
chalk "^2.3.2"
builder-util-runtime "^4.2.1"
chalk "^2.4.1"
debug "^3.1.0"
fs-extra-p "^4.5.2"
fs-extra-p "^4.6.0"
is-ci "^1.1.0"
js-yaml "^3.11.0"
lazy-val "^1.0.3"
semver "^5.5.0"
source-map-support "^0.5.4"
source-map-support "^0.5.6"
stat-mode "^0.2.2"
temp-file "^3.1.1"
builder-util@^5.6.7, builder-util@^5.7.0, builder-util@^5.7.4:
version "5.7.5"
resolved "https://registry.yarnpkg.com/builder-util/-/builder-util-5.7.5.tgz#58f8d2b7a35445c5fb45bff50b39bbed554c9863"
dependencies:
"7zip-bin" "~3.1.0"
app-builder-bin "1.8.4"
bluebird-lst "^1.0.5"
builder-util-runtime "^4.2.0"
chalk "^2.3.2"
debug "^3.1.0"
fs-extra-p "^4.5.2"
is-ci "^1.1.0"
js-yaml "^3.11.0"
lazy-val "^1.0.3"
semver "^5.5.0"
source-map-support "^0.5.4"
stat-mode "^0.2.2"
temp-file "^3.1.1"
temp-file "^3.1.2"
builtin-modules@^1.0.0, builtin-modules@^1.1.1:
version "1.1.1"
@ -2009,6 +1969,14 @@ chalk@^2.0.0, chalk@^2.0.1, chalk@^2.1.0, chalk@^2.3.0, chalk@^2.3.1, chalk@^2.3
escape-string-regexp "^1.0.5"
supports-color "^5.3.0"
chalk@^2.4.1:
version "2.4.1"
resolved "https://registry.yarnpkg.com/chalk/-/chalk-2.4.1.tgz#18c49ab16a037b6eb0152cc83e3471338215b66e"
dependencies:
ansi-styles "^3.2.1"
escape-string-regexp "^1.0.5"
supports-color "^5.3.0"
chalk@~0.4.0:
version "0.4.0"
resolved "https://registry.yarnpkg.com/chalk/-/chalk-0.4.0.tgz#5199a3ddcd0c1efe23bc08c1b027b06176e0c64f"
@ -3190,15 +3158,15 @@ discontinuous-range@1.0.0:
version "1.0.0"
resolved "https://registry.yarnpkg.com/discontinuous-range/-/discontinuous-range-1.0.0.tgz#e38331f0844bba49b9a9cb71c771585aab1bc65a"
dmg-builder@4.1.3:
version "4.1.3"
resolved "https://registry.yarnpkg.com/dmg-builder/-/dmg-builder-4.1.3.tgz#d336cf398fd331b2dedd7efae4b51b9bfe00aa1c"
dmg-builder@4.1.8:
version "4.1.8"
resolved "https://registry.yarnpkg.com/dmg-builder/-/dmg-builder-4.1.8.tgz#365048a4abf3f4e9a4d8fb0331ce7ba13458f4bd"
dependencies:
bluebird-lst "^1.0.5"
builder-util "^5.7.0"
electron-builder-lib "~20.6.2"
fs-extra-p "^4.5.2"
iconv-lite "^0.4.19"
builder-util "^5.8.1"
electron-builder-lib "~20.13.2"
fs-extra-p "^4.6.0"
iconv-lite "^0.4.23"
js-yaml "^3.11.0"
parse-color "^1.0.0"
sanitize-filename "^1.6.1"
@ -3296,11 +3264,11 @@ dot-prop@^4.1.0:
dependencies:
is-obj "^1.0.0"
dotenv-expand@^4.0.1:
dotenv-expand@^4.2.0:
version "4.2.0"
resolved "https://registry.yarnpkg.com/dotenv-expand/-/dotenv-expand-4.2.0.tgz#def1f1ca5d6059d24a766e587942c21106ce1275"
dotenv@^5.0.0:
dotenv@^5.0.1:
version "5.0.1"
resolved "https://registry.yarnpkg.com/dotenv/-/dotenv-5.0.1.tgz#a5317459bd3d79ab88cff6e44057a6a3fbb1fcef"
@ -3398,26 +3366,30 @@ ee-first@1.1.1:
version "1.1.1"
resolved "https://registry.yarnpkg.com/ee-first/-/ee-first-1.1.1.tgz#590c61156b0ae2f4f0255732a158b266bc56b21d"
ejs@^2.3.1, ejs@^2.5.7, ejs@^2.5.8:
ejs@^2.3.1:
version "2.5.8"
resolved "https://registry.yarnpkg.com/ejs/-/ejs-2.5.8.tgz#2ab6954619f225e6193b7ac5f7c39c48fefe4380"
electron-builder-lib@20.8.1:
version "20.8.1"
resolved "https://registry.yarnpkg.com/electron-builder-lib/-/electron-builder-lib-20.8.1.tgz#633167c55f183951b031b59261a923968c098073"
ejs@^2.6.1:
version "2.6.1"
resolved "https://registry.yarnpkg.com/ejs/-/ejs-2.6.1.tgz#498ec0d495655abc6f23cd61868d926464071aa0"
electron-builder-lib@20.13.4:
version "20.13.4"
resolved "https://registry.yarnpkg.com/electron-builder-lib/-/electron-builder-lib-20.13.4.tgz#dcadc4a72b4d57996c11a32e5a6a4669bbb4cff9"
dependencies:
"7zip-bin" "~3.1.0"
app-builder-bin "1.8.3"
app-builder-bin "1.8.6"
async-exit-hook "^2.0.1"
bluebird-lst "^1.0.5"
builder-util "5.7.4"
builder-util-runtime "4.2.0"
builder-util "5.8.1"
builder-util-runtime "4.2.1"
chromium-pickle-js "^0.2.0"
debug "^3.1.0"
ejs "^2.5.8"
ejs "^2.6.1"
electron-osx-sign "0.4.10"
electron-publish "20.8.1"
fs-extra-p "^4.5.2"
electron-publish "20.13.2"
fs-extra-p "^4.6.0"
hosted-git-info "^2.6.0"
is-ci "^1.1.0"
isbinaryfile "^3.0.2"
@ -3426,27 +3398,27 @@ electron-builder-lib@20.8.1:
minimatch "^3.0.4"
normalize-package-data "^2.4.0"
plist "^3.0.1"
read-config-file "3.0.0"
read-config-file "3.0.1"
sanitize-filename "^1.6.1"
semver "^5.5.0"
temp-file "^3.1.1"
temp-file "^3.1.2"
electron-builder-lib@~20.6.2:
version "20.6.2"
resolved "https://registry.yarnpkg.com/electron-builder-lib/-/electron-builder-lib-20.6.2.tgz#34f38b6172c05f90d34b6b5ed2f2b6922e731a39"
electron-builder-lib@~20.13.2:
version "20.13.5"
resolved "https://registry.yarnpkg.com/electron-builder-lib/-/electron-builder-lib-20.13.5.tgz#7c1d978c08b5ca6f668d5d825f7d3aae9cc9296e"
dependencies:
"7zip-bin" "~3.1.0"
app-builder-bin "1.7.2"
app-builder-bin "1.8.6"
async-exit-hook "^2.0.1"
bluebird-lst "^1.0.5"
builder-util "5.6.7"
builder-util-runtime "4.1.0"
builder-util "5.8.1"
builder-util-runtime "4.2.1"
chromium-pickle-js "^0.2.0"
debug "^3.1.0"
ejs "^2.5.7"
ejs "^2.6.1"
electron-osx-sign "0.4.10"
electron-publish "20.6.1"
fs-extra-p "^4.5.2"
electron-publish "20.13.2"
fs-extra-p "^4.6.0"
hosted-git-info "^2.6.0"
is-ci "^1.1.0"
isbinaryfile "^3.0.2"
@ -3454,29 +3426,29 @@ electron-builder-lib@~20.6.2:
lazy-val "^1.0.3"
minimatch "^3.0.4"
normalize-package-data "^2.4.0"
plist "^2.1.0"
read-config-file "3.0.0"
plist "^3.0.1"
read-config-file "3.0.1"
sanitize-filename "^1.6.1"
semver "^5.5.0"
temp-file "^3.1.1"
temp-file "^3.1.2"
electron-builder@20.8.1:
version "20.8.1"
resolved "https://registry.yarnpkg.com/electron-builder/-/electron-builder-20.8.1.tgz#3d19607a7f7d3ee7f3e110a6fc66c720ed1d2cc0"
electron-builder@20.13.4:
version "20.13.4"
resolved "https://registry.yarnpkg.com/electron-builder/-/electron-builder-20.13.4.tgz#fad23bcf9db1923785ef6bdbcf286a8780453240"
dependencies:
bluebird-lst "^1.0.5"
builder-util "5.7.4"
builder-util-runtime "4.2.0"
chalk "^2.3.2"
dmg-builder "4.1.3"
electron-builder-lib "20.8.1"
builder-util "5.8.1"
builder-util-runtime "4.2.1"
chalk "^2.4.1"
dmg-builder "4.1.8"
electron-builder-lib "20.13.4"
electron-download-tf "4.3.4"
fs-extra-p "^4.5.2"
fs-extra-p "^4.6.0"
is-ci "^1.1.0"
lazy-val "^1.0.3"
read-config-file "3.0.0"
read-config-file "3.0.1"
sanitize-filename "^1.6.1"
update-notifier "^2.4.0"
update-notifier "^2.5.0"
yargs "^11.0.0"
electron-download-tf@4.3.4:
@ -3522,51 +3494,39 @@ electron-osx-sign@0.4.10:
minimist "^1.2.0"
plist "^2.1.0"
electron-publish@20.6.1:
version "20.6.1"
resolved "https://registry.yarnpkg.com/electron-publish/-/electron-publish-20.6.1.tgz#1bc8497fc9370f8e39c9212ce0b5857ef1d666fd"
electron-publish@20.13.2:
version "20.13.2"
resolved "https://registry.yarnpkg.com/electron-publish/-/electron-publish-20.13.2.tgz#a5388098ac17fa10d0494687e8548a26cf1522ac"
dependencies:
bluebird-lst "^1.0.5"
builder-util "^5.6.7"
builder-util-runtime "^4.1.0"
chalk "^2.3.2"
fs-extra-p "^4.5.2"
builder-util "^5.8.1"
builder-util-runtime "^4.2.1"
chalk "^2.4.1"
fs-extra-p "^4.6.0"
lazy-val "^1.0.3"
mime "^2.2.0"
electron-publish@20.8.1:
version "20.8.1"
resolved "https://registry.yarnpkg.com/electron-publish/-/electron-publish-20.8.1.tgz#ec5730efbda88c6566a47395d433d7b122782675"
dependencies:
bluebird-lst "^1.0.5"
builder-util "^5.7.4"
builder-util-runtime "^4.2.0"
chalk "^2.3.2"
fs-extra-p "^4.5.2"
lazy-val "^1.0.3"
mime "^2.2.0"
mime "^2.3.1"
electron-to-chromium@^1.2.7:
version "1.3.42"
resolved "https://registry.yarnpkg.com/electron-to-chromium/-/electron-to-chromium-1.3.42.tgz#95c33bf01d0cc405556aec899fe61fd4d76ea0f9"
electron-updater@2.21.4:
version "2.21.4"
resolved "https://registry.yarnpkg.com/electron-updater/-/electron-updater-2.21.4.tgz#56326defc8072e78e339cc656838ac78e708f50c"
electron-updater@2.21.10:
version "2.21.10"
resolved "https://registry.yarnpkg.com/electron-updater/-/electron-updater-2.21.10.tgz#aa66757ebf966f4247f247a8433af45cfe8e93b0"
dependencies:
bluebird-lst "^1.0.5"
builder-util-runtime "~4.2.0"
builder-util-runtime "~4.2.1"
electron-is-dev "^0.3.0"
fs-extra-p "^4.5.2"
fs-extra-p "^4.6.0"
js-yaml "^3.11.0"
lazy-val "^1.0.3"
lodash.isequal "^4.5.0"
semver "^5.5.0"
source-map-support "^0.5.4"
source-map-support "^0.5.5"
electron@1.8.4:
version "1.8.4"
resolved "https://registry.yarnpkg.com/electron/-/electron-1.8.4.tgz#cca8d0e6889f238f55b414ad224f03e03b226a38"
electron@2.0.1:
version "2.0.1"
resolved "https://registry.yarnpkg.com/electron/-/electron-2.0.1.tgz#d9defcc187862143b9027378be78490eddbfabf4"
dependencies:
"@types/node" "^8.0.24"
electron-download "^3.0.1"
@ -4146,6 +4106,10 @@ fast-deep-equal@^1.0.0:
version "1.1.0"
resolved "https://registry.yarnpkg.com/fast-deep-equal/-/fast-deep-equal-1.1.0.tgz#c053477817c86b51daa853c81e059b733d023614"
fast-deep-equal@^2.0.1:
version "2.0.1"
resolved "https://registry.yarnpkg.com/fast-deep-equal/-/fast-deep-equal-2.0.1.tgz#7b05218ddf9667bf7f370bf7fdb2cb15fdd0aa49"
fast-json-stable-stringify@^2.0.0:
version "2.0.0"
resolved "https://registry.yarnpkg.com/fast-json-stable-stringify/-/fast-json-stable-stringify-2.0.0.tgz#d5142c0caee6b1189f87d3a76111064f86c8bbf2"
@ -4371,6 +4335,12 @@ flush-write-stream@^1.0.0:
inherits "^2.0.1"
readable-stream "^2.0.4"
follow-redirects@^1.3.0:
version "1.5.0"
resolved "https://registry.yarnpkg.com/follow-redirects/-/follow-redirects-1.5.0.tgz#234f49cf770b7f35b40e790f636ceba0c3a0ab77"
dependencies:
debug "^3.1.0"
font-awesome@4.7.0:
version "4.7.0"
resolved "https://registry.yarnpkg.com/font-awesome/-/font-awesome-4.7.0.tgz#8fa8cf0411a1a31afd07b06d2902bb9fc815a133"
@ -4458,12 +4428,12 @@ from@~0:
version "0.1.7"
resolved "https://registry.yarnpkg.com/from/-/from-0.1.7.tgz#83c60afc58b9c56997007ed1a768b3ab303a44fe"
fs-extra-p@^4.5.0, fs-extra-p@^4.5.2:
version "4.5.2"
resolved "https://registry.yarnpkg.com/fs-extra-p/-/fs-extra-p-4.5.2.tgz#0a22aba489284d17f375d5dc5139aa777fe2df51"
fs-extra-p@^4.6.0:
version "4.6.0"
resolved "https://registry.yarnpkg.com/fs-extra-p/-/fs-extra-p-4.6.0.tgz#c7b7117f0dcf8a99c9b2ed589067c960abcf3ef9"
dependencies:
bluebird-lst "^1.0.5"
fs-extra "^5.0.0"
fs-extra "^6.0.0"
fs-extra@4.0.3, fs-extra@^4.0.1:
version "4.0.3"
@ -4491,9 +4461,9 @@ fs-extra@^1.0.0:
jsonfile "^2.1.0"
klaw "^1.0.0"
fs-extra@^5.0.0:
version "5.0.0"
resolved "https://registry.yarnpkg.com/fs-extra/-/fs-extra-5.0.0.tgz#414d0110cdd06705734d055652c5411260c31abd"
fs-extra@^6.0.0:
version "6.0.1"
resolved "https://registry.yarnpkg.com/fs-extra/-/fs-extra-6.0.1.tgz#8abc128f7946e310135ddc93b98bddb410e7a34b"
dependencies:
graceful-fs "^4.1.2"
jsonfile "^4.0.0"
@ -5317,12 +5287,18 @@ iconv-lite@0.4.19:
version "0.4.19"
resolved "https://registry.yarnpkg.com/iconv-lite/-/iconv-lite-0.4.19.tgz#f7468f60135f5e5dad3399c0a81be9a1603a082b"
iconv-lite@^0.4.17, iconv-lite@^0.4.19, iconv-lite@^0.4.5, iconv-lite@~0.4.13:
iconv-lite@^0.4.17, iconv-lite@^0.4.5, iconv-lite@~0.4.13:
version "0.4.21"
resolved "https://registry.yarnpkg.com/iconv-lite/-/iconv-lite-0.4.21.tgz#c47f8733d02171189ebc4a400f3218d348094798"
dependencies:
safer-buffer "^2.1.0"
iconv-lite@^0.4.23:
version "0.4.23"
resolved "https://registry.yarnpkg.com/iconv-lite/-/iconv-lite-0.4.23.tgz#297871f63be507adcfbfca715d0cd0eed84e9a63"
dependencies:
safer-buffer ">= 2.1.2 < 3"
icss-replace-symbols@^1.1.0:
version "1.1.0"
resolved "https://registry.yarnpkg.com/icss-replace-symbols/-/icss-replace-symbols-1.1.0.tgz#06ea6f83679a7749e386cfe1fe812ae5db223ded"
@ -6012,6 +5988,10 @@ isomorphic-fetch@2.2.1, isomorphic-fetch@^2.1.1, isomorphic-fetch@^2.2.1:
node-fetch "^1.0.1"
whatwg-fetch ">=0.10.0"
isomorphic-ws@^4.0.1:
version "4.0.1"
resolved "https://registry.yarnpkg.com/isomorphic-ws/-/isomorphic-ws-4.0.1.tgz#55fd4cd6c5e6491e76dc125938dd863f5cd4f2dc"
isstream@~0.1.2:
version "0.1.2"
resolved "https://registry.yarnpkg.com/isstream/-/isstream-0.1.2.tgz#47e63f7af55afa6f92e1500e690eb8b8529c099a"
@ -6404,7 +6384,7 @@ js-tokens@^3.0.0, js-tokens@^3.0.2:
version "3.0.2"
resolved "https://registry.yarnpkg.com/js-tokens/-/js-tokens-3.0.2.tgz#9866df395102130e38f7f996bceb65443209c25b"
js-yaml@^3.10.0, js-yaml@^3.11.0, js-yaml@^3.6.1, js-yaml@^3.7.0, js-yaml@^3.9.0:
js-yaml@^3.11.0, js-yaml@^3.6.1, js-yaml@^3.7.0, js-yaml@^3.9.0:
version "3.11.0"
resolved "https://registry.yarnpkg.com/js-yaml/-/js-yaml-3.11.0.tgz#597c1a8bd57152f26d622ce4117851a51f5ebaef"
dependencies:
@ -6524,6 +6504,10 @@ json-schema-traverse@^0.3.0:
version "0.3.1"
resolved "https://registry.yarnpkg.com/json-schema-traverse/-/json-schema-traverse-0.3.1.tgz#349a6d44c53a51de89b40805c5d5e59b417d3340"
json-schema-traverse@^0.4.1:
version "0.4.1"
resolved "https://registry.yarnpkg.com/json-schema-traverse/-/json-schema-traverse-0.4.1.tgz#69f6a87d9513ab8bb8fe63bdb0979c448e684660"
json-schema@0.2.3:
version "0.2.3"
resolved "https://registry.yarnpkg.com/json-schema/-/json-schema-0.2.3.tgz#b480c892e59a2f05954ce727bd3f2a4e882f9e13"
@ -6542,6 +6526,12 @@ json5@^0.5.0, json5@^0.5.1:
version "0.5.1"
resolved "https://registry.yarnpkg.com/json5/-/json5-0.5.1.tgz#1eade7acc012034ad84e2396767ead9fa5495821"
json5@^1.0.1:
version "1.0.1"
resolved "https://registry.yarnpkg.com/json5/-/json5-1.0.1.tgz#779fb0018604fa854eacbf6252180d83543e3dbe"
dependencies:
minimist "^1.2.0"
jsonfile@^2.1.0:
version "2.4.0"
resolved "https://registry.yarnpkg.com/jsonfile/-/jsonfile-2.4.0.tgz#3736a2b428b87bbda0cc83b53fa3d633a35c2ae8"
@ -6579,9 +6569,9 @@ jsprim@^1.2.2:
json-schema "0.2.3"
verror "1.10.0"
"jsqr@https://github.com/cozmo/jsQR.git":
jsqr@^1.0.1:
version "1.0.4"
resolved "https://github.com/cozmo/jsQR.git#d37c764bf43a41ed7c6aa1c17cbdf21b7f9cb69e"
resolved "https://registry.yarnpkg.com/jsqr/-/jsqr-1.0.4.tgz#e2ea353fa81007708efab7d95b2652a7254c10dd"
jssha@2.3.1:
version "2.3.1"
@ -7277,7 +7267,7 @@ mime@^1.3.4:
version "1.6.0"
resolved "https://registry.yarnpkg.com/mime/-/mime-1.6.0.tgz#32cd9e5c64553bd58d19a568af452acff04981b1"
mime@^2.1.0, mime@^2.2.0:
mime@^2.1.0, mime@^2.3.1:
version "2.3.1"
resolved "https://registry.yarnpkg.com/mime/-/mime-2.3.1.tgz#b1621c54d63b97c47d3cfe7f7215f7d64517c369"
@ -7434,9 +7424,17 @@ mute-stream@0.0.7:
version "0.0.7"
resolved "https://registry.yarnpkg.com/mute-stream/-/mute-stream-0.0.7.tgz#3075ce93bc21b8fab43e1bc4da7e8115ed1e7bab"
mycrypto-shepherd@1.3.1:
version "1.3.1"
resolved "https://registry.yarnpkg.com/mycrypto-shepherd/-/mycrypto-shepherd-1.3.1.tgz#901d86e2278c08fd9a3a0aee7a13dea971dbbc38"
mycrypto-eth-exists@1.0.0:
version "1.0.0"
resolved "https://registry.yarnpkg.com/mycrypto-eth-exists/-/mycrypto-eth-exists-1.0.0.tgz#d5a3a954ba6ec063e92327643182fa30957b9a5f"
dependencies:
axios "^0.18.0"
isomorphic-ws "^4.0.1"
toml "^2.3.3"
mycrypto-shepherd@1.4.0:
version "1.4.0"
resolved "https://registry.yarnpkg.com/mycrypto-shepherd/-/mycrypto-shepherd-1.4.0.tgz#ad86e0f18040da524631bf471bce03ba65c165a3"
dependencies:
"@types/jest" "^22.2.2"
"@types/node" "^9.6.2"
@ -9077,17 +9075,17 @@ react-markdown@3.3.0:
unist-util-visit "^1.3.0"
xtend "^4.0.1"
react-onclickoutside@6.7.1, react-onclickoutside@^6.5.0:
react-onclickoutside@^6.5.0:
version "6.7.1"
resolved "https://registry.yarnpkg.com/react-onclickoutside/-/react-onclickoutside-6.7.1.tgz#6a5b5b8b4eae6b776259712c89c8a2b36b17be93"
react-qr-reader@2.0.1:
version "2.0.1"
resolved "https://registry.yarnpkg.com/react-qr-reader/-/react-qr-reader-2.0.1.tgz#f7be785e8c880d7e68423fc129802994f70b6b58"
react-qr-reader@2.1.0:
version "2.1.0"
resolved "https://registry.yarnpkg.com/react-qr-reader/-/react-qr-reader-2.1.0.tgz#f429c196675a710926da1cc9057223b79358da75"
dependencies:
jsqr "https://github.com/cozmo/jsQR.git"
jsqr "^1.0.1"
prop-types "^15.5.8"
webrtc-adapter "^5.0.6"
webrtc-adapter "^6.1.1"
react-reconciler@^0.7.0:
version "0.7.0"
@ -9206,18 +9204,18 @@ read-chunk@^2.1.0:
pify "^3.0.0"
safe-buffer "^5.1.1"
read-config-file@3.0.0:
version "3.0.0"
resolved "https://registry.yarnpkg.com/read-config-file/-/read-config-file-3.0.0.tgz#771def5184a7f76abaf6b2c82f20cb983775b8ea"
read-config-file@3.0.1:
version "3.0.1"
resolved "https://registry.yarnpkg.com/read-config-file/-/read-config-file-3.0.1.tgz#307ed2e162fa54306d0ae6d41e9cdc829720d2a9"
dependencies:
ajv "^6.1.1"
ajv-keywords "^3.1.0"
ajv "^6.4.0"
ajv-keywords "^3.2.0"
bluebird-lst "^1.0.5"
dotenv "^5.0.0"
dotenv-expand "^4.0.1"
fs-extra-p "^4.5.0"
js-yaml "^3.10.0"
json5 "^0.5.1"
dotenv "^5.0.1"
dotenv-expand "^4.2.0"
fs-extra-p "^4.6.0"
js-yaml "^3.11.0"
json5 "^1.0.1"
lazy-val "^1.0.3"
read-pkg-up@^1.0.1:
@ -9786,7 +9784,7 @@ rst-selector-parser@^2.2.3:
lodash.flattendeep "^4.4.0"
nearley "^2.7.10"
rtcpeerconnection-shim@^1.1.13:
rtcpeerconnection-shim@^1.2.10:
version "1.2.11"
resolved "https://registry.yarnpkg.com/rtcpeerconnection-shim/-/rtcpeerconnection-shim-1.2.11.tgz#df2b2456020365daf26bf8c135523bca2deb252b"
dependencies:
@ -9842,7 +9840,7 @@ safe-regex@^1.1.0:
dependencies:
ret "~0.1.10"
safer-buffer@^2.1.0:
"safer-buffer@>= 2.1.2 < 3", safer-buffer@^2.1.0:
version "2.1.2"
resolved "https://registry.yarnpkg.com/safer-buffer/-/safer-buffer-2.1.2.tgz#44fa161b0187b9549dd84bb91802f9bd8385cd6a"
@ -9950,10 +9948,14 @@ scss-tokenizer@^0.2.3:
js-base64 "^2.1.8"
source-map "^0.4.2"
sdp@^2.3.0, sdp@^2.6.0:
sdp@^2.6.0:
version "2.7.0"
resolved "https://registry.yarnpkg.com/sdp/-/sdp-2.7.0.tgz#02b64ea0c29d73179afa19794e466b123b1b29f3"
sdp@^2.7.0:
version "2.7.4"
resolved "https://registry.yarnpkg.com/sdp/-/sdp-2.7.4.tgz#cac76b0e2f16f55243d25bc0432f6bbb5488bfc1"
secp256k1@^3.0.1:
version "3.5.0"
resolved "https://registry.yarnpkg.com/secp256k1/-/secp256k1-3.5.0.tgz#677d3b8a8e04e1a5fa381a1ae437c54207b738d0"
@ -10265,12 +10267,19 @@ source-map-support@^0.4.15:
dependencies:
source-map "^0.5.6"
source-map-support@^0.5.0, source-map-support@^0.5.3, source-map-support@^0.5.4:
source-map-support@^0.5.0, source-map-support@^0.5.3:
version "0.5.4"
resolved "https://registry.yarnpkg.com/source-map-support/-/source-map-support-0.5.4.tgz#54456efa89caa9270af7cd624cc2f123e51fbae8"
dependencies:
source-map "^0.6.0"
source-map-support@^0.5.5, source-map-support@^0.5.6:
version "0.5.6"
resolved "https://registry.yarnpkg.com/source-map-support/-/source-map-support-0.5.6.tgz#4435cee46b1aab62b8e8610ce60f788091c51c13"
dependencies:
buffer-from "^1.0.0"
source-map "^0.6.0"
source-map-url@^0.4.0:
version "0.4.0"
resolved "https://registry.yarnpkg.com/source-map-url/-/source-map-url-0.4.0.tgz#3e935d7ddd73631b97659956d55128e87b5084a3"
@ -10786,13 +10795,13 @@ temp-dir@^1.0.0:
version "1.0.0"
resolved "https://registry.yarnpkg.com/temp-dir/-/temp-dir-1.0.0.tgz#0a7c0ea26d3a39afa7e0ebea9c1fc0bc4daa011d"
temp-file@^3.1.1:
version "3.1.1"
resolved "https://registry.yarnpkg.com/temp-file/-/temp-file-3.1.1.tgz#8823649aa4e8a6e419eb71b601a2e4d472b0f24f"
temp-file@^3.1.2:
version "3.1.2"
resolved "https://registry.yarnpkg.com/temp-file/-/temp-file-3.1.2.tgz#54ba4084097558e8ff2ad1e4bd84841ef2804043"
dependencies:
async-exit-hook "^2.0.1"
bluebird-lst "^1.0.5"
fs-extra-p "^4.5.0"
fs-extra-p "^4.6.0"
lazy-val "^1.0.3"
temp@^0.8.1:
@ -10974,6 +10983,10 @@ toggle-selection@^1.0.3:
version "1.0.6"
resolved "https://registry.yarnpkg.com/toggle-selection/-/toggle-selection-1.0.6.tgz#6e45b1263f2017fa0acc7d89d78b15b8bf77da32"
toml@^2.3.3:
version "2.3.3"
resolved "https://registry.yarnpkg.com/toml/-/toml-2.3.3.tgz#8d683d729577cb286231dfc7a8affe58d31728fb"
toposort@^1.0.0:
version "1.0.6"
resolved "https://registry.yarnpkg.com/toposort/-/toposort-1.0.6.tgz#c31748e55d210effc00fdcdc7d6e68d7d7bb9cec"
@ -11370,7 +11383,7 @@ upath@^1.0.0:
version "1.0.4"
resolved "https://registry.yarnpkg.com/upath/-/upath-1.0.4.tgz#ee2321ba0a786c50973db043a50b7bcba822361d"
update-notifier@^2.3.0, update-notifier@^2.4.0:
update-notifier@^2.3.0, update-notifier@^2.5.0:
version "2.5.0"
resolved "https://registry.yarnpkg.com/update-notifier/-/update-notifier-2.5.0.tgz#d0744593e13f161e406acb1d9408b72cad08aff6"
dependencies:
@ -11395,6 +11408,12 @@ uri-js@^3.0.2:
dependencies:
punycode "^2.1.0"
uri-js@^4.2.1:
version "4.2.2"
resolved "https://registry.yarnpkg.com/uri-js/-/uri-js-4.2.2.tgz#94c540e1ff772956e2299507c010aea6c8838eb0"
dependencies:
punycode "^2.1.0"
urix@^0.1.0:
version "0.1.0"
resolved "https://registry.yarnpkg.com/urix/-/urix-0.1.0.tgz#da937f7a62e21fec1fd18d49b35c2935067a6c72"
@ -11803,12 +11822,12 @@ webpack@4.5.0:
watchpack "^1.5.0"
webpack-sources "^1.0.1"
webrtc-adapter@^5.0.6:
version "5.0.6"
resolved "https://registry.yarnpkg.com/webrtc-adapter/-/webrtc-adapter-5.0.6.tgz#7946fca194dadf869bb6c8cae1011dfda03f40c7"
webrtc-adapter@^6.1.1:
version "6.1.5"
resolved "https://registry.yarnpkg.com/webrtc-adapter/-/webrtc-adapter-6.1.5.tgz#df72e4af5cb6675656c896db0d1187695359220b"
dependencies:
rtcpeerconnection-shim "^1.1.13"
sdp "^2.3.0"
rtcpeerconnection-shim "^1.2.10"
sdp "^2.7.0"
what-input@5.0.5:
version "5.0.5"