@iflyrpa/actions 3.0.5-beta.1 → 3.0.5-beta.2
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/bundle.js +6 -4
- package/dist/bundle.js.map +1 -1
- package/dist/index.js +6 -4
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +6 -4
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
package/dist/bundle.js
CHANGED
|
@@ -8736,7 +8736,7 @@ var __webpack_exports__ = {};
|
|
|
8736
8736
|
var package_namespaceObject = {
|
|
8737
8737
|
i8: "0.1.0"
|
|
8738
8738
|
};
|
|
8739
|
-
var package_namespaceObject_0 = JSON.parse('{"i8":"3.0.5-beta.
|
|
8739
|
+
var package_namespaceObject_0 = JSON.parse('{"i8":"3.0.5-beta.2"}');
|
|
8740
8740
|
const external_node_fs_namespaceObject = require("node:fs");
|
|
8741
8741
|
var external_node_fs_default = /*#__PURE__*/ __webpack_require__.n(external_node_fs_namespaceObject);
|
|
8742
8742
|
const external_node_http_namespaceObject = require("node:http");
|
|
@@ -41787,8 +41787,8 @@ var __webpack_exports__ = {};
|
|
|
41787
41787
|
headers
|
|
41788
41788
|
});
|
|
41789
41789
|
const proxyHttp = new Http(...args);
|
|
41790
|
-
|
|
41791
|
-
const responseData = response
|
|
41790
|
+
const baseRespFinder = (response)=>{
|
|
41791
|
+
const responseData = response?.data;
|
|
41792
41792
|
const msgType = "draft" === params.saveType ? "同步" : "发布";
|
|
41793
41793
|
if (response && responseData?.base_resp && 0 !== responseData.base_resp.ret && !ignoreErrno.includes(responseData.base_resp.ret)) {
|
|
41794
41794
|
const errmsg = weixinPublish_mock_errnoMap[responseData.base_resp.ret] || response.config.defaultErrorMsg || responseData.base_resp.err_msg || `文章${msgType}异常,请稍后重试。`;
|
|
@@ -41798,7 +41798,9 @@ var __webpack_exports__ = {};
|
|
|
41798
41798
|
data: responseData
|
|
41799
41799
|
};
|
|
41800
41800
|
}
|
|
41801
|
-
}
|
|
41801
|
+
};
|
|
41802
|
+
http.addResponseInterceptor(baseRespFinder);
|
|
41803
|
+
proxyHttp.addResponseInterceptor(baseRespFinder);
|
|
41802
41804
|
await http.api({
|
|
41803
41805
|
method: "get",
|
|
41804
41806
|
url: "https://mp.weixin.qq.com/cgi-bin/appmsgpublish",
|