@onekeyfe/hd-web-sdk 0.1.23 → 0.1.24
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.
- package/build/iframe.html +1 -1
- package/build/js/iframe.d989798a9cd215994caa.js +3 -0
- package/build/js/{iframe.bb1023980dee1bec0fb4.js.LICENSE.txt → iframe.d989798a9cd215994caa.js.LICENSE.txt} +0 -0
- package/build/js/iframe.d989798a9cd215994caa.js.map +1 -0
- package/build/onekey-js-sdk.js +7 -1
- package/build/onekey-js-sdk.js.map +1 -1
- package/build/onekey-js-sdk.min.js +1 -1
- package/build/onekey-js-sdk.min.js.map +1 -1
- package/package.json +5 -5
- package/build/js/iframe.bb1023980dee1bec0fb4.js +0 -3
- package/build/js/iframe.bb1023980dee1bec0fb4.js.map +0 -1
package/build/onekey-js-sdk.js
CHANGED
|
@@ -14468,6 +14468,8 @@ class DeviceCommands {
|
|
|
14468
14468
|
}
|
|
14469
14469
|
|
|
14470
14470
|
_filterCommonTypes(res) {
|
|
14471
|
+
var _a;
|
|
14472
|
+
|
|
14471
14473
|
Log$4.debug('_filterCommonTypes: ', res);
|
|
14472
14474
|
|
|
14473
14475
|
if (res.type === 'Failure') {
|
|
@@ -14506,6 +14508,10 @@ class DeviceCommands {
|
|
|
14506
14508
|
return Promise.resolve(patchFeatures(res));
|
|
14507
14509
|
}
|
|
14508
14510
|
|
|
14511
|
+
if ((_a = this.device.features) === null || _a === void 0 ? void 0 : _a.passphrase_protection) {
|
|
14512
|
+
return Promise.reject(hdShared.ERRORS.TypedError(hdShared.HardwareErrorCode.DeviceNotSupportPassphrase));
|
|
14513
|
+
}
|
|
14514
|
+
|
|
14509
14515
|
if (res.type === 'ButtonRequest') {
|
|
14510
14516
|
if (res.message.code === 'ButtonRequest_PassphraseEntry') {
|
|
14511
14517
|
this.device.emit(DEVICE.PASSPHRASE_ON_DEVICE, this.device);
|
|
@@ -46162,7 +46168,7 @@ const src_init = async settings => {
|
|
|
46162
46168
|
|
|
46163
46169
|
try {
|
|
46164
46170
|
await init({ ..._settings,
|
|
46165
|
-
version: "0.1.
|
|
46171
|
+
version: "0.1.24"
|
|
46166
46172
|
});
|
|
46167
46173
|
return true;
|
|
46168
46174
|
} catch (e) {
|