@dolphinweex/weex-harmony-transform 0.1.4 → 0.1.6
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/package.json +1 -1
- package/src/adapter.ts +6 -0
- package/weexTransform.js +2 -2
package/package.json
CHANGED
package/src/adapter.ts
CHANGED
|
@@ -192,6 +192,9 @@ let bridgeModule = {
|
|
|
192
192
|
getWeexPath:function(callback){
|
|
193
193
|
weexModule.callNative('bridgeModule.getWeexPath',{ 'options': {} }, callback)
|
|
194
194
|
},
|
|
195
|
+
getWeexFunctionPath:function(options, callback){
|
|
196
|
+
weexModule.callNative('bridgeModule.getWeexFunctionPath', { 'options': options }, callback)
|
|
197
|
+
},
|
|
195
198
|
reload:function(options, callback){
|
|
196
199
|
weexModule.callNative('bridgeModule.reload',{ 'options': options }, callback)
|
|
197
200
|
},
|
|
@@ -252,6 +255,9 @@ let bridgeModule = {
|
|
|
252
255
|
setIdleTimerDisabled:function(options, callback){
|
|
253
256
|
weexModule.callNative('bridgeModule.setIdleTimerDisabled',{ 'options': options }, callback)
|
|
254
257
|
},
|
|
258
|
+
showControlPanelPage:function(options, callback, failCallback) {
|
|
259
|
+
weexModule.callNative('bridgeModule.showControlPanelPage', { 'options': options }, callback, undefined, failCallback)
|
|
260
|
+
},
|
|
255
261
|
}
|
|
256
262
|
|
|
257
263
|
let deviceInfo = {
|
package/weexTransform.js
CHANGED
|
@@ -25,7 +25,7 @@ module.exports = function({ types: t }) {
|
|
|
25
25
|
callee.object.name === 'weex'
|
|
26
26
|
) {
|
|
27
27
|
if (process.env.ISHARMONY === 'true') {
|
|
28
|
-
console.log('Transform harmony process.env.ISHARMONY:' + process.env.ISHARMONY);
|
|
28
|
+
// console.log('Transform harmony process.env.ISHARMONY:' + process.env.ISHARMONY);
|
|
29
29
|
// callee.object = t.identifier('weexExt')
|
|
30
30
|
|
|
31
31
|
const parentPath = astPath.parentPath?.parentPath
|
|
@@ -72,7 +72,7 @@ module.exports = function({ types: t }) {
|
|
|
72
72
|
}
|
|
73
73
|
}
|
|
74
74
|
} else {
|
|
75
|
-
console.log('Transform not harmony process.env.ISHARMONY:' + process.env.ISHARMONY);
|
|
75
|
+
// console.log('Transform not harmony process.env.ISHARMONY:' + process.env.ISHARMONY);
|
|
76
76
|
}
|
|
77
77
|
}
|
|
78
78
|
}
|