@onekeyfe/hd-core
Advanced tools
Comparing version 0.1.45 to 0.1.46
@@ -14,2 +14,3 @@ import type { PROTO } from '../constants'; | ||
readonly LOCATION_PERMISSION: "ui-location_permission"; | ||
readonly LOCATION_SERVICE_PERMISSION: "ui-location_service_permission"; | ||
readonly FIRMWARE_PROGRESS: "ui-firmware-progress"; | ||
@@ -19,3 +20,3 @@ readonly NOT_IN_BOOTLOADER: "ui-device_not_in_bootloader_mode"; | ||
export interface UiRequestWithoutPayload { | ||
type: typeof UI_REQUEST.CLOSE_UI_WINDOW | typeof UI_REQUEST.BLUETOOTH_PERMISSION | typeof UI_REQUEST.LOCATION_PERMISSION; | ||
type: typeof UI_REQUEST.CLOSE_UI_WINDOW | typeof UI_REQUEST.BLUETOOTH_PERMISSION | typeof UI_REQUEST.LOCATION_PERMISSION | typeof UI_REQUEST.LOCATION_SERVICE_PERMISSION; | ||
payload?: typeof undefined; | ||
@@ -22,0 +23,0 @@ } |
{ | ||
"name": "@onekeyfe/hd-core", | ||
"version": "0.1.45", | ||
"version": "0.1.46", | ||
"description": "> TODO: description", | ||
@@ -27,4 +27,4 @@ "author": "OneKey", | ||
"dependencies": { | ||
"@onekeyfe/hd-shared": "^0.1.45", | ||
"@onekeyfe/hd-transport": "^0.1.45", | ||
"@onekeyfe/hd-shared": "^0.1.46", | ||
"@onekeyfe/hd-transport": "^0.1.46", | ||
"axios": "^0.27.2", | ||
@@ -40,3 +40,3 @@ "bignumber.js": "^9.0.2", | ||
}, | ||
"gitHead": "0436f8ff26494933124c1c6f4586d4aeb5526c30" | ||
"gitHead": "cb71b9b5f2013756b0ba8d4111e233124bf6282e" | ||
} |
import { AptosSignTx as HardwareAptosSignTx } from '@onekeyfe/hd-transport'; | ||
import { UI_REQUEST } from '../../constants/ui-request'; | ||
import { serializedPath, validatePath } from '../helpers/pathUtils'; | ||
import { validatePath } from '../helpers/pathUtils'; | ||
import { BaseMethod } from '../BaseMethod'; | ||
@@ -5,0 +5,0 @@ import { validateParams } from '../helpers/paramsValidator'; |
@@ -460,2 +460,3 @@ import semver from 'semver'; | ||
HardwareErrorCode.BleLocationError, | ||
HardwareErrorCode.BleLocationServicesDisabled, | ||
HardwareErrorCode.BleDeviceNotBonded, | ||
@@ -637,3 +638,4 @@ HardwareErrorCode.BleCharacteristicNotifyError, | ||
case UI_REQUEST.BLUETOOTH_PERMISSION: | ||
case UI_REQUEST.LOCATION_PERMISSION: { | ||
case UI_REQUEST.LOCATION_PERMISSION: | ||
case UI_REQUEST.LOCATION_SERVICE_PERMISSION: { | ||
postMessage(message); | ||
@@ -640,0 +642,0 @@ break; |
@@ -18,2 +18,3 @@ import type { PROTO } from '../constants'; | ||
LOCATION_PERMISSION: 'ui-location_permission', | ||
LOCATION_SERVICE_PERMISSION: 'ui-location_service_permission', | ||
@@ -29,3 +30,4 @@ FIRMWARE_PROGRESS: 'ui-firmware-progress', | ||
| typeof UI_REQUEST.BLUETOOTH_PERMISSION | ||
| typeof UI_REQUEST.LOCATION_PERMISSION; | ||
| typeof UI_REQUEST.LOCATION_PERMISSION | ||
| typeof UI_REQUEST.LOCATION_SERVICE_PERMISSION; | ||
payload?: typeof undefined; | ||
@@ -32,0 +34,0 @@ } |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
1245203
38079