@hubspot/cli 4.1.8-beta.2 → 4.1.8-beta.4
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 +1 -1
- package/commands/accounts/info.js +1 -1
- package/commands/accounts/list.js +1 -1
- package/commands/accounts/remove.js +1 -1
- package/commands/accounts/rename.js +1 -1
- package/commands/accounts/use.js +1 -1
- package/commands/accounts.js +1 -1
- package/commands/auth.js +1 -1
- package/commands/cms/convertFields.js +1 -1
- package/commands/cms/lighthouseScore.js +1 -1
- package/commands/cms.js +1 -1
- package/commands/config/set/allowUsageTracking.js +1 -1
- package/commands/config/set/defaultMode.js +1 -1
- package/commands/config/set/httpTimeout.js +1 -1
- package/commands/config/set.js +1 -1
- package/commands/config.js +1 -1
- package/commands/create/api-sample.js +1 -1
- package/commands/create/module.js +1 -1
- package/commands/create/template.js +1 -1
- package/commands/create.js +1 -1
- package/commands/customObject/create.js +1 -1
- package/commands/customObject/schema/create.js +1 -1
- package/commands/customObject/schema/delete.js +1 -1
- package/commands/customObject/schema/fetch-all.js +1 -1
- package/commands/customObject/schema/fetch.js +1 -1
- package/commands/customObject/schema/list.js +1 -1
- package/commands/customObject/schema/update.js +1 -1
- package/commands/customObject/schema.js +1 -1
- package/commands/customObject.js +1 -1
- package/commands/feedback.js +1 -1
- package/commands/fetch.js +1 -1
- package/commands/filemanager/fetch.js +1 -1
- package/commands/filemanager/upload.js +1 -1
- package/commands/filemanager.js +1 -1
- package/commands/functions/deploy.js +1 -1
- package/commands/functions/list.js +1 -1
- package/commands/functions/server.js +1 -1
- package/commands/functions.js +1 -1
- package/commands/hubdb/clear.js +1 -1
- package/commands/hubdb/create.js +1 -1
- package/commands/hubdb/delete.js +1 -1
- package/commands/hubdb/fetch.js +1 -1
- package/commands/hubdb.js +1 -1
- package/commands/init.js +1 -1
- package/commands/lint.js +1 -1
- package/commands/list.js +1 -1
- package/commands/logs.js +1 -1
- package/commands/module/marketplace-validate.js +1 -1
- package/commands/module.js +1 -1
- package/commands/mv.js +1 -1
- package/commands/open.js +1 -1
- package/commands/project/add.js +1 -1
- package/commands/project/create.js +1 -1
- package/commands/project/deploy.js +1 -1
- package/commands/project/dev.js +31 -9
- package/commands/project/download.js +1 -1
- package/commands/project/logs.js +1 -1
- package/commands/project/open.js +1 -1
- package/commands/project/upload.js +1 -1
- package/commands/project/watch.js +1 -1
- package/commands/remove.js +1 -1
- package/commands/sandbox/create.js +22 -2
- package/commands/sandbox/delete.js +1 -1
- package/commands/sandbox/sync.js +1 -1
- package/commands/secrets/addSecret.js +1 -1
- package/commands/secrets/deleteSecret.js +1 -1
- package/commands/secrets/listSecrets.js +1 -1
- package/commands/secrets/updateSecret.js +1 -1
- package/commands/secrets.js +1 -1
- package/commands/theme/marketplace-validate.js +1 -1
- package/commands/theme.js +1 -1
- package/commands/upload.js +1 -1
- package/commands/watch.js +1 -1
- package/lang/en.lyaml +1205 -0
- package/lib/DevServerManager.js +74 -0
- package/lib/LocalDevManager.js +41 -30
- package/lib/commonOpts.js +1 -1
- package/lib/interpolation.js +137 -0
- package/lib/interpolationHelpers.js +23 -0
- package/lib/lang.js +95 -0
- package/lib/marketplace-validate.js +1 -1
- package/lib/projects.js +1 -1
- package/lib/prompts/accountsPrompt.js +1 -1
- package/lib/prompts/buildIdPrompt.js +1 -1
- package/lib/prompts/cmsFieldPrompt.js +1 -1
- package/lib/prompts/createApiSamplePrompt.js +1 -1
- package/lib/prompts/createFunctionPrompt.js +1 -1
- package/lib/prompts/createModulePrompt.js +1 -1
- package/lib/prompts/createProjectPrompt.js +1 -1
- package/lib/prompts/createTemplatePrompt.js +1 -1
- package/lib/prompts/downloadProjectPrompt.js +1 -1
- package/lib/prompts/enterAccountNamePrompt.js +1 -1
- package/lib/prompts/feedbackPrompt.js +1 -1
- package/lib/prompts/folderOverwritePrompt.js +1 -1
- package/lib/prompts/personalAccessKeyPrompt.js +1 -1
- package/lib/prompts/projectAddPrompt.js +1 -1
- package/lib/prompts/projectDevTargetAccountPrompt.js +1 -1
- package/lib/prompts/projectNamePrompt.js +1 -1
- package/lib/prompts/projectsLogsPrompt.js +1 -1
- package/lib/prompts/sandboxesPrompt.js +1 -1
- package/lib/prompts/secretPrompt.js +1 -1
- package/lib/prompts/setAsDefaultAccountPrompt.js +1 -1
- package/lib/prompts/uploadPrompt.js +1 -1
- package/lib/sandbox-create.js +1 -1
- package/lib/sandbox-sync.js +1 -1
- package/lib/sandboxes.js +1 -1
- package/lib/ui.js +7 -4
- package/package.json +8 -5
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
const { i18n } = require('
|
|
1
|
+
const { i18n } = require('../lang');
|
|
2
2
|
const { fetchProject } = require('@hubspot/cli-lib/api/dfs');
|
|
3
3
|
const { promptUser } = require('./promptUtils');
|
|
4
4
|
const { getProjectConfig, ensureProjectExists } = require('../projects');
|
|
@@ -3,7 +3,7 @@ const {
|
|
|
3
3
|
updateDefaultAccount,
|
|
4
4
|
} = require('@hubspot/cli-lib/lib/config');
|
|
5
5
|
const { promptUser } = require('./promptUtils');
|
|
6
|
-
const { i18n } = require('
|
|
6
|
+
const { i18n } = require('../lang');
|
|
7
7
|
|
|
8
8
|
const i18nKey = 'cli.lib.prompts.setAsDefaultAccountPrompt';
|
|
9
9
|
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
const path = require('path');
|
|
2
2
|
const { getCwd } = require('@hubspot/cli-lib/path');
|
|
3
3
|
const { promptUser } = require('./promptUtils');
|
|
4
|
-
const { i18n } = require('
|
|
4
|
+
const { i18n } = require('../lang');
|
|
5
5
|
|
|
6
6
|
const i18nKey = 'cli.lib.prompts.uploadPrompt';
|
|
7
7
|
|
package/lib/sandbox-create.js
CHANGED
|
@@ -7,7 +7,7 @@ const {
|
|
|
7
7
|
STANDARD_SANDBOX,
|
|
8
8
|
DEVELOPER_SANDBOX,
|
|
9
9
|
} = require('./sandboxes');
|
|
10
|
-
const { i18n } = require('
|
|
10
|
+
const { i18n } = require('./lang');
|
|
11
11
|
const { logger } = require('@hubspot/cli-lib/logger');
|
|
12
12
|
const {
|
|
13
13
|
debugErrorAndContext,
|
package/lib/sandbox-sync.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
const Spinnies = require('spinnies');
|
|
2
2
|
const { getHubSpotWebsiteOrigin } = require('@hubspot/cli-lib/lib/urls');
|
|
3
3
|
const { logger } = require('@hubspot/cli-lib/logger');
|
|
4
|
-
const { i18n } = require('
|
|
4
|
+
const { i18n } = require('./lang');
|
|
5
5
|
const {
|
|
6
6
|
getAvailableSyncTypes,
|
|
7
7
|
pollSyncTaskStatus,
|
package/lib/sandboxes.js
CHANGED
|
@@ -5,7 +5,7 @@ const {
|
|
|
5
5
|
getAccountId,
|
|
6
6
|
} = require('@hubspot/cli-lib');
|
|
7
7
|
const chalk = require('chalk');
|
|
8
|
-
const { i18n } = require('
|
|
8
|
+
const { i18n } = require('./lang');
|
|
9
9
|
const { logger } = require('@hubspot/cli-lib/logger');
|
|
10
10
|
const {
|
|
11
11
|
updateConfigWithPersonalAccessKey,
|
package/lib/ui.js
CHANGED
|
@@ -3,7 +3,7 @@ const chalk = require('chalk');
|
|
|
3
3
|
const supportsHyperlinks = require('../lib/supportHyperlinks');
|
|
4
4
|
const supportsColor = require('../lib/supportsColor');
|
|
5
5
|
const { getAccountConfig } = require('@hubspot/cli-lib/lib/config');
|
|
6
|
-
const { i18n } = require('
|
|
6
|
+
const { i18n } = require('./lang');
|
|
7
7
|
const { logger } = require('@hubspot/cli-lib/logger');
|
|
8
8
|
|
|
9
9
|
/**
|
|
@@ -40,17 +40,20 @@ const uiLink = (linkText, url, { inSpinnies = false } = {}) => {
|
|
|
40
40
|
const terminalUISupport = getTerminalUISupport();
|
|
41
41
|
const encodedUrl = encodeURI(url);
|
|
42
42
|
if (terminalUISupport.hyperlinks) {
|
|
43
|
+
const CLOSE_SEQUENCE = '\u001B]8;;\u0007';
|
|
43
44
|
const result = [
|
|
44
45
|
'\u001B]8;;',
|
|
45
46
|
encodedUrl,
|
|
46
47
|
'\u0007',
|
|
47
48
|
linkText,
|
|
48
|
-
|
|
49
|
+
CLOSE_SEQUENCE,
|
|
49
50
|
].join('');
|
|
50
51
|
|
|
51
|
-
// Required b/c spinnies will break long lines
|
|
52
|
+
// Required b/c spinnies will automatically line-break long lines. "indent" is added to account for indented spinnies
|
|
52
53
|
// See https://github.com/jbcarpanelli/spinnies/blob/d672dedcab8c8ce0f6de0bb26ca5582bf602afd7/utils.js#L68-L74
|
|
53
|
-
const
|
|
54
|
+
const indent = 5;
|
|
55
|
+
const columns =
|
|
56
|
+
(process.stderr.columns || 95) - CLOSE_SEQUENCE.length - indent;
|
|
54
57
|
const validLength = !inSpinnies || result.length < columns;
|
|
55
58
|
|
|
56
59
|
if (validLength) {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@hubspot/cli",
|
|
3
|
-
"version": "4.1.8-beta.
|
|
3
|
+
"version": "4.1.8-beta.4",
|
|
4
4
|
"description": "CLI for working with HubSpot",
|
|
5
5
|
"license": "Apache-2.0",
|
|
6
6
|
"repository": {
|
|
@@ -8,16 +8,19 @@
|
|
|
8
8
|
"url": "https://github.com/HubSpot/hubspot-cms-tools"
|
|
9
9
|
},
|
|
10
10
|
"dependencies": {
|
|
11
|
-
"@hubspot/cli-lib": "4.1.
|
|
12
|
-
"@hubspot/serverless-dev-runtime": "4.1.8-beta.
|
|
11
|
+
"@hubspot/cli-lib": "^4.1.12",
|
|
12
|
+
"@hubspot/serverless-dev-runtime": "4.1.8-beta.4",
|
|
13
13
|
"archiver": "^5.3.0",
|
|
14
|
+
"body-parser": "^1.19.0",
|
|
14
15
|
"chalk": "^4.1.2",
|
|
15
16
|
"chokidar": "^3.0.1",
|
|
16
17
|
"cli-progress": "^3.11.2",
|
|
18
|
+
"cors": "^2.8.5",
|
|
17
19
|
"express": "^4.17.1",
|
|
18
20
|
"findup-sync": "^4.0.0",
|
|
19
21
|
"fs-extra": "^8.1.0",
|
|
20
|
-
"inquirer": "
|
|
22
|
+
"inquirer": "8.2.0",
|
|
23
|
+
"js-yaml": "^4.1.0",
|
|
21
24
|
"moment": "^2.29.1",
|
|
22
25
|
"open": "^7.0.3",
|
|
23
26
|
"ora": "^4.0.3",
|
|
@@ -40,5 +43,5 @@
|
|
|
40
43
|
"publishConfig": {
|
|
41
44
|
"access": "public"
|
|
42
45
|
},
|
|
43
|
-
"gitHead": "
|
|
46
|
+
"gitHead": "650d373d034efb5736b357200fc496d5da605e37"
|
|
44
47
|
}
|