@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.
Files changed (2) hide show
  1. package/cli.mjs +2 -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 = new URL(path, LINGYAO_API);
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 = new URL(path, LINGYAO_API);
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
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@lingyao037/openclaw-lingyao-cli",
3
- "version": "0.5.2",
3
+ "version": "0.5.3",
4
4
  "description": "Lingyao Channel Plugin for OpenClaw - bidirectional sync via lingyao.live server relay",
5
5
  "type": "module",
6
6
  "main": "./dist/index.js",