Bump deps (incl. Babel 7.5, current API) (#1366)

This commit is contained in:
Jaco Greeff 2019-07-08 16:02:27 +02:00 committed by GitHub
parent e921f95b6c
commit 63ca2a1687
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
27 changed files with 1521 additions and 740 deletions

View File

@ -10,12 +10,12 @@
"packages/*"
],
"resolutions": {
"@polkadot/api": "^0.82.0-beta.25",
"@polkadot/api-contract": "^0.82.0-beta.25",
"@polkadot/keyring": "^0.94.0-beta.4",
"@polkadot/types": "^0.82.0-beta.25",
"@polkadot/util": "^0.94.0-beta.4",
"@polkadot/util-crypto": "^0.94.0-beta.4",
"@polkadot/api": "^0.82.0-beta.30",
"@polkadot/api-contract": "^0.82.0-beta.30",
"@polkadot/keyring": "^0.94.0-beta.5",
"@polkadot/types": "^0.82.0-beta.30",
"@polkadot/util": "^0.94.0-beta.5",
"@polkadot/util-crypto": "^0.94.0-beta.5",
"@types/styled-components": "4.1.8",
"babel-core": "^7.0.0-bridge.0",
"typescript": "^3.5.2"
@ -32,11 +32,11 @@
"start": "cd packages/apps && webpack --config webpack.config.js"
},
"devDependencies": {
"@babel/core": "^7.4.5",
"@babel/runtime": "^7.4.5",
"@polkadot/dev-react": "^0.30.0-beta.16",
"@babel/core": "^7.5.0",
"@babel/runtime": "^7.5.0",
"@polkadot/dev-react": "^0.30.0-beta.17",
"@polkadot/ts": "^0.1.60",
"autoprefixer": "^9.5.1",
"autoprefixer": "^9.6.1",
"empty": "^0.10.1",
"gh-pages": "^2.0.1",
"html-loader": "^0.5.5",
@ -47,7 +47,7 @@
"postcss-import": "^12.0.0",
"postcss-loader": "^3.0.0",
"postcss-nested": "^4.1.2",
"postcss-sass": "^0.3.5",
"postcss-sass": "^0.4.1",
"postcss-simple-vars": "^5.0.0",
"precss": "^4.0.0",
"source-map-explorer": "^2.0.1"

View File

@ -10,7 +10,7 @@
],
"license": "Apache-2.0",
"dependencies": {
"@babel/runtime": "^7.4.5",
"@babel/runtime": "^7.5.0",
"@polkadot/ui-app": "^0.34.0-beta.42"
}
}

View File

@ -10,7 +10,7 @@
"contributors": [],
"license": "Apache-2.0",
"dependencies": {
"@babel/runtime": "^7.4.5",
"@babel/runtime": "^7.5.0",
"@polkadot/ui-app": "^0.34.0-beta.42",
"@types/file-saver": "^2.0.0",
"@types/yargs": "^13.0.0",

View File

@ -10,7 +10,7 @@
"contributors": [],
"license": "Apache-2.0",
"dependencies": {
"@babel/runtime": "^7.4.5",
"@babel/runtime": "^7.5.0",
"@polkadot/ui-app": "^0.34.0-beta.42"
}
}

View File

@ -10,8 +10,8 @@
],
"license": "Apache-2.0",
"dependencies": {
"@babel/runtime": "^7.4.5",
"@polkadot/api-contract": "^0.82.0-beta.25",
"@babel/runtime": "^7.5.0",
"@polkadot/api-contract": "^0.82.0-beta.30",
"@polkadot/ui-app": "^0.34.0-beta.42"
}
}

View File

@ -10,7 +10,7 @@
],
"license": "Apache-2.0",
"dependencies": {
"@babel/runtime": "^7.4.5",
"@babel/runtime": "^7.5.0",
"@polkadot/ui-app": "^0.34.0-beta.42",
"@polkadot/ui-reactive": "^0.34.0-beta.42"
}

View File

@ -10,7 +10,7 @@
],
"license": "Apache-2.0",
"dependencies": {
"@babel/runtime": "^7.4.5",
"@babel/runtime": "^7.5.0",
"@polkadot/apps-routing": "^0.34.0-beta.42",
"@polkadot/ui-app": "^0.34.0-beta.42"
}

View File

@ -10,7 +10,7 @@
],
"license": "Apache-2.0",
"dependencies": {
"@babel/runtime": "^7.4.5",
"@babel/runtime": "^7.5.0",
"@polkadot/ui-app": "^0.34.0-beta.42",
"@polkadot/ui-reactive": "^0.34.0-beta.42"
}

View File

@ -19,7 +19,7 @@ import { withCalls, withMulti } from '@polkadot/ui-api';
import translate from '../translate';
import Voting from './Voting';
const COLORS_YAY = settings.uiTheme === 'substrate'
const COLORS_AYE = settings.uiTheme === 'substrate'
? ['#4d4', '#4e4']
: ['#64bebe', '#5badad'];
const COLORS_NAY = settings.uiTheme === 'substrate'
@ -36,21 +36,21 @@ type Props = I18nProps & {
type State = {
voteCount: number,
voteCountYay: number,
voteCountAye: number,
voteCountNay: number,
votedTotal: BN,
votedAye: BN,
votedNay: BN,
votedYay: BN
votedTotal: BN
};
class Referendum extends React.PureComponent<Props, State> {
state: State = {
voteCount: 0,
voteCountYay: 0,
voteCountAye: 0,
voteCountNay: 0,
votedTotal: new BN(0),
votedYay: new BN(0),
votedNay: new BN(0)
votedAye: new BN(0),
votedNay: new BN(0),
votedTotal: new BN(0)
};
static getDerivedStateFromProps ({ democracy_referendumVotesFor }: Props, prevState: State): State | null {
@ -59,9 +59,9 @@ class Referendum extends React.PureComponent<Props, State> {
}
const newState: State = democracy_referendumVotesFor.reduce((state, { balance, vote }) => {
if (vote.ltn(0)) {
state.voteCountYay++;
state.votedYay = state.votedYay.add(balance);
if (vote.isAye) {
state.voteCountAye++;
state.votedAye = state.votedAye.add(balance);
} else {
state.voteCountNay++;
state.votedNay = state.votedNay.add(balance);
@ -73,14 +73,14 @@ class Referendum extends React.PureComponent<Props, State> {
return state;
}, {
voteCount: 0,
voteCountYay: 0,
voteCountAye: 0,
voteCountNay: 0,
votedTotal: new BN(0),
votedYay: new BN(0),
votedNay: new BN(0)
votedAye: new BN(0),
votedNay: new BN(0),
votedTotal: new BN(0)
});
if (newState.votedYay.eq(prevState.votedNay) && newState.votedNay.eq(prevState.votedNay)) {
if (newState.votedAye.eq(prevState.votedNay) && newState.votedNay.eq(prevState.votedNay)) {
return null;
}
@ -150,7 +150,7 @@ class Referendum extends React.PureComponent<Props, State> {
}
private renderResults () {
const { voteCount, voteCountYay, voteCountNay, votedTotal, votedYay, votedNay } = this.state;
const { voteCount, voteCountAye, voteCountNay, votedAye, votedNay, votedTotal } = this.state;
if (voteCount === 0 || votedTotal.eqn(0)) {
return null;
@ -161,9 +161,9 @@ class Referendum extends React.PureComponent<Props, State> {
<Chart.HorizBar
values={[
{
colors: COLORS_YAY,
label: `Yay, ${formatBalance(votedYay)} (${formatNumber(voteCountYay)})`,
value: votedYay.muln(10000).div(votedTotal).toNumber() / 100
colors: COLORS_AYE,
label: `Aye, ${formatBalance(votedAye)} (${formatNumber(voteCountAye)})`,
value: votedAye.muln(10000).div(votedTotal).toNumber() / 100
},
{
colors: COLORS_NAY,

View File

@ -10,7 +10,7 @@
"contributors": [],
"license": "Apache-2.0",
"dependencies": {
"@babel/runtime": "^7.4.5",
"@babel/runtime": "^7.5.0",
"@polkadot/ui-app": "^0.34.0-beta.42"
}
}

View File

@ -10,7 +10,7 @@
"contributors": [],
"license": "Apache-2.0",
"dependencies": {
"@babel/runtime": "^7.4.5",
"@babel/runtime": "^7.5.0",
"@polkadot/ui-app": "^0.34.0-beta.42",
"@polkadot/ui-params": "^0.34.0-beta.42",
"@polkadot/ui-signer": "^0.34.0-beta.42"

View File

@ -10,7 +10,7 @@
],
"license": "Apache-2.0",
"dependencies": {
"@babel/runtime": "^7.4.5",
"@babel/runtime": "^7.5.0",
"@polkadot/ui-app": "^0.34.0-beta.42",
"snappyjs": "^0.6.0"
}

View File

@ -10,7 +10,7 @@
],
"license": "Apache-2.0",
"dependencies": {
"@babel/runtime": "^7.4.5",
"@babel/runtime": "^7.5.0",
"@polkadot/ui-app": "^0.34.0-beta.42",
"@polkadot/ui-reactive": "^0.34.0-beta.42"
}

View File

@ -10,7 +10,7 @@
],
"license": "Apache-2.0",
"dependencies": {
"@babel/runtime": "^7.4.5",
"@babel/runtime": "^7.5.0",
"@polkadot/app-explorer": "^0.34.0-beta.42",
"@polkadot/ui-app": "^0.34.0-beta.42",
"@polkadot/ui-reactive": "^0.34.0-beta.42"

View File

@ -10,7 +10,7 @@
"contributors": [],
"license": "Apache-2.0",
"dependencies": {
"@babel/runtime": "^7.4.5",
"@babel/runtime": "^7.5.0",
"@polkadot/ui-app": "^0.34.0-beta.42",
"@polkadot/ui-params": "^0.34.0-beta.42"
}

View File

@ -11,7 +11,7 @@
],
"license": "Apache-2.0",
"dependencies": {
"@babel/runtime": "^7.4.5",
"@babel/runtime": "^7.5.0",
"@polkadot/ui-app": "^0.34.0-beta.42"
}
}

View File

@ -10,7 +10,7 @@
"contributors": [],
"license": "Apache-2.0",
"dependencies": {
"@babel/runtime": "^7.4.5",
"@babel/runtime": "^7.5.0",
"@polkadot/ui-app": "^0.34.0-beta.42"
}
}

View File

@ -10,7 +10,7 @@
],
"license": "Apache-2.0",
"dependencies": {
"@babel/runtime": "^7.4.5",
"@babel/runtime": "^7.5.0",
"@polkadot/ui-app": "^0.34.0-beta.42",
"@polkadot/ui-reactive": "^0.34.0-beta.42"
}

View File

@ -11,7 +11,7 @@
],
"license": "Apache-2.0",
"dependencies": {
"@babel/runtime": "^7.4.5",
"@babel/runtime": "^7.5.0",
"@polkadot/ui-app": "^0.34.0-beta.42",
"@polkadot/ui-reactive": "^0.34.0-beta.42"
}

View File

@ -10,6 +10,6 @@
"contributors": [],
"license": "Apache-2.0",
"dependencies": {
"@babel/runtime": "^7.4.5"
"@babel/runtime": "^7.5.0"
}
}

View File

@ -12,9 +12,9 @@
"contributors": [],
"license": "Apache-2.0",
"dependencies": {
"@babel/runtime": "^7.4.5",
"@babel/runtime": "^7.5.0",
"@polkadot/ui-app": "^0.34.0-beta.42",
"@polkadot/ui-assets": "^0.42.0-beta.2",
"@polkadot/ui-assets": "^0.42.0-beta.3",
"@polkadot/ui-signer": "^0.34.0-beta.42"
}
}

View File

@ -30,9 +30,9 @@
},
"homepage": "https://github.com/polkadot-js/ui/tree/master/packages/ui-reactive#readme",
"dependencies": {
"@babel/runtime": "^7.4.5",
"@polkadot/api": "^0.82.0-beta.25",
"@polkadot/extension-dapp": "^0.1.1-beta.28",
"@babel/runtime": "^7.5.0",
"@polkadot/api": "^0.82.0-beta.30",
"@polkadot/extension-dapp": "^0.1.1-beta.30",
"rxjs-compat": "^6.4.0"
}
}

View File

@ -10,25 +10,24 @@
"contributors": [],
"license": "Apache-2.0",
"dependencies": {
"@babel/runtime": "^7.4.5",
"@polkadot/keyring": "^0.94.0-beta.4",
"@babel/runtime": "^7.5.0",
"@polkadot/keyring": "^0.94.0-beta.5",
"@polkadot/ui-api": "^0.34.0-beta.42",
"@polkadot/ui-identicon": "^0.42.0-beta.2",
"@polkadot/ui-keyring": "^0.42.0-beta.2",
"@polkadot/ui-identicon": "^0.42.0-beta.3",
"@polkadot/ui-keyring": "^0.42.0-beta.3",
"@polkadot/ui-reactive": "^0.34.0-beta.42",
"@polkadot/ui-settings": "^0.42.0-beta.2",
"@types/chart.js": "^2.7.53",
"@types/classnames": "^2.2.7",
"@polkadot/ui-settings": "^0.42.0-beta.3",
"@types/chart.js": "^2.7.55",
"@types/i18next": "^12.1.0",
"@types/react-copy-to-clipboard": "^4.2.6",
"@types/react-dropzone": "^4.2.2",
"@types/react-router-dom": "^4.3.2",
"@types/react-tooltip": "^3.9.1",
"@types/react-tooltip": "^3.9.3",
"@types/styled-components": "4.1.8",
"@types/styled-theming": "2.2.1",
"chart.js": "^2.8.0",
"codeflask": "^1.4.0",
"i18next": "^17.0.4",
"i18next": "^17.0.6",
"i18next-browser-languagedetector": "^3.0.1",
"i18next-xhr-backend": "^3.0.0",
"react": "^16.8.2",
@ -36,8 +35,8 @@
"react-copy-to-clipboard": "^5.0.1",
"react-dom": "^16.8.2",
"react-dropzone": "^7.0.1",
"react-i18next": "^10.11.2",
"react-markdown": "^4.0.8",
"react-i18next": "^10.11.4",
"react-markdown": "^4.1.0",
"react-router": "^5.0.0",
"react-router-dom": "^5.0.0",
"react-tooltip": "^3.9.2",

View File

@ -10,7 +10,7 @@
"contributors": [],
"license": "Apache-2.0",
"dependencies": {
"@babel/runtime": "^7.4.5",
"@babel/runtime": "^7.5.0",
"@polkadot/ui-app": "^0.34.0-beta.42"
}
}

View File

@ -30,7 +30,7 @@
},
"homepage": "https://github.com/polkadot-js/ui/tree/master/packages/ui-reactive#readme",
"dependencies": {
"@babel/runtime": "^7.4.5",
"@babel/runtime": "^7.5.0",
"rxjs-compat": "^6.4.0"
}
}

View File

@ -10,7 +10,7 @@
"contributors": [],
"license": "Apache-2.0",
"dependencies": {
"@babel/runtime": "^7.4.5",
"@babel/runtime": "^7.5.0",
"@polkadot/ui-app": "^0.34.0-beta.42"
}
}

2124
yarn.lock

File diff suppressed because it is too large Load Diff