@usetransactional/cli 0.1.2 → 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/dist/bin.js +4 -4
- package/dist/bin.js.map +1 -1
- package/dist/index.js +4 -4
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
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": "
|
|
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": "
|
|
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": "
|
|
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.
|
|
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());
|