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
56
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
12.1.0
to
12.1.1-beta.0
+1
-1
lib/api-client.js

@@ -147,3 +147,3 @@ import { HTTP, HTTPError } from '@heroku/http-call';

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

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

@@ -68,5 +68,5 @@ import { ux } from '@oclif/core';

const cleanHost = host.replace(/^https?:\/\//, '');
return ALLOWED_HEROKU_DOMAINS.some(domain => cleanHost.endsWith(`.${domain}`)) || LOCALHOST_DOMAINS.some(domain => cleanHost.includes(domain));
return ALLOWED_HEROKU_DOMAINS.some(domain => cleanHost.endsWith(`.${domain}`) || cleanHost === domain) || LOCALHOST_DOMAINS.some(domain => cleanHost.includes(domain));
}
}
export const vars = new Vars();
{
"name": "@heroku-cli/command",
"description": "base class for Heroku CLI commands",
"version": "12.1.0",
"version": "12.1.1-beta.0",
"author": "Heroku",

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

"test": "nyc mocha --forbid-only \"test/**/*.test.ts\"",
"changelog": "conventional-changelog -p conventionalcommits -i CHANGELOG.md -s",
"changelog": "conventional-changelog -p conventionalcommits -i CHANGELOG.md -s -r 0",
"example": "sh examples/run.sh"

@@ -72,0 +72,0 @@ },