@hubspot/local-dev-lib 3.3.0 → 3.3.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.
package/config/index.d.ts CHANGED
@@ -22,7 +22,7 @@ export declare function updateDefaultAccount(nameOrId: string | number): void;
22
22
  export declare function renameAccount(currentName: string, newName: string): Promise<void>;
23
23
  export declare function getAccountId(nameOrId?: string | number): number | null;
24
24
  export declare function removeSandboxAccountFromConfig(nameOrId: string | number): boolean;
25
- export declare function deleteAccount(accountName: string): Promise<void>;
25
+ export declare function deleteAccount(accountName: string): Promise<void | boolean>;
26
26
  export declare function updateHttpTimeout(timeout: string): void;
27
27
  export declare function updateAllowUsageTracking(isEnabled: boolean): void;
28
28
  export declare function deleteConfigFile(): void;
package/config/index.js CHANGED
@@ -145,10 +145,10 @@ function updateDefaultAccount(nameOrId) {
145
145
  exports.updateDefaultAccount = updateDefaultAccount;
146
146
  async function renameAccount(currentName, newName) {
147
147
  if (CLIConfiguration_1.CLIConfiguration.isActive()) {
148
- CLIConfiguration_1.CLIConfiguration.renameAccount(currentName, newName);
148
+ return CLIConfiguration_1.CLIConfiguration.renameAccount(currentName, newName);
149
149
  }
150
150
  else {
151
- config_DEPRECATED.renameAccount(currentName, newName);
151
+ return config_DEPRECATED.renameAccount(currentName, newName);
152
152
  }
153
153
  }
154
154
  exports.renameAccount = renameAccount;
@@ -168,10 +168,10 @@ function removeSandboxAccountFromConfig(nameOrId) {
168
168
  exports.removeSandboxAccountFromConfig = removeSandboxAccountFromConfig;
169
169
  async function deleteAccount(accountName) {
170
170
  if (CLIConfiguration_1.CLIConfiguration.isActive()) {
171
- CLIConfiguration_1.CLIConfiguration.removeAccountFromConfig(accountName);
171
+ return CLIConfiguration_1.CLIConfiguration.removeAccountFromConfig(accountName);
172
172
  }
173
173
  else {
174
- config_DEPRECATED.deleteAccount(accountName);
174
+ return config_DEPRECATED.deleteAccount(accountName);
175
175
  }
176
176
  }
177
177
  exports.deleteAccount = deleteAccount;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@hubspot/local-dev-lib",
3
- "version": "3.3.0",
3
+ "version": "3.3.1-beta.0",
4
4
  "description": "Provides library functionality for HubSpot local development tooling, including the HubSpot CLI",
5
5
  "main": "lib/index.js",
6
6
  "repository": {