diff --git a/package.json b/package.json index b3c61d3c3f2..ac39928b1ef 100644 --- a/package.json +++ b/package.json @@ -70,11 +70,11 @@ "@onekeyfe/cross-inpage-provider-injected": "1.1.43", "@onekeyfe/cross-inpage-provider-types": "1.1.43", "@onekeyfe/extension-bridge-hosted": "1.1.43", - "@onekeyfe/hd-ble-sdk": "0.3.30", - "@onekeyfe/hd-core": "0.3.30", - "@onekeyfe/hd-shared": "0.3.30", - "@onekeyfe/hd-transport": "0.3.30", - "@onekeyfe/hd-web-sdk": "0.3.30", + "@onekeyfe/hd-ble-sdk": "0.3.31", + "@onekeyfe/hd-core": "0.3.31", + "@onekeyfe/hd-shared": "0.3.31", + "@onekeyfe/hd-transport": "0.3.31", + "@onekeyfe/hd-web-sdk": "0.3.31", "@onekeyfe/onekey-cross-webview": "1.1.43", "@starcoin/starcoin": "2.1.5", "@web3-react/core": "8.0.35-beta.0", diff --git a/packages/desktop/src-electron/app.ts b/packages/desktop/src-electron/app.ts index c631ca1d72e..1f777ecaabc 100644 --- a/packages/desktop/src-electron/app.ts +++ b/packages/desktop/src-electron/app.ts @@ -203,7 +203,7 @@ function createMainWindow() { webPreferences: { spellcheck: false, webviewTag: true, - webSecurity: true, + webSecurity: !isDev, nativeWindowOpen: true, allowRunningInsecureContent: isDev, // webview injected js needs isolation=false, because property can not be exposeInMainWorld() when isolation enabled. diff --git a/packages/shared/src/config/appConfig.ts b/packages/shared/src/config/appConfig.ts index 30b736bac81..457c40d91da 100644 --- a/packages/shared/src/config/appConfig.ts +++ b/packages/shared/src/config/appConfig.ts @@ -14,7 +14,7 @@ export const HARDWARE_SDK_IFRAME_SRC_ONEKEYSO = export const HARDWARE_SDK_IFRAME_SRC_ONEKEYCN = process.env.HARDWARE_SDK_CONNECT_SRC_ONEKEYCN || 'https://jssdk.onekeycn.com'; -export const HARDWARE_SDK_VERSION = '0.3.30'; +export const HARDWARE_SDK_VERSION = '0.3.31'; export const HARDWARE_BRIDGE_DOWNLOAD_URL = 'https://onekey.so/download/?client=bridge'; diff --git a/yarn.lock b/yarn.lock index d70463717fe..7d6b1063a45 100644 --- a/yarn.lock +++ b/yarn.lock @@ -6135,23 +6135,23 @@ __metadata: languageName: node linkType: hard -"@onekeyfe/hd-ble-sdk@npm:0.3.30": - version: 0.3.30 - resolution: "@onekeyfe/hd-ble-sdk@npm:0.3.30" +"@onekeyfe/hd-ble-sdk@npm:0.3.31": + version: 0.3.31 + resolution: "@onekeyfe/hd-ble-sdk@npm:0.3.31" dependencies: - "@onekeyfe/hd-core": ^0.3.30 - "@onekeyfe/hd-shared": ^0.3.30 - "@onekeyfe/hd-transport-react-native": ^0.3.30 - checksum: b49c822ad01ef0405bc25f275d16010d2e13d3d219d80d72a8817bcc10c5c6da88c1d6cd4188c5e22bb6e36e941bbb0f374e3946f206b5b9d09e97adf7f7d701 + "@onekeyfe/hd-core": ^0.3.31 + "@onekeyfe/hd-shared": ^0.3.31 + "@onekeyfe/hd-transport-react-native": ^0.3.31 + checksum: 671f78ca18fd0b26d03deb314cdbef2e50f03c543492327574c05e31a32be6872f8f0007e0e71411be37855668cdcc04017d4570b2a6a4cb2d2a43518d81cc78 languageName: node linkType: hard -"@onekeyfe/hd-core@npm:0.3.30, @onekeyfe/hd-core@npm:^0.3.30": - version: 0.3.30 - resolution: "@onekeyfe/hd-core@npm:0.3.30" +"@onekeyfe/hd-core@npm:0.3.31, @onekeyfe/hd-core@npm:^0.3.31": + version: 0.3.31 + resolution: "@onekeyfe/hd-core@npm:0.3.31" dependencies: - "@onekeyfe/hd-shared": ^0.3.30 - "@onekeyfe/hd-transport": ^0.3.30 + "@onekeyfe/hd-shared": ^0.3.31 + "@onekeyfe/hd-transport": ^0.3.31 axios: ^0.27.2 bignumber.js: ^9.0.2 bytebuffer: ^5.0.1 @@ -6161,71 +6161,71 @@ __metadata: peerDependencies: "@noble/hashes": ^1.1.3 ripple-keypairs: ^1.1.4 - checksum: f5abe3d49e8f6a0e865abe2cb42023eae42cce9570503a09b76b20a7d243aa5e1497f95405c437b3e992f688efdeabb3e90f992c14c31ad2596ef92793071f2d + checksum: 9e05f488d0f5c63b80ae32c3a4b7ca4115f2e9b41bb86eb54c42d337ed795eff8517bc51009d80b7c8617a92e960b968e8aad4fca7f119d168e829d3effbda48 languageName: node linkType: hard -"@onekeyfe/hd-shared@npm:0.3.30, @onekeyfe/hd-shared@npm:^0.3.30": - version: 0.3.30 - resolution: "@onekeyfe/hd-shared@npm:0.3.30" - checksum: 2e68d9f3a27128b570f39a7c20846afdcf28b3a2b295ae695e4a8f24867310391944b034103d68d9b688283eae292fd21548a089ea90ae5a862b34f9d9bc4e3b +"@onekeyfe/hd-shared@npm:0.3.31, @onekeyfe/hd-shared@npm:^0.3.31": + version: 0.3.31 + resolution: "@onekeyfe/hd-shared@npm:0.3.31" + checksum: 186c5e1a29d50c2139ccc93058354d788f8153173b02924fb0ad6dfa58ca1487c5b85e67b623316816243e02414aede251626565ab87c0844cc4b767a6d4a0e2 languageName: node linkType: hard -"@onekeyfe/hd-transport-http@npm:^0.3.30": - version: 0.3.30 - resolution: "@onekeyfe/hd-transport-http@npm:0.3.30" +"@onekeyfe/hd-transport-http@npm:^0.3.31": + version: 0.3.31 + resolution: "@onekeyfe/hd-transport-http@npm:0.3.31" dependencies: - "@onekeyfe/hd-shared": ^0.3.30 - "@onekeyfe/hd-transport": ^0.3.30 + "@onekeyfe/hd-shared": ^0.3.31 + "@onekeyfe/hd-transport": ^0.3.31 axios: ^0.27.2 - checksum: e2049ff4e6cdc7ef1cbedd7e5b120554d7a4d2ccb9cf574dbf7a51a1fab492ef0d2c382ec23507c5393beeea111296ca3599e59a6be186d3a6f03ebd787615e6 + checksum: fa565623107887fd90b4fc18a6cc62751576a547e7991d2964377623871d78dbd0cb60815a258f2af5f98a4582e439040d27ec4604cec4728b34ace19e458c46 languageName: node linkType: hard -"@onekeyfe/hd-transport-react-native@npm:^0.3.30": - version: 0.3.30 - resolution: "@onekeyfe/hd-transport-react-native@npm:0.3.30" +"@onekeyfe/hd-transport-react-native@npm:^0.3.31": + version: 0.3.31 + resolution: "@onekeyfe/hd-transport-react-native@npm:0.3.31" dependencies: - "@onekeyfe/hd-shared": ^0.3.30 - "@onekeyfe/hd-transport": ^0.3.30 + "@onekeyfe/hd-shared": ^0.3.31 + "@onekeyfe/hd-transport": ^0.3.31 "@onekeyfe/react-native-ble-plx": 3.0.0 react-native-ble-manager: ^8.1.0 - checksum: 3a9221bebc41eea48235d32c644343f6bc5e5b4be2c78877a49268b58f7737fa872321fed60561ed508c55ae16f134866bd3fc4d18144a84e8aadff44725b826 + checksum: 351f60ad79da50c9c84329ef03ecd2627522b17ae1cfdd5ec882395cbb923140d5d8de12b59e973e2147b15fb2b3dbf9bba78782b0b0e551540f35e9000dad28 languageName: node linkType: hard -"@onekeyfe/hd-transport-webusb@npm:^0.3.30": - version: 0.3.30 - resolution: "@onekeyfe/hd-transport-webusb@npm:0.3.30" +"@onekeyfe/hd-transport-webusb@npm:^0.3.31": + version: 0.3.31 + resolution: "@onekeyfe/hd-transport-webusb@npm:0.3.31" dependencies: - "@onekeyfe/hd-shared": ^0.3.30 - "@onekeyfe/hd-transport": ^0.3.30 - checksum: fdfe5da58c588ca7816bff5f13030f097b0f8f5e6406f7e50698513fbc72f224a68ea6a9f99e58d4ed64128ec5795ec7c8eadc7969d51d858aa3ac2d22d1a267 + "@onekeyfe/hd-shared": ^0.3.31 + "@onekeyfe/hd-transport": ^0.3.31 + checksum: a331f43faef1386bd606d827a131ff18c2edddc1c091ce27814be9fb46c9e5123b070dc6fa4936bc387c767dc15553a3e480a706f13f1867a7eccfd1172cd2b8 languageName: node linkType: hard -"@onekeyfe/hd-transport@npm:0.3.30, @onekeyfe/hd-transport@npm:^0.3.30": - version: 0.3.30 - resolution: "@onekeyfe/hd-transport@npm:0.3.30" +"@onekeyfe/hd-transport@npm:0.3.31, @onekeyfe/hd-transport@npm:^0.3.31": + version: 0.3.31 + resolution: "@onekeyfe/hd-transport@npm:0.3.31" dependencies: bytebuffer: ^5.0.1 long: ^4.0.0 protobufjs: ^6.11.2 - checksum: 24c81b2a74796beb63cf30a1af033dc1bed2f208feac98290e434a442348415487eb44d93f114f4fb794412272192fa149a0831407e3442568a3cce4443f805d + checksum: 033e241bcef794e5ec542cbcfffeb5f4eda62339bc744ec79806f7089b941f411bbac187729eb1a1c315dfd86f123ee239d85c6b8eeadb284b2014683fdf513d languageName: node linkType: hard -"@onekeyfe/hd-web-sdk@npm:0.3.30": - version: 0.3.30 - resolution: "@onekeyfe/hd-web-sdk@npm:0.3.30" +"@onekeyfe/hd-web-sdk@npm:0.3.31": + version: 0.3.31 + resolution: "@onekeyfe/hd-web-sdk@npm:0.3.31" dependencies: "@onekeyfe/cross-inpage-provider-core": ^0.0.17 - "@onekeyfe/hd-core": ^0.3.30 - "@onekeyfe/hd-shared": ^0.3.30 - "@onekeyfe/hd-transport-http": ^0.3.30 - "@onekeyfe/hd-transport-webusb": ^0.3.30 - checksum: 1ac2aa7caeb45782c4f4a77314b213704f0477624bf1b4d84bb0ec112dec95a78b0874e444c45d4a26c2a17384833c231a4d29d80a6276a6cbc1560436a7cfa4 + "@onekeyfe/hd-core": ^0.3.31 + "@onekeyfe/hd-shared": ^0.3.31 + "@onekeyfe/hd-transport-http": ^0.3.31 + "@onekeyfe/hd-transport-webusb": ^0.3.31 + checksum: 9a9955744be08144e4a666771b954e554d0952b2cd52ed8d165e0a9eaddb806520eef9f8a255b3a617b25cc10e10e7f27461dba239817a05beab8ede7d089662 languageName: node linkType: hard @@ -6496,11 +6496,11 @@ __metadata: "@onekeyfe/cross-inpage-provider-injected": 1.1.43 "@onekeyfe/cross-inpage-provider-types": 1.1.43 "@onekeyfe/extension-bridge-hosted": 1.1.43 - "@onekeyfe/hd-ble-sdk": 0.3.30 - "@onekeyfe/hd-core": 0.3.30 - "@onekeyfe/hd-shared": 0.3.30 - "@onekeyfe/hd-transport": 0.3.30 - "@onekeyfe/hd-web-sdk": 0.3.30 + "@onekeyfe/hd-ble-sdk": 0.3.31 + "@onekeyfe/hd-core": 0.3.31 + "@onekeyfe/hd-shared": 0.3.31 + "@onekeyfe/hd-transport": 0.3.31 + "@onekeyfe/hd-web-sdk": 0.3.31 "@onekeyfe/onekey-cross-webview": 1.1.43 "@open-wc/webpack-import-meta-loader": ^0.4.7 "@pmmmwh/react-refresh-webpack-plugin": ^0.5.10