@onekeyfe/hd-web-sdk 0.1.48 → 0.1.49

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.
@@ -45606,7 +45606,7 @@ try {
45606
45606
  /***/ ((module) => {
45607
45607
 
45608
45608
  "use strict";
45609
- module.exports = JSON.parse('{"name":"@onekeyfe/hd-core","version":"0.1.48","description":"> TODO: description","author":"OneKey","homepage":"https://github.com/OneKeyHQ/hardware-js-sdk#readme","license":"ISC","main":"dist/index.js","types":"dist/index.d.ts","repository":{"type":"git","url":"git+https://github.com/OneKeyHQ/hardware-js-sdk.git"},"publishConfig":{"access":"public"},"scripts":{"dev":"rimraf dist && rollup -c ../../build/rollup.config.js -w","build":"rimraf dist && rollup -c ../../build/rollup.config.js","lint":"eslint .","lint:fix":"eslint . --fix"},"bugs":{"url":"https://github.com/OneKeyHQ/hardware-js-sdk/issues"},"dependencies":{"@onekeyfe/hd-shared":"^0.1.48","@onekeyfe/hd-transport":"^0.1.48","axios":"^0.27.2","bignumber.js":"^9.0.2","js-sha256":"^0.9.0","parse-uri":"^1.0.7","semver":"^7.3.7"},"devDependencies":{"@types/parse-uri":"^1.0.0","@types/semver":"^7.3.9"}}');
45609
+ module.exports = JSON.parse('{"name":"@onekeyfe/hd-core","version":"0.1.49","description":"> TODO: description","author":"OneKey","homepage":"https://github.com/OneKeyHQ/hardware-js-sdk#readme","license":"ISC","main":"dist/index.js","types":"dist/index.d.ts","repository":{"type":"git","url":"git+https://github.com/OneKeyHQ/hardware-js-sdk.git"},"publishConfig":{"access":"public"},"scripts":{"dev":"rimraf dist && rollup -c ../../build/rollup.config.js -w","build":"rimraf dist && rollup -c ../../build/rollup.config.js","lint":"eslint .","lint:fix":"eslint . --fix"},"bugs":{"url":"https://github.com/OneKeyHQ/hardware-js-sdk/issues"},"dependencies":{"@onekeyfe/hd-shared":"^0.1.49","@onekeyfe/hd-transport":"^0.1.49","axios":"^0.27.2","bignumber.js":"^9.0.2","js-sha256":"^0.9.0","parse-uri":"^1.0.7","semver":"^7.3.7"},"devDependencies":{"@types/parse-uri":"^1.0.0","@types/semver":"^7.3.9"}}');
45610
45610
 
45611
45611
  /***/ })
45612
45612
 
@@ -48138,7 +48138,7 @@ const src_init = async settings => {
48138
48138
 
48139
48139
  try {
48140
48140
  await init({ ..._settings,
48141
- version: "0.1.48"
48141
+ version: "0.1.49"
48142
48142
  });
48143
48143
  return true;
48144
48144
  } catch (e) {
@@ -48158,7 +48158,13 @@ const call = async params => {
48158
48158
  src_Log.debug("Try to recreate iframe if it's initialize failed: ", _settings);
48159
48159
 
48160
48160
  try {
48161
- await src_init(_settings);
48161
+ const initResult = await src_init(_settings);
48162
+
48163
+ if (!initResult) {
48164
+ src_Log.debug('Recreate iframe failed');
48165
+ return (0,dist/* createErrorMessage */.xG)(shared_dist.ERRORS.TypedError(shared_dist.HardwareErrorCode.IFrameLoadFail));
48166
+ }
48167
+
48162
48168
  src_Log.debug('Recreate iframe success');
48163
48169
  } catch (error) {
48164
48170
  src_Log.debug('Recreate iframe failed: ', error);