@kbapp/js-bridge 0.4.4-alpha.0 → 0.4.5-alpha.0
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/core/index.js +8 -1
- package/package.json +2 -2
package/dist/core/index.js
CHANGED
|
@@ -41,7 +41,14 @@ var $bridge = (function (user_agent) {
|
|
|
41
41
|
*
|
|
42
42
|
* @description 注册事件 提供给native端调用
|
|
43
43
|
*/
|
|
44
|
-
|
|
44
|
+
var registerHandler = function (
|
|
45
|
+
/** 任务名称 */
|
|
46
|
+
name,
|
|
47
|
+
/** 回调函数 */
|
|
48
|
+
cb) {
|
|
49
|
+
return $bridge.registerHandler(name, cb);
|
|
50
|
+
};
|
|
51
|
+
exports.registerHandler = registerHandler;
|
|
45
52
|
/**
|
|
46
53
|
*
|
|
47
54
|
* @description 主动触发 触发native端任务
|
package/package.json
CHANGED
|
@@ -3,9 +3,9 @@
|
|
|
3
3
|
"publishConfig": {
|
|
4
4
|
"access": "public"
|
|
5
5
|
},
|
|
6
|
-
"version": "0.4.
|
|
6
|
+
"version": "0.4.5-alpha.0",
|
|
7
7
|
"description": "开吧客户端桥接",
|
|
8
8
|
"main": "./dist/index.js",
|
|
9
9
|
"author": "along",
|
|
10
|
-
"gitHead": "
|
|
10
|
+
"gitHead": "1ae6636e6e5180193f58946cc75766872d786107"
|
|
11
11
|
}
|