puter-cli 1.5.0 → 1.5.1
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/CHANGELOG.md +6 -0
- package/package.json +1 -1
- package/src/commands/files.js +2 -2
- package/src/commands/sites.js +2 -1
package/CHANGELOG.md
CHANGED
|
@@ -4,8 +4,14 @@ All notable changes to this project will be documented in this file. Dates are d
|
|
|
4
4
|
|
|
5
5
|
Generated by [`auto-changelog`](https://github.com/CookPete/auto-changelog).
|
|
6
6
|
|
|
7
|
+
#### [v1.5.1](https://github.com/HeyPuter/puter-cli/compare/v1.5.0...v1.5.1)
|
|
8
|
+
|
|
9
|
+
- imporve listing uid [`e2573f8`](https://github.com/HeyPuter/puter-cli/commit/e2573f83df6b47d8ab32ffc66ab19a9c984dd250)
|
|
10
|
+
|
|
7
11
|
#### [v1.5.0](https://github.com/HeyPuter/puter-cli/compare/v1.4.4...v1.5.0)
|
|
8
12
|
|
|
13
|
+
> 5 February 2025
|
|
14
|
+
|
|
9
15
|
- fix: improve version check [`f3ea79e`](https://github.com/HeyPuter/puter-cli/commit/f3ea79e3156632f892558489dfd34b1119948a48)
|
|
10
16
|
- update README [`79b381c`](https://github.com/HeyPuter/puter-cli/commit/79b381c57935cae5ffb9edf5ad11aca395ae8f8d)
|
|
11
17
|
|
package/package.json
CHANGED
package/src/commands/files.js
CHANGED
|
@@ -56,8 +56,8 @@ export async function listFiles(args = []) {
|
|
|
56
56
|
const name = file.name.padEnd(20);
|
|
57
57
|
const size = file.is_dir ? '0' : formatSize(file.size);
|
|
58
58
|
const modified = formatDateTime(file.modified);
|
|
59
|
-
const uid = file.uid;
|
|
60
|
-
console.log(`${type}${write} ${name} ${size.padEnd(8)} ${modified} ${uid}`);
|
|
59
|
+
const uid = file.uid?.split('-');
|
|
60
|
+
console.log(`${type}${write} ${name} ${size.padEnd(8)} ${modified} ${uid[0]}-...-${uid.slice(-1)}`);
|
|
61
61
|
});
|
|
62
62
|
console.log(chalk.green(`There are ${files.length} object(s).`));
|
|
63
63
|
} else {
|
package/src/commands/sites.js
CHANGED
|
@@ -35,6 +35,7 @@ export async function listSites(args = {}) {
|
|
|
35
35
|
// Format and add data to table
|
|
36
36
|
let i = 0;
|
|
37
37
|
data.result.forEach(domain => {
|
|
38
|
+
let appDir = domain?.root_dir?.path.split('/').pop().split('-');
|
|
38
39
|
table.push([
|
|
39
40
|
i++,
|
|
40
41
|
domain.uid,
|
|
@@ -42,7 +43,7 @@ export async function listSites(args = {}) {
|
|
|
42
43
|
formatDate(domain.created_at).split(',')[0],
|
|
43
44
|
domain.protected ? chalk.red('Yes') : chalk.green('No'),
|
|
44
45
|
// domain.owner['username'],
|
|
45
|
-
|
|
46
|
+
appDir.length == 6?`${appDir[0]}-...-${appDir.slice(-1)}`:appDir.join('-')
|
|
46
47
|
]);
|
|
47
48
|
});
|
|
48
49
|
|