local-lite 1.0.1 → 1.0.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.
|
@@ -166,7 +166,7 @@ class SelfHostedRemoteAdapter {
|
|
|
166
166
|
throw new Error(`Self-hosted function call "${functionName}" failed (${response.status}): ${errText}`);
|
|
167
167
|
}
|
|
168
168
|
const data = await response.json();
|
|
169
|
-
return (isBackups ? data.archives || [] : data.automations || []);
|
|
169
|
+
return (isBackups ? data.archives || data.backups || [] : data.automations || []);
|
|
170
170
|
}
|
|
171
171
|
const endpoint = actionEndpoints[normalized] || `/${normalized}`;
|
|
172
172
|
const fullUrl = `${this.url}${endpoint.startsWith('/') ? endpoint : '/' + endpoint}`;
|
|
@@ -211,7 +211,7 @@ class SelfHostedRemoteAdapter {
|
|
|
211
211
|
throw new Error(`Self-hosted listBackups failed (${response.status}): ${errText}`);
|
|
212
212
|
}
|
|
213
213
|
const data = await response.json();
|
|
214
|
-
return (data.archives || []);
|
|
214
|
+
return (data.archives || data.backups || []);
|
|
215
215
|
}
|
|
216
216
|
/**
|
|
217
217
|
* Gets a direct download URL for a file stored on self-hosted backend.
|
package/package.json
CHANGED