@hubspot/cli 6.2.2-experimental.0 → 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.
Files changed (335) hide show
  1. package/LICENSE +12 -0
  2. package/README.md +71 -0
  3. package/commands/accounts/clean.d.ts +1 -4
  4. package/commands/accounts/clean.js +2 -0
  5. package/commands/accounts/info.d.ts +1 -4
  6. package/commands/accounts/info.js +3 -1
  7. package/commands/accounts/list.d.ts +1 -4
  8. package/commands/accounts/list.js +2 -0
  9. package/commands/accounts/remove.d.ts +1 -4
  10. package/commands/accounts/remove.js +2 -0
  11. package/commands/accounts/rename.d.ts +1 -4
  12. package/commands/accounts/rename.js +2 -0
  13. package/commands/accounts/use.d.ts +1 -4
  14. package/commands/accounts/use.js +2 -0
  15. package/commands/accounts.d.ts +1 -3
  16. package/commands/accounts.js +2 -0
  17. package/commands/auth.d.ts +1 -4
  18. package/commands/auth.js +2 -2
  19. package/commands/cms/convertFields.d.ts +1 -4
  20. package/commands/cms/convertFields.js +2 -0
  21. package/commands/cms/lighthouseScore.d.ts +1 -4
  22. package/commands/cms/lighthouseScore.js +2 -0
  23. package/commands/cms/reactModules.d.ts +1 -4
  24. package/commands/cms/reactModules.js +2 -0
  25. package/commands/cms.d.ts +1 -3
  26. package/commands/cms.js +2 -0
  27. package/commands/config/set.d.ts +1 -4
  28. package/commands/config/set.js +3 -3
  29. package/commands/config.d.ts +1 -3
  30. package/commands/config.js +2 -0
  31. package/commands/create/api-sample.d.ts +1 -13
  32. package/commands/create/api-sample.js +4 -2
  33. package/commands/create/app.d.ts +1 -10
  34. package/commands/create/app.js +2 -0
  35. package/commands/create/function.d.ts +1 -6
  36. package/commands/create/function.js +2 -0
  37. package/commands/create/index.d.ts +1 -109
  38. package/commands/create/index.js +2 -0
  39. package/commands/create/module.d.ts +1 -11
  40. package/commands/create/module.js +2 -0
  41. package/commands/create/react-app.d.ts +1 -9
  42. package/commands/create/react-app.js +2 -0
  43. package/commands/create/template.d.ts +1 -12
  44. package/commands/create/template.js +2 -0
  45. package/commands/create/vue-app.d.ts +1 -9
  46. package/commands/create/vue-app.js +2 -0
  47. package/commands/create/webpack-serverless.d.ts +1 -9
  48. package/commands/create/webpack-serverless.js +2 -0
  49. package/commands/create/website-theme.d.ts +1 -9
  50. package/commands/create/website-theme.js +2 -0
  51. package/commands/create.d.ts +24 -4
  52. package/commands/create.js +4 -3
  53. package/commands/customObject/create.d.ts +1 -4
  54. package/commands/customObject/create.js +2 -0
  55. package/commands/customObject/schema/create.d.ts +1 -4
  56. package/commands/customObject/schema/create.js +2 -0
  57. package/commands/customObject/schema/delete.d.ts +1 -4
  58. package/commands/customObject/schema/delete.js +3 -1
  59. package/commands/customObject/schema/fetch-all.d.ts +1 -4
  60. package/commands/customObject/schema/fetch-all.js +2 -0
  61. package/commands/customObject/schema/fetch.d.ts +1 -4
  62. package/commands/customObject/schema/fetch.js +3 -1
  63. package/commands/customObject/schema/list.d.ts +1 -3
  64. package/commands/customObject/schema/list.js +2 -0
  65. package/commands/customObject/schema/update.d.ts +1 -4
  66. package/commands/customObject/schema/update.js +2 -0
  67. package/commands/customObject/schema.d.ts +1 -3
  68. package/commands/customObject/schema.js +2 -0
  69. package/commands/customObject.d.ts +1 -3
  70. package/commands/customObject.js +2 -0
  71. package/commands/feedback.d.ts +1 -4
  72. package/commands/feedback.js +21 -4
  73. package/commands/fetch.d.ts +1 -4
  74. package/commands/fetch.js +2 -0
  75. package/commands/filemanager/fetch.d.ts +1 -4
  76. package/commands/filemanager/fetch.js +4 -2
  77. package/commands/filemanager/upload.d.ts +1 -4
  78. package/commands/filemanager/upload.js +2 -0
  79. package/commands/filemanager.d.ts +1 -3
  80. package/commands/filemanager.js +2 -0
  81. package/commands/functions/deploy.d.ts +1 -4
  82. package/commands/functions/deploy.js +2 -0
  83. package/commands/functions/list.d.ts +1 -4
  84. package/commands/functions/list.js +13 -2
  85. package/commands/functions/server.d.ts +1 -4
  86. package/commands/functions/server.js +2 -0
  87. package/commands/functions.d.ts +1 -3
  88. package/commands/functions.js +2 -0
  89. package/commands/hubdb/clear.d.ts +1 -4
  90. package/commands/hubdb/clear.js +2 -0
  91. package/commands/hubdb/create.d.ts +1 -4
  92. package/commands/hubdb/create.js +2 -0
  93. package/commands/hubdb/delete.d.ts +1 -4
  94. package/commands/hubdb/delete.js +2 -0
  95. package/commands/hubdb/fetch.d.ts +1 -4
  96. package/commands/hubdb/fetch.js +2 -0
  97. package/commands/hubdb.d.ts +1 -3
  98. package/commands/hubdb.js +2 -0
  99. package/commands/init.d.ts +1 -4
  100. package/commands/init.js +2 -2
  101. package/commands/lint.d.ts +1 -4
  102. package/commands/lint.js +30 -1
  103. package/commands/list.d.ts +1 -4
  104. package/commands/list.js +2 -0
  105. package/commands/logs.d.ts +1 -4
  106. package/commands/logs.js +2 -0
  107. package/commands/module/marketplace-validate.d.ts +1 -4
  108. package/commands/module/marketplace-validate.js +3 -1
  109. package/commands/module.d.ts +1 -3
  110. package/commands/module.js +2 -0
  111. package/commands/mv.d.ts +1 -4
  112. package/commands/mv.js +2 -0
  113. package/commands/open.d.ts +1 -4
  114. package/commands/open.js +2 -0
  115. package/commands/project/add.d.ts +1 -4
  116. package/commands/project/add.js +2 -0
  117. package/commands/project/cloneApp.d.ts +1 -4
  118. package/commands/project/cloneApp.js +2 -0
  119. package/commands/project/create.d.ts +1 -4
  120. package/commands/project/create.js +2 -0
  121. package/commands/project/deploy.d.ts +1 -4
  122. package/commands/project/deploy.js +12 -3
  123. package/commands/project/dev.d.ts +1 -4
  124. package/commands/project/dev.js +3 -0
  125. package/commands/project/download.d.ts +1 -4
  126. package/commands/project/download.js +4 -2
  127. package/commands/project/installDeps.d.ts +1 -6
  128. package/commands/project/installDeps.js +2 -0
  129. package/commands/project/listBuilds.d.ts +1 -4
  130. package/commands/project/listBuilds.js +2 -0
  131. package/commands/project/logs.d.ts +1 -4
  132. package/commands/project/logs.js +3 -1
  133. package/commands/project/migrateApp.d.ts +1 -4
  134. package/commands/project/migrateApp.js +2 -0
  135. package/commands/project/open.d.ts +1 -4
  136. package/commands/project/open.js +2 -0
  137. package/commands/project/upload.d.ts +1 -4
  138. package/commands/project/upload.js +2 -0
  139. package/commands/project/watch.d.ts +1 -4
  140. package/commands/project/watch.js +2 -0
  141. package/commands/project.d.ts +1 -3
  142. package/commands/project.js +2 -0
  143. package/commands/remove.d.ts +1 -4
  144. package/commands/remove.js +2 -0
  145. package/commands/sandbox/create.d.ts +1 -4
  146. package/commands/sandbox/create.js +2 -0
  147. package/commands/sandbox/delete.d.ts +1 -4
  148. package/commands/sandbox/delete.js +7 -3
  149. package/commands/sandbox.d.ts +1 -3
  150. package/commands/sandbox.js +2 -0
  151. package/commands/secrets/addSecret.d.ts +1 -4
  152. package/commands/secrets/addSecret.js +2 -0
  153. package/commands/secrets/deleteSecret.d.ts +1 -4
  154. package/commands/secrets/deleteSecret.js +2 -0
  155. package/commands/secrets/listSecrets.d.ts +1 -4
  156. package/commands/secrets/listSecrets.js +2 -0
  157. package/commands/secrets/updateSecret.d.ts +1 -4
  158. package/commands/secrets/updateSecret.js +2 -0
  159. package/commands/secrets.d.ts +1 -3
  160. package/commands/secrets.js +2 -0
  161. package/commands/theme/generate-selectors.d.ts +1 -4
  162. package/commands/theme/generate-selectors.js +3 -1
  163. package/commands/theme/marketplace-validate.d.ts +1 -4
  164. package/commands/theme/marketplace-validate.js +3 -1
  165. package/commands/theme/preview.d.ts +1 -4
  166. package/commands/theme/preview.js +56 -46
  167. package/commands/theme.d.ts +1 -3
  168. package/commands/theme.js +2 -0
  169. package/commands/upload.d.ts +1 -4
  170. package/commands/upload.js +2 -0
  171. package/commands/watch.d.ts +1 -4
  172. package/commands/watch.js +2 -0
  173. package/lang/en.lyaml +8 -13
  174. package/lib/DevServerManager.d.ts +1 -35
  175. package/lib/DevServerManager.js +2 -0
  176. package/lib/LocalDevManager.d.ts +1 -41
  177. package/lib/LocalDevManager.js +5 -3
  178. package/lib/ProjectLogsManager.d.ts +1 -0
  179. package/lib/{projectLogsManager.js → ProjectLogsManager.js} +2 -0
  180. package/lib/accountTypes.d.ts +7 -6
  181. package/lib/accountTypes.js +31 -17
  182. package/lib/buildAccount.d.ts +1 -22
  183. package/lib/buildAccount.js +2 -0
  184. package/lib/commonOpts.d.ts +23 -17
  185. package/lib/commonOpts.js +73 -54
  186. package/lib/configOptions.d.ts +1 -0
  187. package/lib/configOptions.js +110 -0
  188. package/lib/constants.d.ts +76 -83
  189. package/lib/constants.js +21 -46
  190. package/lib/dependencyManagement.d.ts +1 -7
  191. package/lib/dependencyManagement.js +2 -0
  192. package/lib/developerTestAccounts.d.ts +1 -7
  193. package/lib/developerTestAccounts.js +2 -0
  194. package/lib/enums/exitCodes.d.ts +5 -5
  195. package/lib/enums/exitCodes.js +3 -2
  196. package/lib/errorHandlers/index.d.ts +1 -19
  197. package/lib/errorHandlers/index.js +2 -0
  198. package/lib/errorHandlers/suppressError.d.ts +1 -1
  199. package/lib/errorHandlers/suppressError.js +2 -0
  200. package/lib/filesystem.d.ts +2 -2
  201. package/lib/filesystem.js +12 -10
  202. package/lib/generateSelectors.d.ts +1 -0
  203. package/lib/{generate-selectors.js → generateSelectors.js} +3 -1
  204. package/lib/hasFeature.d.ts +1 -1
  205. package/lib/hasFeature.js +7 -8
  206. package/lib/hasFlag.d.ts +1 -2
  207. package/lib/hasFlag.js +7 -3
  208. package/lib/interpolation.d.ts +5 -10
  209. package/lib/interpolation.js +39 -45
  210. package/lib/lang.d.ts +9 -3
  211. package/lib/lang.js +38 -31
  212. package/lib/links.d.ts +1 -127
  213. package/lib/links.js +2 -0
  214. package/lib/localDev.d.ts +1 -11
  215. package/lib/localDev.js +2 -0
  216. package/lib/marketplaceValidate.d.ts +1 -0
  217. package/lib/{marketplace-validate.js → marketplaceValidate.js} +2 -0
  218. package/lib/oauth.d.ts +1 -1
  219. package/lib/oauth.js +3 -1
  220. package/lib/polling.d.ts +1 -1
  221. package/lib/polling.js +2 -0
  222. package/lib/process.d.ts +12 -2
  223. package/lib/process.js +17 -15
  224. package/lib/projectStructure.d.ts +1 -13
  225. package/lib/projectStructure.js +4 -2
  226. package/lib/projects.d.ts +1 -40
  227. package/lib/projects.js +10 -5
  228. package/lib/projectsWatch.d.ts +1 -1
  229. package/lib/projectsWatch.js +8 -3
  230. package/lib/prompts/accountNamePrompt.d.ts +1 -11
  231. package/lib/prompts/accountNamePrompt.js +3 -2
  232. package/lib/prompts/accountsPrompt.d.ts +1 -3
  233. package/lib/prompts/accountsPrompt.js +2 -17
  234. package/lib/prompts/cleanUploadPrompt.d.ts +1 -1
  235. package/lib/prompts/cleanUploadPrompt.js +2 -0
  236. package/lib/prompts/cmsFieldPrompt.d.ts +1 -1
  237. package/lib/prompts/cmsFieldPrompt.js +2 -0
  238. package/lib/prompts/createApiSamplePrompt.d.ts +1 -1
  239. package/lib/prompts/createApiSamplePrompt.js +2 -0
  240. package/lib/prompts/createFunctionPrompt.d.ts +1 -1
  241. package/lib/prompts/createFunctionPrompt.js +5 -4
  242. package/lib/prompts/createModulePrompt.d.ts +1 -1
  243. package/lib/prompts/createModulePrompt.js +2 -0
  244. package/lib/prompts/createProjectPrompt.d.ts +1 -1
  245. package/lib/prompts/createProjectPrompt.js +10 -5
  246. package/lib/prompts/createTemplatePrompt.d.ts +1 -1
  247. package/lib/prompts/createTemplatePrompt.js +2 -0
  248. package/lib/prompts/downloadProjectPrompt.d.ts +1 -1
  249. package/lib/prompts/downloadProjectPrompt.js +3 -1
  250. package/lib/prompts/installPublicAppPrompt.d.ts +1 -1
  251. package/lib/prompts/installPublicAppPrompt.js +2 -0
  252. package/lib/prompts/personalAccessKeyPrompt.d.ts +1 -69
  253. package/lib/prompts/personalAccessKeyPrompt.js +2 -0
  254. package/lib/prompts/previewPrompt.d.ts +1 -2
  255. package/lib/prompts/previewPrompt.js +2 -0
  256. package/lib/prompts/projectAddPrompt.d.ts +1 -1
  257. package/lib/prompts/projectAddPrompt.js +2 -0
  258. package/lib/prompts/projectDevTargetAccountPrompt.d.ts +1 -4
  259. package/lib/prompts/projectDevTargetAccountPrompt.js +2 -0
  260. package/lib/prompts/projectNamePrompt.d.ts +1 -1
  261. package/lib/prompts/projectNamePrompt.js +2 -0
  262. package/lib/prompts/projectsLogsPrompt.d.ts +1 -5
  263. package/lib/prompts/projectsLogsPrompt.js +2 -0
  264. package/lib/prompts/promptUtils.d.ts +12 -2
  265. package/lib/prompts/promptUtils.js +25 -12
  266. package/lib/prompts/sandboxesPrompt.d.ts +1 -2
  267. package/lib/prompts/sandboxesPrompt.js +2 -0
  268. package/lib/prompts/secretPrompt.d.ts +1 -1
  269. package/lib/prompts/secretPrompt.js +2 -0
  270. package/lib/prompts/selectPublicAppPrompt.d.ts +1 -5
  271. package/lib/prompts/selectPublicAppPrompt.js +3 -1
  272. package/lib/prompts/setAsDefaultAccountPrompt.d.ts +1 -1
  273. package/lib/prompts/setAsDefaultAccountPrompt.js +2 -0
  274. package/lib/prompts/uploadPrompt.d.ts +1 -1
  275. package/lib/prompts/uploadPrompt.js +2 -0
  276. package/lib/sandboxSync.d.ts +1 -8
  277. package/lib/sandboxSync.js +3 -1
  278. package/lib/sandboxes.d.ts +1 -40
  279. package/lib/sandboxes.js +2 -0
  280. package/lib/schema.d.ts +3 -2
  281. package/lib/schema.js +20 -18
  282. package/lib/serverlessLogs.d.ts +1 -8
  283. package/lib/serverlessLogs.js +3 -1
  284. package/lib/ui/SpinniesManager.d.ts +1 -61
  285. package/lib/ui/SpinniesManager.js +2 -0
  286. package/lib/ui/git.d.ts +1 -1
  287. package/lib/ui/git.js +2 -0
  288. package/lib/ui/index.d.ts +1 -36
  289. package/lib/ui/index.js +2 -0
  290. package/lib/ui/serverlessFunctionLogs.d.ts +1 -1
  291. package/lib/ui/serverlessFunctionLogs.js +2 -0
  292. package/lib/ui/spinniesUtils.d.ts +1 -60
  293. package/lib/ui/spinniesUtils.js +2 -0
  294. package/lib/ui/supportHyperlinks.d.ts +1 -3
  295. package/lib/ui/supportHyperlinks.js +3 -1
  296. package/lib/ui/supportsColor.d.ts +1 -13
  297. package/lib/ui/supportsColor.js +3 -1
  298. package/lib/ui/table.d.ts +1 -2
  299. package/lib/ui/table.js +2 -0
  300. package/lib/upload.d.ts +1 -1
  301. package/lib/upload.js +4 -2
  302. package/lib/usageTracking.d.ts +1 -6
  303. package/lib/usageTracking.js +12 -1
  304. package/lib/validation.d.ts +1 -16
  305. package/lib/validation.js +2 -2
  306. package/package.json +17 -9
  307. package/commands/config/set/allowUsageTracking.d.ts +0 -4
  308. package/commands/config/set/allowUsageTracking.js +0 -45
  309. package/commands/config/set/defaultMode.d.ts +0 -4
  310. package/commands/config/set/defaultMode.js +0 -48
  311. package/commands/config/set/httpTimeout.d.ts +0 -4
  312. package/commands/config/set/httpTimeout.js +0 -33
  313. package/lib/debugInfo.d.ts +0 -3
  314. package/lib/debugInfo.js +0 -18
  315. package/lib/environment.d.ts +0 -1
  316. package/lib/environment.js +0 -14
  317. package/lib/generate-selectors.d.ts +0 -6
  318. package/lib/getFunctionArrays.d.ts +0 -1
  319. package/lib/getFunctionArrays.js +0 -17
  320. package/lib/hublValidate.d.ts +0 -4
  321. package/lib/hublValidate.js +0 -28
  322. package/lib/interpolationHelpers.d.ts +0 -6
  323. package/lib/interpolationHelpers.js +0 -26
  324. package/lib/marketplace-validate.d.ts +0 -5
  325. package/lib/projectLogsManager.d.ts +0 -19
  326. package/lib/prompts/activeInstallConfirmationPrompt.d.ts +0 -1
  327. package/lib/prompts/activeInstallConfirmationPrompt.js +0 -18
  328. package/lib/prompts/deployBuildIdPrompt.d.ts +0 -1
  329. package/lib/prompts/deployBuildIdPrompt.js +0 -20
  330. package/lib/prompts/feedbackPrompt.d.ts +0 -2
  331. package/lib/prompts/feedbackPrompt.js +0 -37
  332. package/lib/prompts/folderOverwritePrompt.d.ts +0 -1
  333. package/lib/prompts/folderOverwritePrompt.js +0 -15
  334. package/lib/regex.d.ts +0 -1
  335. package/lib/regex.js +0 -5
@@ -1,4 +1,6 @@
1
1
  "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ // @ts-nocheck
2
4
  const { isSpecifiedError, isMissingScopeError, } = require('@hubspot/local-dev-lib/errors/index');
3
5
  const { logger } = require('@hubspot/local-dev-lib/logger');
4
6
  const { PLATFORM_VERSION_ERROR_TYPES } = require('../constants');
@@ -1,2 +1,2 @@
1
- export function resolveLocalPath(filepath: any): string;
2
- export function isPathFolder(path: any): boolean;
1
+ export declare function resolveLocalPath(filepath: string): string;
2
+ export declare function isPathFolder(path: string): boolean;
package/lib/filesystem.js CHANGED
@@ -1,24 +1,26 @@
1
1
  "use strict";
2
- const path = require('path');
3
- const { getCwd } = require('@hubspot/local-dev-lib/path');
4
- const { FOLDER_DOT_EXTENSIONS, } = require('@hubspot/local-dev-lib/constants/extensions');
2
+ var __importDefault = (this && this.__importDefault) || function (mod) {
3
+ return (mod && mod.__esModule) ? mod : { "default": mod };
4
+ };
5
+ Object.defineProperty(exports, "__esModule", { value: true });
6
+ exports.resolveLocalPath = resolveLocalPath;
7
+ exports.isPathFolder = isPathFolder;
8
+ const path_1 = __importDefault(require("path"));
9
+ const path_2 = require("@hubspot/local-dev-lib/path");
10
+ const extensions_1 = require("@hubspot/local-dev-lib/constants/extensions");
5
11
  function resolveLocalPath(filepath) {
6
12
  return filepath && typeof filepath === 'string'
7
- ? path.resolve(getCwd(), filepath)
13
+ ? path_1.default.resolve((0, path_2.getCwd)(), filepath)
8
14
  : // Use CWD if optional filepath is not passed.
9
- getCwd();
15
+ (0, path_2.getCwd)();
10
16
  }
11
17
  function isPathFolder(path) {
12
18
  const splitPath = path.split('/');
13
19
  const fileOrFolderName = splitPath[splitPath.length - 1];
14
20
  const splitName = fileOrFolderName.split('.');
15
21
  if (splitName.length > 1 &&
16
- FOLDER_DOT_EXTENSIONS.indexOf(splitName[1]) === -1) {
22
+ extensions_1.FOLDER_DOT_EXTENSIONS.indexOf(splitName[1]) === -1) {
17
23
  return false;
18
24
  }
19
25
  return true;
20
26
  }
21
- module.exports = {
22
- resolveLocalPath,
23
- isPathFolder,
24
- };
@@ -0,0 +1 @@
1
+ export {};
@@ -1,8 +1,10 @@
1
1
  "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ // @ts-nocheck
2
4
  const fs = require('fs');
3
5
  const { EXIT_CODES } = require('./enums/exitCodes');
4
6
  const { logger } = require('@hubspot/local-dev-lib/logger');
5
- const { i18n } = require('../lib/lang');
7
+ const { i18n } = require('./lang');
6
8
  const CSS_COMMENTS_REGEX = new RegExp(/\/\*.*\*\//, 'g');
7
9
  const CSS_PSEUDO_CLASS_REGEX = new RegExp(/:active|:checked|:disabled|:empty|:enabled|:first-of-type|:focus|:hover|:in-range|:invalid|:link|:optional|:out-of-range|:read-only|:read-write|:required|:target|:valid|:visited/, 'g');
8
10
  const i18nKey = 'commands.theme.subcommands.generateSelectors';
@@ -1 +1 @@
1
- export function hasFeature(accountId: any, feature: any): Promise<boolean>;
1
+ export declare function hasFeature(accountId: number, feature: string): Promise<boolean>;
package/lib/hasFeature.js CHANGED
@@ -1,9 +1,8 @@
1
1
  "use strict";
2
- const { fetchEnabledFeatures, } = require('@hubspot/local-dev-lib/api/localDevAuth');
3
- const hasFeature = async (accountId, feature) => {
4
- const { data: { enabledFeatures }, } = await fetchEnabledFeatures(accountId);
5
- return enabledFeatures[feature];
6
- };
7
- module.exports = {
8
- hasFeature,
9
- };
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.hasFeature = hasFeature;
4
+ const localDevAuth_1 = require("@hubspot/local-dev-lib/api/localDevAuth");
5
+ async function hasFeature(accountId, feature) {
6
+ const { data: { enabledFeatures }, } = await (0, localDevAuth_1.fetchEnabledFeatures)(accountId);
7
+ return Boolean(enabledFeatures[feature]);
8
+ }
package/lib/hasFlag.d.ts CHANGED
@@ -1,2 +1 @@
1
- export = hasFlag;
2
- declare function hasFlag(flag: any, argv?: string[]): boolean;
1
+ export declare function hasFlag(flag: string, argv?: string[]): boolean;
package/lib/hasFlag.js CHANGED
@@ -1,11 +1,15 @@
1
1
  "use strict";
2
- const process = require('process');
2
+ var __importDefault = (this && this.__importDefault) || function (mod) {
3
+ return (mod && mod.__esModule) ? mod : { "default": mod };
4
+ };
5
+ Object.defineProperty(exports, "__esModule", { value: true });
6
+ exports.hasFlag = hasFlag;
7
+ const process_1 = __importDefault(require("process"));
3
8
  // See https://github.com/sindresorhus/has-flag/blob/main/index.js (License: https://github.com/sindresorhus/has-flag/blob/main/license)
4
- function hasFlag(flag, argv = process.argv) {
9
+ function hasFlag(flag, argv = process_1.default.argv) {
5
10
  const prefix = flag.startsWith('-') ? '' : flag.length === 1 ? '-' : '--';
6
11
  const position = argv.indexOf(prefix + flag);
7
12
  const terminatorPosition = argv.indexOf('--');
8
13
  return (position !== -1 &&
9
14
  (terminatorPosition === -1 || position < terminatorPosition));
10
15
  }
11
- module.exports = hasFlag;
@@ -1,10 +1,5 @@
1
- /**
2
- * Interpolate a string with data and compile helpers on the string
3
- * @param {string} stringValue - The string to interpolate
4
- * @param {object} interpolationData - The data to interpolate with
5
- * @returns {string} - The interpolated and helper-compiled string
6
- * @example
7
- * interpolateAndCompile('Some {{#bold}}{{text}}{{/bold}} text', { text: 'awesomely bold' })
8
- * // 'Some awsomely bold text' (with the words 'awesomely bold' in bold)
9
- */
10
- export function interpolate(stringValue: string, interpolationData: object): string;
1
+ type InterpolationData = {
2
+ [identifier: string]: string | number;
3
+ };
4
+ export declare function interpolate(stringValue: string, interpolationData: InterpolationData): string;
5
+ export {};
@@ -1,5 +1,30 @@
1
1
  "use strict";
2
- const helpers = require('./interpolationHelpers');
2
+ var __importDefault = (this && this.__importDefault) || function (mod) {
3
+ return (mod && mod.__esModule) ? mod : { "default": mod };
4
+ };
5
+ Object.defineProperty(exports, "__esModule", { value: true });
6
+ exports.interpolate = interpolate;
7
+ const chalk_1 = __importDefault(require("chalk"));
8
+ const helpers = {
9
+ bold: function (stringValue) {
10
+ return chalk_1.default.bold(stringValue);
11
+ },
12
+ yellow: function (stringValue) {
13
+ return chalk_1.default.reset.yellow(stringValue);
14
+ },
15
+ green: function (stringValue) {
16
+ return chalk_1.default.reset.green(stringValue);
17
+ },
18
+ red: function (stringValue) {
19
+ return chalk_1.default.reset.red(stringValue);
20
+ },
21
+ cyan: function (stringValue) {
22
+ return chalk_1.default.cyan(stringValue);
23
+ },
24
+ orange: function (stringValue) {
25
+ return chalk_1.default.hex('#FC9900')(stringValue);
26
+ },
27
+ };
3
28
  const delimiters = {
4
29
  interpolation: {
5
30
  start: '{{',
@@ -10,25 +35,16 @@ const delimiters = {
10
35
  end: '/',
11
36
  },
12
37
  };
13
- const isHelperIdentifier = identifier => {
38
+ function isHelperIdentifier(identifier) {
14
39
  return (identifier.startsWith(delimiters.helpers.start) ||
15
40
  identifier.startsWith(delimiters.helpers.end));
16
- };
17
- const generateReplaceFn = (matchedText, startIndex, replacementString) => {
41
+ }
42
+ function generateReplaceFn(matchedText, startIndex, replacementString) {
18
43
  return currentStringValue => `${currentStringValue.slice(0, startIndex)}${replacementString !== null && replacementString !== undefined
19
44
  ? replacementString
20
45
  : ''}${currentStringValue.slice(startIndex + matchedText.length)}`;
21
- };
22
- /**
23
- * Interpolate a string with data
24
- * @param {string} stringValue - The string to interpolate
25
- * @param {object} interpolationData - The data to interpolate with
26
- * @returns {string} - The interpolated string
27
- * @example
28
- * interpolation('Hello {{name}}', { name: 'World' })
29
- * // 'Hello World'
30
- */
31
- const interpolation = (stringValue, interpolationData) => {
46
+ }
47
+ function interpolation(stringValue, interpolationData) {
32
48
  const interpolationIdentifierRegEx = new RegExp(`${delimiters.interpolation.start}(.*?)${delimiters.interpolation.end}`, 'g');
33
49
  const replaceQueue = [];
34
50
  let match;
@@ -38,23 +54,13 @@ const interpolation = (stringValue, interpolationData) => {
38
54
  const { 0: matchedText, 1: rawIdentifier, index } = match;
39
55
  const identifier = rawIdentifier.trim();
40
56
  if (identifier && !isHelperIdentifier(identifier)) {
41
- replaceQueue.unshift(generateReplaceFn(matchedText, index, interpolationData[identifier]));
57
+ replaceQueue.unshift(generateReplaceFn(matchedText, index, String(interpolationData[identifier])));
42
58
  }
43
59
  }
44
60
  const compiledString = replaceQueue.reduce((currentValue, replaceFn) => replaceFn(currentValue), stringValue);
45
61
  return compiledString;
46
- };
47
- /**
48
- * Compile a string using a specified helper function
49
- * @param {string} stringValue - The string to modify
50
- * @param {object} helperIdentifier - Helper name
51
- * @param {function} helperFn - Helper function to call on string
52
- * @returns {string} - The modified string
53
- * @example
54
- * compileHelper('White {{#yellow}}yellow{{/yellow}}', 'yellow', (string) => { chalk.reset.yellow(string) }))))
55
- * // 'White yellow' (with 'yellow' colored yellow)
56
- */
57
- const compileHelper = (stringValue, helperIdentifier, helperFn) => {
62
+ }
63
+ function compileHelper(stringValue, helperIdentifier, helperFn) {
58
64
  const helperIdentifierRegEx = new RegExp(`${delimiters.interpolation.start}(${delimiters.helpers.start}${helperIdentifier})${delimiters.interpolation.end}(.*?)${delimiters.interpolation.start}(${delimiters.helpers.end}${helperIdentifier})${delimiters.interpolation.end}`, 'g');
59
65
  const replaceQueue = [];
60
66
  let match;
@@ -71,26 +77,14 @@ const compileHelper = (stringValue, helperIdentifier, helperFn) => {
71
77
  }
72
78
  const compiledString = replaceQueue.reduce((currentValue, replaceFn) => replaceFn(currentValue), stringValue);
73
79
  return compiledString;
74
- };
75
- const compileHelpers = stringValue => {
80
+ }
81
+ function compileHelpers(stringValue) {
76
82
  return Object.keys(helpers).reduce((currentStringValue, helperIdentifier) => {
77
83
  return compileHelper(currentStringValue, helperIdentifier, helpers[helperIdentifier]);
78
84
  }, stringValue);
79
- };
80
- /**
81
- * Interpolate a string with data and compile helpers on the string
82
- * @param {string} stringValue - The string to interpolate
83
- * @param {object} interpolationData - The data to interpolate with
84
- * @returns {string} - The interpolated and helper-compiled string
85
- * @example
86
- * interpolateAndCompile('Some {{#bold}}{{text}}{{/bold}} text', { text: 'awesomely bold' })
87
- * // 'Some awsomely bold text' (with the words 'awesomely bold' in bold)
88
- */
89
- const interpolate = (stringValue, interpolationData) => {
85
+ }
86
+ function interpolate(stringValue, interpolationData) {
90
87
  const interpolatedString = interpolation(stringValue, interpolationData);
91
88
  const helperCompiledString = compileHelpers(interpolatedString);
92
89
  return helperCompiledString;
93
- };
94
- module.exports = {
95
- interpolate,
96
- };
90
+ }
package/lib/lang.d.ts CHANGED
@@ -1,3 +1,9 @@
1
- export function i18n(lookupDotNotation: any, options?: {}): any;
2
- export function setLangData(newLocale: any, newLangObj: any): void;
3
- export const MISSING_LANGUAGE_DATA_PREFIX: "[Missing language data]";
1
+ export declare const MISSING_LANGUAGE_DATA_PREFIX = "[Missing language data]";
2
+ type LanguageObject = {
3
+ [key: string]: string | LanguageObject;
4
+ };
5
+ export declare function i18n(lookupDotNotation: string, options?: {
6
+ [identifier: string]: string | number;
7
+ }): string;
8
+ export declare function setLangData(newLocale: string, newLangObj: LanguageObject): void;
9
+ export {};
package/lib/lang.js CHANGED
@@ -1,53 +1,65 @@
1
1
  "use strict";
2
- const util = require('util');
3
- const path = require('path');
4
- const fs = require('fs-extra');
5
- const yaml = require('js-yaml');
6
- const { logger } = require('@hubspot/local-dev-lib/logger');
7
- const { interpolate } = require('./interpolation');
8
- const MISSING_LANGUAGE_DATA_PREFIX = '[Missing language data]';
2
+ var __importDefault = (this && this.__importDefault) || function (mod) {
3
+ return (mod && mod.__esModule) ? mod : { "default": mod };
4
+ };
5
+ Object.defineProperty(exports, "__esModule", { value: true });
6
+ exports.MISSING_LANGUAGE_DATA_PREFIX = void 0;
7
+ exports.i18n = i18n;
8
+ exports.setLangData = setLangData;
9
+ const util_1 = __importDefault(require("util"));
10
+ const path_1 = __importDefault(require("path"));
11
+ const fs_extra_1 = __importDefault(require("fs-extra"));
12
+ const js_yaml_1 = __importDefault(require("js-yaml"));
13
+ const logger_1 = require("@hubspot/local-dev-lib/logger");
14
+ const interpolation_1 = require("./interpolation");
15
+ exports.MISSING_LANGUAGE_DATA_PREFIX = '[Missing language data]';
9
16
  let locale;
10
17
  let languageObj;
11
- const loadLanguageFromYaml = () => {
18
+ function loadLanguageFromYaml() {
12
19
  if (languageObj)
13
20
  return;
14
21
  try {
15
22
  const nodeLocale = Intl.DateTimeFormat()
16
23
  .resolvedOptions()
17
24
  .locale.split('-')[0];
18
- const languageFilePath = path.join(__dirname, `../lang/${nodeLocale}.lyaml`);
19
- const languageFileExists = fs.existsSync(languageFilePath);
25
+ const languageFilePath = path_1.default.join(__dirname, `../lang/${nodeLocale}.lyaml`);
26
+ const languageFileExists = fs_extra_1.default.existsSync(languageFilePath);
20
27
  // Fall back to using the default language file
21
28
  locale = languageFileExists ? nodeLocale : 'en';
22
- languageObj = yaml.load(fs.readFileSync(path.join(__dirname, `../lang/${locale}.lyaml`), 'utf8'));
23
- logger.debug('Loaded language data: ', util.inspect(languageObj, true, 999, true));
29
+ languageObj = js_yaml_1.default.load(fs_extra_1.default.readFileSync(path_1.default.join(__dirname, `../lang/${locale}.lyaml`), 'utf8'));
30
+ logger_1.logger.debug('Loaded language data: ', util_1.default.inspect(languageObj, true, 999, true));
24
31
  }
25
32
  catch (e) {
26
- logger.error('Error loading language data: ', e);
33
+ logger_1.logger.error('Error loading language data: ', e);
27
34
  }
28
- };
29
- const getTextValue = lookupDotNotation => {
35
+ }
36
+ function getTextValue(lookupDotNotation) {
30
37
  const lookupProps = [locale, ...lookupDotNotation.split('.')];
31
- const missingTextData = `${MISSING_LANGUAGE_DATA_PREFIX}: ${lookupProps.join('.')}`;
38
+ const missingTextData = `${exports.MISSING_LANGUAGE_DATA_PREFIX}: ${lookupProps.join('.')}`;
32
39
  let textValue = languageObj;
33
40
  let previouslyCheckedProp = lookupProps[0];
34
41
  try {
35
42
  lookupProps.forEach(prop => {
36
- textValue = textValue[prop];
43
+ if (textValue && typeof textValue === 'object') {
44
+ textValue = textValue[prop];
45
+ }
37
46
  previouslyCheckedProp = prop;
38
47
  });
39
48
  }
40
49
  catch (e) {
41
- logger.debug(`Unable to access language property: ${lookupProps.join('.')}. Failed to access prop "${previouslyCheckedProp}".`);
42
- logger.error('Unable to access language property.');
50
+ logger_1.logger.debug(`Unable to access language property: ${lookupProps.join('.')}. Failed to access prop "${previouslyCheckedProp}".`);
51
+ logger_1.logger.error('Unable to access language property.');
43
52
  return missingTextData;
44
53
  }
45
54
  if (!textValue) {
46
55
  return missingTextData;
47
56
  }
57
+ if (typeof textValue !== 'string') {
58
+ return missingTextData;
59
+ }
48
60
  return textValue;
49
- };
50
- const i18n = (lookupDotNotation, options = {}) => {
61
+ }
62
+ function i18n(lookupDotNotation, options = {}) {
51
63
  if (!languageObj) {
52
64
  loadLanguageFromYaml();
53
65
  }
@@ -55,15 +67,10 @@ const i18n = (lookupDotNotation, options = {}) => {
55
67
  throw new Error(`i18n must be passed a string value for lookupDotNotation, received ${typeof lookupDotNotation}`);
56
68
  }
57
69
  const textValue = getTextValue(lookupDotNotation);
58
- const shouldInterpolate = !textValue.startsWith(MISSING_LANGUAGE_DATA_PREFIX);
59
- return shouldInterpolate ? interpolate(textValue, options) : textValue;
60
- };
61
- const setLangData = (newLocale, newLangObj) => {
70
+ const shouldInterpolate = !textValue.startsWith(exports.MISSING_LANGUAGE_DATA_PREFIX);
71
+ return shouldInterpolate ? (0, interpolation_1.interpolate)(textValue, options) : textValue;
72
+ }
73
+ function setLangData(newLocale, newLangObj) {
62
74
  locale = newLocale;
63
75
  languageObj = newLangObj;
64
- };
65
- module.exports = {
66
- i18n,
67
- setLangData,
68
- MISSING_LANGUAGE_DATA_PREFIX,
69
- };
76
+ }
package/lib/links.d.ts CHANGED
@@ -1,127 +1 @@
1
- export function getSiteLinks(accountId: any): {
2
- APPS_MARKETPLACE: {
3
- shortcut: string;
4
- alias: string;
5
- url: string;
6
- };
7
- ASSET_MARKETPLACE: {
8
- shortcut: string;
9
- alias: string;
10
- url: string;
11
- };
12
- CONTENT_STAGING: {
13
- shortcut: string;
14
- alias: string;
15
- url: string;
16
- };
17
- DESIGN_MANAGER: {
18
- shortcut: string;
19
- alias: string;
20
- url: string;
21
- };
22
- DOCS: {
23
- shortcut: string;
24
- url: string;
25
- };
26
- FILE_MANAGER: {
27
- shortcut: string;
28
- alias: string;
29
- url: string;
30
- };
31
- FORUMS: {
32
- shortcut: string;
33
- url: string;
34
- };
35
- HUBDB: {
36
- shortcut: string;
37
- alias: string;
38
- url: string;
39
- };
40
- SETTINGS: {
41
- shortcut: string;
42
- alias: string;
43
- url: string;
44
- };
45
- SETTINGS_NAVIGATION: {
46
- shortcut: string;
47
- alias: string;
48
- url: string;
49
- };
50
- SETTINGS_WEBSITE: {
51
- shortcut: string;
52
- alias: string;
53
- url: string;
54
- };
55
- SETTINGS_URL_REDIRECTS: {
56
- shortcut: string;
57
- alias: string;
58
- url: string;
59
- };
60
- PURCHASED_ASSETS: {
61
- shortcut: string;
62
- alias: string;
63
- url: string;
64
- };
65
- WEBSITE_PAGES: {
66
- shortcut: string;
67
- alias: string;
68
- url: string;
69
- };
70
- };
71
- export function getSiteLinksAsArray(accountId: any): ({
72
- shortcut: string;
73
- alias: string;
74
- url: string;
75
- } | {
76
- shortcut: string;
77
- alias: string;
78
- url: string;
79
- } | {
80
- shortcut: string;
81
- alias: string;
82
- url: string;
83
- } | {
84
- shortcut: string;
85
- alias: string;
86
- url: string;
87
- } | {
88
- shortcut: string;
89
- url: string;
90
- } | {
91
- shortcut: string;
92
- alias: string;
93
- url: string;
94
- } | {
95
- shortcut: string;
96
- url: string;
97
- } | {
98
- shortcut: string;
99
- alias: string;
100
- url: string;
101
- } | {
102
- shortcut: string;
103
- alias: string;
104
- url: string;
105
- } | {
106
- shortcut: string;
107
- alias: string;
108
- url: string;
109
- } | {
110
- shortcut: string;
111
- alias: string;
112
- url: string;
113
- } | {
114
- shortcut: string;
115
- alias: string;
116
- url: string;
117
- } | {
118
- shortcut: string;
119
- alias: string;
120
- url: string;
121
- } | {
122
- shortcut: string;
123
- alias: string;
124
- url: string;
125
- })[];
126
- export function logSiteLinks(accountId: any): void;
127
- export function openLink(accountId: any, shortcut: any): void;
1
+ export {};
package/lib/links.js CHANGED
@@ -1,4 +1,6 @@
1
1
  "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ // @ts-nocheck
2
4
  const { getEnv } = require('@hubspot/local-dev-lib/config');
3
5
  const { ENVIRONMENTS, } = require('@hubspot/local-dev-lib/constants/environments');
4
6
  const { getHubSpotWebsiteOrigin } = require('@hubspot/local-dev-lib/urls');
package/lib/localDev.d.ts CHANGED
@@ -1,11 +1 @@
1
- export function confirmDefaultAccountIsTarget(accountConfig: any): Promise<void>;
2
- export function checkIfDefaultAccountIsSupported(accountConfig: any, hasPublicApps: any): void;
3
- export function checkIfAccountFlagIsSupported(accountConfig: any, hasPublicApps: any): void;
4
- export function suggestRecommendedNestedAccount(accounts: any, accountConfig: any, hasPublicApps: any): Promise<any>;
5
- export function createSandboxForLocalDev(accountId: any, accountConfig: any, env: any): Promise<any>;
6
- export function createDeveloperTestAccountForLocalDev(accountId: any, accountConfig: any, env: any): Promise<any>;
7
- export function useExistingDevTestAccount(env: any, account: any): Promise<void>;
8
- export function createNewProjectForLocalDev(projectConfig: any, targetAccountId: any, shouldCreateWithoutConfirmation: any, hasPublicApps: any): Promise<import("@hubspot/local-dev-lib/types/Project").Project>;
9
- export function createInitialBuildForNewProject(projectConfig: any, projectDir: any, targetAccountId: any): Promise<any>;
10
- export function getAccountHomeUrl(accountId: any): string;
11
- export function checkIfParentAccountIsAuthed(accountConfig: any): void;
1
+ export {};
package/lib/localDev.js CHANGED
@@ -1,4 +1,6 @@
1
1
  "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ // @ts-nocheck
2
4
  const { logger } = require('@hubspot/local-dev-lib/logger');
3
5
  const { HUBSPOT_ACCOUNT_TYPES, HUBSPOT_ACCOUNT_TYPE_STRINGS, } = require('@hubspot/local-dev-lib/constants/config');
4
6
  const { isMissingScopeError, isSpecifiedError, } = require('@hubspot/local-dev-lib/errors/index');
@@ -0,0 +1 @@
1
+ export {};
@@ -1,4 +1,6 @@
1
1
  "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ // @ts-nocheck
2
4
  const chalk = require('chalk');
3
5
  const { logger } = require('@hubspot/local-dev-lib/logger');
4
6
  const { requestValidation, getValidationStatus, getValidationResults, } = require('@hubspot/local-dev-lib/api/marketplaceValidation');
package/lib/oauth.d.ts CHANGED
@@ -1 +1 @@
1
- export function authenticateWithOauth(configData: any): Promise<void>;
1
+ export {};
package/lib/oauth.js CHANGED
@@ -1,4 +1,6 @@
1
1
  "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ // @ts-nocheck
2
4
  const express = require('express');
3
5
  const open = require('open');
4
6
  const { OAuth2Manager, } = require('@hubspot/local-dev-lib/models/OAuth2Manager');
@@ -19,7 +21,7 @@ const buildAuthUrl = oauthManager => {
19
21
  };
20
22
  const handleServerOnProcessEnd = server => {
21
23
  const shutdownServerIfRunning = () => {
22
- server && server.close();
24
+ server?.close();
23
25
  };
24
26
  handleExit(shutdownServerIfRunning);
25
27
  };
package/lib/polling.d.ts CHANGED
@@ -1 +1 @@
1
- export function poll(callback: any, accountId: any, taskId: any): Promise<any>;
1
+ export {};
package/lib/polling.js CHANGED
@@ -1,4 +1,6 @@
1
1
  "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ // @ts-nocheck
2
4
  const { POLLING_DELAY, POLLING_STATUS } = require('./constants');
3
5
  const poll = (callback, accountId, taskId) => {
4
6
  return new Promise((resolve, reject) => {
package/lib/process.d.ts CHANGED
@@ -1,2 +1,12 @@
1
- export function handleExit(callback: any): void;
2
- export function handleKeypress(callback: any): void;
1
+ interface KeyPress {
2
+ ctrl?: boolean;
3
+ shift?: boolean;
4
+ alt?: boolean;
5
+ meta?: boolean;
6
+ name?: string;
7
+ }
8
+ export declare function handleExit(callback: (onTerminate: {
9
+ isSIGHUP: boolean;
10
+ }) => void): void;
11
+ export declare function handleKeypress(callback: (onKeyPress: KeyPress) => void): void;
12
+ export {};
package/lib/process.js CHANGED
@@ -1,9 +1,15 @@
1
1
  "use strict";
2
- const readline = require('readline');
3
- const { logger, setLogLevel, LOG_LEVEL, } = require('@hubspot/local-dev-lib/logger');
4
- const { i18n } = require('./lang');
2
+ var __importDefault = (this && this.__importDefault) || function (mod) {
3
+ return (mod && mod.__esModule) ? mod : { "default": mod };
4
+ };
5
+ Object.defineProperty(exports, "__esModule", { value: true });
6
+ exports.handleExit = handleExit;
7
+ exports.handleKeypress = handleKeypress;
8
+ const readline_1 = __importDefault(require("readline"));
9
+ const logger_1 = require("@hubspot/local-dev-lib/logger");
10
+ const lang_1 = require("./lang");
5
11
  const i18nKey = 'lib.process';
6
- const handleExit = callback => {
12
+ function handleExit(callback) {
7
13
  const terminationSignals = [
8
14
  'beforeExit',
9
15
  'SIGINT', // Terminal trying to interrupt (Ctrl + C)
@@ -23,17 +29,17 @@ const handleExit = callback => {
23
29
  const isSIGHUP = signal === 'SIGHUP';
24
30
  // Prevent logs when terminal closes
25
31
  if (isSIGHUP) {
26
- setLogLevel(LOG_LEVEL.NONE);
32
+ (0, logger_1.setLogLevel)(logger_1.LOG_LEVEL.NONE);
27
33
  }
28
- logger.debug(i18n(`${i18nKey}.exitDebug`, { signal }));
34
+ logger_1.logger.debug((0, lang_1.i18n)(`${i18nKey}.exitDebug`, { signal }));
29
35
  await callback({ isSIGHUP });
30
36
  }
31
37
  });
32
38
  });
33
- };
34
- const handleKeypress = callback => {
35
- readline.createInterface(process.stdin, process.stdout);
36
- readline.emitKeypressEvents(process.stdin);
39
+ }
40
+ function handleKeypress(callback) {
41
+ readline_1.default.createInterface(process.stdin, process.stdout);
42
+ readline_1.default.emitKeypressEvents(process.stdin);
37
43
  if (process.stdin.isTTY) {
38
44
  process.stdin.setRawMode(true);
39
45
  }
@@ -43,8 +49,4 @@ const handleKeypress = callback => {
43
49
  callback(key);
44
50
  }
45
51
  });
46
- };
47
- module.exports = {
48
- handleExit,
49
- handleKeypress,
50
- };
52
+ }