@lingyao037/openclaw-lingyao-cli 0.5.2 → 0.5.3
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/cli.mjs +2 -2
- package/package.json +1 -1
package/cli.mjs
CHANGED
|
@@ -411,7 +411,7 @@ class LingyaoInstaller {
|
|
|
411
411
|
httpsPost(path, body) {
|
|
412
412
|
return new Promise((resolve, reject) => {
|
|
413
413
|
const data = JSON.stringify(body);
|
|
414
|
-
const url =
|
|
414
|
+
const url = `${LINGYAO_API}${path}`;
|
|
415
415
|
const headers = { 'Content-Type': 'application/json' };
|
|
416
416
|
if (this.gatewayToken) {
|
|
417
417
|
headers['Authorization'] = `Bearer ${this.gatewayToken}`;
|
|
@@ -432,7 +432,7 @@ class LingyaoInstaller {
|
|
|
432
432
|
|
|
433
433
|
httpsGet(path) {
|
|
434
434
|
return new Promise((resolve, reject) => {
|
|
435
|
-
const url =
|
|
435
|
+
const url = `${LINGYAO_API}${path}`;
|
|
436
436
|
https.get(url, (res) => {
|
|
437
437
|
let chunk = '';
|
|
438
438
|
res.on('data', (c) => chunk += c);
|
package/package.json
CHANGED