@aranova/tracking-react 0.7.0 → 0.7.1
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/index.d.mts +9 -3
- package/dist/index.d.ts +9 -3
- package/dist/index.js +3 -3
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +3 -3
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
package/dist/index.mjs
CHANGED
|
@@ -44,7 +44,7 @@ function createTrackingClientContext(surface, input = {}) {
|
|
|
44
44
|
site_origin: input.siteOrigin ?? (typeof window === "undefined" ? null : window.location.origin),
|
|
45
45
|
page_title: input.pageTitle ?? (typeof document === "undefined" ? null : document.title || null),
|
|
46
46
|
referrer: input.referrer ?? (typeof document === "undefined" ? null : document.referrer || null),
|
|
47
|
-
environment: input.environment ??
|
|
47
|
+
environment: input.environment ?? "production",
|
|
48
48
|
active_gtag_ids: input.activeGtagIds ?? null
|
|
49
49
|
};
|
|
50
50
|
}
|
|
@@ -534,7 +534,7 @@ function createTrackingClient(config) {
|
|
|
534
534
|
const maxQueueSize = Math.min(config.maxQueueSize ?? DEFAULT_MAX_QUEUE_SIZE, HARD_MAX_BATCH);
|
|
535
535
|
const sdkVersion = config.sdkVersion ?? null;
|
|
536
536
|
const packageName = config.packageName ?? null;
|
|
537
|
-
const environment = config.environment ??
|
|
537
|
+
const environment = config.environment ?? "production";
|
|
538
538
|
const activeGtagIds = config.activeGtagIds ?? null;
|
|
539
539
|
const endpointBase = config.endpoint.replace(/\/$/, "");
|
|
540
540
|
const eventsUrl = `${endpointBase}/events`;
|
|
@@ -1342,7 +1342,7 @@ import {
|
|
|
1342
1342
|
} from "react";
|
|
1343
1343
|
|
|
1344
1344
|
// package.json
|
|
1345
|
-
var version = "0.7.
|
|
1345
|
+
var version = "0.7.1";
|
|
1346
1346
|
|
|
1347
1347
|
// src/factory.tsx
|
|
1348
1348
|
import { jsx as jsx2 } from "react/jsx-runtime";
|