@ttmg/cli 0.3.6-beta.1 → 0.3.6-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
@@ -6565,6 +6565,12 @@ async function request({ url, method, data, headers, params, }) {
6565
6565
  },
6566
6566
  ...proxyConfig,
6567
6567
  });
6568
+ // 打印响应信息
6569
+ console.log('\n========== API Response ==========');
6570
+ console.log('Status:', res?.status);
6571
+ console.log('LogID:', res?.headers['x-tt-logid']);
6572
+ console.log('Data:', JSON.stringify(res.data, null, 2));
6573
+ console.log('==================================\n');
6568
6574
  // @ts-ignore
6569
6575
  return {
6570
6576
  data: res.data,
@@ -6576,6 +6582,12 @@ async function request({ url, method, data, headers, params, }) {
6576
6582
  };
6577
6583
  }
6578
6584
  catch (err) {
6585
+ // 打印错误响应
6586
+ console.log('\n========== API Error ==========');
6587
+ console.log('Status:', err?.response?.status);
6588
+ console.log('LogID:', err?.response?.headers['x-tt-logid']);
6589
+ console.log('Error:', JSON.stringify(err?.response?.data, null, 2));
6590
+ console.log('================================\n');
6579
6591
  // @ts-ignore
6580
6592
  return {
6581
6593
  data: null,
@@ -10667,7 +10679,7 @@ async function upload({ clientKey, note = '--', dir, }) {
10667
10679
  }
10668
10680
  }
10669
10681
 
10670
- var version = "0.3.6-beta.1";
10682
+ var version = "0.3.6-beta.2";
10671
10683
  var pkg = {
10672
10684
  version: version};
10673
10685