@xano/cli 0.0.87 → 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.
- package/dist/commands/release/list/index.js +8 -6
- package/oclif.manifest.json +1495 -1495
- package/package.json +1 -1
|
@@ -52,8 +52,8 @@ Releases in workspace 5:
|
|
|
52
52
|
try {
|
|
53
53
|
const response = await this.verboseFetch(apiUrl, {
|
|
54
54
|
headers: {
|
|
55
|
-
|
|
56
|
-
|
|
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
|
-
|
|
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');
|