@autoposting.ai/cli 0.2.3 → 0.2.31
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/cli.cjs +2 -2
- package/dist/cli.cjs.map +1 -1
- package/package.json +1 -1
package/dist/cli.cjs
CHANGED
|
@@ -390,7 +390,7 @@ var require_dist = __commonJS({
|
|
|
390
390
|
);
|
|
391
391
|
}
|
|
392
392
|
this._apiKey = key;
|
|
393
|
-
this.baseUrl = (config.baseUrl ?? "https://
|
|
393
|
+
this.baseUrl = (config.baseUrl ?? "https://app.autoposting.ai").replace(/\/$/, "");
|
|
394
394
|
this.timeout = config.timeout ?? 3e4;
|
|
395
395
|
this.extraHeaders = config.headers ?? {};
|
|
396
396
|
this.authSource = config.authSource ?? "api-key";
|
|
@@ -1962,7 +1962,7 @@ async function pollDeviceCode(baseUrl, deviceCode) {
|
|
|
1962
1962
|
}
|
|
1963
1963
|
|
|
1964
1964
|
// src/commands/auth.ts
|
|
1965
|
-
var DEFAULT_BASE_URL = "https://
|
|
1965
|
+
var DEFAULT_BASE_URL = "https://app.autoposting.ai";
|
|
1966
1966
|
function resolveBaseUrl(globals) {
|
|
1967
1967
|
return globals.baseUrl ?? process.env.AUTOPOSTING_BASE_URL ?? DEFAULT_BASE_URL;
|
|
1968
1968
|
}
|