@dcloudio/uni-mp-toutiao 3.0.0-alpha-4000020240124001 → 3.0.0-alpha-4000020240126001
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/uni.api.esm.js +17 -3
- package/package.json +6 -6
package/dist/uni.api.esm.js
CHANGED
|
@@ -376,10 +376,24 @@ function formatApiArgs(args, options) {
|
|
|
376
376
|
}
|
|
377
377
|
}
|
|
378
378
|
function invokeSuccess(id, name, res) {
|
|
379
|
-
|
|
379
|
+
const result = {
|
|
380
|
+
errMsg: name + ':ok',
|
|
381
|
+
};
|
|
382
|
+
//#if _X_
|
|
383
|
+
result.errSubject = name;
|
|
384
|
+
//#endif
|
|
385
|
+
return invokeCallback(id, extend((res || {}), result));
|
|
380
386
|
}
|
|
381
|
-
function invokeFail(id, name, errMsg, errRes) {
|
|
382
|
-
|
|
387
|
+
function invokeFail(id, name, errMsg, errRes = {}) {
|
|
388
|
+
const apiErrMsg = name + ':fail' + (errMsg ? ' ' + errMsg : '');
|
|
389
|
+
//#if !_X_
|
|
390
|
+
delete errRes.errCode;
|
|
391
|
+
//#endif
|
|
392
|
+
return invokeCallback(id, typeof UniError !== 'undefined'
|
|
393
|
+
? typeof errRes.errCode !== 'undefined'
|
|
394
|
+
? new UniError(name, errRes.errCode, apiErrMsg)
|
|
395
|
+
: new UniError(apiErrMsg, errRes)
|
|
396
|
+
: extend({ errMsg: apiErrMsg }, errRes));
|
|
383
397
|
}
|
|
384
398
|
function beforeInvokeApi(name, args, protocol, options) {
|
|
385
399
|
if ((process.env.NODE_ENV !== 'production')) {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@dcloudio/uni-mp-toutiao",
|
|
3
|
-
"version": "3.0.0-alpha-
|
|
3
|
+
"version": "3.0.0-alpha-4000020240126001",
|
|
4
4
|
"description": "uni-app mp-toutiao",
|
|
5
5
|
"main": "dist/index.js",
|
|
6
6
|
"files": [
|
|
@@ -25,11 +25,11 @@
|
|
|
25
25
|
},
|
|
26
26
|
"gitHead": "33e807d66e1fe47e2ee08ad9c59247e37b8884da",
|
|
27
27
|
"dependencies": {
|
|
28
|
-
"@dcloudio/uni-cli-shared": "3.0.0-alpha-
|
|
29
|
-
"@dcloudio/uni-mp-compiler": "3.0.0-alpha-
|
|
30
|
-
"@dcloudio/uni-mp-vite": "3.0.0-alpha-
|
|
31
|
-
"@dcloudio/uni-mp-vue": "3.0.0-alpha-
|
|
32
|
-
"@dcloudio/uni-shared": "3.0.0-alpha-
|
|
28
|
+
"@dcloudio/uni-cli-shared": "3.0.0-alpha-4000020240126001",
|
|
29
|
+
"@dcloudio/uni-mp-compiler": "3.0.0-alpha-4000020240126001",
|
|
30
|
+
"@dcloudio/uni-mp-vite": "3.0.0-alpha-4000020240126001",
|
|
31
|
+
"@dcloudio/uni-mp-vue": "3.0.0-alpha-4000020240126001",
|
|
32
|
+
"@dcloudio/uni-shared": "3.0.0-alpha-4000020240126001",
|
|
33
33
|
"@vue/shared": "3.3.11",
|
|
34
34
|
"@vue/compiler-core": "3.3.11"
|
|
35
35
|
}
|