Skip to content

Commit

Permalink
Bump API to latest (#717)
Browse files Browse the repository at this point in the history
* Bump API to latest

* Linting

* External deps

* typing updates
  • Loading branch information
jacogr authored May 11, 2021
1 parent 52fec82 commit 3073277
Show file tree
Hide file tree
Showing 9 changed files with 405 additions and 403 deletions.
22 changes: 11 additions & 11 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,13 +8,13 @@
"packages/*"
],
"resolutions": {
"@polkadot/api": "^4.9.3-0",
"@polkadot/keyring": "^6.3.1",
"@polkadot/networks": "^6.3.1",
"@polkadot/types": "^4.9.3-0",
"@polkadot/util": "^6.3.1",
"@polkadot/util-crypto": "^6.3.1",
"@polkadot/x-fetch": "^6.3.1",
"@polkadot/api": "^4.9.3-11",
"@polkadot/keyring": "^6.3.2-10",
"@polkadot/networks": "^6.3.2-10",
"@polkadot/types": "^4.9.3-11",
"@polkadot/util": "^6.3.2-10",
"@polkadot/util-crypto": "^6.3.2-10",
"@polkadot/x-fetch": "^6.3.2-10",
"babel-core": "^7.0.0-bridge.0",
"safe-buffer": "^5.2.1",
"typescript": "^4.2.4"
Expand All @@ -37,12 +37,12 @@
"watch": "cd packages/extension && yarn polkadot-exec-webpack --config webpack.watch.cjs --mode development --watch"
},
"devDependencies": {
"@babel/core": "^7.13.16",
"@polkadot/dev": "^0.62.12",
"@types/jest": "^26.0.22",
"@babel/core": "^7.14.0",
"@polkadot/dev": "^0.62.13",
"@types/jest": "^26.0.23",
"i18next-scanner": "^3.0.0",
"sinon-chrome": "^3.0.1",
"stylelint": "^13.13.0",
"stylelint": "^13.13.1",
"stylelint-config-recommended": "^5.0.0",
"stylelint-config-styled-components": "^0.1.1"
}
Expand Down
10 changes: 5 additions & 5 deletions packages/extension-base/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,11 +8,11 @@
"main": "index.js",
"sideEffects": false,
"dependencies": {
"@babel/runtime": "^7.13.17",
"@polkadot/api": "^4.9.3-0",
"@babel/runtime": "^7.14.0",
"@polkadot/api": "^4.9.3-11",
"@polkadot/extension-inject": "^0.37.3-18",
"@polkadot/keyring": "^6.3.1",
"@polkadot/phishing": "^0.6.125",
"@polkadot/ui-keyring": "^0.75.2-0"
"@polkadot/keyring": "^6.3.2-10",
"@polkadot/phishing": "^0.6.137",
"@polkadot/ui-keyring": "^0.75.2-1"
}
}
6 changes: 3 additions & 3 deletions packages/extension-base/src/background/handlers/State.ts
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ interface SignRequest extends Resolver<ResponseSigning> {

let idCounter = 0;

const WINDOW_OPTS = {
const WINDOW_OPTS: chrome.windows.CreateData = {
// This is not allowed on FF, only on Chrome - disable completely
// focused: true,
height: 621,
Expand Down Expand Up @@ -163,7 +163,7 @@ export default class State {
private popupOpen (): void {
chrome.windows.create({ ...WINDOW_OPTS }, (window?: chrome.windows.Window): void => {
if (window) {
this.#windows.push(window.id);
this.#windows.push(window.id || 0);
}
});
}
Expand Down Expand Up @@ -375,7 +375,7 @@ export default class State {

assert(provider, 'Cannot call pub(rpc.subscribe) before provider is set');

return provider.send(request.method, request.params) as Promise<JsonRpcResponse>;
return provider.send(request.method, request.params);
}

// Start a provider, return its meta
Expand Down
4 changes: 2 additions & 2 deletions packages/extension-chains/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,8 @@
"main": "index.js",
"sideEffects": false,
"dependencies": {
"@babel/runtime": "^7.13.17",
"@polkadot/networks": "^6.3.1"
"@babel/runtime": "^7.14.0",
"@polkadot/networks": "^6.3.2-10"
},
"peerDependencies": {
"@polkadot/api": "*"
Expand Down
6 changes: 3 additions & 3 deletions packages/extension-dapp/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,10 +8,10 @@
"main": "index.js",
"sideEffects": false,
"dependencies": {
"@babel/runtime": "^7.13.17",
"@babel/runtime": "^7.14.0",
"@polkadot/extension-inject": "^0.37.3-18",
"@polkadot/util": "^6.3.1",
"@polkadot/util-crypto": "^6.3.1"
"@polkadot/util": "^6.3.2-10",
"@polkadot/util-crypto": "^6.3.2-10"
},
"peerDependencies": {
"@polkadot/api": "*",
Expand Down
4 changes: 2 additions & 2 deletions packages/extension-inject/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,10 +8,10 @@
"main": "index.js",
"sideEffects": false,
"dependencies": {
"@babel/runtime": "^7.13.17"
"@babel/runtime": "^7.14.0"
},
"devDependencies": {
"@types/chrome": "^0.0.135",
"@types/chrome": "^0.0.139",
"@types/firefox-webext-browser": "^82.0.0"
},
"peerDependencies": {
Expand Down
24 changes: 12 additions & 12 deletions packages/extension-ui/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,40 +6,40 @@
"author": "Jaco Greeff <[email protected]>",
"license": "Apache-2",
"dependencies": {
"@babel/runtime": "^7.13.17",
"@babel/runtime": "^7.14.0",
"@fortawesome/fontawesome-svg-core": "^1.2.35",
"@fortawesome/free-brands-svg-icons": "^5.15.3",
"@fortawesome/free-regular-svg-icons": "^5.15.3",
"@fortawesome/free-solid-svg-icons": "^5.15.3",
"@fortawesome/react-fontawesome": "^0.1.14",
"@polkadot/extension-base": "^0.37.3-18",
"@polkadot/extension-inject": "^0.37.3-18",
"@polkadot/hw-ledger": "^6.3.1",
"@polkadot/keyring": "^6.3.1",
"@polkadot/networks": "^6.3.1",
"@polkadot/react-identicon": "^0.75.2-0",
"@polkadot/react-qr": "^0.75.2-0",
"@polkadot/util": "^6.3.1",
"@polkadot/util-crypto": "^6.3.1",
"@polkadot/hw-ledger": "^6.3.2-10",
"@polkadot/keyring": "^6.3.2-10",
"@polkadot/networks": "^6.3.2-10",
"@polkadot/react-identicon": "^0.75.2-1",
"@polkadot/react-qr": "^0.75.2-1",
"@polkadot/util": "^6.3.2-10",
"@polkadot/util-crypto": "^6.3.2-10",
"file-saver": "^2.0.5",
"i18next": "^19.9.2",
"react": "^17.0.2",
"react-dom": "^17.0.2",
"react-dropzone": "^11.3.2",
"react-i18next": "^11.8.13",
"react-i18next": "^11.8.15",
"react-is": "^17.0.2",
"react-router": "^5.2.0",
"react-router-dom": "^5.2.0",
"styled-components": "^5.2.3"
"styled-components": "^5.3.0"
},
"devDependencies": {
"@types/bn.js": "^4.11.6",
"@types/enzyme": "^3.10.8",
"@types/enzyme-adapter-react-16": "^1.0.6",
"@types/file-saver": "^2.0.2",
"@types/react-copy-to-clipboard": "^5.0.0",
"@types/react-dom": "^17.0.3",
"@types/react-router": "^5.1.13",
"@types/react-dom": "^17.0.4",
"@types/react-router": "^5.1.14",
"@types/react-router-dom": "^5.1.7",
"@types/sinon-chrome": "^2.2.10",
"@types/styled-components": "^5.1.9",
Expand Down
10 changes: 5 additions & 5 deletions packages/extension/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,13 +6,13 @@
"author": "Jaco Greeff <[email protected]>",
"license": "Apache-2",
"dependencies": {
"@babel/runtime": "^7.13.17",
"@babel/runtime": "^7.14.0",
"@polkadot/extension-base": "^0.37.3-18",
"@polkadot/extension-inject": "^0.37.3-18",
"@polkadot/extension-ui": "^0.37.3-18"
},
"devDependencies": {
"@polkadot/dev": "^0.62.12",
"@polkadot/dev": "^0.62.13",
"babel-loader": "^8.2.2",
"browser-resolve": "^2.0.0",
"buffer": "^6.0.3",
Expand All @@ -24,10 +24,10 @@
"path-browserify": "^1.0.1",
"process": "^0.11.10",
"stream-browserify": "^3.0.0",
"thread-loader": "^3.0.3",
"thread-loader": "^3.0.4",
"url-loader": "^4.1.1",
"webpack": "^5.35.1",
"webpack-cli": "^4.6.0",
"webpack": "^5.37.0",
"webpack-cli": "^4.7.0",
"webpack-extension-manifest-plugin": "^0.7.0"
}
}
Loading

0 comments on commit 3073277

Please sign in to comment.