@dcloudio/uni-app-plus 3.0.0-alpha-3021320211117005 → 3.0.0-alpha-3021320211118001

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.
@@ -1040,7 +1040,7 @@ var serviceContext = (function (vue) {
1040
1040
  }
1041
1041
  return interceptor;
1042
1042
  }
1043
- function invokeApi(method, api, options, ...params) {
1043
+ function invokeApi(method, api, options, params) {
1044
1044
  const interceptor = getApiInterceptorHooks(method);
1045
1045
  if (interceptor && Object.keys(interceptor).length) {
1046
1046
  if (isArray$1(interceptor.invoke)) {
@@ -1074,12 +1074,12 @@ var serviceContext = (function (vue) {
1074
1074
  return promise;
1075
1075
  }
1076
1076
  function promisify(name, fn) {
1077
- return (args = {}) => {
1077
+ return (args = {}, ...rest) => {
1078
1078
  if (hasCallback(args)) {
1079
- return wrapperReturnValue(name, invokeApi(name, fn, args));
1079
+ return wrapperReturnValue(name, invokeApi(name, fn, args, rest));
1080
1080
  }
1081
1081
  return wrapperReturnValue(name, handlePromise(new Promise((resolve, reject) => {
1082
- invokeApi(name, fn, extend(args, { success: resolve, fail: reject }));
1082
+ invokeApi(name, fn, extend(args, { success: resolve, fail: reject }), rest);
1083
1083
  })));
1084
1084
  };
1085
1085
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@dcloudio/uni-app-plus",
3
- "version": "3.0.0-alpha-3021320211117005",
3
+ "version": "3.0.0-alpha-3021320211118001",
4
4
  "description": "@dcloudio/uni-app-plus",
5
5
  "files": [
6
6
  "dist",
@@ -28,16 +28,16 @@
28
28
  "main": "dist/uni.compiler.js"
29
29
  },
30
30
  "devDependencies": {
31
- "@dcloudio/uni-components": "3.0.0-alpha-3021320211117005",
32
- "@dcloudio/uni-h5": "3.0.0-alpha-3021320211117005",
33
- "@dcloudio/uni-i18n": "3.0.0-alpha-3021320211117005",
34
- "@dcloudio/uni-shared": "3.0.0-alpha-3021320211117005",
31
+ "@dcloudio/uni-components": "3.0.0-alpha-3021320211118001",
32
+ "@dcloudio/uni-h5": "3.0.0-alpha-3021320211118001",
33
+ "@dcloudio/uni-i18n": "3.0.0-alpha-3021320211118001",
34
+ "@dcloudio/uni-shared": "3.0.0-alpha-3021320211118001",
35
35
  "@vue/compiler-sfc": "3.2.22",
36
36
  "autoprefixer": "^10.4.0",
37
37
  "vue": "3.2.22"
38
38
  },
39
39
  "dependencies": {
40
- "@dcloudio/uni-app-vite": "3.0.0-alpha-3021320211117005",
41
- "@dcloudio/uni-app-vue": "3.0.0-alpha-3021320211117005"
40
+ "@dcloudio/uni-app-vite": "3.0.0-alpha-3021320211118001",
41
+ "@dcloudio/uni-app-vue": "3.0.0-alpha-3021320211118001"
42
42
  }
43
43
  }