@xano/cli 1.0.2-beta.4 → 1.0.2-beta.5

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.
@@ -217,7 +217,10 @@ Profile 'production' created successfully at ~/.xano/credentials.yaml
217
217
  // Transform API response to Branch format
218
218
  // Assuming the API returns an array or object with branches
219
219
  if (Array.isArray(data)) {
220
- return data.map((br) => ({
220
+ return data
221
+ .filter((br) => !br.backup)
222
+ .map((br) => ({
223
+ backup: br.backup,
221
224
  id: br.id || br.label,
222
225
  label: br.label,
223
226
  }));
@@ -226,7 +229,10 @@ Profile 'production' created successfully at ~/.xano/credentials.yaml
226
229
  if (data && typeof data === 'object') {
227
230
  const branches = data.branches || data.data || [];
228
231
  if (Array.isArray(branches)) {
229
- return branches.map((br) => ({
232
+ return branches
233
+ .filter((br) => !br.backup)
234
+ .map((br) => ({
235
+ backup: br.backup,
230
236
  id: br.id || br.name,
231
237
  label: br.label,
232
238
  }));