@tryarcanist/cli 0.1.90 → 0.1.92
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 +3 -0
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -189,6 +189,9 @@ function validateApiUrl(url) {
|
|
|
189
189
|
} catch {
|
|
190
190
|
return "Invalid URL format";
|
|
191
191
|
}
|
|
192
|
+
if (parsed.username || parsed.password) {
|
|
193
|
+
return "API URL must not include embedded credentials. Use --token or ARCANIST_TOKEN to authenticate.";
|
|
194
|
+
}
|
|
192
195
|
const host = parsed.hostname.replace(/^\[|\]$/g, "");
|
|
193
196
|
const isLocal = host === "localhost" || host === "127.0.0.1" || host === "::1";
|
|
194
197
|
if (parsed.protocol !== "https:" && !isLocal) {
|