@djangocfg/monitor 2.1.346 → 2.1.348

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.mjs CHANGED
@@ -300,6 +300,12 @@ function installAuthOnClient(client2) {
300
300
  if (locale) request.headers.set("Accept-Language", locale);
301
301
  const apiKey = auth.getApiKey();
302
302
  if (apiKey) request.headers.set("X-API-Key", apiKey);
303
+ try {
304
+ const tz = Intl.DateTimeFormat().resolvedOptions().timeZone;
305
+ if (tz) request.headers.set("X-Timezone", tz);
306
+ } catch {
307
+ }
308
+ request.headers.set("X-Client-Time", (/* @__PURE__ */ new Date()).toISOString());
303
309
  return request;
304
310
  });
305
311
  client2.interceptors.response.use(async (response, request) => {
@@ -1375,7 +1381,7 @@ __name(sendBatch, "sendBatch");
1375
1381
  // src/client/utils/env.ts
1376
1382
  var isDevelopment = process.env.NODE_ENV === "development";
1377
1383
  var isProduction = !isDevelopment;
1378
- var MONITOR_VERSION = "2.1.346";
1384
+ var MONITOR_VERSION = "2.1.348";
1379
1385
 
1380
1386
  // src/client/constants.ts
1381
1387
  var MONITOR_INGEST_PATTERN = /cfg\/monitor\/ingest/;