@hubspot/cms-dev-server 0.18.21 → 0.18.23

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/dist/index.js CHANGED
@@ -1461,7 +1461,7 @@ function trackUsage(action) {
1461
1461
  eventName: EVENT_NAME,
1462
1462
  action,
1463
1463
  nodeVersion: getNodeVersionData(),
1464
- version: "0.18.21",
1464
+ version: "0.18.23",
1465
1465
  os: getPlatform()
1466
1466
  };
1467
1467
  const url3 = isAuthedWithPersonalAccessKey ? DEV_SERVER_USAGE_ENDPOINT_AUTHENTICATED : DEV_SERVER_USAGE_ENDPOINT;
@@ -3961,6 +3961,7 @@ var templateRouteHandler = async (request2, response) => {
3961
3961
  hsLocalProxyProject: localProxyProject,
3962
3962
  localProxySchemaVersion: "2",
3963
3963
  hsLoginVerifyDisabled: `${true}`,
3964
+ hsCacheBuster: Date.now().toString(),
3964
3965
  ...request2.query
3965
3966
  };
3966
3967
  const previewUrl = new URL(getPreviewUrl(request2, params));
@@ -4069,11 +4070,10 @@ async function getDevServerUIData(reqLocals, viteServer) {
4069
4070
  let hubLModuleData = { objects: [] };
4070
4071
  let hubLTemplateData = { objects: [] };
4071
4072
  if (authedPortalId) {
4072
- hubLModuleData = await fetchHubLModules(authedPortalId, localPreviewToken);
4073
- hubLTemplateData = await fetchPreviewTemplates(
4074
- authedPortalId,
4075
- localPreviewToken
4076
- );
4073
+ [hubLModuleData, hubLTemplateData] = await Promise.all([
4074
+ fetchHubLModules(authedPortalId, localPreviewToken),
4075
+ fetchPreviewTemplates(authedPortalId, localPreviewToken)
4076
+ ]);
4077
4077
  }
4078
4078
  const hubLTemplates = (hubLTemplateData == null ? void 0 : hubLTemplateData.objects.filter(
4079
4079
  (template) => isCodedFile(template.filename)
package/dist/run.js CHANGED
@@ -2,14 +2,12 @@
2
2
 
3
3
  // src/lib/instrument.ts
4
4
  import * as Sentry from "@sentry/node";
5
- import { nodeProfilingIntegration } from "@sentry/profiling-node";
6
5
  var isDev = process.env.NODE_ENV === "development";
7
6
  var DSN_KEY = "f50d34a51498b37c8da9e9cba13be20a";
8
7
  var domain = isDev ? "exceptions-na1.hubspotqa.com" : "exceptions-na1.hubspot.com";
9
8
  var SENTRY_DSN = `https://${DSN_KEY}@${domain}/v2/1`;
10
9
  Sentry.init({
11
10
  dsn: SENTRY_DSN,
12
- integrations: [nodeProfilingIntegration()],
13
11
  tracesSampleRate: 1
14
12
  // profilesSampleRate: 1.0,
15
13
  });
@@ -2095,7 +2093,7 @@ function trackUsage(action) {
2095
2093
  eventName: EVENT_NAME,
2096
2094
  action,
2097
2095
  nodeVersion: getNodeVersionData(),
2098
- version: "0.18.21",
2096
+ version: "0.18.23",
2099
2097
  os: getPlatform()
2100
2098
  };
2101
2099
  const url3 = isAuthedWithPersonalAccessKey ? DEV_SERVER_USAGE_ENDPOINT_AUTHENTICATED : DEV_SERVER_USAGE_ENDPOINT;
@@ -4595,6 +4593,7 @@ var templateRouteHandler = async (request2, response) => {
4595
4593
  hsLocalProxyProject: localProxyProject,
4596
4594
  localProxySchemaVersion: "2",
4597
4595
  hsLoginVerifyDisabled: `${true}`,
4596
+ hsCacheBuster: Date.now().toString(),
4598
4597
  ...request2.query
4599
4598
  };
4600
4599
  const previewUrl = new URL(getPreviewUrl(request2, params));
@@ -4703,11 +4702,10 @@ async function getDevServerUIData(reqLocals, viteServer) {
4703
4702
  let hubLModuleData = { objects: [] };
4704
4703
  let hubLTemplateData = { objects: [] };
4705
4704
  if (authedPortalId) {
4706
- hubLModuleData = await fetchHubLModules(authedPortalId, localPreviewToken);
4707
- hubLTemplateData = await fetchPreviewTemplates(
4708
- authedPortalId,
4709
- localPreviewToken
4710
- );
4705
+ [hubLModuleData, hubLTemplateData] = await Promise.all([
4706
+ fetchHubLModules(authedPortalId, localPreviewToken),
4707
+ fetchPreviewTemplates(authedPortalId, localPreviewToken)
4708
+ ]);
4711
4709
  }
4712
4710
  const hubLTemplates = (hubLTemplateData == null ? void 0 : hubLTemplateData.objects.filter(
4713
4711
  (template) => isCodedFile(template.filename)
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@hubspot/cms-dev-server",
3
- "version": "0.18.21",
3
+ "version": "0.18.23",
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": "^0.18.21",
32
+ "@hubspot/cms-components": "^0.18.23",
33
33
  "@hubspot/local-dev-lib": "2.0.1",
34
34
  "@inquirer/select": "^2.0.0",
35
35
  "@originjs/vite-plugin-commonjs": "^1.0.3",
@@ -37,8 +37,7 @@
37
37
  "@radix-ui/react-separator": "^1.1.0",
38
38
  "@radix-ui/react-slot": "^1.1.0",
39
39
  "@radix-ui/react-tooltip": "^1.1.4",
40
- "@sentry/node": "^8.37.1",
41
- "@sentry/profiling-node": "^8.37.1",
40
+ "@sentry/node": "^6.2.0",
42
41
  "@storybook/addon-actions": "7.1.1",
43
42
  "@storybook/addon-essentials": "7.1.1",
44
43
  "@storybook/addon-interactions": "7.1.1",
@@ -132,5 +131,5 @@
132
131
  "publishConfig": {
133
132
  "access": "public"
134
133
  },
135
- "gitHead": "58ea12dba6e09b4ce4913d563c80d89429efc5e3"
134
+ "gitHead": "c3cfb77f497177529d5b6011df5b4f32b999e4e2"
136
135
  }