diff --git a/package.json b/package.json index 135f41d0..75738720 100644 --- a/package.json +++ b/package.json @@ -2,7 +2,7 @@ "private": true, "name": "cross-inpage-provider", "engines": { - "node": "^14 || ^16 || ^19" + "node": "^14 || ^16 || ^19 || ^20" }, "scripts": { "bootstrap": "lerna bootstrap", diff --git a/packages/core/package.json b/packages/core/package.json index 7042239d..7eedd8e4 100644 --- a/packages/core/package.json +++ b/packages/core/package.json @@ -1,6 +1,6 @@ { "name": "@onekeyfe/cross-inpage-provider-core", - "version": "1.1.53", + "version": "1.1.54-alpha.1", "keywords": [ "cross-inpage-provider" ], @@ -29,9 +29,9 @@ "build-version-info": "node ./scripts/buildVersionInfo.js" }, "dependencies": { - "@onekeyfe/cross-inpage-provider-errors": "1.1.53", - "@onekeyfe/cross-inpage-provider-events": "1.1.53", - "@onekeyfe/cross-inpage-provider-types": "1.1.53", + "@onekeyfe/cross-inpage-provider-errors": "1.1.54-alpha.1", + "@onekeyfe/cross-inpage-provider-events": "1.1.54-alpha.1", + "@onekeyfe/cross-inpage-provider-types": "1.1.54-alpha.1", "events": "^3.3.0", "lodash": "^4.17.21", "ms": "^2.1.3" diff --git a/packages/core/src/versionInfo.ts b/packages/core/src/versionInfo.ts index eee7efd0..6a5d346a 100644 --- a/packages/core/src/versionInfo.ts +++ b/packages/core/src/versionInfo.ts @@ -1,5 +1,5 @@ -const version = '1.1.53'; +const version = '1.1.54-alpha.1'; const versionBuild = '2020-0101-1'; export default { diff --git a/packages/desktop/desktop-bridge-injected/package.json b/packages/desktop/desktop-bridge-injected/package.json index f2b84fd0..14830070 100644 --- a/packages/desktop/desktop-bridge-injected/package.json +++ b/packages/desktop/desktop-bridge-injected/package.json @@ -1,6 +1,6 @@ { "name": "@onekeyfe/desktop-bridge-injected", - "version": "1.1.53", + "version": "1.1.54-alpha.1", "keywords": [ "cross-inpage-provider" ], @@ -34,7 +34,7 @@ "electron": "^17.2.0" }, "dependencies": { - "@onekeyfe/cross-inpage-provider-core": "1.1.53", - "@onekeyfe/cross-inpage-provider-types": "1.1.53" + "@onekeyfe/cross-inpage-provider-core": "1.1.54-alpha.1", + "@onekeyfe/cross-inpage-provider-types": "1.1.54-alpha.1" } } diff --git a/packages/empty/package.json b/packages/empty/package.json index f5ef2ba7..a3476ca9 100644 --- a/packages/empty/package.json +++ b/packages/empty/package.json @@ -1,6 +1,6 @@ { "name": "@onekeyfe/cross-inpage-provider-empty", - "version": "1.1.53", + "version": "1.1.54-alpha.1", "keywords": [ "cross-inpage-provider" ], diff --git a/packages/errors/package.json b/packages/errors/package.json index 96bed393..fb3f6800 100644 --- a/packages/errors/package.json +++ b/packages/errors/package.json @@ -1,6 +1,6 @@ { "name": "@onekeyfe/cross-inpage-provider-errors", - "version": "1.1.53", + "version": "1.1.54-alpha.1", "keywords": [ "cross-inpage-provider" ], diff --git a/packages/events/package.json b/packages/events/package.json index b9f7c9d9..e54e3a2a 100644 --- a/packages/events/package.json +++ b/packages/events/package.json @@ -1,6 +1,6 @@ { "name": "@onekeyfe/cross-inpage-provider-events", - "version": "1.1.53", + "version": "1.1.54-alpha.1", "keywords": [ "cross-inpage-provider" ], diff --git a/packages/example/package.json b/packages/example/package.json index 969935fd..f43511ad 100644 --- a/packages/example/package.json +++ b/packages/example/package.json @@ -1,6 +1,6 @@ { "name": "@onekeyfe/cross-inpage-provider-example", - "version": "1.1.53", + "version": "1.1.54-alpha.1", "private": true, "scripts": { "postinstall": "patch-package", @@ -16,17 +16,17 @@ "@ethersproject/bytes": "^5.0.6", "@metamask/onboarding": "^1.0.1", "@mysten/wallet-kit": "^0.7.2", - "@onekeyfe/cross-inpage-provider-core": "1.1.53", - "@onekeyfe/cross-inpage-provider-types": "1.1.53", - "@onekeyfe/onekey-aptos-provider": "1.1.53", - "@onekeyfe/onekey-cardano-provider": "1.1.53", - "@onekeyfe/onekey-conflux-provider": "1.1.53", - "@onekeyfe/onekey-cosmos-provider": "1.1.53", - "@onekeyfe/onekey-near-provider": "1.1.53", - "@onekeyfe/onekey-solana-provider": "1.1.53", - "@onekeyfe/onekey-sui-provider": "1.1.53", - "@onekeyfe/onekey-tron-provider": "1.1.53", - "@onekeyfe/onekey-webln-provider": "1.1.53", + "@onekeyfe/cross-inpage-provider-core": "1.1.54-alpha.1", + "@onekeyfe/cross-inpage-provider-types": "1.1.54-alpha.1", + "@onekeyfe/onekey-aptos-provider": "1.1.54-alpha.1", + "@onekeyfe/onekey-cardano-provider": "1.1.54-alpha.1", + "@onekeyfe/onekey-conflux-provider": "1.1.54-alpha.1", + "@onekeyfe/onekey-cosmos-provider": "1.1.54-alpha.1", + "@onekeyfe/onekey-near-provider": "1.1.54-alpha.1", + "@onekeyfe/onekey-solana-provider": "1.1.54-alpha.1", + "@onekeyfe/onekey-sui-provider": "1.1.54-alpha.1", + "@onekeyfe/onekey-tron-provider": "1.1.54-alpha.1", + "@onekeyfe/onekey-webln-provider": "1.1.54-alpha.1", "@polkadot/api": "^9.11.3", "@polkadot/extension-dapp": "^0.44.8", "@solana/web3.js": "^1.41.3", diff --git a/packages/extension/extension-bridge-hosted/package.json b/packages/extension/extension-bridge-hosted/package.json index 86ebfcd8..d69ce3d0 100644 --- a/packages/extension/extension-bridge-hosted/package.json +++ b/packages/extension/extension-bridge-hosted/package.json @@ -1,6 +1,6 @@ { "name": "@onekeyfe/extension-bridge-hosted", - "version": "1.1.53", + "version": "1.1.54-alpha.1", "keywords": [ "cross-inpage-provider" ], @@ -28,8 +28,8 @@ "start": "tsc --watch" }, "dependencies": { - "@onekeyfe/cross-inpage-provider-core": "1.1.53", - "@onekeyfe/cross-inpage-provider-types": "1.1.53", + "@onekeyfe/cross-inpage-provider-core": "1.1.54-alpha.1", + "@onekeyfe/cross-inpage-provider-types": "1.1.54-alpha.1", "uuid": "^8.3.2" }, "devDependencies": { diff --git a/packages/extension/extension-bridge-hosted/src/JsBridgeExtBackground.ts b/packages/extension/extension-bridge-hosted/src/JsBridgeExtBackground.ts index 7b7e91dc..dc044934 100644 --- a/packages/extension/extension-bridge-hosted/src/JsBridgeExtBackground.ts +++ b/packages/extension/extension-bridge-hosted/src/JsBridgeExtBackground.ts @@ -132,7 +132,7 @@ class JsBridgeExtBackground extends JsBridgeBase { return this.request({ data, remoteId: this.offscreenPortId }); } - requestToAllCS(scope: IInjectedProviderNamesStrings, data: unknown) { + requestToAllCS(scope: IInjectedProviderNamesStrings, data: unknown, targetOrigin?: string) { // TODO optimize rename: broadcastRequest // eslint-disable-next-line @typescript-eslint/no-misused-promises entries(this.ports).forEach(async ([portId, port]) => { @@ -142,13 +142,17 @@ class JsBridgeExtBackground extends JsBridgeBase { // eslint-disable-next-line no-param-reassign data = await data({ origin }); } - console.log(`notify to content-script port: ${portId}`, data); - // TODO check ports disconnected - this.requestSync({ - data, - scope, - remoteId: portId, - }); + console.log(`notify to content-script port: ${portId}`, data, origin, targetOrigin); + + // Send a notification to the port of the specified origin + if (!targetOrigin || targetOrigin === origin) { + // TODO check ports disconnected + this.requestSync({ + data, + scope, + remoteId: portId, + }); + } } void 0; }); diff --git a/packages/extension/extension-bridge-injected/package.json b/packages/extension/extension-bridge-injected/package.json index e6dad1ec..755d3648 100644 --- a/packages/extension/extension-bridge-injected/package.json +++ b/packages/extension/extension-bridge-injected/package.json @@ -1,6 +1,6 @@ { "name": "@onekeyfe/extension-bridge-injected", - "version": "1.1.53", + "version": "1.1.54-alpha.1", "keywords": [ "cross-inpage-provider" ], @@ -28,7 +28,7 @@ "start": "tsc --watch" }, "dependencies": { - "@onekeyfe/cross-inpage-provider-core": "1.1.53", - "@onekeyfe/cross-inpage-provider-types": "1.1.53" + "@onekeyfe/cross-inpage-provider-core": "1.1.54-alpha.1", + "@onekeyfe/cross-inpage-provider-types": "1.1.54-alpha.1" } } diff --git a/packages/injected/package.json b/packages/injected/package.json index 0f0d1064..777319be 100644 --- a/packages/injected/package.json +++ b/packages/injected/package.json @@ -1,6 +1,6 @@ { "name": "@onekeyfe/cross-inpage-provider-injected", - "version": "1.1.53", + "version": "1.1.54-alpha.1", "keywords": [ "cross-inpage-provider" ], @@ -42,12 +42,12 @@ "electron": "*" }, "dependencies": { - "@onekeyfe/cross-inpage-provider-core": "1.1.53", - "@onekeyfe/cross-inpage-provider-types": "1.1.53", - "@onekeyfe/desktop-bridge-injected": "1.1.53", - "@onekeyfe/extension-bridge-injected": "1.1.53", - "@onekeyfe/inpage-providers-hub": "1.1.53", - "@onekeyfe/native-bridge-injected": "1.1.53", + "@onekeyfe/cross-inpage-provider-core": "1.1.54-alpha.1", + "@onekeyfe/cross-inpage-provider-types": "1.1.54-alpha.1", + "@onekeyfe/desktop-bridge-injected": "1.1.54-alpha.1", + "@onekeyfe/extension-bridge-injected": "1.1.54-alpha.1", + "@onekeyfe/inpage-providers-hub": "1.1.54-alpha.1", + "@onekeyfe/native-bridge-injected": "1.1.54-alpha.1", "buffer": "^6.0.3" } } diff --git a/packages/native/native-bridge-injected/package.json b/packages/native/native-bridge-injected/package.json index 9c6af60f..4924515d 100644 --- a/packages/native/native-bridge-injected/package.json +++ b/packages/native/native-bridge-injected/package.json @@ -1,6 +1,6 @@ { "name": "@onekeyfe/native-bridge-injected", - "version": "1.1.53", + "version": "1.1.54-alpha.1", "keywords": [ "cross-inpage-provider" ], @@ -28,7 +28,7 @@ "start": "tsc --watch" }, "dependencies": { - "@onekeyfe/cross-inpage-provider-core": "1.1.53", - "@onekeyfe/cross-inpage-provider-types": "1.1.53" + "@onekeyfe/cross-inpage-provider-core": "1.1.54-alpha.1", + "@onekeyfe/cross-inpage-provider-types": "1.1.54-alpha.1" } } diff --git a/packages/providers/inpage-providers-hub/package.json b/packages/providers/inpage-providers-hub/package.json index 5cfa6219..da42fd26 100644 --- a/packages/providers/inpage-providers-hub/package.json +++ b/packages/providers/inpage-providers-hub/package.json @@ -1,6 +1,6 @@ { "name": "@onekeyfe/inpage-providers-hub", - "version": "1.1.53", + "version": "1.1.54-alpha.1", "keywords": [ "cross-inpage-provider" ], @@ -28,22 +28,22 @@ "start": "tsc --watch" }, "dependencies": { - "@onekeyfe/cross-inpage-provider-core": "1.1.53", - "@onekeyfe/cross-inpage-provider-types": "1.1.53", - "@onekeyfe/onekey-aptos-provider": "1.1.53", - "@onekeyfe/onekey-btc-provider": "1.1.53", - "@onekeyfe/onekey-cardano-provider": "1.1.53", - "@onekeyfe/onekey-conflux-provider": "1.1.53", - "@onekeyfe/onekey-cosmos-provider": "1.1.53", - "@onekeyfe/onekey-eth-provider": "1.1.53", - "@onekeyfe/onekey-nostr-provider": "1.1.53", - "@onekeyfe/onekey-polkadot-provider": "1.1.53", - "@onekeyfe/onekey-private-provider": "1.1.53", - "@onekeyfe/onekey-solana-provider": "1.1.53", - "@onekeyfe/onekey-starcoin-provider": "1.1.53", - "@onekeyfe/onekey-sui-provider": "1.1.53", - "@onekeyfe/onekey-tron-provider": "1.1.53", - "@onekeyfe/onekey-webln-provider": "1.1.53", + "@onekeyfe/cross-inpage-provider-core": "1.1.54-alpha.1", + "@onekeyfe/cross-inpage-provider-types": "1.1.54-alpha.1", + "@onekeyfe/onekey-aptos-provider": "1.1.54-alpha.1", + "@onekeyfe/onekey-btc-provider": "1.1.54-alpha.1", + "@onekeyfe/onekey-cardano-provider": "1.1.54-alpha.1", + "@onekeyfe/onekey-conflux-provider": "1.1.54-alpha.1", + "@onekeyfe/onekey-cosmos-provider": "1.1.54-alpha.1", + "@onekeyfe/onekey-eth-provider": "1.1.54-alpha.1", + "@onekeyfe/onekey-nostr-provider": "1.1.54-alpha.1", + "@onekeyfe/onekey-polkadot-provider": "1.1.54-alpha.1", + "@onekeyfe/onekey-private-provider": "1.1.54-alpha.1", + "@onekeyfe/onekey-solana-provider": "1.1.54-alpha.1", + "@onekeyfe/onekey-starcoin-provider": "1.1.54-alpha.1", + "@onekeyfe/onekey-sui-provider": "1.1.54-alpha.1", + "@onekeyfe/onekey-tron-provider": "1.1.54-alpha.1", + "@onekeyfe/onekey-webln-provider": "1.1.54-alpha.1", "web3": "^1.7.3" } } diff --git a/packages/providers/onekey-aptos-provider/package.json b/packages/providers/onekey-aptos-provider/package.json index 7092c1b1..6081bca5 100644 --- a/packages/providers/onekey-aptos-provider/package.json +++ b/packages/providers/onekey-aptos-provider/package.json @@ -1,6 +1,6 @@ { "name": "@onekeyfe/onekey-aptos-provider", - "version": "1.1.53", + "version": "1.1.54-alpha.1", "keywords": [ "cross-inpage-provider" ], @@ -28,10 +28,10 @@ "start": "tsc --watch" }, "dependencies": { - "@onekeyfe/cross-inpage-provider-core": "1.1.53", - "@onekeyfe/cross-inpage-provider-errors": "1.1.53", - "@onekeyfe/cross-inpage-provider-types": "1.1.53", - "@onekeyfe/extension-bridge-injected": "1.1.53", + "@onekeyfe/cross-inpage-provider-core": "1.1.54-alpha.1", + "@onekeyfe/cross-inpage-provider-errors": "1.1.54-alpha.1", + "@onekeyfe/cross-inpage-provider-types": "1.1.54-alpha.1", + "@onekeyfe/extension-bridge-injected": "1.1.54-alpha.1", "aptos": "^1.3.17", "eth-rpc-errors": "^4.0.3" } diff --git a/packages/providers/onekey-btc-provider/package.json b/packages/providers/onekey-btc-provider/package.json index 9ce13945..3cb0212d 100644 --- a/packages/providers/onekey-btc-provider/package.json +++ b/packages/providers/onekey-btc-provider/package.json @@ -1,6 +1,6 @@ { "name": "@onekeyfe/onekey-btc-provider", - "version": "1.1.53", + "version": "1.1.54-alpha.1", "keywords": [ "cross-inpage-provider" ], @@ -28,9 +28,9 @@ "start": "tsc --watch" }, "dependencies": { - "@onekeyfe/cross-inpage-provider-core": "1.1.53", - "@onekeyfe/cross-inpage-provider-errors": "1.1.53", - "@onekeyfe/cross-inpage-provider-types": "1.1.53", - "@onekeyfe/extension-bridge-injected": "1.1.53" + "@onekeyfe/cross-inpage-provider-core": "1.1.54-alpha.1", + "@onekeyfe/cross-inpage-provider-errors": "1.1.54-alpha.1", + "@onekeyfe/cross-inpage-provider-types": "1.1.54-alpha.1", + "@onekeyfe/extension-bridge-injected": "1.1.54-alpha.1" } } diff --git a/packages/providers/onekey-cardano-provider/package.json b/packages/providers/onekey-cardano-provider/package.json index d6c3d74e..1bd1089a 100644 --- a/packages/providers/onekey-cardano-provider/package.json +++ b/packages/providers/onekey-cardano-provider/package.json @@ -1,6 +1,6 @@ { "name": "@onekeyfe/onekey-cardano-provider", - "version": "1.1.53", + "version": "1.1.54-alpha.1", "keywords": [ "cross-inpage-provider", "cardano" @@ -29,9 +29,9 @@ "start": "tsc --watch" }, "dependencies": { - "@onekeyfe/cross-inpage-provider-core": "1.1.53", - "@onekeyfe/cross-inpage-provider-errors": "1.1.53", - "@onekeyfe/cross-inpage-provider-types": "1.1.53", - "@onekeyfe/extension-bridge-injected": "1.1.53" + "@onekeyfe/cross-inpage-provider-core": "1.1.54-alpha.1", + "@onekeyfe/cross-inpage-provider-errors": "1.1.54-alpha.1", + "@onekeyfe/cross-inpage-provider-types": "1.1.54-alpha.1", + "@onekeyfe/extension-bridge-injected": "1.1.54-alpha.1" } } diff --git a/packages/providers/onekey-conflux-provider/package.json b/packages/providers/onekey-conflux-provider/package.json index 4d1a0b35..141fc435 100644 --- a/packages/providers/onekey-conflux-provider/package.json +++ b/packages/providers/onekey-conflux-provider/package.json @@ -1,6 +1,6 @@ { "name": "@onekeyfe/onekey-conflux-provider", - "version": "1.1.53", + "version": "1.1.54-alpha.1", "keywords": [ "cross-inpage-provider" ], @@ -28,9 +28,9 @@ "start": "tsc --watch" }, "dependencies": { - "@onekeyfe/cross-inpage-provider-core": "1.1.53", - "@onekeyfe/cross-inpage-provider-errors": "1.1.53", - "@onekeyfe/cross-inpage-provider-types": "1.1.53", - "@onekeyfe/extension-bridge-injected": "1.1.53" + "@onekeyfe/cross-inpage-provider-core": "1.1.54-alpha.1", + "@onekeyfe/cross-inpage-provider-errors": "1.1.54-alpha.1", + "@onekeyfe/cross-inpage-provider-types": "1.1.54-alpha.1", + "@onekeyfe/extension-bridge-injected": "1.1.54-alpha.1" } } diff --git a/packages/providers/onekey-cosmos-provider/package.json b/packages/providers/onekey-cosmos-provider/package.json index f4bbafec..4500da84 100644 --- a/packages/providers/onekey-cosmos-provider/package.json +++ b/packages/providers/onekey-cosmos-provider/package.json @@ -1,6 +1,6 @@ { "name": "@onekeyfe/onekey-cosmos-provider", - "version": "1.1.53", + "version": "1.1.54-alpha.1", "keywords": [ "cross-inpage-provider" ], @@ -29,10 +29,10 @@ }, "dependencies": { "@noble/hashes": "^1.3.0", - "@onekeyfe/cross-inpage-provider-core": "1.1.53", - "@onekeyfe/cross-inpage-provider-errors": "1.1.53", - "@onekeyfe/cross-inpage-provider-types": "1.1.53", - "@onekeyfe/extension-bridge-injected": "1.1.53", + "@onekeyfe/cross-inpage-provider-core": "1.1.54-alpha.1", + "@onekeyfe/cross-inpage-provider-errors": "1.1.54-alpha.1", + "@onekeyfe/cross-inpage-provider-types": "1.1.54-alpha.1", + "@onekeyfe/extension-bridge-injected": "1.1.54-alpha.1", "eth-rpc-errors": "^4.0.3", "long": "^5.2.1", "mitt": "^3.0.0" diff --git a/packages/providers/onekey-eth-provider/package.json b/packages/providers/onekey-eth-provider/package.json index 57c854b4..a3c7a225 100644 --- a/packages/providers/onekey-eth-provider/package.json +++ b/packages/providers/onekey-eth-provider/package.json @@ -1,6 +1,6 @@ { "name": "@onekeyfe/onekey-eth-provider", - "version": "1.1.53", + "version": "1.1.54-alpha.1", "keywords": [ "cross-inpage-provider" ], @@ -28,10 +28,10 @@ "start": "tsc --watch" }, "dependencies": { - "@onekeyfe/cross-inpage-provider-core": "1.1.53", - "@onekeyfe/cross-inpage-provider-errors": "1.1.53", - "@onekeyfe/cross-inpage-provider-types": "1.1.53", - "@onekeyfe/extension-bridge-injected": "1.1.53", + "@onekeyfe/cross-inpage-provider-core": "1.1.54-alpha.1", + "@onekeyfe/cross-inpage-provider-errors": "1.1.54-alpha.1", + "@onekeyfe/cross-inpage-provider-types": "1.1.54-alpha.1", + "@onekeyfe/extension-bridge-injected": "1.1.54-alpha.1", "eth-rpc-errors": "^4.0.3", "uuid": "^8.3.2" }, diff --git a/packages/providers/onekey-eth-provider/yarn.lock b/packages/providers/onekey-eth-provider/yarn.lock index d1918d04..4e7642aa 100644 --- a/packages/providers/onekey-eth-provider/yarn.lock +++ b/packages/providers/onekey-eth-provider/yarn.lock @@ -2,44 +2,7 @@ # yarn lockfile v1 -"@onekeyfe/cross-inpage-provider-core@1.1.50": - version "1.1.50" - resolved "https://registry.yarnpkg.com/@onekeyfe/cross-inpage-provider-core/-/cross-inpage-provider-core-1.1.50.tgz#6f80a13b748cc1aa00436ff02b47fd2d5edf90cc" - integrity sha512-JNZeMgGidPjqOXGX3qfprZ83ELmS22biWCoVvE1iBLvcRzCpbpjfHzCqAehE32EkQd2RwCmW9JTr/EdzPcK/lQ== - dependencies: - "@onekeyfe/cross-inpage-provider-errors" "1.1.50" - "@onekeyfe/cross-inpage-provider-events" "1.1.50" - "@onekeyfe/cross-inpage-provider-types" "1.1.50" - events "^3.3.0" - lodash "^4.17.21" - ms "^2.1.3" - -"@onekeyfe/cross-inpage-provider-errors@1.1.50": - version "1.1.50" - resolved "https://registry.yarnpkg.com/@onekeyfe/cross-inpage-provider-errors/-/cross-inpage-provider-errors-1.1.50.tgz#b0b5e7707ef08c1ea41efdf2278786095d109ad7" - integrity sha512-10zaE7u5Hsh1YdEDKbpTLQHLCyL04nRsbLJHEv2lycuTPq9xxkKqvVMRKaSzOlx6RlF7JSvhzHejXJioSVfA4g== - dependencies: - fast-safe-stringify "^2.1.1" - -"@onekeyfe/cross-inpage-provider-events@1.1.50": - version "1.1.50" - resolved "https://registry.yarnpkg.com/@onekeyfe/cross-inpage-provider-events/-/cross-inpage-provider-events-1.1.50.tgz#888174bd8279787186dbd92c17f9532a218c1d4b" - integrity sha512-hOeAbsnvN8DUNxSOn0zJM47f+0lyOC6c+h/klcCvwLVyumjz/myqWeWBnSFk9aArCOIXR7HxJkFJYfkz0nAcYQ== - -"@onekeyfe/cross-inpage-provider-types@1.1.50": - version "1.1.50" - resolved "https://registry.yarnpkg.com/@onekeyfe/cross-inpage-provider-types/-/cross-inpage-provider-types-1.1.50.tgz#6055a81303e4653e3130d8219c49e432f38638f6" - integrity sha512-vHz8b1BvFpYjy+JGxJWwd9r/FUQF54lAyAo7pDJAcsJ4CaDX6KCbKN6MwfFY/3mCN76vs1wkBbtc/s/PMivEQg== - -"@onekeyfe/extension-bridge-injected@1.1.50": - version "1.1.50" - resolved "https://registry.yarnpkg.com/@onekeyfe/extension-bridge-injected/-/extension-bridge-injected-1.1.50.tgz#1812ccc97f161dcc485a016f39d28b71aa217119" - integrity sha512-8bCQta1UOM9NJCCby0bdagFqtgDdj2+aFyaKZ58NC9EHCwQdg8ksQDSjIY7FcTYQV6K0X7ep2aXPRKZYjS3egQ== - dependencies: - "@onekeyfe/cross-inpage-provider-core" "1.1.50" - "@onekeyfe/cross-inpage-provider-types" "1.1.50" - -"@types/uuid@^8.3.0": +"@types/uuid@^8.3.2": version "8.3.4" resolved "https://registry.yarnpkg.com/@types/uuid/-/uuid-8.3.4.tgz#bd86a43617df0594787d38b735f55c805becf1bc" integrity sha512-c/I8ZRb51j+pYGAu5CrFMRxqZ2ke4y2grEBO5AUjgSkSk+qT2Ea+OdWElz/OiMf5MNpn2b17kuVBwZLQJXzihw== @@ -51,27 +14,12 @@ eth-rpc-errors@^4.0.3: dependencies: fast-safe-stringify "^2.0.6" -events@^3.3.0: - version "3.3.0" - resolved "https://registry.yarnpkg.com/events/-/events-3.3.0.tgz#31a95ad0a924e2d2c419a813aeb2c4e878ea7400" - integrity sha512-mQw+2fkQbALzQ7V0MY0IqdnXNOeTtP4r0lN9z7AAawCXgqea7bDii20AYrIBrFd/Hx0M2Ocz6S111CaFkUcb0Q== - -fast-safe-stringify@^2.0.6, fast-safe-stringify@^2.1.1: +fast-safe-stringify@^2.0.6: version "2.1.1" resolved "https://registry.yarnpkg.com/fast-safe-stringify/-/fast-safe-stringify-2.1.1.tgz#c406a83b6e70d9e35ce3b30a81141df30aeba884" integrity sha512-W+KJc2dmILlPplD/H4K9l9LcAHAfPtP6BY84uVLXQ6Evcz9Lcg33Y2z1IVblT6xdY54PXYVHEv+0Wpq8Io6zkA== -lodash@^4.17.21: - version "4.17.21" - resolved "https://registry.yarnpkg.com/lodash/-/lodash-4.17.21.tgz#679591c564c3bffaae8454cf0b3df370c3d6911c" - integrity sha512-v2kDEe57lecTulaDIuNTPy3Ry4gLGJ6Z1O3vE1krgXZNrsQ+LFTGHVxVjcXPs17LhbZVGedAJv8XZ1tvj5FvSg== - -ms@^2.1.3: - version "2.1.3" - resolved "https://registry.yarnpkg.com/ms/-/ms-2.1.3.tgz#574c8138ce1d2b5861f0b44579dbadd60c6615b2" - integrity sha512-6FlzubTLZG3J2a/NVCAleEhjzq5oxgHyaCU9yYXvcLsvoVaHJq/s5xXI6/XXP6tz7R9xAOtHnSO/tXtF3WRTlA== - -uuid@^8.3.0: +uuid@^8.3.2: version "8.3.2" resolved "https://registry.yarnpkg.com/uuid/-/uuid-8.3.2.tgz#80d5b5ced271bb9af6c445f21a1a04c606cefbe2" integrity sha512-+NYs2QeMWy+GWFOEm9xnn6HCDp0l7QBD7ml8zLUmJ+93Q5NF0NocErnwkTkXVFNiX3/fpC6afS8Dhb/gz7R7eg== diff --git a/packages/providers/onekey-near-provider/package.json b/packages/providers/onekey-near-provider/package.json index d2e25d31..e3456d15 100644 --- a/packages/providers/onekey-near-provider/package.json +++ b/packages/providers/onekey-near-provider/package.json @@ -1,6 +1,6 @@ { "name": "@onekeyfe/onekey-near-provider", - "version": "1.1.53", + "version": "1.1.54-alpha.1", "keywords": [ "cross-inpage-provider" ], @@ -35,10 +35,10 @@ "near-api-js": "^0.44.2" }, "dependencies": { - "@onekeyfe/cross-inpage-provider-core": "1.1.53", - "@onekeyfe/cross-inpage-provider-errors": "1.1.53", - "@onekeyfe/cross-inpage-provider-types": "1.1.53", - "@onekeyfe/extension-bridge-injected": "1.1.53", + "@onekeyfe/cross-inpage-provider-core": "1.1.54-alpha.1", + "@onekeyfe/cross-inpage-provider-errors": "1.1.54-alpha.1", + "@onekeyfe/cross-inpage-provider-types": "1.1.54-alpha.1", + "@onekeyfe/extension-bridge-injected": "1.1.54-alpha.1", "borsh": "^0.6.0", "depd": "^2.0.0", "tweetnacl": "^1.0.3" diff --git a/packages/providers/onekey-nostr-provider/package.json b/packages/providers/onekey-nostr-provider/package.json index 0663741c..c97c6b00 100644 --- a/packages/providers/onekey-nostr-provider/package.json +++ b/packages/providers/onekey-nostr-provider/package.json @@ -1,6 +1,6 @@ { "name": "@onekeyfe/onekey-nostr-provider", - "version": "1.1.53", + "version": "1.1.54-alpha.1", "keywords": [ "cross-inpage-provider" ], @@ -28,9 +28,9 @@ "start": "tsc --watch" }, "dependencies": { - "@onekeyfe/cross-inpage-provider-core": "1.1.53", - "@onekeyfe/cross-inpage-provider-errors": "1.1.53", - "@onekeyfe/cross-inpage-provider-types": "1.1.53", - "@onekeyfe/extension-bridge-injected": "1.1.53" + "@onekeyfe/cross-inpage-provider-core": "1.1.54-alpha.1", + "@onekeyfe/cross-inpage-provider-errors": "1.1.54-alpha.1", + "@onekeyfe/cross-inpage-provider-types": "1.1.54-alpha.1", + "@onekeyfe/extension-bridge-injected": "1.1.54-alpha.1" } } diff --git a/packages/providers/onekey-polkadot-provider/package.json b/packages/providers/onekey-polkadot-provider/package.json index 22b99a43..e72a2ae8 100644 --- a/packages/providers/onekey-polkadot-provider/package.json +++ b/packages/providers/onekey-polkadot-provider/package.json @@ -1,6 +1,6 @@ { "name": "@onekeyfe/onekey-polkadot-provider", - "version": "1.1.53", + "version": "1.1.54-alpha.1", "keywords": [ "cross-inpage-provider" ], @@ -29,10 +29,10 @@ }, "dependencies": { "@noble/hashes": "^1.3.0", - "@onekeyfe/cross-inpage-provider-core": "1.1.53", - "@onekeyfe/cross-inpage-provider-errors": "1.1.53", - "@onekeyfe/cross-inpage-provider-types": "1.1.53", - "@onekeyfe/extension-bridge-injected": "1.1.53", + "@onekeyfe/cross-inpage-provider-core": "1.1.54-alpha.1", + "@onekeyfe/cross-inpage-provider-errors": "1.1.54-alpha.1", + "@onekeyfe/cross-inpage-provider-types": "1.1.54-alpha.1", + "@onekeyfe/extension-bridge-injected": "1.1.54-alpha.1", "@polkadot/extension-inject": "^0.46.3", "eth-rpc-errors": "^4.0.3", "long": "^5.2.1", diff --git a/packages/providers/onekey-private-provider/package.json b/packages/providers/onekey-private-provider/package.json index 39b7d555..0d517f4c 100644 --- a/packages/providers/onekey-private-provider/package.json +++ b/packages/providers/onekey-private-provider/package.json @@ -1,6 +1,6 @@ { "name": "@onekeyfe/onekey-private-provider", - "version": "1.1.53", + "version": "1.1.54-alpha.1", "keywords": [ "cross-inpage-provider" ], @@ -28,9 +28,9 @@ "start": "tsc --watch" }, "dependencies": { - "@onekeyfe/cross-inpage-provider-core": "1.1.53", - "@onekeyfe/cross-inpage-provider-errors": "1.1.53", - "@onekeyfe/cross-inpage-provider-types": "1.1.53", - "@onekeyfe/extension-bridge-injected": "1.1.53" + "@onekeyfe/cross-inpage-provider-core": "1.1.54-alpha.1", + "@onekeyfe/cross-inpage-provider-errors": "1.1.54-alpha.1", + "@onekeyfe/cross-inpage-provider-types": "1.1.54-alpha.1", + "@onekeyfe/extension-bridge-injected": "1.1.54-alpha.1" } } diff --git a/packages/providers/onekey-solana-provider/package.json b/packages/providers/onekey-solana-provider/package.json index aa179164..a891e68d 100644 --- a/packages/providers/onekey-solana-provider/package.json +++ b/packages/providers/onekey-solana-provider/package.json @@ -1,6 +1,6 @@ { "name": "@onekeyfe/onekey-solana-provider", - "version": "1.1.53", + "version": "1.1.54-alpha.1", "keywords": [ "cross-inpage-provider", "solona" @@ -29,10 +29,10 @@ "start": "tsc --watch" }, "dependencies": { - "@onekeyfe/cross-inpage-provider-core": "1.1.53", - "@onekeyfe/cross-inpage-provider-errors": "1.1.53", - "@onekeyfe/cross-inpage-provider-types": "1.1.53", - "@onekeyfe/extension-bridge-injected": "1.1.53", + "@onekeyfe/cross-inpage-provider-core": "1.1.54-alpha.1", + "@onekeyfe/cross-inpage-provider-errors": "1.1.54-alpha.1", + "@onekeyfe/cross-inpage-provider-types": "1.1.54-alpha.1", + "@onekeyfe/extension-bridge-injected": "1.1.54-alpha.1", "@solana/wallet-standard-features": "^1.1.0", "@solana/web3.js": "^1.41.3", "@wallet-standard/base": "^1.0.1", diff --git a/packages/providers/onekey-starcoin-provider/package.json b/packages/providers/onekey-starcoin-provider/package.json index 3f12d01f..bfa091db 100644 --- a/packages/providers/onekey-starcoin-provider/package.json +++ b/packages/providers/onekey-starcoin-provider/package.json @@ -1,6 +1,6 @@ { "name": "@onekeyfe/onekey-starcoin-provider", - "version": "1.1.53", + "version": "1.1.54-alpha.1", "keywords": [ "cross-inpage-provider" ], @@ -28,10 +28,10 @@ "start": "tsc --watch" }, "dependencies": { - "@onekeyfe/cross-inpage-provider-core": "1.1.53", - "@onekeyfe/cross-inpage-provider-errors": "1.1.53", - "@onekeyfe/cross-inpage-provider-types": "1.1.53", - "@onekeyfe/extension-bridge-injected": "1.1.53", + "@onekeyfe/cross-inpage-provider-core": "1.1.54-alpha.1", + "@onekeyfe/cross-inpage-provider-errors": "1.1.54-alpha.1", + "@onekeyfe/cross-inpage-provider-types": "1.1.54-alpha.1", + "@onekeyfe/extension-bridge-injected": "1.1.54-alpha.1", "eth-rpc-errors": "^4.0.3" } } diff --git a/packages/providers/onekey-sui-provider/package.json b/packages/providers/onekey-sui-provider/package.json index c886d4a7..fee23f0d 100644 --- a/packages/providers/onekey-sui-provider/package.json +++ b/packages/providers/onekey-sui-provider/package.json @@ -1,6 +1,6 @@ { "name": "@onekeyfe/onekey-sui-provider", - "version": "1.1.53", + "version": "1.1.54-alpha.1", "keywords": [ "cross-inpage-provider" ], @@ -29,10 +29,10 @@ }, "dependencies": { "@mysten/wallet-standard": "^0.7.2", - "@onekeyfe/cross-inpage-provider-core": "1.1.53", - "@onekeyfe/cross-inpage-provider-errors": "1.1.53", - "@onekeyfe/cross-inpage-provider-types": "1.1.53", - "@onekeyfe/extension-bridge-injected": "1.1.53", + "@onekeyfe/cross-inpage-provider-core": "1.1.54-alpha.1", + "@onekeyfe/cross-inpage-provider-errors": "1.1.54-alpha.1", + "@onekeyfe/cross-inpage-provider-types": "1.1.54-alpha.1", + "@onekeyfe/extension-bridge-injected": "1.1.54-alpha.1", "eth-rpc-errors": "^4.0.3", "mitt": "^3.0.0" } diff --git a/packages/providers/onekey-tron-provider/package.json b/packages/providers/onekey-tron-provider/package.json index 49eb0c95..f5da8b5e 100644 --- a/packages/providers/onekey-tron-provider/package.json +++ b/packages/providers/onekey-tron-provider/package.json @@ -1,6 +1,6 @@ { "name": "@onekeyfe/onekey-tron-provider", - "version": "1.1.53", + "version": "1.1.54-alpha.1", "keywords": [ "cross-inpage-provider" ], @@ -28,10 +28,10 @@ "start": "tsc --watch" }, "dependencies": { - "@onekeyfe/cross-inpage-provider-core": "1.1.53", - "@onekeyfe/cross-inpage-provider-errors": "1.1.53", - "@onekeyfe/cross-inpage-provider-types": "1.1.53", - "@onekeyfe/extension-bridge-injected": "1.1.53", + "@onekeyfe/cross-inpage-provider-core": "1.1.54-alpha.1", + "@onekeyfe/cross-inpage-provider-errors": "1.1.54-alpha.1", + "@onekeyfe/cross-inpage-provider-types": "1.1.54-alpha.1", + "@onekeyfe/extension-bridge-injected": "1.1.54-alpha.1", "querystring": "^0.2.1", "sunweb": "^1.0.7", "tronweb": "^5.1.0" diff --git a/packages/providers/onekey-webln-provider/package.json b/packages/providers/onekey-webln-provider/package.json index 38508d48..e8fec8c2 100644 --- a/packages/providers/onekey-webln-provider/package.json +++ b/packages/providers/onekey-webln-provider/package.json @@ -1,6 +1,6 @@ { "name": "@onekeyfe/onekey-webln-provider", - "version": "1.1.53", + "version": "1.1.54-alpha.1", "keywords": [ "cross-inpage-provider" ], @@ -28,9 +28,9 @@ "start": "tsc --watch" }, "dependencies": { - "@onekeyfe/cross-inpage-provider-core": "1.1.53", - "@onekeyfe/cross-inpage-provider-errors": "1.1.53", - "@onekeyfe/cross-inpage-provider-types": "1.1.53", - "@onekeyfe/extension-bridge-injected": "1.1.53" + "@onekeyfe/cross-inpage-provider-core": "1.1.54-alpha.1", + "@onekeyfe/cross-inpage-provider-errors": "1.1.54-alpha.1", + "@onekeyfe/cross-inpage-provider-types": "1.1.54-alpha.1", + "@onekeyfe/extension-bridge-injected": "1.1.54-alpha.1" } } diff --git a/packages/types/package.json b/packages/types/package.json index 4a7e8d64..e9b1177c 100644 --- a/packages/types/package.json +++ b/packages/types/package.json @@ -1,6 +1,6 @@ { "name": "@onekeyfe/cross-inpage-provider-types", - "version": "1.1.53", + "version": "1.1.54-alpha.1", "keywords": [ "cross-inpage-provider" ], diff --git a/packages/types/src/index.ts b/packages/types/src/index.ts index 045e18db..aaa845cd 100644 --- a/packages/types/src/index.ts +++ b/packages/types/src/index.ts @@ -57,6 +57,7 @@ export enum IInjectedProviderNames { nostr = 'nostr', $private = '$private', $hardware_sdk = '$hardware_sdk', + $walletConnect = '$walletConnect' } export type IInjectedProviderNamesStrings = keyof typeof IInjectedProviderNames; @@ -95,6 +96,7 @@ export type IJsBridgeMessagePayload = { created?: number; sync?: boolean; internal?: boolean; + isWalletConnectRequest?: boolean; }; export type IDebugLogger = { diff --git a/packages/webview/package.json b/packages/webview/package.json index 44cd81f3..036751ae 100644 --- a/packages/webview/package.json +++ b/packages/webview/package.json @@ -1,6 +1,6 @@ { "name": "@onekeyfe/onekey-cross-webview", - "version": "1.1.53", + "version": "1.1.54-alpha.1", "keywords": [ "cross-inpage-provider" ], @@ -36,7 +36,7 @@ "react-native-webview": "^11.17.2" }, "dependencies": { - "@onekeyfe/cross-inpage-provider-core": "1.1.53", - "@onekeyfe/cross-inpage-provider-types": "1.1.53" + "@onekeyfe/cross-inpage-provider-core": "1.1.54-alpha.1", + "@onekeyfe/cross-inpage-provider-types": "1.1.54-alpha.1" } }