@pisell/utils 1.0.51 → 1.0.53
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.
|
@@ -74,10 +74,10 @@ function getComposedBridge(deviceType) {
|
|
|
74
74
|
} catch (error) {
|
|
75
75
|
console.log("error ".concat(apiName), error);
|
|
76
76
|
}
|
|
77
|
-
if (result.code || result.code === 0) {
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
}
|
|
77
|
+
// if (result.code || result.code === 0) {
|
|
78
|
+
// // 强转字符串,兼容安卓的number
|
|
79
|
+
// result.code = `${result.code}`;
|
|
80
|
+
// }
|
|
81
81
|
for (var _len = arguments.length, args = new Array(_len > 1 ? _len - 1 : 0), _key = 1; _key < _len; _key++) {
|
|
82
82
|
args[_key - 1] = arguments[_key];
|
|
83
83
|
}
|
|
@@ -91,9 +91,6 @@ function getComposedBridge(deviceType) {
|
|
|
91
91
|
} catch (error) {
|
|
92
92
|
console.log(`error ${apiName}`, error);
|
|
93
93
|
}
|
|
94
|
-
if (result.code || result.code === 0) {
|
|
95
|
-
result.code = `${result.code}`;
|
|
96
|
-
}
|
|
97
94
|
inCb(result, ...args);
|
|
98
95
|
};
|
|
99
96
|
if (deviceType === "iphone") {
|
package/package.json
CHANGED
package/es/jsBridge/index.d.ts
DELETED
|
@@ -1,22 +0,0 @@
|
|
|
1
|
-
import { WebPrintParams, DataManagerParams, WebPaymentParams } from './types';
|
|
2
|
-
/**
|
|
3
|
-
* webView页面中调用打印机打印
|
|
4
|
-
* 此api暂时只支持native app平台下ios手机
|
|
5
|
-
* @param params
|
|
6
|
-
* @param callback
|
|
7
|
-
*/
|
|
8
|
-
export declare function webPrint(params: WebPrintParams, callback: (...arg: any) => void, onError?: (error: any) => void): void;
|
|
9
|
-
/**
|
|
10
|
-
* webView页面中调用APP内的数据
|
|
11
|
-
* 此api暂时只支持native app平台下ios手机
|
|
12
|
-
* @param params
|
|
13
|
-
* @param callback
|
|
14
|
-
*/
|
|
15
|
-
export declare function dataManager(params: DataManagerParams, callback: (...arg: any) => void, onError: () => void): void;
|
|
16
|
-
/**
|
|
17
|
-
* webView页面中调用APP内的支付
|
|
18
|
-
* 此api暂时只支持native app平台下ios
|
|
19
|
-
* @param params
|
|
20
|
-
* @param callback
|
|
21
|
-
*/
|
|
22
|
-
export declare function webPayment(params: WebPaymentParams, callback: (...arg: any) => void, onError?: (error: any) => void): void;
|
package/lib/jsBridge/index.d.ts
DELETED
|
@@ -1,22 +0,0 @@
|
|
|
1
|
-
import { WebPrintParams, DataManagerParams, WebPaymentParams } from './types';
|
|
2
|
-
/**
|
|
3
|
-
* webView页面中调用打印机打印
|
|
4
|
-
* 此api暂时只支持native app平台下ios手机
|
|
5
|
-
* @param params
|
|
6
|
-
* @param callback
|
|
7
|
-
*/
|
|
8
|
-
export declare function webPrint(params: WebPrintParams, callback: (...arg: any) => void, onError?: (error: any) => void): void;
|
|
9
|
-
/**
|
|
10
|
-
* webView页面中调用APP内的数据
|
|
11
|
-
* 此api暂时只支持native app平台下ios手机
|
|
12
|
-
* @param params
|
|
13
|
-
* @param callback
|
|
14
|
-
*/
|
|
15
|
-
export declare function dataManager(params: DataManagerParams, callback: (...arg: any) => void, onError: () => void): void;
|
|
16
|
-
/**
|
|
17
|
-
* webView页面中调用APP内的支付
|
|
18
|
-
* 此api暂时只支持native app平台下ios
|
|
19
|
-
* @param params
|
|
20
|
-
* @param callback
|
|
21
|
-
*/
|
|
22
|
-
export declare function webPayment(params: WebPaymentParams, callback: (...arg: any) => void, onError?: (error: any) => void): void;
|