@hubspot/cli 7.6.0 → 7.6.1-beta.0

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.
@@ -5,7 +5,7 @@ import { confirmPrompt } from '../lib/prompts/promptUtils.js';
5
5
  import { makeYargsBuilder } from '../lib/yargsUtils.js';
6
6
  import { EXIT_CODES } from '../lib/enums/exitCodes.js';
7
7
  import { uiLink } from '../lib/ui/index.js';
8
- const FEEDBACK_URL = 'https://developers.hubspot.com/feedback.js';
8
+ const FEEDBACK_URL = 'https://developers.hubspot.com/feedback';
9
9
  const command = 'feedback';
10
10
  const describe = i18n(`commands.project.subcommands.feedback.describe`);
11
11
  async function handler() {
@@ -74,12 +74,12 @@ export async function calculateComponentTemplateChoices(components, authType, di
74
74
  }
75
75
  if (Array.isArray(supportedAuthTypes) &&
76
76
  authType &&
77
- !supportedAuthTypes.includes(authType)) {
77
+ !supportedAuthTypes.includes(authType.toLowerCase())) {
78
78
  disabledReasons.push(commands.project.add.error.authTypeNotAllowed(authType));
79
79
  }
80
80
  if (Array.isArray(supportedDistributions) &&
81
81
  distribution &&
82
- !supportedDistributions.includes(distribution)) {
82
+ !supportedDistributions.includes(distribution.toLowerCase())) {
83
83
  disabledReasons.push(commands.project.add.error.distributionNotAllowed(distribution));
84
84
  }
85
85
  const templateGate = componentTypeToGateMap[template.cliSelector || template.type];
@@ -75,7 +75,7 @@ class AppDevModeInterface {
75
75
  // );
76
76
  // }
77
77
  async getAppInstallUrl() {
78
- if (this.appNode?.config.auth.type === APP_AUTH_TYPES.OAUTH) {
78
+ if (this.appNode?.config.auth.type.toLowerCase() === APP_AUTH_TYPES.OAUTH) {
79
79
  return getOauthAppInstallUrl({
80
80
  targetAccountId: this.localDevState.targetTestingAccountId,
81
81
  env: this.localDevState.env,
@@ -216,12 +216,12 @@ class AppDevModeInterface {
216
216
  const newDistribution = newAppNode?.config.distribution;
217
217
  const oldAuthType = this.appNode?.config.auth.type;
218
218
  const newAuthType = newAppNode?.config.auth.type;
219
- if (newDistribution === APP_DISTRIBUTION_TYPES.MARKETPLACE &&
220
- oldDistribution !== APP_DISTRIBUTION_TYPES.MARKETPLACE) {
219
+ if (newDistribution?.toLowerCase() === APP_DISTRIBUTION_TYPES.MARKETPLACE &&
220
+ oldDistribution?.toLowerCase() !== APP_DISTRIBUTION_TYPES.MARKETPLACE) {
221
221
  this.localDevState.addUploadWarning(lib.AppDevModeInterface.distributionChanged);
222
222
  }
223
- else if (newAuthType === APP_AUTH_TYPES.OAUTH &&
224
- oldAuthType !== APP_AUTH_TYPES.OAUTH) {
223
+ else if (newAuthType?.toLowerCase() === APP_AUTH_TYPES.OAUTH &&
224
+ oldAuthType?.toLowerCase() !== APP_AUTH_TYPES.OAUTH) {
225
225
  this.localDevState.addUploadWarning(lib.AppDevModeInterface.authTypeChanged);
226
226
  }
227
227
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@hubspot/cli",
3
- "version": "7.6.0",
3
+ "version": "7.6.1-beta.0",
4
4
  "description": "The official CLI for developing on HubSpot",
5
5
  "license": "Apache-2.0",
6
6
  "repository": "https://github.com/HubSpot/hubspot-cli",