@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.d.ts +1 -4
- package/dist/index.esm.js +2 -4
- package/dist/index.esm.js.map +1 -1
- package/dist/index.js +2 -4
- package/dist/index.js.map +1 -1
- package/dist/index.umd.js +6 -6
- package/dist/index.umd.js.map +1 -1
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
|
@@ -401,10 +401,7 @@ declare function logout(): Promise<void>;
|
|
|
401
401
|
|
|
402
402
|
declare function hdH5Adapter(): void;
|
|
403
403
|
|
|
404
|
-
declare const UniProxy:
|
|
405
|
-
chooseImage: any;
|
|
406
|
-
pathToBase64: any;
|
|
407
|
-
};
|
|
404
|
+
declare const UniProxy: any;
|
|
408
405
|
|
|
409
406
|
declare class PageLifeCycle {
|
|
410
407
|
state: string;
|
package/dist/index.esm.js
CHANGED
|
@@ -1,5 +1,3 @@
|
|
|
1
|
-
import { pathToBase64 } from 'image-tools';
|
|
2
|
-
|
|
3
1
|
/**
|
|
4
2
|
* JSBridge 核心通信层
|
|
5
3
|
*
|
|
@@ -1572,8 +1570,8 @@ class JsBridgeHandlers {
|
|
|
1572
1570
|
//Cannot assign to read only property 'chooseImage' of object '[object Object]'
|
|
1573
1571
|
// chooseImage是只读的,无法替换,只能用代理模式,如果有好方法替换可以删除这个类
|
|
1574
1572
|
const UniProxy = {
|
|
1575
|
-
chooseImage: uni.chooseImage,
|
|
1576
|
-
pathToBase64:
|
|
1573
|
+
chooseImage: typeof uni !== 'undefined' ? uni.chooseImage : null,
|
|
1574
|
+
pathToBase64: null
|
|
1577
1575
|
};
|
|
1578
1576
|
|
|
1579
1577
|
function hdH5Adapter() {
|