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