@onekeyfe/hd-web-sdk 0.1.21 → 0.1.22

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.
@@ -14531,9 +14531,7 @@ class DeviceCommands {
14531
14531
  }
14532
14532
 
14533
14533
  if (res.type === 'PassphraseRequest') {
14534
- return this._commonCall('PassphraseAck', {
14535
- passphrase: ''
14536
- });
14534
+ return Promise.reject(hdShared.ERRORS.TypedError(hdShared.HardwareErrorCode.DeviceNotSupportPassphrase));
14537
14535
  }
14538
14536
 
14539
14537
  if (res.type === 'Deprecated_PassphraseStateRequest') ;
@@ -20841,6 +20839,7 @@ const HardwareErrorCode = {
20841
20839
  DeviceUnexpectedBootloaderMode: 108,
20842
20840
  DeviceInterruptedFromUser: 109,
20843
20841
  DeviceCheckDeviceIdError: 110,
20842
+ DeviceNotSupportPassphrase: 111,
20844
20843
  NotInitialized: 200,
20845
20844
  IFrameNotInitialized: 300,
20846
20845
  IFrameAleradyInitialized: 301,
@@ -20890,6 +20889,7 @@ const HardwareErrorCodeMessage = {
20890
20889
  [HardwareErrorCode.DeviceInterruptedFromUser]: 'Device interrupted',
20891
20890
  [HardwareErrorCode.DeviceUnexpectedBootloaderMode]: 'Device should be in bootloader mode',
20892
20891
  [HardwareErrorCode.DeviceCheckDeviceIdError]: 'Device Id in the features is not same.',
20892
+ [HardwareErrorCode.DeviceNotSupportPassphrase]: 'Device not support passphrase',
20893
20893
  [HardwareErrorCode.NotInitialized]: 'Not initialized',
20894
20894
  [HardwareErrorCode.IFrameNotInitialized]: 'IFrame not initialized',
20895
20895
  [HardwareErrorCode.IFrameAleradyInitialized]: 'IFrame alerady initialized',
@@ -46156,7 +46156,7 @@ const src_init = async settings => {
46156
46156
 
46157
46157
  try {
46158
46158
  await init({ ..._settings,
46159
- version: "0.1.21"
46159
+ version: "0.1.22"
46160
46160
  });
46161
46161
  return true;
46162
46162
  } catch (e) {