@ttmg/cli 0.3.5 → 0.3.6-beta.1
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 +16 -1
- package/dist/index.js.map +1 -1
- package/dist/package.json +1 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -6536,6 +6536,21 @@ async function request({ url, method, data, headers, params, }) {
|
|
|
6536
6536
|
const config = getTTMGRC();
|
|
6537
6537
|
const cookie = config?.cookie;
|
|
6538
6538
|
const proxyConfig = getAxiosProxyConfig();
|
|
6539
|
+
// 打印请求信息
|
|
6540
|
+
console.log('\n========== API Request ==========');
|
|
6541
|
+
console.log('URL:', url);
|
|
6542
|
+
console.log('Method:', method);
|
|
6543
|
+
console.log('Headers:', JSON.stringify({
|
|
6544
|
+
Cookie: cookie,
|
|
6545
|
+
...(headers || {}),
|
|
6546
|
+
}, null, 2));
|
|
6547
|
+
if (params) {
|
|
6548
|
+
console.log('Query Params:', JSON.stringify(params, null, 2));
|
|
6549
|
+
}
|
|
6550
|
+
if (data) {
|
|
6551
|
+
console.log('Request Body:', JSON.stringify(data, null, 2));
|
|
6552
|
+
}
|
|
6553
|
+
console.log('=================================\n');
|
|
6539
6554
|
try {
|
|
6540
6555
|
const res = await axios({
|
|
6541
6556
|
url,
|
|
@@ -10652,7 +10667,7 @@ async function upload({ clientKey, note = '--', dir, }) {
|
|
|
10652
10667
|
}
|
|
10653
10668
|
}
|
|
10654
10669
|
|
|
10655
|
-
var version = "0.3.
|
|
10670
|
+
var version = "0.3.6-beta.1";
|
|
10656
10671
|
var pkg = {
|
|
10657
10672
|
version: version};
|
|
10658
10673
|
|