@onekeyfe/hd-web-sdk 0.1.38 → 0.1.39

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -14829,6 +14829,10 @@ class DeviceCommands {
14829
14829
  error = hdShared.ERRORS.TypedError(hdShared.HardwareErrorCode.PinCancelled);
14830
14830
  }
14831
14831
 
14832
+ if (code === 'Failure_DataError' && message === 'Please confirm the BlindSign enabled') {
14833
+ error = hdShared.ERRORS.TypedError(hdShared.HardwareErrorCode.BlindSignDisabled);
14834
+ }
14835
+
14832
14836
  if (error) {
14833
14837
  return Promise.reject(error);
14834
14838
  }
@@ -14914,7 +14918,7 @@ const UI_REQUEST = {
14914
14918
  FIRMWARE_NOT_INSTALLED: 'ui-device_firmware_not_installed',
14915
14919
  NOT_USE_ONEKEY_DEVICE: 'ui-device_please_use_onekey_device'
14916
14920
  };
14917
- const DEFAULT_DOMAIN = `https://jssdk.onekey.so/${"0.1.38"}/`;
14921
+ const DEFAULT_DOMAIN = `https://jssdk.onekey.so/${"0.1.39"}/`;
14918
14922
  const DEFAULT_PRIORITY = 2;
14919
14923
  const initialSettings = {
14920
14924
  configSrc: './data/config.json',
@@ -21474,7 +21478,8 @@ const HardwareErrorCode = {
21474
21478
  BridgeTimeoutError: 807,
21475
21479
  BridgeNotInstalled: 808,
21476
21480
  PollingTimeout: 809,
21477
- PollingStop: 810
21481
+ PollingStop: 810,
21482
+ BlindSignDisabled: 811
21478
21483
  };
21479
21484
  const HardwareErrorCodeMessage = {
21480
21485
  [HardwareErrorCode.UnknownError]: 'Unknown error occurred. Check message property.',
@@ -21531,7 +21536,8 @@ const HardwareErrorCodeMessage = {
21531
21536
  [HardwareErrorCode.BridgeTimeoutError]: 'Bridge network timeout',
21532
21537
  [HardwareErrorCode.BridgeNotInstalled]: 'Bridge not installed',
21533
21538
  [HardwareErrorCode.PollingTimeout]: 'Polling timeout',
21534
- [HardwareErrorCode.PollingStop]: 'Polling stop'
21539
+ [HardwareErrorCode.PollingStop]: 'Polling stop',
21540
+ [HardwareErrorCode.BlindSignDisabled]: 'Please confirm the BlindSign enabled'
21535
21541
  };
21536
21542
 
21537
21543
  const TypedError = (hardwareError, message, params) => {
@@ -46782,7 +46788,7 @@ const src_init = async settings => {
46782
46788
 
46783
46789
  try {
46784
46790
  await init({ ..._settings,
46785
- version: "0.1.38"
46791
+ version: "0.1.39"
46786
46792
  });
46787
46793
  return true;
46788
46794
  } catch (e) {