@hubspot/cms-dev-server 1.2.34 → 1.2.35

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
@@ -1236,6 +1236,7 @@ import {
1236
1236
  static as expressStatic
1237
1237
  } from "express";
1238
1238
  import { createProxyMiddleware as createProxyMiddleware2 } from "http-proxy-middleware";
1239
+ import cors from "cors";
1239
1240
 
1240
1241
  // src/routes/partial.ts
1241
1242
  import path7 from "path";
@@ -1641,7 +1642,7 @@ function trackUsage(action) {
1641
1642
  eventName: EVENT_NAME,
1642
1643
  action,
1643
1644
  nodeVersion: getNodeVersionData(),
1644
- version: "1.2.34",
1645
+ version: "1.2.35",
1645
1646
  os: getPlatform()
1646
1647
  };
1647
1648
  const url3 = isAuthedWithPersonalAccessKey ? DEV_SERVER_USAGE_ENDPOINT_AUTHENTICATED : DEV_SERVER_USAGE_ENDPOINT;
@@ -4566,6 +4567,7 @@ var createDevServerRoutes = async (viteServer, appLocals, storybookPort) => {
4566
4567
  debug(`${method}:${hostname}${url3}`);
4567
4568
  next();
4568
4569
  });
4570
+ devServerApp.use(cors());
4569
4571
  if (storybookPort) {
4570
4572
  devServerApp.use(
4571
4573
  createProxyMiddleware2(
@@ -4625,7 +4627,7 @@ import express from "express";
4625
4627
  // src/shadowDevServer/createShadowDevServerRoutes.ts
4626
4628
  import { Router as Router3 } from "express";
4627
4629
  import { getConfigAccountIfExists as getConfigAccountIfExists5 } from "@hubspot/local-dev-lib/config";
4628
- import cors from "cors";
4630
+ import cors2 from "cors";
4629
4631
  function getShadowDevServerCheckHandler(devServerPort, themePath) {
4630
4632
  return async function shadowDevServerCheckHandler(request, response) {
4631
4633
  const { query } = request;
@@ -4684,7 +4686,7 @@ async function createShadowDevServerRoutes(devServerPort, themePath) {
4684
4686
  const shadowDevServerRoutes = Router3();
4685
4687
  shadowDevServerRoutes.get(
4686
4688
  "/check-if-local-dev-server",
4687
- cors(),
4689
+ cors2(),
4688
4690
  getShadowDevServerCheckHandler(devServerPort, themePath)
4689
4691
  );
4690
4692
  return shadowDevServerRoutes;
package/dist/run.js CHANGED
@@ -858,6 +858,7 @@ import {
858
858
  static as expressStatic
859
859
  } from "express";
860
860
  import { createProxyMiddleware as createProxyMiddleware2 } from "http-proxy-middleware";
861
+ import cors from "cors";
861
862
 
862
863
  // src/routes/partial.ts
863
864
  import path9 from "path";
@@ -2248,7 +2249,7 @@ function trackUsage(action) {
2248
2249
  eventName: EVENT_NAME,
2249
2250
  action,
2250
2251
  nodeVersion: getNodeVersionData(),
2251
- version: "1.2.34",
2252
+ version: "1.2.35",
2252
2253
  os: getPlatform()
2253
2254
  };
2254
2255
  const url3 = isAuthedWithPersonalAccessKey ? DEV_SERVER_USAGE_ENDPOINT_AUTHENTICATED : DEV_SERVER_USAGE_ENDPOINT;
@@ -5390,6 +5391,7 @@ var createDevServerRoutes = async (viteServer, appLocals, storybookPort) => {
5390
5391
  debug(`${method}:${hostname}${url3}`);
5391
5392
  next();
5392
5393
  });
5394
+ devServerApp.use(cors());
5393
5395
  if (storybookPort) {
5394
5396
  devServerApp.use(
5395
5397
  createProxyMiddleware2(
@@ -5449,7 +5451,7 @@ import express from "express";
5449
5451
  // src/shadowDevServer/createShadowDevServerRoutes.ts
5450
5452
  import { Router as Router3 } from "express";
5451
5453
  import { getConfigAccountIfExists as getConfigAccountIfExists6 } from "@hubspot/local-dev-lib/config";
5452
- import cors from "cors";
5454
+ import cors2 from "cors";
5453
5455
  function getShadowDevServerCheckHandler(devServerPort, themePath) {
5454
5456
  return async function shadowDevServerCheckHandler(request, response) {
5455
5457
  const { query } = request;
@@ -5508,7 +5510,7 @@ async function createShadowDevServerRoutes(devServerPort, themePath) {
5508
5510
  const shadowDevServerRoutes = Router3();
5509
5511
  shadowDevServerRoutes.get(
5510
5512
  "/check-if-local-dev-server",
5511
- cors(),
5513
+ cors2(),
5512
5514
  getShadowDevServerCheckHandler(devServerPort, themePath)
5513
5515
  );
5514
5516
  return shadowDevServerRoutes;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@hubspot/cms-dev-server",
3
- "version": "1.2.34",
3
+ "version": "1.2.35",
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.34",
32
+ "@hubspot/cms-components": "^1.2.35",
33
33
  "@hubspot/local-dev-lib": "4.0.2",
34
34
  "@inquirer/select": "^2.0.0",
35
35
  "@originjs/vite-plugin-commonjs": "^1.0.3",
@@ -133,5 +133,5 @@
133
133
  "publishConfig": {
134
134
  "access": "public"
135
135
  },
136
- "gitHead": "435a7a7ab2f4789612846c64edaf8240671db1c7"
136
+ "gitHead": "a5fafbd967b2372ebc45952a0e62c0228c0b490e"
137
137
  }