@crimsonsunset/jsg-logger 1.8.8 → 1.8.9

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.
@@ -11643,6 +11643,8 @@ const forceEnvironment = (env) => {
11643
11643
  };
11644
11644
  const isBrowser = () => {
11645
11645
  if (forcedEnvironment) return forcedEnvironment === "browser";
11646
+ const isSW = typeof ServiceWorkerGlobalScope !== "undefined" && self instanceof ServiceWorkerGlobalScope;
11647
+ if (isSW) return true;
11646
11648
  return typeof window !== "undefined" && typeof document !== "undefined";
11647
11649
  };
11648
11650
  const isCLI = () => {
@@ -12079,7 +12081,7 @@ function dispatchToTransports(entry, transports) {
12079
12081
  }
12080
12082
  }
12081
12083
  const name = "@crimsonsunset/jsg-logger";
12082
- const version = "1.8.8";
12084
+ const version = "1.8.9";
12083
12085
  const type = "module";
12084
12086
  const description = "Multi-environment logger with smart detection, file-level overrides, and beautiful console formatting. Test it live: https://logger.joesangiorgio.com/";
12085
12087
  const main = "index.js";
@@ -12824,6 +12826,9 @@ const _JSGLogger = class _JSGLogger {
12824
12826
  return {
12825
12827
  core: fallback,
12826
12828
  createLogger: () => fallback,
12829
+ getComponent: () => fallback,
12830
+ configure: () => {
12831
+ },
12827
12832
  config: { environment: "fallback" },
12828
12833
  logStore: { getRecent: () => [], clear: () => {
12829
12834
  } },