@affonso/cli 0.1.2 → 0.1.4
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 +4 -4
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -117,7 +117,7 @@ function resolveBaseUrl(flagBaseUrl) {
|
|
|
117
117
|
// src/auth/oauth.ts
|
|
118
118
|
var import_node_crypto = __toESM(require("crypto"));
|
|
119
119
|
var import_node_http = __toESM(require("http"));
|
|
120
|
-
var CLIENT_ID = "
|
|
120
|
+
var CLIENT_ID = "d4e5f6a7-b8c9-4d0e-a1f2-b3c4d5e6f7a8";
|
|
121
121
|
var SCOPES = "read write";
|
|
122
122
|
var LOGIN_TIMEOUT_MS = 5 * 60 * 1e3;
|
|
123
123
|
function escapeHtml(s) {
|
|
@@ -868,7 +868,7 @@ function registerProgramCommands(program2) {
|
|
|
868
868
|
handleError(err, o.json);
|
|
869
869
|
}
|
|
870
870
|
});
|
|
871
|
-
prog.command("update").description("Update program settings").option("--name <name>", "Program name").option("--tagline <text>", "Tagline").option("--category <cat>", "Category").option("--description <text>", "Description").option("--website-url <url>", "Website URL").option("--logo-url <url>", "Logo URL").option("--
|
|
871
|
+
prog.command("update").description("Update program settings").option("--name <name>", "Program name").option("--tagline <text>", "Tagline").option("--category <cat>", "Category").option("--description <text>", "Description").option("--website-url <url>", "Website URL").option("--logo-url <url>", "Logo URL").option("--access-mode <mode>", "Access mode: PUBLIC, PRIVATE, or INVITE").option("--affiliate-links-enabled", "Enable affiliate links").option("--no-affiliate-links-enabled", "Disable affiliate links").action(async function() {
|
|
872
872
|
const o = opts(this);
|
|
873
873
|
try {
|
|
874
874
|
const client = await getClient(o);
|
|
@@ -879,7 +879,7 @@ function registerProgramCommands(program2) {
|
|
|
879
879
|
if (o.description !== void 0) params.description = o.description;
|
|
880
880
|
if (o.websiteUrl !== void 0) params.website_url = o.websiteUrl;
|
|
881
881
|
if (o.logoUrl !== void 0) params.logo_url = o.logoUrl;
|
|
882
|
-
if (o.
|
|
882
|
+
if (o.accessMode !== void 0) params.access_mode = o.accessMode;
|
|
883
883
|
if (o.affiliateLinksEnabled !== void 0)
|
|
884
884
|
params.affiliate_links_enabled = o.affiliateLinksEnabled;
|
|
885
885
|
const result = await client.program.update(params);
|
|
@@ -1318,7 +1318,7 @@ function registerLogoutCommand(program2) {
|
|
|
1318
1318
|
headers: { "Content-Type": "application/x-www-form-urlencoded" },
|
|
1319
1319
|
body: new URLSearchParams({
|
|
1320
1320
|
token: auth.access_token,
|
|
1321
|
-
client_id:
|
|
1321
|
+
client_id: CLIENT_ID
|
|
1322
1322
|
})
|
|
1323
1323
|
});
|
|
1324
1324
|
} catch {
|