@hubspot/cms-dev-server 1.2.39 → 1.2.41

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
@@ -1642,7 +1642,7 @@ function trackUsage(action) {
1642
1642
  eventName: EVENT_NAME,
1643
1643
  action,
1644
1644
  nodeVersion: getNodeVersionData(),
1645
- version: "1.2.39",
1645
+ version: "1.2.41",
1646
1646
  os: getPlatform()
1647
1647
  };
1648
1648
  const url3 = isAuthedWithPersonalAccessKey ? DEV_SERVER_USAGE_ENDPOINT_AUTHENTICATED : DEV_SERVER_USAGE_ENDPOINT;
@@ -4828,7 +4828,7 @@ function createHttpsRedirectingServer(opts, handler) {
4828
4828
  }
4829
4829
 
4830
4830
  // src/lib/getJSRenderingGates.ts
4831
- import { fetchAccessToken } from "@hubspot/local-dev-lib/api/localDevAuth";
4831
+ import { getAccessToken } from "@hubspot/local-dev-lib/personalAccessKey";
4832
4832
 
4833
4833
  // src/lib/gates.ts
4834
4834
  function getGatesFromEnv() {
@@ -4846,9 +4846,7 @@ var mapEnabledFeaturesToGates = (enabledFeatures) => {
4846
4846
  }, []);
4847
4847
  };
4848
4848
  async function getJsRenderingGates(portalId, env2, personalAccessKey) {
4849
- const {
4850
- data: { enabledFeatures }
4851
- } = await fetchAccessToken(personalAccessKey, env2, portalId);
4849
+ const { enabledFeatures } = await getAccessToken(personalAccessKey, env2, portalId);
4852
4850
  const envGates = getGatesFromEnv();
4853
4851
  const gates = mapEnabledFeaturesToGates(enabledFeatures);
4854
4852
  const mergedGates = [...envGates, ...gates];
package/dist/run.js CHANGED
@@ -2249,7 +2249,7 @@ function trackUsage(action) {
2249
2249
  eventName: EVENT_NAME,
2250
2250
  action,
2251
2251
  nodeVersion: getNodeVersionData(),
2252
- version: "1.2.39",
2252
+ version: "1.2.41",
2253
2253
  os: getPlatform()
2254
2254
  };
2255
2255
  const url3 = isAuthedWithPersonalAccessKey ? DEV_SERVER_USAGE_ENDPOINT_AUTHENTICATED : DEV_SERVER_USAGE_ENDPOINT;
@@ -5652,7 +5652,7 @@ function createHttpsRedirectingServer(opts, handler) {
5652
5652
  }
5653
5653
 
5654
5654
  // src/lib/getJSRenderingGates.ts
5655
- import { fetchAccessToken } from "@hubspot/local-dev-lib/api/localDevAuth";
5655
+ import { getAccessToken } from "@hubspot/local-dev-lib/personalAccessKey";
5656
5656
 
5657
5657
  // src/lib/gates.ts
5658
5658
  function getGatesFromEnv() {
@@ -5670,9 +5670,7 @@ var mapEnabledFeaturesToGates = (enabledFeatures) => {
5670
5670
  }, []);
5671
5671
  };
5672
5672
  async function getJsRenderingGates(portalId, env2, personalAccessKey) {
5673
- const {
5674
- data: { enabledFeatures }
5675
- } = await fetchAccessToken(personalAccessKey, env2, portalId);
5673
+ const { enabledFeatures } = await getAccessToken(personalAccessKey, env2, portalId);
5676
5674
  const envGates = getGatesFromEnv();
5677
5675
  const gates = mapEnabledFeaturesToGates(enabledFeatures);
5678
5676
  const mergedGates = [...envGates, ...gates];
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@hubspot/cms-dev-server",
3
- "version": "1.2.39",
3
+ "version": "1.2.41",
4
4
  "license": "Apache-2.0",
5
5
  "type": "module",
6
6
  "engines": {
@@ -29,8 +29,8 @@
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.39",
33
- "@hubspot/local-dev-lib": "4.0.2",
32
+ "@hubspot/cms-components": "^1.2.41",
33
+ "@hubspot/local-dev-lib": "5.8.2",
34
34
  "@inquirer/select": "^2.0.0",
35
35
  "@originjs/vite-plugin-commonjs": "^1.0.3",
36
36
  "@radix-ui/react-dialog": "^1.1.2",
@@ -133,5 +133,5 @@
133
133
  "publishConfig": {
134
134
  "access": "public"
135
135
  },
136
- "gitHead": "2ca803c714116540c6082ce72230784051dbc0ea"
136
+ "gitHead": "2183671220284a1377bea1194df899032247e47b"
137
137
  }