@mailkite/cli 0.9.0 → 0.10.0

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.
Files changed (2) hide show
  1. package/cli.mjs +2 -1
  2. package/package.json +2 -2
package/cli.mjs CHANGED
@@ -409,7 +409,8 @@ commands.messages = async ({ _, flags }) => {
409
409
  const sub = _[0] || "list";
410
410
  const mk = client(flags);
411
411
  if (sub === "list") {
412
- return out(await mk.listMessages(), flags, (list) => {
412
+ // Optional newest-first paging: --before <received_at cursor> --limit <n>.
413
+ return out(await mk.listMessages(flags.before, flags.limit), flags, (list) => {
413
414
  if (!Array.isArray(list) || !list.length) return console.log(dim("No messages yet."));
414
415
  for (const m of list) console.log(`${dim(new Date(m.received_at).toISOString())} ${bold(m.from_addr)} → ${m.to_addr} ${m.subject || dim("(no subject)")}`);
415
416
  });
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@mailkite/cli",
3
- "version": "0.9.0",
3
+ "version": "0.10.0",
4
4
  "description": "MailKite command-line client — sign in, add domains, set DNS + webhooks, send mail, and tail inbound messages from your terminal. Built on the MailKite Node SDK.",
5
5
  "type": "module",
6
6
  "bin": {
@@ -34,6 +34,6 @@
34
34
  },
35
35
  "license": "MIT",
36
36
  "dependencies": {
37
- "mailkite": "^0.9.0"
37
+ "mailkite": "^0.10.0"
38
38
  }
39
39
  }