@hubspot/cli 7.3.0-experimental.0 → 7.3.0-experimental.2
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 +4 -2
- package/commands/account/info.js +1 -0
- package/package.json +1 -1
package/bin/cli.js
CHANGED
|
@@ -125,6 +125,7 @@ const setRequestHeaders = () => {
|
|
|
125
125
|
addUserAgentHeader('HubSpot CLI', pkg.version);
|
|
126
126
|
};
|
|
127
127
|
const updateCLIVersion = async () => {
|
|
128
|
+
logger.debug('Checking for CLI updates', notifier);
|
|
128
129
|
if (!process.env.SKIP_HUBSPOT_CLI_AUTO_UPDATES &&
|
|
129
130
|
notifier &&
|
|
130
131
|
notifier.update) {
|
|
@@ -133,12 +134,13 @@ const updateCLIVersion = async () => {
|
|
|
133
134
|
updateInfo = await notifier.fetchInfo();
|
|
134
135
|
}
|
|
135
136
|
catch (e) {
|
|
137
|
+
logger.debug('Error fetching update info', e);
|
|
136
138
|
return;
|
|
137
139
|
}
|
|
138
140
|
// Update if the current version is not the latest version.
|
|
139
141
|
// Don't auto-update if the current version is a pre-release
|
|
140
142
|
// or if this would be a major version update
|
|
141
|
-
if (updateInfo.current.includes('-') &&
|
|
143
|
+
if (!updateInfo.current.includes('-') &&
|
|
142
144
|
!['major', 'latest'].includes(updateInfo.type)) {
|
|
143
145
|
SpinniesManager.init({
|
|
144
146
|
succeedColor: 'white',
|
|
@@ -162,7 +164,7 @@ const updateCLIVersion = async () => {
|
|
|
162
164
|
}
|
|
163
165
|
}
|
|
164
166
|
catch (e) {
|
|
165
|
-
logger.debug(e);
|
|
167
|
+
logger.debug('Error updating CLI', e);
|
|
166
168
|
SpinniesManager.fail('cliAutoUpdate', {
|
|
167
169
|
text: `Failed to update HubSpot CLI to version ${updateInfo.latest}`,
|
|
168
170
|
});
|
package/commands/account/info.js
CHANGED
|
@@ -28,6 +28,7 @@ async function handler(args) {
|
|
|
28
28
|
else {
|
|
29
29
|
logger_1.logger.log((0, lang_1.i18n)(`${i18nKey}.errors.notUsingPersonalAccessKey`));
|
|
30
30
|
}
|
|
31
|
+
logger_1.logger.debug('Some debug log that only shows on this version of the CLI');
|
|
31
32
|
}
|
|
32
33
|
function accountInfoBuilder(yargs) {
|
|
33
34
|
yargs.positional('account', {
|
package/package.json
CHANGED