@onekeyfe/hd-web-sdk 0.1.33 → 0.1.36
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.674aca4982150f8d1a5d.js +3 -0
- package/build/js/{iframe.e3ec5ad0cf31ca1f0ec9.js.LICENSE.txt → iframe.674aca4982150f8d1a5d.js.LICENSE.txt} +0 -0
- package/build/js/iframe.674aca4982150f8d1a5d.js.map +1 -0
- package/build/onekey-js-sdk.js +5 -4
- 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 +6 -6
- package/build/js/iframe.e3ec5ad0cf31ca1f0ec9.js +0 -3
- package/build/js/iframe.e3ec5ad0cf31ca1f0ec9.js.map +0 -1
package/build/onekey-js-sdk.js
CHANGED
|
@@ -14471,7 +14471,7 @@ class DevicePool extends events.exports {
|
|
|
14471
14471
|
static _sendDisconnectMessage() {
|
|
14472
14472
|
for (let i = this.disconnectPool.length - 1; i >= 0; i--) {
|
|
14473
14473
|
const descriptor = this.connectedPool[i];
|
|
14474
|
-
const device = this.getDeviceByPath(descriptor.path);
|
|
14474
|
+
const device = (descriptor === null || descriptor === void 0 ? void 0 : descriptor.path) ? this.getDeviceByPath(descriptor.path) : null;
|
|
14475
14475
|
|
|
14476
14476
|
if (device) {
|
|
14477
14477
|
this.emitter.emit(DEVICE.DISCONNECT, device);
|
|
@@ -14865,7 +14865,7 @@ const UI_REQUEST = {
|
|
|
14865
14865
|
FIRMWARE_NOT_INSTALLED: 'ui-device_firmware_not_installed',
|
|
14866
14866
|
NOT_USE_ONEKEY_DEVICE: 'ui-device_please_use_onekey_device'
|
|
14867
14867
|
};
|
|
14868
|
-
const DEFAULT_DOMAIN = `https://jssdk.onekey.so/${"0.1.
|
|
14868
|
+
const DEFAULT_DOMAIN = `https://jssdk.onekey.so/${"0.1.36"}/`;
|
|
14869
14869
|
const DEFAULT_PRIORITY = 2;
|
|
14870
14870
|
const initialSettings = {
|
|
14871
14871
|
configSrc: './data/config.json',
|
|
@@ -17509,7 +17509,7 @@ class EVMSignTransaction extends BaseMethod {
|
|
|
17509
17509
|
}))
|
|
17510
17510
|
};
|
|
17511
17511
|
const response = yield this.device.commands.typedCall('EthereumSignTxEIP1559', 'EthereumTxRequest', message);
|
|
17512
|
-
return this.processTxRequest(response.message, rest
|
|
17512
|
+
return this.processTxRequest(response.message, rest);
|
|
17513
17513
|
});
|
|
17514
17514
|
}
|
|
17515
17515
|
|
|
@@ -19368,6 +19368,7 @@ class DeviceConnector {
|
|
|
19368
19368
|
|
|
19369
19369
|
return res;
|
|
19370
19370
|
} catch (error) {
|
|
19371
|
+
Log$1.debug('acquire error: ', error.message);
|
|
19371
19372
|
safeThrowError(error);
|
|
19372
19373
|
}
|
|
19373
19374
|
});
|
|
@@ -46537,7 +46538,7 @@ const src_init = async settings => {
|
|
|
46537
46538
|
|
|
46538
46539
|
try {
|
|
46539
46540
|
await init({ ..._settings,
|
|
46540
|
-
version: "0.1.
|
|
46541
|
+
version: "0.1.36"
|
|
46541
46542
|
});
|
|
46542
46543
|
return true;
|
|
46543
46544
|
} catch (e) {
|