dockup-cli 1.3.1 → 1.3.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/index.js +1 -1
- package/dist/lib/api.js +3 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -33,7 +33,7 @@ var import_workspace = require("./commands/workspace");
|
|
|
33
33
|
var import_database = require("./commands/database");
|
|
34
34
|
var import_remote = require("./commands/remote");
|
|
35
35
|
const program = new import_commander.Command();
|
|
36
|
-
program.name("dockup").description("Dockup CLI - Deploy from your terminal").version("1.3.
|
|
36
|
+
program.name("dockup").description("Dockup CLI - Deploy from your terminal").version("1.3.2");
|
|
37
37
|
program.command("login").description("Authenticate with Dockup").option("-t, --token <token>", "Use API token directly").action(import_auth.login);
|
|
38
38
|
program.command("logout").description("Log out from Dockup").action(import_auth.logout);
|
|
39
39
|
program.command("whoami").description("Show current logged in user").action(import_auth.whoami);
|
package/dist/lib/api.js
CHANGED
|
@@ -36,7 +36,9 @@ var import_config = require("./config");
|
|
|
36
36
|
class ApiClient {
|
|
37
37
|
getHeaders() {
|
|
38
38
|
const headers = {
|
|
39
|
-
"Content-Type": "application/json"
|
|
39
|
+
"Content-Type": "application/json",
|
|
40
|
+
// Tags requests as CLI-originated for the audit log (source = "cli").
|
|
41
|
+
"X-Dockup-Client": "cli"
|
|
40
42
|
};
|
|
41
43
|
const token = (0, import_config.getToken)();
|
|
42
44
|
if (token) {
|