emailr-cli 1.3.0 → 1.3.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.
Files changed (2) hide show
  1. package/dist/index.js +8 -1
  2. package/package.json +1 -1
package/dist/index.js CHANGED
@@ -920,7 +920,14 @@ Open the Preview URL in your browser to view the rendered template.`);
920
920
  output(template, "json");
921
921
  } else {
922
922
  success(`Template updated: ${template.id}`);
923
- output(template, "table");
923
+ const tableData = {
924
+ ID: template.id,
925
+ Name: template.name,
926
+ Subject: template.subject,
927
+ Variables: template.variables?.join(", ") || "-",
928
+ Updated: template.updated_at
929
+ };
930
+ output(tableData, "table");
924
931
  }
925
932
  } catch (err) {
926
933
  error(err instanceof Error ? err.message : "Failed to update template");
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "emailr-cli",
3
- "version": "1.3.0",
3
+ "version": "1.3.1",
4
4
  "description": "Command-line interface for the Emailr email API",
5
5
  "type": "module",
6
6
  "bin": {