@iflyrpa/actions 1.2.24-beta.0 → 1.2.24-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/index.js CHANGED
@@ -2931,6 +2931,7 @@ var __webpack_exports__ = {};
2931
2931
  addr: adr
2932
2932
  }
2933
2933
  });
2934
+ console.log("代理获取状态:", ProxyInfo.msg, "代理返回信息:", JSON.stringify(ProxyInfo.data[0]));
2934
2935
  return 0 === ProxyInfo.code && ProxyInfo.data.length > 0 ? new dist.HttpsProxyAgent(`http://${ProxyData.api}:${ProxyData.akey}@${ProxyInfo.data[0].proxyAddress}`) : null;
2935
2936
  };
2936
2937
  class Http {
@@ -2981,6 +2982,10 @@ var __webpack_exports__ = {};
2981
2982
  async api(config) {
2982
2983
  try {
2983
2984
  const agent = this.adr ? await ProxyAgent(this.adr) : void 0;
2985
+ if (this.adr && null == agent) return Promise.reject({
2986
+ code: 200,
2987
+ message: "可用代理地址为空,请稍候重试!"
2988
+ });
2984
2989
  const response = await this.apiClient({
2985
2990
  ...config,
2986
2991
  ...agent ? {
@@ -7499,9 +7504,7 @@ var __webpack_exports__ = {};
7499
7504
  if ("mockApi" === params.actionType) return xiaohongshuPublish_mock_mockAction(task, params);
7500
7505
  return executeAction(xiaohongshuPublish_mock_mockAction, xiaohongshuPublish_rpa_rpaAction)(task, params);
7501
7506
  };
7502
- var package_namespaceObject = {
7503
- i8: "1.2.23"
7504
- };
7507
+ var package_namespaceObject = JSON.parse('{"i8":"1.2.24-beta.1"}');
7505
7508
  const BetaFlag = "HuiwenCanary";
7506
7509
  class Action {
7507
7510
  constructor(task){