@hubspot/ui-extensions-dev-server 1.1.7 → 1.1.8

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.
@@ -1,6 +1,7 @@
1
+ // TODO: Replace dotenv.parse with `import { parseEnv } from 'node:util'` once the CLI is on Node 22+
2
+ import dotenv from 'dotenv';
1
3
  import fs from 'node:fs';
2
4
  import path from 'node:path';
3
- import { parseEnv } from 'node:util';
4
5
  import { PRIVATE_APP_ACCESS_TOKEN, SECRETS_IN_CONTEXT } from "./constants.js";
5
6
  import { PrivateAppUserTokenManager } from "./services/PrivateAppUserTokenManager.js";
6
7
  function getEnvPath(srcDir) {
@@ -38,7 +39,7 @@ export function loadSecrets(srcDir) {
38
39
  if (envPath) {
39
40
  try {
40
41
  const content = fs.readFileSync(envPath, 'utf8');
41
- Object.assign(process.env, parseEnv(content));
42
+ Object.assign(process.env, dotenv.parse(content));
42
43
  }
43
44
  catch (error) {
44
45
  // Silently ignore read errors to match dotenv's quiet behavior
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@hubspot/ui-extensions-dev-server",
3
- "version": "1.1.7",
3
+ "version": "1.1.8",
4
4
  "description": "",
5
5
  "type": "module",
6
6
  "bin": {
@@ -41,6 +41,7 @@
41
41
  "commander": "13.1.0",
42
42
  "cors": "2.8.6",
43
43
  "detect-port": "2.1.0",
44
+ "dotenv": "^17.3.1",
44
45
  "estraverse": "5.3.0",
45
46
  "express": "5.1.0",
46
47
  "inquirer": "12.9.6",
@@ -70,7 +71,7 @@
70
71
  "vitest": "^4.0.18"
71
72
  },
72
73
  "engines": {
73
- "node": ">=18"
74
+ "node": ">=20"
74
75
  },
75
76
  "gitHead": "3da4a07183d48528ef431d46a8d327c053c4fe94",
76
77
  "lint-staged": {