@djangocfg/monitor 2.1.234 → 2.1.235

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/client.cjs CHANGED
@@ -519,7 +519,7 @@ var NetworkError = _NetworkError;
519
519
  // src/_api/generated/cfg_monitor/logger.ts
520
520
  var import_consola = require("consola");
521
521
  var DEFAULT_CONFIG = {
522
- enabled: true,
522
+ enabled: process.env.NODE_ENV !== "production",
523
523
  logRequests: true,
524
524
  logResponses: true,
525
525
  logErrors: true,
@@ -1362,9 +1362,9 @@ async function sendBatch(batch, useBeacon = false) {
1362
1362
  __name(sendBatch, "sendBatch");
1363
1363
 
1364
1364
  // src/client/utils/env.ts
1365
- var isDevelopment = true;
1366
- var isProduction = false;
1367
- var MONITOR_VERSION = "2.1.234";
1365
+ var isDevelopment = process.env.NODE_ENV === "development";
1366
+ var isProduction = !isDevelopment;
1367
+ var MONITOR_VERSION = "2.1.235";
1368
1368
 
1369
1369
  // src/client/store/index.ts
1370
1370
  var CIRCUIT_BREAKER_THRESHOLD = 3;