Bump deps (#894)
* Bump deps * Bumps * i18next fix * Adjust provider signature
This commit is contained in:
parent
c94ecbc859
commit
7150c52a56
20
package.json
20
package.json
@ -33,22 +33,22 @@
|
||||
"watch": "cd packages/extension && yarn polkadot-exec-webpack --config webpack.watch.cjs --mode development --watch"
|
||||
},
|
||||
"devDependencies": {
|
||||
"@babel/core": "^7.15.8",
|
||||
"@polkadot/dev": "^0.63.27",
|
||||
"@babel/core": "^7.16.0",
|
||||
"@polkadot/dev": "^0.63.29",
|
||||
"@types/jest": "^27.0.2",
|
||||
"i18next-scanner": "^3.1.0",
|
||||
"sinon-chrome": "^3.0.1"
|
||||
},
|
||||
"resolutions": {
|
||||
"@polkadot/api": "^6.7.1",
|
||||
"@polkadot/keyring": "^7.8.2",
|
||||
"@polkadot/networks": "^7.8.2",
|
||||
"@polkadot/types": "^6.7.1",
|
||||
"@polkadot/util": "^7.8.2",
|
||||
"@polkadot/util-crypto": "^7.8.2",
|
||||
"@polkadot/x-fetch": "^7.8.2",
|
||||
"@polkadot/api": "^6.8.2-12",
|
||||
"@polkadot/keyring": "^7.8.3-27",
|
||||
"@polkadot/networks": "^7.8.3-27",
|
||||
"@polkadot/types": "^6.8.2-12",
|
||||
"@polkadot/util": "^7.8.3-27",
|
||||
"@polkadot/util-crypto": "^7.8.3-27",
|
||||
"@polkadot/x-fetch": "^7.8.3-27",
|
||||
"babel-core": "^7.0.0-bridge.0",
|
||||
"safe-buffer": "^5.2.1",
|
||||
"typescript": "^4.4.4"
|
||||
"typescript": "^4.5.2"
|
||||
}
|
||||
}
|
||||
|
||||
@ -17,12 +17,12 @@
|
||||
"version": "0.41.2-0",
|
||||
"main": "index.js",
|
||||
"dependencies": {
|
||||
"@babel/runtime": "^7.15.4",
|
||||
"@polkadot/api": "^6.7.1",
|
||||
"@babel/runtime": "^7.16.3",
|
||||
"@polkadot/api": "^6.8.2-12",
|
||||
"@polkadot/extension-dapp": "^0.41.2-0",
|
||||
"@polkadot/extension-inject": "^0.41.2-0",
|
||||
"@polkadot/keyring": "^7.8.2",
|
||||
"@polkadot/phishing": "^0.6.407",
|
||||
"@polkadot/ui-keyring": "^0.86.5"
|
||||
"@polkadot/keyring": "^7.8.3-27",
|
||||
"@polkadot/phishing": "^0.6.442",
|
||||
"@polkadot/ui-keyring": "^0.86.6-0"
|
||||
}
|
||||
}
|
||||
|
||||
@ -109,7 +109,7 @@ export default class PostMessageProvider implements InjectedProvider {
|
||||
}
|
||||
|
||||
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
||||
public async send (method: string, params: unknown[], subscription?: SubscriptionHandler): Promise<any> {
|
||||
public async send (method: string, params: unknown[], _?: boolean, subscription?: SubscriptionHandler): Promise<any> {
|
||||
if (subscription) {
|
||||
const { callback, type } = subscription;
|
||||
|
||||
@ -152,7 +152,7 @@ export default class PostMessageProvider implements InjectedProvider {
|
||||
}
|
||||
|
||||
public subscribe (type: string, method: string, params: unknown[], callback: AnyFunction): Promise<number> {
|
||||
return this.send(method, params, { callback, type }) as Promise<number>;
|
||||
return this.send(method, params, false, { callback, type }) as Promise<number>;
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
@ -17,8 +17,8 @@
|
||||
"version": "0.41.2-0",
|
||||
"main": "index.js",
|
||||
"dependencies": {
|
||||
"@babel/runtime": "^7.15.4",
|
||||
"@polkadot/networks": "^7.8.2"
|
||||
"@babel/runtime": "^7.16.3",
|
||||
"@polkadot/networks": "^7.8.3-27"
|
||||
},
|
||||
"peerDependencies": {
|
||||
"@polkadot/api": "*"
|
||||
|
||||
@ -17,11 +17,11 @@
|
||||
"version": "0.41.2-0",
|
||||
"main": "index.js",
|
||||
"dependencies": {
|
||||
"@babel/runtime": "^7.15.4",
|
||||
"@babel/runtime": "^7.16.3",
|
||||
"@metamask/detect-provider": "^1.2.0",
|
||||
"@polkadot/extension-inject": "^0.41.2-0",
|
||||
"@polkadot/util": "^7.8.2",
|
||||
"web3": "^1.6.0"
|
||||
"@polkadot/util": "^7.8.3-27",
|
||||
"web3": "^1.6.1"
|
||||
},
|
||||
"peerDependencies": {
|
||||
"@polkadot/util": "*"
|
||||
|
||||
@ -17,10 +17,10 @@
|
||||
"version": "0.41.2-0",
|
||||
"main": "index.js",
|
||||
"dependencies": {
|
||||
"@babel/runtime": "^7.15.4",
|
||||
"@babel/runtime": "^7.16.3",
|
||||
"@polkadot/extension-inject": "^0.41.2-0",
|
||||
"@polkadot/util": "^7.8.2",
|
||||
"@polkadot/util-crypto": "^7.8.2"
|
||||
"@polkadot/util": "^7.8.3-27",
|
||||
"@polkadot/util-crypto": "^7.8.3-27"
|
||||
},
|
||||
"peerDependencies": {
|
||||
"@polkadot/api": "*",
|
||||
|
||||
@ -17,10 +17,10 @@
|
||||
"version": "0.41.2-0",
|
||||
"main": "index.js",
|
||||
"dependencies": {
|
||||
"@babel/runtime": "^7.15.4"
|
||||
"@babel/runtime": "^7.16.3"
|
||||
},
|
||||
"devDependencies": {
|
||||
"@types/chrome": "^0.0.161",
|
||||
"@types/chrome": "^0.0.164",
|
||||
"@types/firefox-webext-browser": "^94.0.0"
|
||||
},
|
||||
"peerDependencies": {
|
||||
|
||||
@ -16,7 +16,7 @@
|
||||
"type": "module",
|
||||
"version": "0.41.2-0",
|
||||
"dependencies": {
|
||||
"@babel/runtime": "^7.15.4",
|
||||
"@babel/runtime": "^7.16.3",
|
||||
"@fortawesome/fontawesome-svg-core": "^1.2.36",
|
||||
"@fortawesome/free-brands-svg-icons": "^5.15.4",
|
||||
"@fortawesome/free-regular-svg-icons": "^5.15.4",
|
||||
@ -25,19 +25,19 @@
|
||||
"@polkadot/extension-base": "^0.41.2-0",
|
||||
"@polkadot/extension-dapp": "^0.41.2-0",
|
||||
"@polkadot/extension-inject": "^0.41.2-0",
|
||||
"@polkadot/hw-ledger": "^7.8.2",
|
||||
"@polkadot/keyring": "^7.8.2",
|
||||
"@polkadot/networks": "^7.8.2",
|
||||
"@polkadot/react-identicon": "^0.86.5",
|
||||
"@polkadot/react-qr": "^0.86.5",
|
||||
"@polkadot/util": "^7.8.2",
|
||||
"@polkadot/util-crypto": "^7.8.2",
|
||||
"@polkadot/hw-ledger": "^7.8.3-27",
|
||||
"@polkadot/keyring": "^7.8.3-27",
|
||||
"@polkadot/networks": "^7.8.3-27",
|
||||
"@polkadot/react-identicon": "^0.86.6-0",
|
||||
"@polkadot/react-qr": "^0.86.6-0",
|
||||
"@polkadot/util": "^7.8.3-27",
|
||||
"@polkadot/util-crypto": "^7.8.3-27",
|
||||
"file-saver": "^2.0.5",
|
||||
"i18next": "^21.3.3",
|
||||
"i18next": "^21.5.2",
|
||||
"react": "^17.0.2",
|
||||
"react-dom": "^17.0.2",
|
||||
"react-dropzone": "^11.4.2",
|
||||
"react-i18next": "^11.12.0",
|
||||
"react-i18next": "^11.14.2",
|
||||
"react-is": "^17.0.2",
|
||||
"react-router": "^5.2.1",
|
||||
"react-router-dom": "^5.3.0",
|
||||
@ -47,9 +47,9 @@
|
||||
"@types/bn.js": "^4.11.6",
|
||||
"@types/enzyme": "^3.10.10",
|
||||
"@types/enzyme-adapter-react-16": "^1.0.6",
|
||||
"@types/file-saver": "^2.0.3",
|
||||
"@types/file-saver": "^2.0.4",
|
||||
"@types/react-copy-to-clipboard": "^5.0.2",
|
||||
"@types/react-dom": "^17.0.10",
|
||||
"@types/react-dom": "^17.0.11",
|
||||
"@types/react-router": "^5.1.17",
|
||||
"@types/react-router-dom": "^5.3.2",
|
||||
"@types/sinon-chrome": "^2.2.11",
|
||||
|
||||
@ -3,7 +3,7 @@
|
||||
|
||||
import { useTranslation as useTranslationBase, UseTranslationResponse, withTranslation } from 'react-i18next';
|
||||
|
||||
export function useTranslation (): UseTranslationResponse<string> {
|
||||
export function useTranslation (): UseTranslationResponse<string, undefined> {
|
||||
return useTranslationBase();
|
||||
}
|
||||
|
||||
|
||||
@ -16,27 +16,27 @@
|
||||
"type": "module",
|
||||
"version": "0.41.2-0",
|
||||
"dependencies": {
|
||||
"@babel/runtime": "^7.15.4",
|
||||
"@babel/runtime": "^7.16.3",
|
||||
"@polkadot/extension-base": "^0.41.2-0",
|
||||
"@polkadot/extension-inject": "^0.41.2-0",
|
||||
"@polkadot/extension-ui": "^0.41.2-0"
|
||||
},
|
||||
"devDependencies": {
|
||||
"@polkadot/dev": "^0.63.27",
|
||||
"@polkadot/dev": "^0.63.29",
|
||||
"babel-loader": "^8.2.3",
|
||||
"browser-resolve": "^2.0.0",
|
||||
"buffer": "^6.0.3",
|
||||
"copy-webpack-plugin": "^9.0.1",
|
||||
"copy-webpack-plugin": "^9.1.0",
|
||||
"crypto-browserify": "^3.12.0",
|
||||
"extract-loader": "^5.1.0",
|
||||
"file-loader": "^6.2.0",
|
||||
"html-loader": "^3.0.0",
|
||||
"html-loader": "^3.0.1",
|
||||
"path-browserify": "^1.0.1",
|
||||
"process": "^0.11.10",
|
||||
"stream-browserify": "^3.0.0",
|
||||
"thread-loader": "^3.0.4",
|
||||
"url-loader": "^4.1.1",
|
||||
"webpack": "^5.60.0",
|
||||
"webpack": "^5.64.1",
|
||||
"webpack-cli": "^4.9.1",
|
||||
"webpack-extension-manifest-plugin": "^0.8.0"
|
||||
}
|
||||
|
||||
Loading…
Reference in New Issue
Block a user