uplink-cli 0.1.23 → 0.1.24

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.
@@ -261,16 +261,18 @@ tokensCommand
261
261
  "Role".padEnd(8) +
262
262
  "Prefix".padEnd(10) +
263
263
  "User ID".padEnd(40) +
264
+ "Created By".padEnd(40) +
264
265
  "Status".padEnd(12) +
265
266
  "Created"
266
267
  );
267
- console.log("-".repeat(100));
268
+ console.log("-".repeat(140));
268
269
 
269
270
  for (const t of result.tokens) {
270
271
  const id = String(t.id || "").slice(0, 16);
271
272
  const role = String(t.role || "-").slice(0, 6);
272
273
  const prefix = String(t.token_prefix || t.tokenPrefix || "-").slice(0, 8);
273
274
  const userId = String(t.user_id || t.userId || "-").slice(0, 38);
275
+ const createdBy = String(t.created_by_user_id || t.createdByUserId || "-").slice(0, 38);
274
276
  const status = t.revoked_at || t.revokedAt ? "revoked" : "active";
275
277
  const created = formatDate(t.created_at || t.createdAt || "");
276
278
  console.log(
@@ -278,6 +280,7 @@ tokensCommand
278
280
  role.padEnd(8) +
279
281
  prefix.padEnd(10) +
280
282
  userId.padEnd(40) +
283
+ createdBy.padEnd(40) +
281
284
  status.padEnd(12) +
282
285
  created
283
286
  );
@@ -1022,13 +1022,16 @@ export const menuCommand = new Command("menu")
1022
1022
  t.role ?? "-",
1023
1023
  6
1024
1024
  ).padEnd(8)} ${truncate(t.label ?? "-", 20).padEnd(22)} ${truncate(
1025
+ t.created_by_user_id ?? t.createdByUserId ?? "-",
1026
+ 12
1027
+ ).padEnd(14)} ${truncate(
1025
1028
  t.created_at ?? t.createdAt ?? "",
1026
1029
  19
1027
1030
  )}`
1028
1031
  );
1029
1032
  return [
1030
- "ID Prefix Role Label Created",
1031
- "-".repeat(90),
1033
+ "ID Prefix Role Label Created By Created",
1034
+ "-".repeat(105),
1032
1035
  ...lines,
1033
1036
  ].join("\n");
1034
1037
  },
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "uplink-cli",
3
- "version": "0.1.23",
3
+ "version": "0.1.24",
4
4
  "description": "Expose localhost to the internet in seconds. Interactive terminal UI, permanent custom domains, zero config. A modern ngrok alternative.",
5
5
  "keywords": [
6
6
  "tunnel",