From 2e6e4a3381c634cbec9145e5c270b39e7a6faa74 Mon Sep 17 00:00:00 2001 From: ByteZhang Date: Mon, 16 Dec 2024 09:28:31 +0800 Subject: [PATCH] Fix: error (#395) * chore: fix method init error * chore: release version 1.0.16-alpha.2 --- .../connect-examples/electron-example/package.json | 2 +- packages/connect-examples/expo-example/package.json | 10 +++++----- packages/core/package.json | 6 +++--- .../core/src/api/allnetwork/AllNetworkGetAddress.ts | 4 ++-- packages/hd-ble-sdk/package.json | 8 ++++---- packages/hd-common-connect-sdk/package.json | 12 ++++++------ packages/hd-transport-http/package.json | 6 +++--- packages/hd-transport-lowlevel/package.json | 6 +++--- packages/hd-transport-react-native/package.json | 6 +++--- packages/hd-transport-webusb/package.json | 6 +++--- packages/hd-transport/package.json | 2 +- packages/hd-web-sdk/package.json | 10 +++++----- packages/shared/package.json | 2 +- 13 files changed, 40 insertions(+), 40 deletions(-) diff --git a/packages/connect-examples/electron-example/package.json b/packages/connect-examples/electron-example/package.json index 713af57c..b81046d8 100644 --- a/packages/connect-examples/electron-example/package.json +++ b/packages/connect-examples/electron-example/package.json @@ -2,7 +2,7 @@ "name": "hardware-example", "productName": "HardwareExample", "executableName": "onekey-hardware-example", - "version": "1.0.16-alpha.1", + "version": "1.0.16-alpha.2", "author": "OneKey", "description": "End-to-end encrypted workspaces for teams", "main": "dist/index.js", diff --git a/packages/connect-examples/expo-example/package.json b/packages/connect-examples/expo-example/package.json index 21e4d092..bcd90f84 100644 --- a/packages/connect-examples/expo-example/package.json +++ b/packages/connect-examples/expo-example/package.json @@ -1,6 +1,6 @@ { "name": "expo-example", - "version": "1.0.16-alpha.1", + "version": "1.0.16-alpha.2", "scripts": { "start": "CONNECT_SRC=https://localhost:8087/ yarn expo start --dev-client", "android": "yarn expo run:android", @@ -19,10 +19,10 @@ "@noble/ed25519": "^2.1.0", "@noble/hashes": "^1.3.3", "@noble/secp256k1": "^1.7.1", - "@onekeyfe/hd-ble-sdk": "^1.0.16-alpha.1", - "@onekeyfe/hd-common-connect-sdk": "^1.0.16-alpha.1", - "@onekeyfe/hd-core": "^1.0.16-alpha.1", - "@onekeyfe/hd-web-sdk": "^1.0.16-alpha.1", + "@onekeyfe/hd-ble-sdk": "^1.0.16-alpha.2", + "@onekeyfe/hd-common-connect-sdk": "^1.0.16-alpha.2", + "@onekeyfe/hd-core": "^1.0.16-alpha.2", + "@onekeyfe/hd-web-sdk": "^1.0.16-alpha.2", "@onekeyfe/react-native-ble-plx": "3.0.0", "@polkadot/util-crypto": "13.1.1", "@react-native-async-storage/async-storage": "1.21.0", diff --git a/packages/core/package.json b/packages/core/package.json index 2de315df..18ee9856 100644 --- a/packages/core/package.json +++ b/packages/core/package.json @@ -1,6 +1,6 @@ { "name": "@onekeyfe/hd-core", - "version": "1.0.16-alpha.1", + "version": "1.0.16-alpha.2", "description": "> TODO: description", "author": "OneKey", "homepage": "https://github.com/OneKeyHQ/hardware-js-sdk#readme", @@ -25,8 +25,8 @@ "url": "https://github.com/OneKeyHQ/hardware-js-sdk/issues" }, "dependencies": { - "@onekeyfe/hd-shared": "^1.0.16-alpha.1", - "@onekeyfe/hd-transport": "^1.0.16-alpha.1", + "@onekeyfe/hd-shared": "^1.0.16-alpha.2", + "@onekeyfe/hd-transport": "^1.0.16-alpha.2", "axios": "^0.27.2", "bignumber.js": "^9.0.2", "bytebuffer": "^5.0.1", diff --git a/packages/core/src/api/allnetwork/AllNetworkGetAddress.ts b/packages/core/src/api/allnetwork/AllNetworkGetAddress.ts index 3796789c..f24e3870 100644 --- a/packages/core/src/api/allnetwork/AllNetworkGetAddress.ts +++ b/packages/core/src/api/allnetwork/AllNetworkGetAddress.ts @@ -311,11 +311,11 @@ export default class AllNetworkGetAddress extends BaseMethod< let result: AllNetworkAddress; try { - preCheckDeviceSupport(this.device, method); - method.init(); method.setDevice?.(this.device); + preCheckDeviceSupport(this.device, method); + const response = await method.run(); result = { ...baseParams, diff --git a/packages/hd-ble-sdk/package.json b/packages/hd-ble-sdk/package.json index f46d3417..b8e4963d 100644 --- a/packages/hd-ble-sdk/package.json +++ b/packages/hd-ble-sdk/package.json @@ -1,6 +1,6 @@ { "name": "@onekeyfe/hd-ble-sdk", - "version": "1.0.16-alpha.1", + "version": "1.0.16-alpha.2", "author": "OneKey", "homepage": "https://github.com/OneKeyHQ/hardware-js-sdk#readme", "license": "ISC", @@ -20,8 +20,8 @@ "lint:fix": "eslint . --fix" }, "dependencies": { - "@onekeyfe/hd-core": "^1.0.16-alpha.1", - "@onekeyfe/hd-shared": "^1.0.16-alpha.1", - "@onekeyfe/hd-transport-react-native": "^1.0.16-alpha.1" + "@onekeyfe/hd-core": "^1.0.16-alpha.2", + "@onekeyfe/hd-shared": "^1.0.16-alpha.2", + "@onekeyfe/hd-transport-react-native": "^1.0.16-alpha.2" } } diff --git a/packages/hd-common-connect-sdk/package.json b/packages/hd-common-connect-sdk/package.json index 89f39f6f..c370d3ab 100644 --- a/packages/hd-common-connect-sdk/package.json +++ b/packages/hd-common-connect-sdk/package.json @@ -1,6 +1,6 @@ { "name": "@onekeyfe/hd-common-connect-sdk", - "version": "1.0.16-alpha.1", + "version": "1.0.16-alpha.2", "author": "OneKey", "homepage": "https://github.com/OneKeyHQ/hardware-js-sdk#readme", "license": "ISC", @@ -20,10 +20,10 @@ "lint:fix": "eslint . --fix" }, "dependencies": { - "@onekeyfe/hd-core": "^1.0.16-alpha.1", - "@onekeyfe/hd-shared": "^1.0.16-alpha.1", - "@onekeyfe/hd-transport-http": "^1.0.16-alpha.1", - "@onekeyfe/hd-transport-lowlevel": "^1.0.16-alpha.1", - "@onekeyfe/hd-transport-webusb": "^1.0.16-alpha.1" + "@onekeyfe/hd-core": "^1.0.16-alpha.2", + "@onekeyfe/hd-shared": "^1.0.16-alpha.2", + "@onekeyfe/hd-transport-http": "^1.0.16-alpha.2", + "@onekeyfe/hd-transport-lowlevel": "^1.0.16-alpha.2", + "@onekeyfe/hd-transport-webusb": "^1.0.16-alpha.2" } } diff --git a/packages/hd-transport-http/package.json b/packages/hd-transport-http/package.json index f265cd80..5b5d7cb1 100644 --- a/packages/hd-transport-http/package.json +++ b/packages/hd-transport-http/package.json @@ -1,6 +1,6 @@ { "name": "@onekeyfe/hd-transport-http", - "version": "1.0.16-alpha.1", + "version": "1.0.16-alpha.2", "description": "hardware http transport", "author": "OneKey", "homepage": "https://github.com/OneKeyHQ/hardware-js-sdk#readme", @@ -24,8 +24,8 @@ "url": "https://github.com/OneKeyHQ/hardware-js-sdk/issues" }, "dependencies": { - "@onekeyfe/hd-shared": "^1.0.16-alpha.1", - "@onekeyfe/hd-transport": "^1.0.16-alpha.1", + "@onekeyfe/hd-shared": "^1.0.16-alpha.2", + "@onekeyfe/hd-transport": "^1.0.16-alpha.2", "axios": "^0.27.2" } } diff --git a/packages/hd-transport-lowlevel/package.json b/packages/hd-transport-lowlevel/package.json index 0a231581..a50335c5 100644 --- a/packages/hd-transport-lowlevel/package.json +++ b/packages/hd-transport-lowlevel/package.json @@ -1,6 +1,6 @@ { "name": "@onekeyfe/hd-transport-lowlevel", - "version": "1.0.16-alpha.1", + "version": "1.0.16-alpha.2", "homepage": "https://github.com/OneKeyHQ/hardware-js-sdk#readme", "license": "MIT", "main": "dist/index.js", @@ -19,7 +19,7 @@ "lint:fix": "eslint . --fix" }, "dependencies": { - "@onekeyfe/hd-shared": "^1.0.16-alpha.1", - "@onekeyfe/hd-transport": "^1.0.16-alpha.1" + "@onekeyfe/hd-shared": "^1.0.16-alpha.2", + "@onekeyfe/hd-transport": "^1.0.16-alpha.2" } } diff --git a/packages/hd-transport-react-native/package.json b/packages/hd-transport-react-native/package.json index 639d3c4c..28dbade0 100644 --- a/packages/hd-transport-react-native/package.json +++ b/packages/hd-transport-react-native/package.json @@ -1,6 +1,6 @@ { "name": "@onekeyfe/hd-transport-react-native", - "version": "1.0.16-alpha.1", + "version": "1.0.16-alpha.2", "homepage": "https://github.com/OneKeyHQ/hardware-js-sdk#readme", "license": "MIT", "main": "dist/index.js", @@ -19,8 +19,8 @@ "lint:fix": "eslint . --fix" }, "dependencies": { - "@onekeyfe/hd-shared": "^1.0.16-alpha.1", - "@onekeyfe/hd-transport": "^1.0.16-alpha.1", + "@onekeyfe/hd-shared": "^1.0.16-alpha.2", + "@onekeyfe/hd-transport": "^1.0.16-alpha.2", "@onekeyfe/react-native-ble-plx": "3.0.1", "react-native-ble-manager": "^8.1.0" } diff --git a/packages/hd-transport-webusb/package.json b/packages/hd-transport-webusb/package.json index ac2177f4..173032ae 100644 --- a/packages/hd-transport-webusb/package.json +++ b/packages/hd-transport-webusb/package.json @@ -1,6 +1,6 @@ { "name": "@onekeyfe/hd-transport-webusb", - "version": "1.0.16-alpha.1", + "version": "1.0.16-alpha.2", "author": "OneKey", "homepage": "https://github.com/OneKeyHQ/hardware-js-sdk#readme", "license": "MIT", @@ -20,8 +20,8 @@ "lint:fix": "eslint . --fix" }, "dependencies": { - "@onekeyfe/hd-shared": "^1.0.16-alpha.1", - "@onekeyfe/hd-transport": "^1.0.16-alpha.1" + "@onekeyfe/hd-shared": "^1.0.16-alpha.2", + "@onekeyfe/hd-transport": "^1.0.16-alpha.2" }, "devDependencies": { "@types/w3c-web-usb": "^1.0.6" diff --git a/packages/hd-transport/package.json b/packages/hd-transport/package.json index 69babee2..b684850f 100644 --- a/packages/hd-transport/package.json +++ b/packages/hd-transport/package.json @@ -1,6 +1,6 @@ { "name": "@onekeyfe/hd-transport", - "version": "1.0.16-alpha.1", + "version": "1.0.16-alpha.2", "description": "> TODO: description", "author": "OneKey", "homepage": "https://github.com/OneKeyHQ/hardware-js-sdk#readme", diff --git a/packages/hd-web-sdk/package.json b/packages/hd-web-sdk/package.json index e8a7ab78..8e01ca92 100644 --- a/packages/hd-web-sdk/package.json +++ b/packages/hd-web-sdk/package.json @@ -1,6 +1,6 @@ { "name": "@onekeyfe/hd-web-sdk", - "version": "1.0.16-alpha.1", + "version": "1.0.16-alpha.2", "author": "OneKey", "homepage": "https://github.com/OneKeyHQ/hardware-js-sdk#readme", "license": "ISC", @@ -21,10 +21,10 @@ }, "dependencies": { "@onekeyfe/cross-inpage-provider-core": "^0.0.17", - "@onekeyfe/hd-core": "^1.0.16-alpha.1", - "@onekeyfe/hd-shared": "^1.0.16-alpha.1", - "@onekeyfe/hd-transport-http": "^1.0.16-alpha.1", - "@onekeyfe/hd-transport-webusb": "^1.0.16-alpha.1" + "@onekeyfe/hd-core": "^1.0.16-alpha.2", + "@onekeyfe/hd-shared": "^1.0.16-alpha.2", + "@onekeyfe/hd-transport-http": "^1.0.16-alpha.2", + "@onekeyfe/hd-transport-webusb": "^1.0.16-alpha.2" }, "devDependencies": { "@babel/plugin-proposal-optional-chaining": "^7.17.12", diff --git a/packages/shared/package.json b/packages/shared/package.json index dc2826e9..207ee0a1 100644 --- a/packages/shared/package.json +++ b/packages/shared/package.json @@ -1,6 +1,6 @@ { "name": "@onekeyfe/hd-shared", - "version": "1.0.16-alpha.1", + "version": "1.0.16-alpha.2", "description": "Hardware SDK's shared tool library", "keywords": [ "Hardware-SDK",