erpnext-queue-client 2.9.9 → 2.9.10

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/constants.js CHANGED
@@ -3,7 +3,14 @@
3
3
  Object.defineProperty(exports, "__esModule", { value: true });
4
4
  exports.constants = exports.getEnvVar = void 0;
5
5
  const getEnvVar = (varName) => {
6
- const envVar = process.env[varName];
6
+ // `process` doesn't exist in browsers / edge runtimes. Guard the read so that
7
+ // importing this module (and anything that transitively imports it, e.g. the
8
+ // zod models via zodUtils) never throws "process is not defined" in a client
9
+ // bundle. Optional vars simply resolve to `undefined`; DEBUG_MODE therefore
10
+ // falls back to "off" when there is no `process.env` to read.
11
+ const envVar = typeof process !== "undefined" && process.env
12
+ ? process.env[varName]
13
+ : undefined;
7
14
  if (!envVar && !optionalConstants.includes(varName)) {
8
15
  throw new Error(`ENV Var "${varName}" is not defined.`);
9
16
  }
package/package.json CHANGED
@@ -22,7 +22,7 @@
22
22
  "winston": "^3.15.0",
23
23
  "zod": "3.25.76"
24
24
  },
25
- "version": "2.9.9",
25
+ "version": "2.9.10",
26
26
  "engines": {
27
27
  "node": ">=22"
28
28
  },