@hubspot/local-dev-lib 0.3.6 → 0.3.8

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.
@@ -2,3 +2,4 @@ export declare const ALLOWED_EXTENSIONS: Set<string>;
2
2
  export declare const HUBL_EXTENSIONS: Set<string>;
3
3
  export declare const MODULE_EXTENSION = "module";
4
4
  export declare const FUNCTIONS_EXTENSION = "functions";
5
+ export declare const FOLDER_DOT_EXTENSIONS: string[];
@@ -1,6 +1,6 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.FUNCTIONS_EXTENSION = exports.MODULE_EXTENSION = exports.HUBL_EXTENSIONS = exports.ALLOWED_EXTENSIONS = void 0;
3
+ exports.FOLDER_DOT_EXTENSIONS = exports.FUNCTIONS_EXTENSION = exports.MODULE_EXTENSION = exports.HUBL_EXTENSIONS = exports.ALLOWED_EXTENSIONS = void 0;
4
4
  exports.ALLOWED_EXTENSIONS = new Set([
5
5
  'css',
6
6
  'js',
@@ -24,3 +24,4 @@ exports.ALLOWED_EXTENSIONS = new Set([
24
24
  exports.HUBL_EXTENSIONS = new Set(['css', 'html', 'js']);
25
25
  exports.MODULE_EXTENSION = 'module';
26
26
  exports.FUNCTIONS_EXTENSION = 'functions';
27
+ exports.FOLDER_DOT_EXTENSIONS = [exports.FUNCTIONS_EXTENSION, exports.MODULE_EXTENSION];
package/lib/cms/watch.js CHANGED
@@ -7,7 +7,7 @@ exports.watch = void 0;
7
7
  const path_1 = __importDefault(require("path"));
8
8
  const chokidar_1 = __importDefault(require("chokidar"));
9
9
  const p_queue_1 = __importDefault(require("p-queue"));
10
- const debounce_1 = require("debounce");
10
+ const debounce_1 = __importDefault(require("debounce"));
11
11
  const apiErrors_1 = require("../../errors/apiErrors");
12
12
  const handleFieldsJS_1 = require("./handleFieldsJS");
13
13
  const uploadFolder_1 = require("./uploadFolder");
@@ -34,7 +34,7 @@ function _notifyOfThemePreview(filePath, accountId) {
34
34
  previewUrl,
35
35
  }));
36
36
  }
37
- const notifyOfThemePreview = (0, debounce_1.debounce)(_notifyOfThemePreview, 1000);
37
+ const notifyOfThemePreview = (0, debounce_1.default)(_notifyOfThemePreview, 1000);
38
38
  async function uploadFile(accountId, file, dest, options, mode = null) {
39
39
  const src = options.src;
40
40
  const absoluteSrcPath = path_1.default.resolve((0, path_2.getCwd)(), file);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@hubspot/local-dev-lib",
3
- "version": "0.3.6",
3
+ "version": "0.3.8",
4
4
  "description": "Provides library functionality for HubSpot local development tooling, including the HubSpot CLI",
5
5
  "main": "lib/index.js",
6
6
  "repository": {
@@ -64,6 +64,7 @@
64
64
  "chokidar": "^3.5.3",
65
65
  "content-disposition": "^0.5.4",
66
66
  "cors": "^2.8.5",
67
+ "debounce": "^2.0.0",
67
68
  "express": "^4.18.2",
68
69
  "extract-zip": "^2.0.1",
69
70
  "findup-sync": "^5.0.0",