@hubspot/cms-dev-server 1.2.49 → 1.2.50

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.
@@ -570,11 +570,11 @@ function getDepsForPackageIfExists(packagePath2) {
570
570
  try {
571
571
  return getDepsForPackage(packagePath2);
572
572
  } catch (e) {
573
- console.log("No package.json at ", packagePath2);
573
+ console.warn("No package.json at ", packagePath2);
574
574
  return [];
575
575
  }
576
576
  }
577
- async function createViteDevServer(webRoot, port, sslEnabled, domainsToProxy = [], jsRenderingGates, secretNames) {
577
+ async function createViteDevServer(webRoot, port, sslEnabled, domainsToProxy = [], jsRenderingGates, secretNames, logLevel) {
578
578
  const additionalMkcertHosts = domainsToProxy.map((proxyDomain) => [
579
579
  `${proxyDomain}.localhost`,
580
580
  `${proxyDomain}.hslocal.net`
@@ -625,6 +625,7 @@ Custom origin: ${process.env.VITE_ORIGIN}
625
625
  noncePlaceholderPlugin()
626
626
  ] : [];
627
627
  const viteConfig = {
628
+ logLevel,
628
629
  appType: "custom",
629
630
  server: {
630
631
  middlewareMode: true,
package/dist/index.js CHANGED
@@ -1140,11 +1140,11 @@ function getDepsForPackageIfExists(packagePath2) {
1140
1140
  try {
1141
1141
  return getDepsForPackage(packagePath2);
1142
1142
  } catch (e) {
1143
- console.log("No package.json at ", packagePath2);
1143
+ console.warn("No package.json at ", packagePath2);
1144
1144
  return [];
1145
1145
  }
1146
1146
  }
1147
- async function createViteDevServer(webRoot, port, sslEnabled, domainsToProxy = [], jsRenderingGates, secretNames) {
1147
+ async function createViteDevServer(webRoot, port, sslEnabled, domainsToProxy = [], jsRenderingGates, secretNames, logLevel) {
1148
1148
  const additionalMkcertHosts = domainsToProxy.map((proxyDomain) => [
1149
1149
  `${proxyDomain}.localhost`,
1150
1150
  `${proxyDomain}.hslocal.net`
@@ -1195,6 +1195,7 @@ Custom origin: ${process.env.VITE_ORIGIN}
1195
1195
  noncePlaceholderPlugin()
1196
1196
  ] : [];
1197
1197
  const viteConfig = {
1198
+ logLevel,
1198
1199
  appType: "custom",
1199
1200
  server: {
1200
1201
  middlewareMode: true,
@@ -1650,7 +1651,7 @@ function trackUsage(action) {
1650
1651
  eventName: EVENT_NAME,
1651
1652
  action,
1652
1653
  nodeVersion: getNodeVersionData(),
1653
- version: "1.2.49",
1654
+ version: "1.2.50",
1654
1655
  os: getPlatform()
1655
1656
  };
1656
1657
  const url3 = isAuthedWithPersonalAccessKey ? DEV_SERVER_USAGE_ENDPOINT_AUTHENTICATED : DEV_SERVER_USAGE_ENDPOINT;
package/dist/run.js CHANGED
@@ -2256,7 +2256,7 @@ function trackUsage(action) {
2256
2256
  eventName: EVENT_NAME,
2257
2257
  action,
2258
2258
  nodeVersion: getNodeVersionData(),
2259
- version: "1.2.49",
2259
+ version: "1.2.50",
2260
2260
  os: getPlatform()
2261
2261
  };
2262
2262
  const url3 = isAuthedWithPersonalAccessKey ? DEV_SERVER_USAGE_ENDPOINT_AUTHENTICATED : DEV_SERVER_USAGE_ENDPOINT;
@@ -5205,11 +5205,11 @@ function getDepsForPackageIfExists(packagePath2) {
5205
5205
  try {
5206
5206
  return getDepsForPackage(packagePath2);
5207
5207
  } catch (e) {
5208
- console.log("No package.json at ", packagePath2);
5208
+ console.warn("No package.json at ", packagePath2);
5209
5209
  return [];
5210
5210
  }
5211
5211
  }
5212
- async function createViteDevServer(webRoot2, port, sslEnabled, domainsToProxy = [], jsRenderingGates, secretNames) {
5212
+ async function createViteDevServer(webRoot2, port, sslEnabled, domainsToProxy = [], jsRenderingGates, secretNames, logLevel) {
5213
5213
  const additionalMkcertHosts = domainsToProxy.map((proxyDomain) => [
5214
5214
  `${proxyDomain}.localhost`,
5215
5215
  `${proxyDomain}.hslocal.net`
@@ -5260,6 +5260,7 @@ Custom origin: ${process.env.VITE_ORIGIN}
5260
5260
  noncePlaceholderPlugin()
5261
5261
  ] : [];
5262
5262
  const viteConfig = {
5263
+ logLevel,
5263
5264
  appType: "custom",
5264
5265
  server: {
5265
5266
  middlewareMode: true,
@@ -658,11 +658,11 @@ function getDepsForPackageIfExists(packagePath2) {
658
658
  try {
659
659
  return getDepsForPackage(packagePath2);
660
660
  } catch (e) {
661
- console.log("No package.json at ", packagePath2);
661
+ console.warn("No package.json at ", packagePath2);
662
662
  return [];
663
663
  }
664
664
  }
665
- async function createViteDevServer(webRoot, port, sslEnabled, domainsToProxy = [], jsRenderingGates, secretNames) {
665
+ async function createViteDevServer(webRoot, port, sslEnabled, domainsToProxy = [], jsRenderingGates, secretNames, logLevel) {
666
666
  const additionalMkcertHosts = domainsToProxy.map((proxyDomain) => [
667
667
  `${proxyDomain}.localhost`,
668
668
  `${proxyDomain}.hslocal.net`
@@ -713,6 +713,7 @@ Custom origin: ${process.env.VITE_ORIGIN}
713
713
  noncePlaceholderPlugin()
714
714
  ] : [];
715
715
  const viteConfig = {
716
+ logLevel,
716
717
  appType: "custom",
717
718
  server: {
718
719
  middlewareMode: true,
@@ -1269,7 +1270,8 @@ async function validateModuleFields(projectRoot, moduleName) {
1269
1270
  false,
1270
1271
  [],
1271
1272
  [],
1272
- []
1273
+ [],
1274
+ "silent"
1273
1275
  );
1274
1276
  try {
1275
1277
  if (moduleName) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@hubspot/cms-dev-server",
3
- "version": "1.2.49",
3
+ "version": "1.2.50",
4
4
  "license": "Apache-2.0",
5
5
  "type": "module",
6
6
  "engines": {
@@ -29,7 +29,7 @@
29
29
  "@babel/parser": "^7.25.3",
30
30
  "@babel/traverse": "^7.25.3",
31
31
  "@babel/types": "^7.25.2",
32
- "@hubspot/cms-components": "^1.2.49",
32
+ "@hubspot/cms-components": "^1.2.50",
33
33
  "@hubspot/local-dev-lib": "5.8.2",
34
34
  "@inquirer/select": "^2.0.0",
35
35
  "@originjs/vite-plugin-commonjs": "^1.0.3",
@@ -135,5 +135,5 @@
135
135
  "publishConfig": {
136
136
  "access": "public"
137
137
  },
138
- "gitHead": "b7023ef3d880c4933ab3f1fc73a65442f7ab9059"
138
+ "gitHead": "718b360d01a8c5d30077af1ea07da28c1bb0d4f9"
139
139
  }
@@ -2,5 +2,5 @@ import { Gate } from '@hubspot/cms-js-internal';
2
2
  export declare function getPackageJson(packagePath: string): any;
3
3
  export declare function getDepsForPackage(packagePath: string): string[];
4
4
  export declare function getDepsForPackageIfExists(packagePath: string): string[];
5
- declare function createViteDevServer(webRoot: string, port: any, sslEnabled: boolean, domainsToProxy: any[], jsRenderingGates: Gate[], secretNames: string[]): Promise<import("vite").ViteDevServer>;
5
+ declare function createViteDevServer(webRoot: string, port: any, sslEnabled: boolean, domainsToProxy: any[], jsRenderingGates: Gate[], secretNames: string[], logLevel?: 'info' | 'warn' | 'error' | 'silent'): Promise<import("vite").ViteDevServer>;
6
6
  export default createViteDevServer;