@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.mjs CHANGED
@@ -2879,6 +2879,7 @@ const ProxyAgent = async (adr)=>{
2879
2879
  addr: adr
2880
2880
  }
2881
2881
  });
2882
+ console.log("代理获取状态:", ProxyInfo.msg, "代理返回信息:", JSON.stringify(ProxyInfo.data[0]));
2882
2883
  return 0 === ProxyInfo.code && ProxyInfo.data.length > 0 ? new dist.HttpsProxyAgent(`http://${ProxyData.api}:${ProxyData.akey}@${ProxyInfo.data[0].proxyAddress}`) : null;
2883
2884
  };
2884
2885
  class Http {
@@ -2929,6 +2930,10 @@ class Http {
2929
2930
  async api(config) {
2930
2931
  try {
2931
2932
  const agent = this.adr ? await ProxyAgent(this.adr) : void 0;
2933
+ if (this.adr && null == agent) return Promise.reject({
2934
+ code: 200,
2935
+ message: "可用代理地址为空,请稍候重试!"
2936
+ });
2932
2937
  const response = await this.apiClient({
2933
2938
  ...config,
2934
2939
  ...agent ? {
@@ -7441,9 +7446,7 @@ const xiaohongshuPublish = async (task, params)=>{
7441
7446
  if ("mockApi" === params.actionType) return xiaohongshuPublish_mock_mockAction(task, params);
7442
7447
  return executeAction(xiaohongshuPublish_mock_mockAction, xiaohongshuPublish_rpa_rpaAction)(task, params);
7443
7448
  };
7444
- var package_namespaceObject = {
7445
- i8: "1.2.23"
7446
- };
7449
+ var package_namespaceObject = JSON.parse('{"i8":"1.2.24-beta.1"}');
7447
7450
  const BetaFlag = "HuiwenCanary";
7448
7451
  class Action {
7449
7452
  constructor(task){