@radjay/kit-analytics 0.0.1 → 0.0.2
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/broadcasts.js +1 -1
- package/dist/index.js +1 -1
- package/package.json +1 -1
|
@@ -22,7 +22,7 @@ function broadcastsCommand() {
|
|
|
22
22
|
rows.push({
|
|
23
23
|
id: b.id,
|
|
24
24
|
subject: b.subject ?? "",
|
|
25
|
-
|
|
25
|
+
sent_at: b.published_at ?? b.send_at ?? b.created_at,
|
|
26
26
|
recipients: s.recipients,
|
|
27
27
|
open_rate: `${s.open_rate.toFixed(1)}%`,
|
|
28
28
|
click_rate: `${s.click_rate.toFixed(1)}%`,
|
package/dist/index.js
CHANGED
|
@@ -13,7 +13,7 @@ const program = new commander_1.Command();
|
|
|
13
13
|
program
|
|
14
14
|
.name("kit-analytics")
|
|
15
15
|
.description("Pull Kit.com newsletter analytics via Kit API v4")
|
|
16
|
-
.version("0.0.
|
|
16
|
+
.version("0.0.2")
|
|
17
17
|
.option("--api-key <key>", "Kit API key (overrides KIT_API_KEY env var)")
|
|
18
18
|
.option("--format <format>", "Output format: json or table", "table");
|
|
19
19
|
program.hook("preAction", () => {
|