@event-driven-io/dumbo 0.13.0-beta.4 → 0.13.0-beta.7

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.
@@ -15,7 +15,7 @@ import {
15
15
  registerFormatter,
16
16
  sqlExecutor,
17
17
  tracer
18
- } from "./chunk-N7RWT46K.js";
18
+ } from "./chunk-DB4M4ZQ4.js";
19
19
 
20
20
  // src/storage/sqlite/core/sql/processors/columProcessors.ts
21
21
  var mapColumnType = (token, { builder }) => {
@@ -402,4 +402,4 @@ export {
402
402
  tableExists,
403
403
  SQLiteDatabaseName
404
404
  };
405
- //# sourceMappingURL=chunk-XVV3OOQX.js.map
405
+ //# sourceMappingURL=chunk-BXT72JTX.js.map
@@ -1619,8 +1619,18 @@ var LogStyle = {
1619
1619
  RAW: "RAW",
1620
1620
  PRETTY: "PRETTY"
1621
1621
  };
1622
+ var getEnvVariable = (name) => {
1623
+ try {
1624
+ if (typeof process !== "undefined" && process.env) {
1625
+ return process.env[name];
1626
+ }
1627
+ return void 0;
1628
+ } catch {
1629
+ return void 0;
1630
+ }
1631
+ };
1622
1632
  var shouldLog = (logLevel) => {
1623
- const definedLogLevel = process.env.DUMBO_LOG_LEVEL ?? LogLevel.DISABLED;
1633
+ const definedLogLevel = getEnvVariable("DUMBO_LOG_LEVEL") ?? LogLevel.DISABLED;
1624
1634
  if (definedLogLevel === LogLevel.ERROR && logLevel === LogLevel.ERROR)
1625
1635
  return true;
1626
1636
  if (definedLogLevel === LogLevel.WARN && [LogLevel.ERROR, LogLevel.WARN].includes(logLevel))
@@ -1667,7 +1677,7 @@ var recordTraceEvent = (logLevel, eventName, attributes) => {
1667
1677
  };
1668
1678
  const record = getTraceEventRecorder(
1669
1679
  logLevel,
1670
- process.env.DUMBO_LOG_STYLE ?? "RAW"
1680
+ getEnvVariable("DUMBO_LOG_STYLE") ?? "RAW"
1671
1681
  );
1672
1682
  record(event);
1673
1683
  };
@@ -2008,4 +2018,4 @@ export {
2008
2018
  runSQLMigrations,
2009
2019
  combineMigrations
2010
2020
  };
2011
- //# sourceMappingURL=chunk-N7RWT46K.js.map
2021
+ //# sourceMappingURL=chunk-DB4M4ZQ4.js.map