@dolphinweex/weex-harmony-transform 0.1.32 → 0.1.35
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.js +7 -1
- package/weexTransform.js +2 -2
package/package.json
CHANGED
package/src/adapter.js
CHANGED
|
@@ -361,6 +361,12 @@ let MallModule = {
|
|
|
361
361
|
},
|
|
362
362
|
getWXPayInfo: function (param, callback) {
|
|
363
363
|
weexModule.callNative('MallModule.getWXPayInfo', { 'param': param }, callback);
|
|
364
|
+
},
|
|
365
|
+
getWXPayInfo: function (param, callback) {
|
|
366
|
+
weexModule.callNative('MallModule.getWXPayInfo', { 'param': param }, callback);
|
|
367
|
+
},
|
|
368
|
+
openWxPage:function (param, callback) {
|
|
369
|
+
weexModule.callNative('MallModule.openWxPage', { 'param': param }, callback);
|
|
364
370
|
}
|
|
365
371
|
}
|
|
366
372
|
|
|
@@ -419,7 +425,7 @@ let globalEvent = {
|
|
|
419
425
|
let iotLinkVideoModule = {
|
|
420
426
|
name:'iotLinkVideoModule',
|
|
421
427
|
// 启动P2P通道 + 搭建腾讯SDK环境
|
|
422
|
-
|
|
428
|
+
startP2pService: function(options, callback, failCallback) {
|
|
423
429
|
weexModule.callNative('iotLinkVideoModule.startP2pService', { 'options': options }, callback, undefined, failCallback)
|
|
424
430
|
},
|
|
425
431
|
// 关闭P2P通道
|
package/weexTransform.js
CHANGED
|
@@ -88,7 +88,7 @@ module.exports = function ({ types: t }) {
|
|
|
88
88
|
if (arguments && arguments.length > 0 && arguments[0].value) {
|
|
89
89
|
const oldPath = arguments[0].value;
|
|
90
90
|
Object.keys(replaceMap).forEach(key => {
|
|
91
|
-
if (oldPath
|
|
91
|
+
if (oldPath == key) {
|
|
92
92
|
astPath.node.arguments[0] = {
|
|
93
93
|
type: 'StringLiteral',
|
|
94
94
|
value: oldPath.replace(key, replaceMap[key])
|
|
@@ -101,7 +101,7 @@ module.exports = function ({ types: t }) {
|
|
|
101
101
|
ImportDeclaration(path) {
|
|
102
102
|
const importPath = path.node.source.value;
|
|
103
103
|
Object.keys(replaceMap).forEach(key => {
|
|
104
|
-
if (importPath
|
|
104
|
+
if (importPath == key) {
|
|
105
105
|
path.node.source.value = importPath.replace(key, replaceMap[key]);
|
|
106
106
|
}
|
|
107
107
|
});
|