@clawos-dev/clawd 0.2.157-beta.328.919c18f → 0.2.157-beta.329.b324109
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.
|
@@ -21120,7 +21120,8 @@ function fail(text) {
|
|
|
21120
21120
|
}
|
|
21121
21121
|
async function callApi(ctx, method, pathAndQuery, body) {
|
|
21122
21122
|
const f = ctx.fetch ?? fetch;
|
|
21123
|
-
const
|
|
21123
|
+
const base = ctx.apiUrl.replace(/\/+$/, "");
|
|
21124
|
+
const url = `${base}/api${pathAndQuery}`;
|
|
21124
21125
|
let res;
|
|
21125
21126
|
try {
|
|
21126
21127
|
res = await f(url, {
|
package/package.json
CHANGED