@trigger.dev/core 0.0.0-cross-runtime-20231201154528 → 0.0.0-cross-runtime-20231201164903

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.mjs CHANGED
@@ -24,6 +24,7 @@ var __privateMethod = (obj, member, method) => {
24
24
  };
25
25
 
26
26
  // src/logger.ts
27
+ import { env } from "node:process";
27
28
  var logLevels = [
28
29
  "log",
29
30
  "error",
@@ -41,7 +42,7 @@ var _Logger = class _Logger {
41
42
  __privateAdd(this, _jsonReplacer, void 0);
42
43
  __privateAdd(this, _additionalFields, void 0);
43
44
  __privateSet(this, _name, name);
44
- __privateSet(this, _level, logLevels.indexOf(process.env.TRIGGER_LOG_LEVEL ?? level));
45
+ __privateSet(this, _level, logLevels.indexOf(env.TRIGGER_LOG_LEVEL ?? level));
45
46
  __privateSet(this, _filteredKeys, filteredKeys);
46
47
  __privateSet(this, _jsonReplacer, createReplacer(jsonReplacer));
47
48
  __privateSet(this, _additionalFields, additionalFields ?? (() => ({})));
@@ -162,7 +163,7 @@ function filterKeys(obj, keys) {
162
163
  }
163
164
  __name(filterKeys, "filterKeys");
164
165
  function prettyPrintBytes(value) {
165
- if (process.env.NODE_ENV === "production") {
166
+ if (env.NODE_ENV === "production") {
166
167
  return "skipped size";
167
168
  }
168
169
  const sizeInBytes = getSizeInBytes(value);