@hubspot/cli 6.2.2-experimental.1 → 6.3.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.
- package/commands/auth.js +0 -2
- package/commands/create/api-sample.js +2 -2
- package/commands/create.js +0 -2
- package/commands/feedback.js +19 -4
- package/commands/functions/list.js +1 -1
- package/commands/init.js +0 -2
- package/commands/lint.js +28 -1
- package/commands/module/marketplace-validate.js +1 -1
- package/commands/project/deploy.js +10 -3
- package/commands/project/logs.js +1 -1
- package/commands/sandbox/delete.js +5 -3
- package/commands/theme/generate-selectors.js +1 -1
- package/commands/theme/marketplace-validate.js +1 -1
- package/lang/en.lyaml +8 -13
- package/lib/LocalDevManager.js +2 -2
- package/lib/commonOpts.d.ts +26 -1
- package/lib/commonOpts.js +72 -55
- package/lib/constants.d.ts +0 -8
- package/lib/constants.js +1 -9
- package/lib/interpolation.d.ts +4 -0
- package/lib/interpolation.js +38 -46
- package/lib/lang.d.ts +8 -0
- package/lib/lang.js +37 -32
- package/lib/process.d.ts +11 -0
- package/lib/process.js +16 -16
- package/lib/prompts/accountNamePrompt.js +1 -2
- package/lib/prompts/accountsPrompt.js +0 -17
- package/lib/prompts/createFunctionPrompt.js +3 -4
- package/lib/prompts/promptUtils.d.ts +12 -1
- package/lib/prompts/promptUtils.js +24 -13
- package/lib/usageTracking.js +10 -1
- package/lib/validation.js +0 -2
- package/package.json +3 -1
- package/lib/debugInfo.js +0 -20
- package/lib/environment.d.ts +0 -1
- package/lib/environment.js +0 -13
- package/lib/hublValidate.d.ts +0 -2
- package/lib/hublValidate.js +0 -32
- package/lib/interpolationHelpers.d.ts +0 -10
- package/lib/interpolationHelpers.js +0 -34
- package/lib/projectLogsManager.d.ts +0 -1
- package/lib/prompts/activeInstallConfirmationPrompt.d.ts +0 -1
- package/lib/prompts/activeInstallConfirmationPrompt.js +0 -20
- package/lib/prompts/deployBuildIdPrompt.d.ts +0 -1
- package/lib/prompts/deployBuildIdPrompt.js +0 -22
- package/lib/prompts/feedbackPrompt.d.ts +0 -1
- package/lib/prompts/feedbackPrompt.js +0 -39
- package/lib/prompts/folderOverwritePrompt.d.ts +0 -1
- package/lib/prompts/folderOverwritePrompt.js +0 -17
- package/lib/regex.d.ts +0 -1
- package/lib/regex.js +0 -4
- /package/lib/{debugInfo.d.ts → ProjectLogsManager.d.ts} +0 -0
- /package/lib/{projectLogsManager.js → ProjectLogsManager.js} +0 -0
- /package/lib/{generate-selectors.d.ts → generateSelectors.d.ts} +0 -0
- /package/lib/{generate-selectors.js → generateSelectors.js} +0 -0
- /package/lib/{marketplace-validate.d.ts → marketplaceValidate.d.ts} +0 -0
- /package/lib/{marketplace-validate.js → marketplaceValidate.js} +0 -0
|
@@ -1,20 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
// @ts-nocheck
|
|
4
|
-
const { promptUser } = require('./promptUtils');
|
|
5
|
-
const { i18n } = require('../lang');
|
|
6
|
-
const i18nKey = 'lib.prompts.activeInstallConfirmationPrompt';
|
|
7
|
-
const activeInstallConfirmationPrompt = async () => {
|
|
8
|
-
const { proceed } = await promptUser([
|
|
9
|
-
{
|
|
10
|
-
name: 'proceed',
|
|
11
|
-
message: i18n(`${i18nKey}.message`),
|
|
12
|
-
type: 'confirm',
|
|
13
|
-
default: false,
|
|
14
|
-
},
|
|
15
|
-
]);
|
|
16
|
-
return proceed;
|
|
17
|
-
};
|
|
18
|
-
module.exports = {
|
|
19
|
-
activeInstallConfirmationPrompt,
|
|
20
|
-
};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export {};
|
|
@@ -1,22 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
// @ts-nocheck
|
|
4
|
-
const { promptUser } = require('./promptUtils');
|
|
5
|
-
const { i18n } = require('../lang');
|
|
6
|
-
const i18nKey = 'lib.prompts.deployBuildIdPrompt';
|
|
7
|
-
const deployBuildIdPrompt = (latestBuildId, deployedBuildId, validate) => {
|
|
8
|
-
return promptUser({
|
|
9
|
-
name: 'buildId',
|
|
10
|
-
message: i18n(`${i18nKey}.enterBuildId`),
|
|
11
|
-
default: () => {
|
|
12
|
-
if (latestBuildId === deployedBuildId) {
|
|
13
|
-
return;
|
|
14
|
-
}
|
|
15
|
-
return latestBuildId;
|
|
16
|
-
},
|
|
17
|
-
validate,
|
|
18
|
-
});
|
|
19
|
-
};
|
|
20
|
-
module.exports = {
|
|
21
|
-
deployBuildIdPrompt,
|
|
22
|
-
};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export {};
|
|
@@ -1,39 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
// @ts-nocheck
|
|
4
|
-
const { promptUser } = require('./promptUtils');
|
|
5
|
-
const { i18n } = require('../lang');
|
|
6
|
-
const { FEEDBACK_OPTIONS } = require('../constants');
|
|
7
|
-
const i18nKey = 'lib.prompts.feedbackPrompt';
|
|
8
|
-
const feedbackTypePrompt = bypassPrompt => {
|
|
9
|
-
return promptUser([
|
|
10
|
-
{
|
|
11
|
-
name: 'type',
|
|
12
|
-
message: i18n(`${i18nKey}.feedbackType.message`),
|
|
13
|
-
type: 'list',
|
|
14
|
-
when: !bypassPrompt,
|
|
15
|
-
choices: Object.values(FEEDBACK_OPTIONS).map(option => ({
|
|
16
|
-
name: i18n(`${i18nKey}.feedbackType.${option}`),
|
|
17
|
-
value: option,
|
|
18
|
-
})),
|
|
19
|
-
},
|
|
20
|
-
]);
|
|
21
|
-
};
|
|
22
|
-
const shouldOpenBrowserPrompt = (type, bypassPrompt) => {
|
|
23
|
-
return promptUser([
|
|
24
|
-
{
|
|
25
|
-
name: 'shouldOpen',
|
|
26
|
-
message: () => {
|
|
27
|
-
return type === FEEDBACK_OPTIONS.BUG
|
|
28
|
-
? i18n(`${i18nKey}.bugPrompt`)
|
|
29
|
-
: i18n(`${i18nKey}.generalPrompt`);
|
|
30
|
-
},
|
|
31
|
-
type: 'confirm',
|
|
32
|
-
when: !bypassPrompt,
|
|
33
|
-
},
|
|
34
|
-
]);
|
|
35
|
-
};
|
|
36
|
-
module.exports = {
|
|
37
|
-
feedbackTypePrompt,
|
|
38
|
-
shouldOpenBrowserPrompt,
|
|
39
|
-
};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export {};
|
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
// @ts-nocheck
|
|
4
|
-
const { promptUser } = require('./promptUtils');
|
|
5
|
-
const { i18n } = require('../lang');
|
|
6
|
-
const i18nKey = 'lib.prompts.folderOverwritePrompt';
|
|
7
|
-
const folderOverwritePrompt = folderName => {
|
|
8
|
-
return promptUser({
|
|
9
|
-
type: 'confirm',
|
|
10
|
-
name: 'overwrite',
|
|
11
|
-
message: i18n(`${i18nKey}.overwriteConfirm`, { folderName }),
|
|
12
|
-
default: false,
|
|
13
|
-
});
|
|
14
|
-
};
|
|
15
|
-
module.exports = {
|
|
16
|
-
folderOverwritePrompt,
|
|
17
|
-
};
|
package/lib/regex.d.ts
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export declare const STRING_WITH_NO_SPACES_REGEX: RegExp;
|
package/lib/regex.js
DELETED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|