@hd-front-end/jsbridge-sdk 1.0.3 → 1.0.4

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/dist/index.js CHANGED
@@ -1,7 +1,5 @@
1
1
  'use strict';
2
2
 
3
- var imageTools = require('image-tools');
4
-
5
3
  /**
6
4
  * JSBridge 核心通信层
7
5
  *
@@ -1574,8 +1572,8 @@ class JsBridgeHandlers {
1574
1572
  //Cannot assign to read only property 'chooseImage' of object '[object Object]'
1575
1573
  // chooseImage是只读的,无法替换,只能用代理模式,如果有好方法替换可以删除这个类
1576
1574
  const UniProxy = {
1577
- chooseImage: uni.chooseImage,
1578
- pathToBase64: imageTools.pathToBase64
1575
+ chooseImage: typeof uni !== 'undefined' ? uni.chooseImage : null,
1576
+ pathToBase64: null
1579
1577
  };
1580
1578
 
1581
1579
  function hdH5Adapter() {