@xano/cli 0.0.86 → 0.0.88

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.
@@ -52,8 +52,8 @@ Releases in workspace 5:
52
52
  try {
53
53
  const response = await this.verboseFetch(apiUrl, {
54
54
  headers: {
55
- 'accept': 'application/json',
56
- 'Authorization': `Bearer ${profile.access_token}`,
55
+ accept: 'application/json',
56
+ Authorization: `Bearer ${profile.access_token}`,
57
57
  },
58
58
  method: 'GET',
59
59
  }, flags.verbose, profile.access_token);
@@ -61,7 +61,7 @@ Releases in workspace 5:
61
61
  const errorText = await response.text();
62
62
  this.error(`API request failed with status ${response.status}: ${response.statusText}\n${errorText}`);
63
63
  }
64
- const data = await response.json();
64
+ const data = (await response.json());
65
65
  let releases;
66
66
  if (Array.isArray(data)) {
67
67
  releases = data;
@@ -84,7 +84,10 @@ Releases in workspace 5:
84
84
  for (const release of releases) {
85
85
  const branch = release.branch ? ` - ${release.branch}` : '';
86
86
  const hotfix = release.hotfix ? ' [hotfix]' : '';
87
- this.log(` - ${release.name} (ID: ${release.id})${branch}${hotfix}`);
87
+ const createdAt = release.created_at
88
+ ? ` (${new Date(release.created_at).toLocaleString(undefined, { timeZoneName: 'short' })})`
89
+ : '';
90
+ this.log(` - ${release.name} (ID: ${release.id})${branch}${hotfix}${createdAt}`);
88
91
  }
89
92
  }
90
93
  }
@@ -102,8 +105,7 @@ Releases in workspace 5:
102
105
  const configDir = path.join(os.homedir(), '.xano');
103
106
  const credentialsPath = path.join(configDir, 'credentials.yaml');
104
107
  if (!fs.existsSync(credentialsPath)) {
105
- this.error(`Credentials file not found at ${credentialsPath}\n` +
106
- `Create a profile using 'xano profile create'`);
108
+ this.error(`Credentials file not found at ${credentialsPath}\n` + `Create a profile using 'xano profile create'`);
107
109
  }
108
110
  try {
109
111
  const fileContent = fs.readFileSync(credentialsPath, 'utf8');
@@ -543,6 +543,9 @@ Truncate all table records before importing
543
543
  this.log('');
544
544
  const wsLabel = result.workspace_name ? `${result.workspace_name} (${workspaceId})` : `Workspace ${workspaceId}`;
545
545
  this.log(ux.colorize('bold', `=== Push Preview: ${wsLabel} ===`));
546
+ if (!partial) {
547
+ this.log(ux.colorize('red', ' --sync: all documents will be sent, including unchanged'));
548
+ }
546
549
  this.log('');
547
550
  for (const [type, counts] of Object.entries(result.summary)) {
548
551
  const label = typeLabels[type] || type;