@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/index.js
CHANGED
|
@@ -193,7 +193,7 @@ var ApiClient = class {
|
|
|
193
193
|
getHeaders() {
|
|
194
194
|
const headers = {
|
|
195
195
|
"Content-Type": "application/json",
|
|
196
|
-
"User-Agent": "
|
|
196
|
+
"User-Agent": "@usetransactional/cli/0.1.0"
|
|
197
197
|
};
|
|
198
198
|
if (this.token) {
|
|
199
199
|
headers["Authorization"] = `Bearer ${this.token}`;
|
|
@@ -327,7 +327,7 @@ async function requestDeviceCode(sessionType = "CLI") {
|
|
|
327
327
|
method: "POST",
|
|
328
328
|
headers: {
|
|
329
329
|
"Content-Type": "application/json",
|
|
330
|
-
"User-Agent": "
|
|
330
|
+
"User-Agent": "@usetransactional/cli/0.1.0"
|
|
331
331
|
},
|
|
332
332
|
body: JSON.stringify({
|
|
333
333
|
sessionType,
|
|
@@ -357,7 +357,7 @@ async function pollForToken(deviceCode, interval, expiresIn, onPoll) {
|
|
|
357
357
|
method: "POST",
|
|
358
358
|
headers: {
|
|
359
359
|
"Content-Type": "application/json",
|
|
360
|
-
"User-Agent": "
|
|
360
|
+
"User-Agent": "@usetransactional/cli/0.1.0"
|
|
361
361
|
},
|
|
362
362
|
body: JSON.stringify({ deviceCode })
|
|
363
363
|
});
|
|
@@ -1681,7 +1681,7 @@ function createMcpCommand() {
|
|
|
1681
1681
|
initConfig();
|
|
1682
1682
|
function createProgram() {
|
|
1683
1683
|
const program = new Command();
|
|
1684
|
-
program.name("transactional").description("CLI for Transactional - manage email, SMS, forms, and more").version("0.1.
|
|
1684
|
+
program.name("transactional").description("CLI for Transactional - manage email, SMS, forms, and more").version("0.1.3");
|
|
1685
1685
|
program.addCommand(createLoginCommand());
|
|
1686
1686
|
program.addCommand(createLogoutCommand());
|
|
1687
1687
|
program.addCommand(createWhoamiCommand());
|