@onekeyfe/hd-web-sdk 0.1.36 → 0.1.37
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.5990e4a198ef913cb6c8.js +3 -0
- package/build/js/{iframe.674aca4982150f8d1a5d.js.LICENSE.txt → iframe.5990e4a198ef913cb6c8.js.LICENSE.txt} +0 -0
- package/build/js/iframe.5990e4a198ef913cb6c8.js.map +1 -0
- package/build/onekey-js-sdk.js +5 -3
- 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.674aca4982150f8d1a5d.js +0 -3
- package/build/js/iframe.674aca4982150f8d1a5d.js.map +0 -1
package/build/onekey-js-sdk.js
CHANGED
|
@@ -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.37"}/`;
|
|
14869
14869
|
const DEFAULT_PRIORITY = 2;
|
|
14870
14870
|
const initialSettings = {
|
|
14871
14871
|
configSrc: './data/config.json',
|
|
@@ -19710,7 +19710,7 @@ const ensureConnected = (method, pollingId) => __awaiter(void 0, void 0, void 0,
|
|
|
19710
19710
|
} catch (error) {
|
|
19711
19711
|
Log.debug('device error: ', error);
|
|
19712
19712
|
|
|
19713
|
-
if ([hdShared.HardwareErrorCode.BlePermissionError, hdShared.HardwareErrorCode.BleLocationError, hdShared.HardwareErrorCode.BleDeviceNotBonded, hdShared.HardwareErrorCode.BleCharacteristicNotifyError, hdShared.HardwareErrorCode.BleWriteCharacteristicError].includes(error.errorCode)) {
|
|
19713
|
+
if ([hdShared.HardwareErrorCode.BlePermissionError, hdShared.HardwareErrorCode.BleLocationError, hdShared.HardwareErrorCode.BleDeviceNotBonded, hdShared.HardwareErrorCode.BleCharacteristicNotifyError, hdShared.HardwareErrorCode.BleWriteCharacteristicError, hdShared.HardwareErrorCode.BleAlreadyConnected].includes(error.errorCode)) {
|
|
19714
19714
|
reject(error);
|
|
19715
19715
|
return;
|
|
19716
19716
|
}
|
|
@@ -21224,6 +21224,7 @@ const HardwareErrorCode = {
|
|
|
21224
21224
|
BleMonitorError: 708,
|
|
21225
21225
|
BleCharacteristicNotifyError: 709,
|
|
21226
21226
|
BleWriteCharacteristicError: 710,
|
|
21227
|
+
BleAlreadyConnected: 711,
|
|
21227
21228
|
RuntimeError: 800,
|
|
21228
21229
|
PinInvalid: 801,
|
|
21229
21230
|
PinCancelled: 802,
|
|
@@ -21277,6 +21278,7 @@ const HardwareErrorCodeMessage = {
|
|
|
21277
21278
|
[HardwareErrorCode.BleMonitorError]: 'Monitor Error: characteristic not found',
|
|
21278
21279
|
[HardwareErrorCode.BleCharacteristicNotifyError]: 'Characteristic Notify Error',
|
|
21279
21280
|
[HardwareErrorCode.BleWriteCharacteristicError]: 'Write Characteristic Error',
|
|
21281
|
+
[HardwareErrorCode.BleAlreadyConnected]: 'Already connected to device',
|
|
21280
21282
|
[HardwareErrorCode.RuntimeError]: 'Runtime error',
|
|
21281
21283
|
[HardwareErrorCode.PinInvalid]: 'Pin invalid',
|
|
21282
21284
|
[HardwareErrorCode.PinCancelled]: 'Pin cancelled',
|
|
@@ -46538,7 +46540,7 @@ const src_init = async settings => {
|
|
|
46538
46540
|
|
|
46539
46541
|
try {
|
|
46540
46542
|
await init({ ..._settings,
|
|
46541
|
-
version: "0.1.
|
|
46543
|
+
version: "0.1.37"
|
|
46542
46544
|
});
|
|
46543
46545
|
return true;
|
|
46544
46546
|
} catch (e) {
|