groundmail-cli 0.24.0 → 0.25.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/dist/cli.js +10 -4
- package/package.json +2 -2
package/dist/cli.js
CHANGED
|
@@ -403,12 +403,18 @@ async function runListCommand(args, deps) {
|
|
|
403
403
|
}
|
|
404
404
|
const test = args.includes("--test") ? true : args.includes("--live") ? false : void 0;
|
|
405
405
|
const tenant = readFlag7(args, "--tenant");
|
|
406
|
+
const stream = readFlag7(args, "--stream");
|
|
407
|
+
if (stream !== void 0 && stream !== "transactional" && stream !== "product" && stream !== "newsletter") {
|
|
408
|
+
stderr("--stream must be transactional, product or newsletter.");
|
|
409
|
+
return { exitCode: 1, error: "invalid stream" };
|
|
410
|
+
}
|
|
406
411
|
try {
|
|
407
412
|
const result = await deps.listEmails({
|
|
408
413
|
...limit != null && Number.isFinite(limit) ? { limit } : {},
|
|
409
414
|
...cursor ? { cursor } : {},
|
|
410
415
|
...test !== void 0 ? { test } : {},
|
|
411
|
-
...tenant ? { tenant } : {}
|
|
416
|
+
...tenant ? { tenant } : {},
|
|
417
|
+
...stream ? { stream } : {}
|
|
412
418
|
});
|
|
413
419
|
stdout(JSON.stringify(result));
|
|
414
420
|
return { exitCode: 0 };
|
|
@@ -1446,7 +1452,7 @@ function trimUrl(value) {
|
|
|
1446
1452
|
}
|
|
1447
1453
|
|
|
1448
1454
|
// package.json
|
|
1449
|
-
var version = "0.
|
|
1455
|
+
var version = "0.25.1";
|
|
1450
1456
|
|
|
1451
1457
|
// src/user-agent.ts
|
|
1452
1458
|
function buildUserAgent(own) {
|
|
@@ -3726,9 +3732,9 @@ var USAGE_LINES = [
|
|
|
3726
3732
|
" groundmail dmarc disable example.com",
|
|
3727
3733
|
" groundmail received-emails list [--domain inbound.example.com]",
|
|
3728
3734
|
" groundmail received-emails get inb_...",
|
|
3729
|
-
' groundmail emails send --from you@domain.com --to user@example.com --subject "Hello" --html "<p>Hi</p>" [--category transactional|product] [--unsubscribe] [--tenant <tenant>]',
|
|
3735
|
+
' groundmail emails send --from you@domain.com --to user@example.com --subject "Hello" --html "<p>Hi</p>" [--category transactional|product|newsletter] [--unsubscribe] [--tenant <tenant>]',
|
|
3730
3736
|
" groundmail emails batch --file ./emails.json [--tenant <tenant>]",
|
|
3731
|
-
" groundmail emails list [--limit 25] [--cursor \u2026] [--test | --live] [--tenant <tenant>]",
|
|
3737
|
+
" groundmail emails list [--limit 25] [--cursor \u2026] [--test | --live] [--tenant <tenant>] [--stream transactional|product|newsletter]",
|
|
3732
3738
|
" groundmail emails insights [--window 7d|30d]",
|
|
3733
3739
|
" groundmail emails get --id msg_\u2026",
|
|
3734
3740
|
" groundmail emails cancel --id msg_\u2026",
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "groundmail-cli",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.25.1",
|
|
4
4
|
"description": "Groundmail CLI — send transactional email from the terminal",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"type": "module",
|
|
@@ -38,7 +38,7 @@
|
|
|
38
38
|
"prepublishOnly": "npm run build"
|
|
39
39
|
},
|
|
40
40
|
"dependencies": {
|
|
41
|
-
"groundmail": "0.
|
|
41
|
+
"groundmail": "0.23.0"
|
|
42
42
|
},
|
|
43
43
|
"devDependencies": {
|
|
44
44
|
"tsup": "^8.5.0",
|