@usetransactional/cli 0.1.1 → 0.1.3

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/README.md CHANGED
@@ -1,20 +1,20 @@
1
- # transactional-cli
1
+ # @usetransactional/cli
2
2
 
3
3
  Official command-line interface for [Transactional](https://usetransactional.com) - manage email, SMS, forms, and more from your terminal.
4
4
 
5
- [![npm version](https://badge.fury.io/js/transactional-cli.svg)](https://www.npmjs.com/package/transactional-cli)
5
+ [![npm version](https://badge.fury.io/js/%40usetransactional%2Fcli.svg)](https://www.npmjs.com/package/@usetransactional/cli)
6
6
  [![License: MIT](https://img.shields.io/badge/License-MIT-yellow.svg)](https://opensource.org/licenses/MIT)
7
7
 
8
8
  ## Installation
9
9
 
10
10
  ```bash
11
- npm install -g transactional-cli
11
+ npm install -g @usetransactional/cli
12
12
  ```
13
13
 
14
14
  Or using npx without installation:
15
15
 
16
16
  ```bash
17
- npx transactional-cli login
17
+ npx @usetransactional/cli login
18
18
  ```
19
19
 
20
20
  ## Quick Start
package/dist/bin.js CHANGED
@@ -182,7 +182,7 @@ var ApiClient = class {
182
182
  getHeaders() {
183
183
  const headers = {
184
184
  "Content-Type": "application/json",
185
- "User-Agent": "transactional-cli/0.1.0"
185
+ "User-Agent": "@usetransactional/cli/0.1.0"
186
186
  };
187
187
  if (this.token) {
188
188
  headers["Authorization"] = `Bearer ${this.token}`;
@@ -313,7 +313,7 @@ async function requestDeviceCode(sessionType = "CLI") {
313
313
  method: "POST",
314
314
  headers: {
315
315
  "Content-Type": "application/json",
316
- "User-Agent": "transactional-cli/0.1.0"
316
+ "User-Agent": "@usetransactional/cli/0.1.0"
317
317
  },
318
318
  body: JSON.stringify({
319
319
  sessionType,
@@ -343,7 +343,7 @@ async function pollForToken(deviceCode, interval, expiresIn, onPoll) {
343
343
  method: "POST",
344
344
  headers: {
345
345
  "Content-Type": "application/json",
346
- "User-Agent": "transactional-cli/0.1.0"
346
+ "User-Agent": "@usetransactional/cli/0.1.0"
347
347
  },
348
348
  body: JSON.stringify({ deviceCode })
349
349
  });
@@ -1548,7 +1548,7 @@ function createMcpCommand() {
1548
1548
  initConfig();
1549
1549
  function createProgram() {
1550
1550
  const program2 = new Command();
1551
- program2.name("transactional").description("CLI for Transactional - manage email, SMS, forms, and more").version("0.1.0");
1551
+ program2.name("transactional").description("CLI for Transactional - manage email, SMS, forms, and more").version("0.1.3");
1552
1552
  program2.addCommand(createLoginCommand());
1553
1553
  program2.addCommand(createLogoutCommand());
1554
1554
  program2.addCommand(createWhoamiCommand());