@hubspot/cms-dev-server 0.15.2 → 0.15.3

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 (2) hide show
  1. package/dist/run.js +3 -2
  2. package/package.json +3 -3
package/dist/run.js CHANGED
@@ -1044,7 +1044,7 @@ function trackUsage(action) {
1044
1044
  eventName: EVENT_NAME,
1045
1045
  action,
1046
1046
  nodeVersion: getNodeVersionData(),
1047
- version: "0.15.2",
1047
+ version: "0.15.3",
1048
1048
  os: getPlatform()
1049
1049
  };
1050
1050
  const uri = isAuthedWithPersonalAccessKey ? DEV_SERVER_USAGE_ENDPOINT_AUTHENTICATED : DEV_SERVER_USAGE_ENDPOINT;
@@ -2526,7 +2526,7 @@ function proxyPathPageResourceRedirect2(req, res, next) {
2526
2526
  if (localDomains.includes(referrerDomain)) {
2527
2527
  domainToProxy = req.app.locals.domainsToProxy[0];
2528
2528
  } else {
2529
- domainToProxy = referrerDomain;
2529
+ domainToProxy = referrerDomain.replace(/\.localhost|\.hslocal\.net/, "");
2530
2530
  }
2531
2531
  } catch (e) {
2532
2532
  console.log("Error parsing referer URL:", e);
@@ -2556,6 +2556,7 @@ function proxyPathPageResourceRedirect2(req, res, next) {
2556
2556
  if (body) {
2557
2557
  proxyLogArgs.push("with body:", body);
2558
2558
  }
2559
+ console.log(...proxyLogArgs);
2559
2560
  switch (method) {
2560
2561
  case "POST":
2561
2562
  case "DELETE":
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@hubspot/cms-dev-server",
3
- "version": "0.15.2",
3
+ "version": "0.15.3",
4
4
  "license": "Apache-2.0",
5
5
  "type": "module",
6
6
  "engines": {
@@ -26,7 +26,7 @@
26
26
  },
27
27
  "dependencies": {
28
28
  "@hubspot/cli-lib": "^3.0.12",
29
- "@hubspot/cms-components": "^0.15.2",
29
+ "@hubspot/cms-components": "^0.15.3",
30
30
  "@inquirer/select": "^2.0.0",
31
31
  "@originjs/vite-plugin-commonjs": "^1.0.3",
32
32
  "@storybook/addon-actions": "7.0.7",
@@ -108,5 +108,5 @@
108
108
  "publishConfig": {
109
109
  "access": "public"
110
110
  },
111
- "gitHead": "d2bf117492d5e76eba9a6dd1addf726b77c7d7ec"
111
+ "gitHead": "52a855725f867d208232c2a7c420078748277a77"
112
112
  }