@djangocfg/monitor 2.1.345 → 2.1.347

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
@@ -334,6 +334,12 @@ function installAuthOnClient(client2) {
334
334
  if (locale) request.headers.set("Accept-Language", locale);
335
335
  const apiKey = auth.getApiKey();
336
336
  if (apiKey) request.headers.set("X-API-Key", apiKey);
337
+ try {
338
+ const tz = Intl.DateTimeFormat().resolvedOptions().timeZone;
339
+ if (tz) request.headers.set("X-Timezone", tz);
340
+ } catch {
341
+ }
342
+ request.headers.set("X-Client-Time", (/* @__PURE__ */ new Date()).toISOString());
337
343
  return request;
338
344
  });
339
345
  client2.interceptors.response.use(async (response, request) => {
@@ -1409,7 +1415,7 @@ __name(sendBatch, "sendBatch");
1409
1415
  // src/client/utils/env.ts
1410
1416
  var isDevelopment = process.env.NODE_ENV === "development";
1411
1417
  var isProduction = !isDevelopment;
1412
- var MONITOR_VERSION = "2.1.345";
1418
+ var MONITOR_VERSION = "2.1.347";
1413
1419
 
1414
1420
  // src/client/constants.ts
1415
1421
  var MONITOR_INGEST_PATTERN = /cfg\/monitor\/ingest/;