Skip to content

Commit

Permalink
Merge branch 'dev' of github.com:dcloudio/uni-app into dev
Browse files Browse the repository at this point in the history
  • Loading branch information
zhetengbiji committed Mar 27, 2019
2 parents 540d65e + 4a19265 commit 8ec8952
Show file tree
Hide file tree
Showing 6 changed files with 18 additions and 15 deletions.
6 changes: 5 additions & 1 deletion packages/uni-app-plus/dist/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -228,7 +228,11 @@ TODOS.forEach(function (name) {
todoApis[name] = createTodoApi(name);
});

function requireNativePlugin (pluginName) {
function requireNativePlugin (pluginName) {
/* eslint-disable no-undef */
if (typeof weex !== 'undefined') {
return weex.requireModule(pluginName)
}
/* eslint-disable no-undef */
return __requireNativePlugin__(pluginName)
}
Expand Down
2 changes: 1 addition & 1 deletion packages/uni-app-plus/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@dcloudio/uni-app-plus",
"version": "0.0.204",
"version": "0.0.205",
"description": "uni-app app-plus",
"main": "dist/index.js",
"scripts": {
Expand Down
13 changes: 6 additions & 7 deletions packages/uni-mp-weixin/dist/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -690,9 +690,9 @@ if (typeof Proxy !== 'undefined') {
if (extraApi[name]) {
return promisify(name, extraApi[name])
}
}
if (todoApis[name]) {
return promisify(name, todoApis[name])
if (todoApis[name]) {
return promisify(name, todoApis[name])
}
}
if (!hasOwn(wx, name) && !hasOwn(protocols, name)) {
return
Expand All @@ -703,11 +703,10 @@ if (typeof Proxy !== 'undefined') {
} else {
uni.upx2px = upx2px;

Object.keys(todoApis).forEach(name => {
uni[name] = promisify(name, todoApis[name]);
});

{
Object.keys(todoApis).forEach(name => {
uni[name] = promisify(name, todoApis[name]);
});
Object.keys(extraApi).forEach(name => {
uni[name] = promisify(name, todoApis[name]);
});
Expand Down
2 changes: 1 addition & 1 deletion packages/uni-mp-weixin/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@dcloudio/uni-mp-weixin",
"version": "0.0.914",
"version": "0.0.915",
"description": "uni-app mp-weixin",
"main": "dist/index.js",
"scripts": {
Expand Down
6 changes: 5 additions & 1 deletion src/platforms/app-plus/service/api/index.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,8 @@
export function requireNativePlugin (pluginName) {
export function requireNativePlugin (pluginName) {
/* eslint-disable no-undef */
if (typeof weex !== 'undefined') {
return weex.requireModule(pluginName)
}
/* eslint-disable no-undef */
return __requireNativePlugin__(pluginName)
}
4 changes: 0 additions & 4 deletions src/platforms/app-plus/service/api/require-native-plugin.js

This file was deleted.

0 comments on commit 8ec8952

Please sign in to comment.