Big News: Socket raises $60M Series C at a $1B valuation to secure software supply chains for AI-driven development.Announcement
Sign In

@heroku-cli/command

Package Overview
Dependencies
Maintainers
55
Versions
128
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@heroku-cli/command - npm Package Compare versions

Comparing version
11.7.0
to
11.8.0
+1
-1
lib/api-client.js

@@ -162,3 +162,3 @@ "use strict";

}
const isHerokuApi = exports.ALLOWED_HEROKU_DOMAINS.some(domain => targetUrl.hostname.endsWith(`.${domain}`));
const isHerokuApi = exports.ALLOWED_HEROKU_DOMAINS.some(domain => targetUrl.hostname.endsWith(`.${domain}`) || targetUrl.hostname === domain);
const isLocalhost = exports.LOCALHOST_DOMAINS.includes(targetUrl.hostname);

@@ -165,0 +165,0 @@ if (isHerokuApi || isLocalhost) {

@@ -72,3 +72,3 @@ "use strict";

const cleanHost = host.replace(/^https?:\/\//, '');
return api_client_1.ALLOWED_HEROKU_DOMAINS.some(domain => cleanHost.endsWith(`.${domain}`)) || api_client_1.LOCALHOST_DOMAINS.some(domain => cleanHost.includes(domain));
return api_client_1.ALLOWED_HEROKU_DOMAINS.some(domain => cleanHost.endsWith(`.${domain}`) || cleanHost === domain) || api_client_1.LOCALHOST_DOMAINS.some(domain => cleanHost.includes(domain));
}

@@ -75,0 +75,0 @@ }

{
"name": "@heroku-cli/command",
"description": "base class for Heroku CLI commands",
"version": "11.7.0",
"version": "11.8.0",
"author": "Heroku",

@@ -6,0 +6,0 @@ "bugs": "https://github.com/heroku/heroku-cli-command/issues",