Bump deps (#759)
This commit is contained in:
+4
-4
@@ -8,16 +8,16 @@
|
||||
"packages/*"
|
||||
],
|
||||
"resolutions": {
|
||||
"@polkadot/api": "^4.15.1",
|
||||
"@polkadot/api": "^4.15.2-2",
|
||||
"@polkadot/keyring": "^6.9.1",
|
||||
"@polkadot/networks": "^6.9.1",
|
||||
"@polkadot/types": "^4.15.1",
|
||||
"@polkadot/types": "^4.15.2-2",
|
||||
"@polkadot/util": "^6.9.1",
|
||||
"@polkadot/util-crypto": "^6.9.1",
|
||||
"@polkadot/x-fetch": "^6.9.1",
|
||||
"babel-core": "^7.0.0-bridge.0",
|
||||
"safe-buffer": "^5.2.1",
|
||||
"typescript": "^4.3.2"
|
||||
"typescript": "^4.3.4"
|
||||
},
|
||||
"scripts": {
|
||||
"build": "polkadot-dev-build-ts && yarn build:zip",
|
||||
@@ -39,7 +39,7 @@
|
||||
},
|
||||
"devDependencies": {
|
||||
"@babel/core": "^7.14.6",
|
||||
"@polkadot/dev": "^0.62.42",
|
||||
"@polkadot/dev": "^0.62.43",
|
||||
"@types/jest": "^26.0.23",
|
||||
"i18next-scanner": "^3.0.0",
|
||||
"sinon-chrome": "^3.0.1",
|
||||
|
||||
@@ -9,11 +9,11 @@
|
||||
"sideEffects": false,
|
||||
"dependencies": {
|
||||
"@babel/runtime": "^7.14.6",
|
||||
"@polkadot/api": "^4.15.1",
|
||||
"@polkadot/api": "^4.15.2-2",
|
||||
"@polkadot/extension-dapp": "^0.38.6",
|
||||
"@polkadot/extension-inject": "^0.38.6",
|
||||
"@polkadot/keyring": "^6.9.1",
|
||||
"@polkadot/phishing": "^0.6.204",
|
||||
"@polkadot/ui-keyring": "^0.81.1"
|
||||
"@polkadot/phishing": "^0.6.207",
|
||||
"@polkadot/ui-keyring": "^0.81.2-0"
|
||||
}
|
||||
}
|
||||
|
||||
@@ -10,19 +10,7 @@ export default class AccountsStore extends BaseStore<KeyringJson> implements Key
|
||||
super(null);
|
||||
}
|
||||
|
||||
public all (cb: (key: string, value: KeyringJson) => void): void {
|
||||
super.all(cb);
|
||||
}
|
||||
|
||||
public get (key: string, update: (value: KeyringJson) => void): void {
|
||||
super.get(key, update);
|
||||
}
|
||||
|
||||
public remove (key: string, update?: () => void): void {
|
||||
super.remove(key, update);
|
||||
}
|
||||
|
||||
public set (key: string, value: KeyringJson, update?: () => void): void {
|
||||
public override set (key: string, value: KeyringJson, update?: () => void): void {
|
||||
// shortcut, don't save testing accounts in extension storage
|
||||
if (key.startsWith('account:') && value.meta && value.meta.isTesting) {
|
||||
update && update();
|
||||
|
||||
@@ -9,20 +9,4 @@ export default class MetadataStore extends BaseStore<MetadataDef> {
|
||||
constructor () {
|
||||
super('metadata');
|
||||
}
|
||||
|
||||
public all (cb: (key: string, value: MetadataDef) => void): void {
|
||||
super.all(cb);
|
||||
}
|
||||
|
||||
public get (key: string, update: (value: MetadataDef) => void): void {
|
||||
super.get(key, update);
|
||||
}
|
||||
|
||||
public remove (key: string, update?: () => void): void {
|
||||
super.remove(key, update);
|
||||
}
|
||||
|
||||
public set (key: string, value: MetadataDef, update?: () => void): void {
|
||||
super.set(key, value, update);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -18,8 +18,8 @@
|
||||
"@polkadot/hw-ledger": "^6.9.1",
|
||||
"@polkadot/keyring": "^6.9.1",
|
||||
"@polkadot/networks": "^6.9.1",
|
||||
"@polkadot/react-identicon": "^0.81.1",
|
||||
"@polkadot/react-qr": "^0.81.1",
|
||||
"@polkadot/react-identicon": "^0.81.2-0",
|
||||
"@polkadot/react-qr": "^0.81.2-0",
|
||||
"@polkadot/util": "^6.9.1",
|
||||
"@polkadot/util-crypto": "^6.9.1",
|
||||
"file-saver": "^2.0.5",
|
||||
|
||||
@@ -23,13 +23,13 @@ interface State {
|
||||
|
||||
// NOTE: This is the only way to do an error boundary, via extend
|
||||
class ErrorBoundary extends React.Component<Props> {
|
||||
state: State = { error: null };
|
||||
public override state: State = { error: null };
|
||||
|
||||
static getDerivedStateFromError (error: Error): Partial<State> {
|
||||
public static getDerivedStateFromError (error: Error): Partial<State> {
|
||||
return { error };
|
||||
}
|
||||
|
||||
componentDidUpdate (prevProps: Props) {
|
||||
public override componentDidUpdate (prevProps: Props) {
|
||||
const { error } = this.state;
|
||||
const { trigger } = this.props;
|
||||
|
||||
@@ -38,12 +38,12 @@ class ErrorBoundary extends React.Component<Props> {
|
||||
}
|
||||
}
|
||||
|
||||
goHome = () => {
|
||||
#goHome = () => {
|
||||
this.setState({ error: null });
|
||||
window.location.hash = '/';
|
||||
};
|
||||
|
||||
public render (): React.ReactNode {
|
||||
public override render (): React.ReactNode {
|
||||
const { children, t } = this.props;
|
||||
const { error } = this.state;
|
||||
|
||||
@@ -59,7 +59,7 @@ class ErrorBoundary extends React.Component<Props> {
|
||||
<VerticalSpace/>
|
||||
<ButtonArea>
|
||||
<Button
|
||||
onClick={this.goHome}
|
||||
onClick={this.#goHome}
|
||||
>
|
||||
{t<string>('Back to home')}
|
||||
</Button>
|
||||
|
||||
@@ -12,7 +12,7 @@
|
||||
"@polkadot/extension-ui": "^0.38.6"
|
||||
},
|
||||
"devDependencies": {
|
||||
"@polkadot/dev": "^0.62.42",
|
||||
"@polkadot/dev": "^0.62.43",
|
||||
"babel-loader": "^8.2.2",
|
||||
"browser-resolve": "^2.0.0",
|
||||
"buffer": "^6.0.3",
|
||||
@@ -26,7 +26,7 @@
|
||||
"stream-browserify": "^3.0.0",
|
||||
"thread-loader": "^3.0.4",
|
||||
"url-loader": "^4.1.1",
|
||||
"webpack": "^5.39.1",
|
||||
"webpack": "^5.40.0",
|
||||
"webpack-cli": "^4.7.2",
|
||||
"webpack-extension-manifest-plugin": "^0.7.0"
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user