a2acalling 0.6.31 → 0.6.33
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/bin/cli.js +1 -2
- package/package.json +1 -1
- package/src/lib/client.js +2 -2
package/bin/cli.js
CHANGED
|
@@ -466,8 +466,7 @@ const commands = {
|
|
|
466
466
|
const ownerName = args.flags.owner || args.flags.o || configAgent.owner || configAgent.name || null;
|
|
467
467
|
|
|
468
468
|
// Get topics from disclosure manifest based on tier (with inheritance)
|
|
469
|
-
const
|
|
470
|
-
const tierTopics = getTopicsForTier(manifest, tier);
|
|
469
|
+
const tierTopics = getTopicsForTier(tier);
|
|
471
470
|
|
|
472
471
|
// Parse custom topics if provided, otherwise use tier topics
|
|
473
472
|
let allowedTopics;
|
package/package.json
CHANGED
package/src/lib/client.js
CHANGED
|
@@ -42,9 +42,9 @@ function resolveProtocolAndPort(host) {
|
|
|
42
42
|
hostname === '::1' ||
|
|
43
43
|
hostname.startsWith('127.');
|
|
44
44
|
|
|
45
|
-
const port = hasExplicitPort ? parsed.port :
|
|
45
|
+
const port = hasExplicitPort ? parsed.port : 80;
|
|
46
46
|
// Use HTTP for localhost or explicit non-443 ports, HTTPS otherwise.
|
|
47
|
-
const useHttp = isLocalhost || (hasExplicitPort && port !== 443);
|
|
47
|
+
const useHttp = isLocalhost || port === 80 || (hasExplicitPort && port !== 443);
|
|
48
48
|
const protocol = useHttp ? http : https;
|
|
49
49
|
|
|
50
50
|
return { protocol, hostname, port };
|