@journium/js 1.0.1 → 1.0.3
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/LICENSE +21 -0
- package/README.md +127 -63
- package/dist/JourniumAnalytics.d.ts +26 -0
- package/dist/JourniumAnalytics.d.ts.map +1 -0
- package/dist/JourniumClient.d.ts +25 -0
- package/dist/JourniumClient.d.ts.map +1 -0
- package/dist/autocapture.d.ts +4 -16
- package/dist/autocapture.d.ts.map +1 -1
- package/dist/index.cjs +109 -97
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.ts +22 -28
- package/dist/index.d.ts.map +1 -1
- package/dist/{index.esm.js → index.mjs} +108 -96
- package/dist/index.mjs.map +1 -0
- package/dist/index.umd.js +110 -98
- package/dist/index.umd.js.map +1 -1
- package/dist/pageview.d.ts +2 -2
- package/dist/pageview.d.ts.map +1 -1
- package/package.json +23 -16
- package/dist/client.d.ts +0 -24
- package/dist/client.d.ts.map +0 -1
- package/dist/index.esm.js.map +0 -1
- package/dist/journium.d.ts +0 -25
- package/dist/journium.d.ts.map +0 -1
|
@@ -425,7 +425,7 @@ const isNode = () => {
|
|
|
425
425
|
var _a;
|
|
426
426
|
return typeof process !== 'undefined' && !!((_a = process.versions) === null || _a === void 0 ? void 0 : _a.node);
|
|
427
427
|
};
|
|
428
|
-
const
|
|
428
|
+
const fetchRemoteOptions = async (apiHost, publishableKey, fetchFn) => {
|
|
429
429
|
const endpoint = '/v1/configs';
|
|
430
430
|
const url = `${apiHost}${endpoint}?ingestion_key=${encodeURIComponent(publishableKey)}`;
|
|
431
431
|
try {
|
|
@@ -447,42 +447,43 @@ const fetchRemoteConfig = async (apiHost, publishableKey, fetchFn) => {
|
|
|
447
447
|
},
|
|
448
448
|
});
|
|
449
449
|
if (!response.ok) {
|
|
450
|
-
throw new Error(`
|
|
450
|
+
throw new Error(`Options fetch failed: ${response.status} ${response.statusText}`);
|
|
451
451
|
}
|
|
452
452
|
const data = await response.json();
|
|
453
453
|
return data;
|
|
454
454
|
}
|
|
455
455
|
catch (error) {
|
|
456
|
-
console.warn('Failed to fetch remote
|
|
456
|
+
console.warn('Failed to fetch remote options:', error);
|
|
457
457
|
return null;
|
|
458
458
|
}
|
|
459
459
|
};
|
|
460
|
-
const
|
|
461
|
-
if (!
|
|
460
|
+
const mergeOptions = (localOptions, remoteOptions) => {
|
|
461
|
+
if (!remoteOptions && !localOptions) {
|
|
462
462
|
return {};
|
|
463
463
|
}
|
|
464
|
-
if (!
|
|
465
|
-
return
|
|
464
|
+
if (!remoteOptions) {
|
|
465
|
+
return localOptions;
|
|
466
466
|
}
|
|
467
|
-
if (!
|
|
468
|
-
return
|
|
467
|
+
if (!localOptions) {
|
|
468
|
+
return remoteOptions;
|
|
469
469
|
}
|
|
470
|
-
// Deep merge local
|
|
471
|
-
// Local
|
|
472
|
-
const merged = { ...
|
|
470
|
+
// Deep merge local options into remote options
|
|
471
|
+
// Local options takes precedence over remote options
|
|
472
|
+
const merged = { ...remoteOptions };
|
|
473
473
|
// Handle primitive values
|
|
474
|
-
Object.keys(
|
|
475
|
-
|
|
476
|
-
|
|
477
|
-
|
|
474
|
+
Object.keys(localOptions).forEach(key => {
|
|
475
|
+
const localValue = localOptions[key];
|
|
476
|
+
if (localValue !== undefined && localValue !== null) {
|
|
477
|
+
if (typeof localValue === 'object' && !Array.isArray(localValue)) {
|
|
478
|
+
// Deep merge objects - local options overrides remote
|
|
478
479
|
merged[key] = {
|
|
479
480
|
...(merged[key] || {}),
|
|
480
|
-
...
|
|
481
|
+
...localValue
|
|
481
482
|
};
|
|
482
483
|
}
|
|
483
484
|
else {
|
|
484
|
-
// Override primitive values and arrays with local
|
|
485
|
-
merged[key] =
|
|
485
|
+
// Override primitive values and arrays with local options
|
|
486
|
+
merged[key] = localValue;
|
|
486
487
|
}
|
|
487
488
|
}
|
|
488
489
|
});
|
|
@@ -586,7 +587,7 @@ class BrowserIdentityManager {
|
|
|
586
587
|
};
|
|
587
588
|
this.saveIdentity();
|
|
588
589
|
}
|
|
589
|
-
identify(distinctId,
|
|
590
|
+
identify(distinctId, _attributes = {}) {
|
|
590
591
|
if (!this.identity)
|
|
591
592
|
return { previousDistinctId: null };
|
|
592
593
|
const previousDistinctId = this.identity.distinct_id;
|
|
@@ -679,113 +680,113 @@ class JourniumClient {
|
|
|
679
680
|
...config,
|
|
680
681
|
apiHost: config.apiHost || 'https://events.journium.app'
|
|
681
682
|
};
|
|
682
|
-
// Generate storage key for
|
|
683
|
-
this.
|
|
683
|
+
// Generate storage key for options caching
|
|
684
|
+
this.optionsStorageKey = `jrnm_${config.publishableKey}_options`;
|
|
684
685
|
// Generate default values
|
|
685
|
-
const
|
|
686
|
+
const defaultOptions = {
|
|
686
687
|
debug: false,
|
|
687
688
|
flushAt: 20,
|
|
688
689
|
flushInterval: 10000,
|
|
689
690
|
sessionTimeout: 30 * 60 * 1000, // 30 minutes
|
|
690
691
|
};
|
|
691
|
-
// Initialize effective
|
|
692
|
-
this.
|
|
693
|
-
if (this.config.
|
|
694
|
-
this.
|
|
692
|
+
// Initialize effective options with local options taking precedence over defaults
|
|
693
|
+
this.effectiveOptions = { ...defaultOptions };
|
|
694
|
+
if (this.config.options) {
|
|
695
|
+
this.effectiveOptions = mergeOptions(defaultOptions, this.config.options);
|
|
695
696
|
}
|
|
696
697
|
// Initialize identity manager
|
|
697
|
-
this.identityManager = new BrowserIdentityManager(this.
|
|
698
|
+
this.identityManager = new BrowserIdentityManager(this.effectiveOptions.sessionTimeout, this.config.publishableKey);
|
|
698
699
|
// Initialize synchronously with cached config, fetch fresh config in background
|
|
699
700
|
this.initializeSync();
|
|
700
|
-
this.
|
|
701
|
+
this.fetchRemoteOptionsAsync();
|
|
701
702
|
}
|
|
702
|
-
|
|
703
|
+
loadCachedOptions() {
|
|
703
704
|
var _a;
|
|
704
705
|
if (typeof window === 'undefined' || !window.localStorage) {
|
|
705
706
|
return null;
|
|
706
707
|
}
|
|
707
708
|
try {
|
|
708
|
-
const cached = window.localStorage.getItem(this.
|
|
709
|
+
const cached = window.localStorage.getItem(this.optionsStorageKey);
|
|
709
710
|
return cached ? JSON.parse(cached) : null;
|
|
710
711
|
}
|
|
711
712
|
catch (error) {
|
|
712
|
-
if ((_a = this.
|
|
713
|
+
if ((_a = this.effectiveOptions) === null || _a === void 0 ? void 0 : _a.debug) {
|
|
713
714
|
console.warn('Journium: Failed to load cached config:', error);
|
|
714
715
|
}
|
|
715
716
|
return null;
|
|
716
717
|
}
|
|
717
718
|
}
|
|
718
|
-
|
|
719
|
+
saveCachedOptions(options) {
|
|
719
720
|
var _a;
|
|
720
721
|
if (typeof window === 'undefined' || !window.localStorage) {
|
|
721
722
|
return;
|
|
722
723
|
}
|
|
723
724
|
try {
|
|
724
|
-
window.localStorage.setItem(this.
|
|
725
|
+
window.localStorage.setItem(this.optionsStorageKey, JSON.stringify(options));
|
|
725
726
|
}
|
|
726
727
|
catch (error) {
|
|
727
|
-
if ((_a = this.
|
|
728
|
+
if ((_a = this.effectiveOptions) === null || _a === void 0 ? void 0 : _a.debug) {
|
|
728
729
|
console.warn('Journium: Failed to save config to cache:', error);
|
|
729
730
|
}
|
|
730
731
|
}
|
|
731
732
|
}
|
|
732
733
|
initializeSync() {
|
|
733
|
-
// Step 1: Load cached remote
|
|
734
|
-
const
|
|
735
|
-
// Step 2: If no local
|
|
736
|
-
if (!this.config.
|
|
737
|
-
this.
|
|
738
|
-
if (this.
|
|
739
|
-
console.log('Journium: Using cached remote
|
|
734
|
+
// Step 1: Load cached remote options from localStorage (synchronous)
|
|
735
|
+
const cachedRemoteOptions = this.loadCachedOptions();
|
|
736
|
+
// Step 2: If no local options provided, use cached remote options
|
|
737
|
+
if (!this.config.options && cachedRemoteOptions) {
|
|
738
|
+
this.effectiveOptions = cachedRemoteOptions;
|
|
739
|
+
if (this.effectiveOptions.debug) {
|
|
740
|
+
console.log('Journium: Using cached remote options:', cachedRemoteOptions);
|
|
740
741
|
}
|
|
741
742
|
}
|
|
742
743
|
// Step 3: Mark as initialized immediately - no need to wait for remote fetch
|
|
743
744
|
this.initialized = true;
|
|
744
745
|
// Step 4: Start flush timer immediately
|
|
745
|
-
if (this.
|
|
746
|
+
if (this.effectiveOptions.flushInterval && this.effectiveOptions.flushInterval > 0) {
|
|
746
747
|
this.startFlushTimer();
|
|
747
748
|
}
|
|
748
|
-
if (this.
|
|
749
|
-
console.log('Journium: Client initialized with effective
|
|
749
|
+
if (this.effectiveOptions.debug) {
|
|
750
|
+
console.log('Journium: Client initialized with effective options:', this.effectiveOptions);
|
|
750
751
|
}
|
|
751
752
|
}
|
|
752
|
-
async
|
|
753
|
+
async fetchRemoteOptionsAsync() {
|
|
753
754
|
// Fetch fresh config in background
|
|
754
755
|
if (this.config.publishableKey) {
|
|
755
|
-
await this.
|
|
756
|
+
await this.fetchAndCacheRemoteOptions();
|
|
756
757
|
}
|
|
757
758
|
}
|
|
758
|
-
async
|
|
759
|
+
async fetchAndCacheRemoteOptions() {
|
|
759
760
|
try {
|
|
760
|
-
if (this.
|
|
761
|
+
if (this.effectiveOptions.debug) {
|
|
761
762
|
console.log('Journium: Fetching remote configuration in background...');
|
|
762
763
|
}
|
|
763
|
-
const
|
|
764
|
-
if (
|
|
764
|
+
const remoteOptionsResponse = await fetchRemoteOptions(this.config.apiHost, this.config.publishableKey);
|
|
765
|
+
if (remoteOptionsResponse && remoteOptionsResponse.success) {
|
|
765
766
|
// Save remote config to cache for next session
|
|
766
|
-
this.
|
|
767
|
-
// Update effective
|
|
768
|
-
if (!this.config.
|
|
769
|
-
// No local
|
|
770
|
-
this.
|
|
767
|
+
this.saveCachedOptions(remoteOptionsResponse.config);
|
|
768
|
+
// Update effective options: local options (if provided) overrides fresh remote options
|
|
769
|
+
if (!this.config.options) {
|
|
770
|
+
// No local options provided, use fresh remote options
|
|
771
|
+
this.effectiveOptions = remoteOptionsResponse.config;
|
|
771
772
|
}
|
|
772
773
|
else {
|
|
773
|
-
// Local
|
|
774
|
-
this.
|
|
774
|
+
// Local options provided, merge it over fresh remote options
|
|
775
|
+
this.effectiveOptions = mergeOptions(remoteOptionsResponse.config, this.config.options);
|
|
775
776
|
}
|
|
776
|
-
// Update session timeout if provided in fresh effective
|
|
777
|
-
if (this.
|
|
778
|
-
this.identityManager.updateSessionTimeout(this.
|
|
777
|
+
// Update session timeout if provided in fresh effective options
|
|
778
|
+
if (this.effectiveOptions.sessionTimeout) {
|
|
779
|
+
this.identityManager.updateSessionTimeout(this.effectiveOptions.sessionTimeout);
|
|
779
780
|
}
|
|
780
|
-
if (this.
|
|
781
|
-
console.log('Journium: Background remote
|
|
782
|
-
console.log('Journium: New effective
|
|
781
|
+
if (this.effectiveOptions.debug) {
|
|
782
|
+
console.log('Journium: Background remote options applied:', remoteOptionsResponse.config);
|
|
783
|
+
console.log('Journium: New effective options:', this.effectiveOptions);
|
|
783
784
|
}
|
|
784
785
|
}
|
|
785
786
|
}
|
|
786
787
|
catch (error) {
|
|
787
|
-
if (this.
|
|
788
|
-
console.warn('Journium: Background remote
|
|
788
|
+
if (this.effectiveOptions.debug) {
|
|
789
|
+
console.warn('Journium: Background remote options fetch failed:', error);
|
|
789
790
|
}
|
|
790
791
|
}
|
|
791
792
|
}
|
|
@@ -796,7 +797,7 @@ class JourniumClient {
|
|
|
796
797
|
// Use universal setInterval (works in both browser and Node.js)
|
|
797
798
|
this.flushTimer = setInterval(() => {
|
|
798
799
|
this.flush();
|
|
799
|
-
}, this.
|
|
800
|
+
}, this.effectiveOptions.flushInterval);
|
|
800
801
|
}
|
|
801
802
|
async sendEvents(events) {
|
|
802
803
|
if (!events.length)
|
|
@@ -815,12 +816,12 @@ class JourniumClient {
|
|
|
815
816
|
if (!response.ok) {
|
|
816
817
|
throw new Error(`HTTP ${response.status}: ${response.statusText}`);
|
|
817
818
|
}
|
|
818
|
-
if (this.
|
|
819
|
+
if (this.effectiveOptions.debug) {
|
|
819
820
|
console.log('Journium: Successfully sent events', events);
|
|
820
821
|
}
|
|
821
822
|
}
|
|
822
823
|
catch (error) {
|
|
823
|
-
if (this.
|
|
824
|
+
if (this.effectiveOptions.debug) {
|
|
824
825
|
console.error('Journium: Failed to send events', error);
|
|
825
826
|
}
|
|
826
827
|
throw error;
|
|
@@ -830,7 +831,7 @@ class JourniumClient {
|
|
|
830
831
|
var _a;
|
|
831
832
|
// Don't identify if SDK is not properly configured
|
|
832
833
|
if (!this.config || !this.config.publishableKey || !this.initialized) {
|
|
833
|
-
if ((_a = this.
|
|
834
|
+
if ((_a = this.effectiveOptions) === null || _a === void 0 ? void 0 : _a.debug) {
|
|
834
835
|
console.warn('Journium: identify() call rejected - SDK not ready');
|
|
835
836
|
}
|
|
836
837
|
return;
|
|
@@ -843,7 +844,7 @@ class JourniumClient {
|
|
|
843
844
|
$anon_distinct_id: previousDistinctId,
|
|
844
845
|
};
|
|
845
846
|
this.track('$identify', identifyProperties);
|
|
846
|
-
if (this.
|
|
847
|
+
if (this.effectiveOptions.debug) {
|
|
847
848
|
console.log('Journium: User identified', { distinctId, attributes, previousDistinctId });
|
|
848
849
|
}
|
|
849
850
|
}
|
|
@@ -851,14 +852,14 @@ class JourniumClient {
|
|
|
851
852
|
var _a;
|
|
852
853
|
// Don't reset if SDK is not properly configured
|
|
853
854
|
if (!this.config || !this.config.publishableKey || !this.initialized) {
|
|
854
|
-
if ((_a = this.
|
|
855
|
+
if ((_a = this.effectiveOptions) === null || _a === void 0 ? void 0 : _a.debug) {
|
|
855
856
|
console.warn('Journium: reset() call rejected - SDK not ready');
|
|
856
857
|
}
|
|
857
858
|
return;
|
|
858
859
|
}
|
|
859
860
|
// Reset identity in identity manager
|
|
860
861
|
this.identityManager.reset();
|
|
861
|
-
if (this.
|
|
862
|
+
if (this.effectiveOptions.debug) {
|
|
862
863
|
console.log('Journium: User identity reset');
|
|
863
864
|
}
|
|
864
865
|
}
|
|
@@ -866,7 +867,7 @@ class JourniumClient {
|
|
|
866
867
|
var _a;
|
|
867
868
|
// Don't track if SDK is not properly configured
|
|
868
869
|
if (!this.config || !this.config.publishableKey || !this.initialized) {
|
|
869
|
-
if ((_a = this.
|
|
870
|
+
if ((_a = this.effectiveOptions) === null || _a === void 0 ? void 0 : _a.debug) {
|
|
870
871
|
console.warn('Journium: track() call rejected - SDK not ready');
|
|
871
872
|
}
|
|
872
873
|
return;
|
|
@@ -894,10 +895,10 @@ class JourniumClient {
|
|
|
894
895
|
properties: eventProperties,
|
|
895
896
|
};
|
|
896
897
|
this.queue.push(journiumEvent);
|
|
897
|
-
if (this.
|
|
898
|
+
if (this.effectiveOptions.debug) {
|
|
898
899
|
console.log('Journium: Event tracked', journiumEvent);
|
|
899
900
|
}
|
|
900
|
-
if (this.queue.length >= this.
|
|
901
|
+
if (this.queue.length >= this.effectiveOptions.flushAt) {
|
|
901
902
|
this.flush();
|
|
902
903
|
}
|
|
903
904
|
}
|
|
@@ -925,6 +926,9 @@ class JourniumClient {
|
|
|
925
926
|
}
|
|
926
927
|
this.flush();
|
|
927
928
|
}
|
|
929
|
+
getEffectiveOptions() {
|
|
930
|
+
return this.effectiveOptions;
|
|
931
|
+
}
|
|
928
932
|
}
|
|
929
933
|
|
|
930
934
|
class PageviewTracker {
|
|
@@ -990,11 +994,11 @@ class PageviewTracker {
|
|
|
990
994
|
}
|
|
991
995
|
|
|
992
996
|
class AutocaptureTracker {
|
|
993
|
-
constructor(client,
|
|
997
|
+
constructor(client, options = {}) {
|
|
994
998
|
this.listeners = new Map();
|
|
995
999
|
this.isActive = false;
|
|
996
1000
|
this.client = client;
|
|
997
|
-
this.
|
|
1001
|
+
this.options = {
|
|
998
1002
|
captureClicks: true,
|
|
999
1003
|
captureFormSubmits: true,
|
|
1000
1004
|
captureFormChanges: true,
|
|
@@ -1002,7 +1006,7 @@ class AutocaptureTracker {
|
|
|
1002
1006
|
ignoreClasses: ['journium-ignore'],
|
|
1003
1007
|
ignoreElements: ['script', 'style', 'noscript'],
|
|
1004
1008
|
captureContentText: true,
|
|
1005
|
-
...
|
|
1009
|
+
...options,
|
|
1006
1010
|
};
|
|
1007
1011
|
}
|
|
1008
1012
|
start() {
|
|
@@ -1010,16 +1014,16 @@ class AutocaptureTracker {
|
|
|
1010
1014
|
return;
|
|
1011
1015
|
}
|
|
1012
1016
|
this.isActive = true;
|
|
1013
|
-
if (this.
|
|
1017
|
+
if (this.options.captureClicks) {
|
|
1014
1018
|
this.addClickListener();
|
|
1015
1019
|
}
|
|
1016
|
-
if (this.
|
|
1020
|
+
if (this.options.captureFormSubmits) {
|
|
1017
1021
|
this.addFormSubmitListener();
|
|
1018
1022
|
}
|
|
1019
|
-
if (this.
|
|
1023
|
+
if (this.options.captureFormChanges) {
|
|
1020
1024
|
this.addFormChangeListener();
|
|
1021
1025
|
}
|
|
1022
|
-
if (this.
|
|
1026
|
+
if (this.options.captureTextSelection) {
|
|
1023
1027
|
this.addTextSelectionListener();
|
|
1024
1028
|
}
|
|
1025
1029
|
}
|
|
@@ -1103,17 +1107,17 @@ class AutocaptureTracker {
|
|
|
1103
1107
|
return true;
|
|
1104
1108
|
}
|
|
1105
1109
|
// Check if element should be ignored by tag name
|
|
1106
|
-
if ((_a = this.
|
|
1110
|
+
if ((_a = this.options.ignoreElements) === null || _a === void 0 ? void 0 : _a.includes(element.tagName.toLowerCase())) {
|
|
1107
1111
|
return true;
|
|
1108
1112
|
}
|
|
1109
1113
|
// Check if element has ignore classes
|
|
1110
|
-
if ((_b = this.
|
|
1114
|
+
if ((_b = this.options.ignoreClasses) === null || _b === void 0 ? void 0 : _b.some(cls => element.classList.contains(cls))) {
|
|
1111
1115
|
return true;
|
|
1112
1116
|
}
|
|
1113
1117
|
// Check parent elements for ignore classes
|
|
1114
1118
|
let parent = element.parentElement;
|
|
1115
1119
|
while (parent) {
|
|
1116
|
-
if ((_c = this.
|
|
1120
|
+
if ((_c = this.options.ignoreClasses) === null || _c === void 0 ? void 0 : _c.some(cls => parent.classList.contains(cls))) {
|
|
1117
1121
|
return true;
|
|
1118
1122
|
}
|
|
1119
1123
|
parent = parent.parentElement;
|
|
@@ -1145,7 +1149,7 @@ class AutocaptureTracker {
|
|
|
1145
1149
|
}
|
|
1146
1150
|
});
|
|
1147
1151
|
// Element content
|
|
1148
|
-
if (this.
|
|
1152
|
+
if (this.options.captureContentText) {
|
|
1149
1153
|
const text = this.getElementText(element);
|
|
1150
1154
|
if (text) {
|
|
1151
1155
|
properties.$element_text = text.substring(0, 200); // Limit text length
|
|
@@ -1332,18 +1336,18 @@ class AutocaptureTracker {
|
|
|
1332
1336
|
}
|
|
1333
1337
|
}
|
|
1334
1338
|
|
|
1335
|
-
class
|
|
1339
|
+
class JourniumAnalytics {
|
|
1336
1340
|
constructor(config) {
|
|
1337
1341
|
var _a, _b;
|
|
1338
1342
|
this.config = config;
|
|
1339
1343
|
this.client = new JourniumClient(config);
|
|
1340
1344
|
this.pageviewTracker = new PageviewTracker(this.client);
|
|
1341
|
-
const
|
|
1342
|
-
this.autocaptureTracker = new AutocaptureTracker(this.client,
|
|
1345
|
+
const autocaptureOptions = this.resolveAutocaptureOptions((_a = config.options) === null || _a === void 0 ? void 0 : _a.autocapture);
|
|
1346
|
+
this.autocaptureTracker = new AutocaptureTracker(this.client, autocaptureOptions);
|
|
1343
1347
|
// Store resolved autocapture state for startAutocapture method
|
|
1344
|
-
this.autocaptureEnabled = ((_b = config.
|
|
1348
|
+
this.autocaptureEnabled = ((_b = config.options) === null || _b === void 0 ? void 0 : _b.autocapture) !== false;
|
|
1345
1349
|
}
|
|
1346
|
-
|
|
1350
|
+
resolveAutocaptureOptions(autocapture) {
|
|
1347
1351
|
if (autocapture === false) {
|
|
1348
1352
|
return {
|
|
1349
1353
|
captureClicks: false,
|
|
@@ -1370,7 +1374,12 @@ class Journium {
|
|
|
1370
1374
|
this.pageviewTracker.capturePageview(properties);
|
|
1371
1375
|
}
|
|
1372
1376
|
startAutocapture() {
|
|
1373
|
-
|
|
1377
|
+
// Check if automatic pageview tracking is enabled (defaults to true)
|
|
1378
|
+
const effectiveOptions = this.client.getEffectiveOptions();
|
|
1379
|
+
const autoTrackPageviews = effectiveOptions.autoTrackPageviews !== false;
|
|
1380
|
+
if (autoTrackPageviews) {
|
|
1381
|
+
this.pageviewTracker.startAutocapture();
|
|
1382
|
+
}
|
|
1374
1383
|
if (this.autocaptureEnabled) {
|
|
1375
1384
|
this.autocaptureTracker.start();
|
|
1376
1385
|
}
|
|
@@ -1382,6 +1391,9 @@ class Journium {
|
|
|
1382
1391
|
async flush() {
|
|
1383
1392
|
return this.client.flush();
|
|
1384
1393
|
}
|
|
1394
|
+
getEffectiveOptions() {
|
|
1395
|
+
return this.client.getEffectiveOptions();
|
|
1396
|
+
}
|
|
1385
1397
|
destroy() {
|
|
1386
1398
|
this.pageviewTracker.stopAutocapture();
|
|
1387
1399
|
this.autocaptureTracker.stop();
|
|
@@ -1389,8 +1401,8 @@ class Journium {
|
|
|
1389
1401
|
}
|
|
1390
1402
|
}
|
|
1391
1403
|
const init = (config) => {
|
|
1392
|
-
return new
|
|
1404
|
+
return new JourniumAnalytics(config);
|
|
1393
1405
|
};
|
|
1394
1406
|
|
|
1395
|
-
export { AutocaptureTracker, BrowserIdentityManager,
|
|
1396
|
-
//# sourceMappingURL=index.
|
|
1407
|
+
export { AutocaptureTracker, BrowserIdentityManager, JourniumAnalytics, JourniumClient, PageviewTracker, fetchRemoteOptions, generateId, generateUuidv7, getCurrentTimestamp, getCurrentUrl, getPageTitle, getReferrer, init, isBrowser, isNode, mergeOptions };
|
|
1408
|
+
//# sourceMappingURL=index.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.mjs","sources":["../../core/dist/index.mjs","../src/JourniumClient.ts","../src/pageview.ts","../src/autocapture.ts","../src/JourniumAnalytics.ts"],"sourcesContent":["/**\n * uuidv7: A JavaScript implementation of UUID version 7\n *\n * Copyright 2021-2024 LiosK\n *\n * @license Apache-2.0\n * @packageDocumentation\n */\nconst DIGITS = \"0123456789abcdef\";\n/** Represents a UUID as a 16-byte byte array. */\nclass UUID {\n /** @param bytes - The 16-byte byte array representation. */\n constructor(bytes) {\n this.bytes = bytes;\n }\n /**\n * Creates an object from the internal representation, a 16-byte byte array\n * containing the binary UUID representation in the big-endian byte order.\n *\n * This method does NOT shallow-copy the argument, and thus the created object\n * holds the reference to the underlying buffer.\n *\n * @throws TypeError if the length of the argument is not 16.\n */\n static ofInner(bytes) {\n if (bytes.length !== 16) {\n throw new TypeError(\"not 128-bit length\");\n }\n else {\n return new UUID(bytes);\n }\n }\n /**\n * Builds a byte array from UUIDv7 field values.\n *\n * @param unixTsMs - A 48-bit `unix_ts_ms` field value.\n * @param randA - A 12-bit `rand_a` field value.\n * @param randBHi - The higher 30 bits of 62-bit `rand_b` field value.\n * @param randBLo - The lower 32 bits of 62-bit `rand_b` field value.\n * @throws RangeError if any field value is out of the specified range.\n */\n static fromFieldsV7(unixTsMs, randA, randBHi, randBLo) {\n if (!Number.isInteger(unixTsMs) ||\n !Number.isInteger(randA) ||\n !Number.isInteger(randBHi) ||\n !Number.isInteger(randBLo) ||\n unixTsMs < 0 ||\n randA < 0 ||\n randBHi < 0 ||\n randBLo < 0 ||\n unixTsMs > 281474976710655 ||\n randA > 0xfff ||\n randBHi > 1073741823 ||\n randBLo > 4294967295) {\n throw new RangeError(\"invalid field value\");\n }\n const bytes = new Uint8Array(16);\n bytes[0] = unixTsMs / 2 ** 40;\n bytes[1] = unixTsMs / 2 ** 32;\n bytes[2] = unixTsMs / 2 ** 24;\n bytes[3] = unixTsMs / 2 ** 16;\n bytes[4] = unixTsMs / 2 ** 8;\n bytes[5] = unixTsMs;\n bytes[6] = 0x70 | (randA >>> 8);\n bytes[7] = randA;\n bytes[8] = 0x80 | (randBHi >>> 24);\n bytes[9] = randBHi >>> 16;\n bytes[10] = randBHi >>> 8;\n bytes[11] = randBHi;\n bytes[12] = randBLo >>> 24;\n bytes[13] = randBLo >>> 16;\n bytes[14] = randBLo >>> 8;\n bytes[15] = randBLo;\n return new UUID(bytes);\n }\n /**\n * Builds a byte array from a string representation.\n *\n * This method accepts the following formats:\n *\n * - 32-digit hexadecimal format without hyphens: `0189dcd553117d408db09496a2eef37b`\n * - 8-4-4-4-12 hyphenated format: `0189dcd5-5311-7d40-8db0-9496a2eef37b`\n * - Hyphenated format with surrounding braces: `{0189dcd5-5311-7d40-8db0-9496a2eef37b}`\n * - RFC 9562 URN format: `urn:uuid:0189dcd5-5311-7d40-8db0-9496a2eef37b`\n *\n * Leading and trailing whitespaces represents an error.\n *\n * @throws SyntaxError if the argument could not parse as a valid UUID string.\n */\n static parse(uuid) {\n var _a, _b, _c, _d;\n let hex = undefined;\n switch (uuid.length) {\n case 32:\n hex = (_a = /^[0-9a-f]{32}$/i.exec(uuid)) === null || _a === void 0 ? void 0 : _a[0];\n break;\n case 36:\n hex =\n (_b = /^([0-9a-f]{8})-([0-9a-f]{4})-([0-9a-f]{4})-([0-9a-f]{4})-([0-9a-f]{12})$/i\n .exec(uuid)) === null || _b === void 0 ? void 0 : _b.slice(1, 6).join(\"\");\n break;\n case 38:\n hex =\n (_c = /^\\{([0-9a-f]{8})-([0-9a-f]{4})-([0-9a-f]{4})-([0-9a-f]{4})-([0-9a-f]{12})\\}$/i\n .exec(uuid)) === null || _c === void 0 ? void 0 : _c.slice(1, 6).join(\"\");\n break;\n case 45:\n hex =\n (_d = /^urn:uuid:([0-9a-f]{8})-([0-9a-f]{4})-([0-9a-f]{4})-([0-9a-f]{4})-([0-9a-f]{12})$/i\n .exec(uuid)) === null || _d === void 0 ? void 0 : _d.slice(1, 6).join(\"\");\n break;\n }\n if (hex) {\n const inner = new Uint8Array(16);\n for (let i = 0; i < 16; i += 4) {\n const n = parseInt(hex.substring(2 * i, 2 * i + 8), 16);\n inner[i + 0] = n >>> 24;\n inner[i + 1] = n >>> 16;\n inner[i + 2] = n >>> 8;\n inner[i + 3] = n;\n }\n return new UUID(inner);\n }\n else {\n throw new SyntaxError(\"could not parse UUID string\");\n }\n }\n /**\n * @returns The 8-4-4-4-12 canonical hexadecimal string representation\n * (`0189dcd5-5311-7d40-8db0-9496a2eef37b`).\n */\n toString() {\n let text = \"\";\n for (let i = 0; i < this.bytes.length; i++) {\n text += DIGITS.charAt(this.bytes[i] >>> 4);\n text += DIGITS.charAt(this.bytes[i] & 0xf);\n if (i === 3 || i === 5 || i === 7 || i === 9) {\n text += \"-\";\n }\n }\n return text;\n }\n /**\n * @returns The 32-digit hexadecimal representation without hyphens\n * (`0189dcd553117d408db09496a2eef37b`).\n */\n toHex() {\n let text = \"\";\n for (let i = 0; i < this.bytes.length; i++) {\n text += DIGITS.charAt(this.bytes[i] >>> 4);\n text += DIGITS.charAt(this.bytes[i] & 0xf);\n }\n return text;\n }\n /** @returns The 8-4-4-4-12 canonical hexadecimal string representation. */\n toJSON() {\n return this.toString();\n }\n /**\n * Reports the variant field value of the UUID or, if appropriate, \"NIL\" or\n * \"MAX\".\n *\n * For convenience, this method reports \"NIL\" or \"MAX\" if `this` represents\n * the Nil or Max UUID, although the Nil and Max UUIDs are technically\n * subsumed under the variants `0b0` and `0b111`, respectively.\n */\n getVariant() {\n const n = this.bytes[8] >>> 4;\n if (n < 0) {\n throw new Error(\"unreachable\");\n }\n else if (n <= 0b0111) {\n return this.bytes.every((e) => e === 0) ? \"NIL\" : \"VAR_0\";\n }\n else if (n <= 0b1011) {\n return \"VAR_10\";\n }\n else if (n <= 0b1101) {\n return \"VAR_110\";\n }\n else if (n <= 0b1111) {\n return this.bytes.every((e) => e === 0xff) ? \"MAX\" : \"VAR_RESERVED\";\n }\n else {\n throw new Error(\"unreachable\");\n }\n }\n /**\n * Returns the version field value of the UUID or `undefined` if the UUID does\n * not have the variant field value of `0b10`.\n */\n getVersion() {\n return this.getVariant() === \"VAR_10\" ? this.bytes[6] >>> 4 : undefined;\n }\n /** Creates an object from `this`. */\n clone() {\n return new UUID(this.bytes.slice(0));\n }\n /** Returns true if `this` is equivalent to `other`. */\n equals(other) {\n return this.compareTo(other) === 0;\n }\n /**\n * Returns a negative integer, zero, or positive integer if `this` is less\n * than, equal to, or greater than `other`, respectively.\n */\n compareTo(other) {\n for (let i = 0; i < 16; i++) {\n const diff = this.bytes[i] - other.bytes[i];\n if (diff !== 0) {\n return Math.sign(diff);\n }\n }\n return 0;\n }\n}\n/**\n * Encapsulates the monotonic counter state.\n *\n * This class provides APIs to utilize a separate counter state from that of the\n * global generator used by {@link uuidv7} and {@link uuidv7obj}. In addition to\n * the default {@link generate} method, this class has {@link generateOrAbort}\n * that is useful to absolutely guarantee the monotonically increasing order of\n * generated UUIDs. See their respective documentation for details.\n */\nclass V7Generator {\n /**\n * Creates a generator object with the default random number generator, or\n * with the specified one if passed as an argument. The specified random\n * number generator should be cryptographically strong and securely seeded.\n */\n constructor(randomNumberGenerator) {\n this.timestamp = 0;\n this.counter = 0;\n this.random = randomNumberGenerator !== null && randomNumberGenerator !== void 0 ? randomNumberGenerator : getDefaultRandom();\n }\n /**\n * Generates a new UUIDv7 object from the current timestamp, or resets the\n * generator upon significant timestamp rollback.\n *\n * This method returns a monotonically increasing UUID by reusing the previous\n * timestamp even if the up-to-date timestamp is smaller than the immediately\n * preceding UUID's. However, when such a clock rollback is considered\n * significant (i.e., by more than ten seconds), this method resets the\n * generator and returns a new UUID based on the given timestamp, breaking the\n * increasing order of UUIDs.\n *\n * See {@link generateOrAbort} for the other mode of generation and\n * {@link generateOrResetCore} for the low-level primitive.\n */\n generate() {\n return this.generateOrResetCore(Date.now(), 10000);\n }\n /**\n * Generates a new UUIDv7 object from the current timestamp, or returns\n * `undefined` upon significant timestamp rollback.\n *\n * This method returns a monotonically increasing UUID by reusing the previous\n * timestamp even if the up-to-date timestamp is smaller than the immediately\n * preceding UUID's. However, when such a clock rollback is considered\n * significant (i.e., by more than ten seconds), this method aborts and\n * returns `undefined` immediately.\n *\n * See {@link generate} for the other mode of generation and\n * {@link generateOrAbortCore} for the low-level primitive.\n */\n generateOrAbort() {\n return this.generateOrAbortCore(Date.now(), 10000);\n }\n /**\n * Generates a new UUIDv7 object from the `unixTsMs` passed, or resets the\n * generator upon significant timestamp rollback.\n *\n * This method is equivalent to {@link generate} except that it takes a custom\n * timestamp and clock rollback allowance.\n *\n * @param rollbackAllowance - The amount of `unixTsMs` rollback that is\n * considered significant. A suggested value is `10_000` (milliseconds).\n * @throws RangeError if `unixTsMs` is not a 48-bit positive integer.\n */\n generateOrResetCore(unixTsMs, rollbackAllowance) {\n let value = this.generateOrAbortCore(unixTsMs, rollbackAllowance);\n if (value === undefined) {\n // reset state and resume\n this.timestamp = 0;\n value = this.generateOrAbortCore(unixTsMs, rollbackAllowance);\n }\n return value;\n }\n /**\n * Generates a new UUIDv7 object from the `unixTsMs` passed, or returns\n * `undefined` upon significant timestamp rollback.\n *\n * This method is equivalent to {@link generateOrAbort} except that it takes a\n * custom timestamp and clock rollback allowance.\n *\n * @param rollbackAllowance - The amount of `unixTsMs` rollback that is\n * considered significant. A suggested value is `10_000` (milliseconds).\n * @throws RangeError if `unixTsMs` is not a 48-bit positive integer.\n */\n generateOrAbortCore(unixTsMs, rollbackAllowance) {\n const MAX_COUNTER = 4398046511103;\n if (!Number.isInteger(unixTsMs) ||\n unixTsMs < 1 ||\n unixTsMs > 281474976710655) {\n throw new RangeError(\"`unixTsMs` must be a 48-bit positive integer\");\n }\n else if (rollbackAllowance < 0 || rollbackAllowance > 281474976710655) {\n throw new RangeError(\"`rollbackAllowance` out of reasonable range\");\n }\n if (unixTsMs > this.timestamp) {\n this.timestamp = unixTsMs;\n this.resetCounter();\n }\n else if (unixTsMs + rollbackAllowance >= this.timestamp) {\n // go on with previous timestamp if new one is not much smaller\n this.counter++;\n if (this.counter > MAX_COUNTER) {\n // increment timestamp at counter overflow\n this.timestamp++;\n this.resetCounter();\n }\n }\n else {\n // abort if clock went backwards to unbearable extent\n return undefined;\n }\n return UUID.fromFieldsV7(this.timestamp, Math.trunc(this.counter / 2 ** 30), this.counter & (2 ** 30 - 1), this.random.nextUint32());\n }\n /** Initializes the counter at a 42-bit random integer. */\n resetCounter() {\n this.counter =\n this.random.nextUint32() * 0x400 + (this.random.nextUint32() & 0x3ff);\n }\n /**\n * Generates a new UUIDv4 object utilizing the random number generator inside.\n *\n * @internal\n */\n generateV4() {\n const bytes = new Uint8Array(Uint32Array.of(this.random.nextUint32(), this.random.nextUint32(), this.random.nextUint32(), this.random.nextUint32()).buffer);\n bytes[6] = 0x40 | (bytes[6] >>> 4);\n bytes[8] = 0x80 | (bytes[8] >>> 2);\n return UUID.ofInner(bytes);\n }\n}\n/** Returns the default random number generator available in the environment. */\nconst getDefaultRandom = () => {\n // detect Web Crypto API\n if (typeof crypto !== \"undefined\" &&\n typeof crypto.getRandomValues !== \"undefined\") {\n return new BufferedCryptoRandom();\n }\n else {\n // fall back on Math.random() unless the flag is set to true\n if (typeof UUIDV7_DENY_WEAK_RNG !== \"undefined\" && UUIDV7_DENY_WEAK_RNG) {\n throw new Error(\"no cryptographically strong RNG available\");\n }\n return {\n nextUint32: () => Math.trunc(Math.random() * 65536) * 65536 +\n Math.trunc(Math.random() * 65536),\n };\n }\n};\n/**\n * Wraps `crypto.getRandomValues()` to enable buffering; this uses a small\n * buffer by default to avoid both unbearable throughput decline in some\n * environments and the waste of time and space for unused values.\n */\nclass BufferedCryptoRandom {\n constructor() {\n this.buffer = new Uint32Array(8);\n this.cursor = 0xffff;\n }\n nextUint32() {\n if (this.cursor >= this.buffer.length) {\n crypto.getRandomValues(this.buffer);\n this.cursor = 0;\n }\n return this.buffer[this.cursor++];\n }\n}\nlet defaultGenerator;\n/**\n * Generates a UUIDv7 string.\n *\n * @returns The 8-4-4-4-12 canonical hexadecimal string representation\n * (\"xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx\").\n */\nconst uuidv7 = () => uuidv7obj().toString();\n/** Generates a UUIDv7 object. */\nconst uuidv7obj = () => (defaultGenerator || (defaultGenerator = new V7Generator())).generate();\n\nconst generateId = () => {\n return Math.random().toString(36).substring(2) + Date.now().toString(36);\n};\nconst generateUuidv7 = () => {\n return uuidv7();\n};\nconst getCurrentTimestamp = () => {\n return new Date().toISOString();\n};\nconst getCurrentUrl = () => {\n if (typeof window !== 'undefined') {\n return window.location.href;\n }\n return '';\n};\nconst getPageTitle = () => {\n if (typeof document !== 'undefined') {\n return document.title;\n }\n return '';\n};\nconst getReferrer = () => {\n if (typeof document !== 'undefined') {\n return document.referrer;\n }\n return '';\n};\nconst isBrowser = () => {\n return typeof window !== 'undefined';\n};\nconst isNode = () => {\n var _a;\n return typeof process !== 'undefined' && !!((_a = process.versions) === null || _a === void 0 ? void 0 : _a.node);\n};\nconst fetchRemoteOptions = async (apiHost, publishableKey, fetchFn) => {\n const endpoint = '/v1/configs';\n const url = `${apiHost}${endpoint}?ingestion_key=${encodeURIComponent(publishableKey)}`;\n try {\n let fetch = fetchFn;\n if (!fetch) {\n if (isNode()) {\n // For Node.js environments, expect fetch to be passed in\n throw new Error('Fetch function must be provided in Node.js environment');\n }\n else {\n // Use native fetch in browser\n fetch = window.fetch;\n }\n }\n const response = await fetch(url, {\n method: 'GET',\n headers: {\n 'Content-Type': 'application/json',\n },\n });\n if (!response.ok) {\n throw new Error(`Options fetch failed: ${response.status} ${response.statusText}`);\n }\n const data = await response.json();\n return data;\n }\n catch (error) {\n console.warn('Failed to fetch remote options:', error);\n return null;\n }\n};\nconst mergeOptions = (localOptions, remoteOptions) => {\n if (!remoteOptions && !localOptions) {\n return {};\n }\n if (!remoteOptions) {\n return localOptions;\n }\n if (!localOptions) {\n return remoteOptions;\n }\n // Deep merge local options into remote options\n // Local options takes precedence over remote options\n const merged = { ...remoteOptions };\n // Handle primitive values\n Object.keys(localOptions).forEach(key => {\n const localValue = localOptions[key];\n if (localValue !== undefined && localValue !== null) {\n if (typeof localValue === 'object' && !Array.isArray(localValue)) {\n // Deep merge objects - local options overrides remote\n merged[key] = {\n ...(merged[key] || {}),\n ...localValue\n };\n }\n else {\n // Override primitive values and arrays with local options\n merged[key] = localValue;\n }\n }\n });\n return merged;\n};\n\nconst DEFAULT_SESSION_TIMEOUT = 30 * 60 * 1000; // 30 minutes in ms\nclass BrowserIdentityManager {\n constructor(sessionTimeout, publishableKey) {\n this.identity = null;\n this.sessionTimeout = DEFAULT_SESSION_TIMEOUT;\n if (sessionTimeout) {\n this.sessionTimeout = sessionTimeout;\n }\n // Generate storage key with publishableKey pattern: jrnm_<publishableKey>_journium\n this.storageKey = publishableKey ? `jrnm_${publishableKey}_journium` : '__journium_identity';\n this.loadOrCreateIdentity();\n }\n loadOrCreateIdentity() {\n if (!this.isBrowser())\n return;\n try {\n const stored = localStorage.getItem(this.storageKey);\n if (stored) {\n const parsedIdentity = JSON.parse(stored);\n // Check if session is expired\n const now = Date.now();\n const sessionAge = now - parsedIdentity.session_timestamp;\n if (sessionAge > this.sessionTimeout) {\n // Session expired, create new session but keep device and distinct IDs\n this.identity = {\n distinct_id: parsedIdentity.distinct_id,\n $device_id: parsedIdentity.$device_id,\n $session_id: generateUuidv7(),\n session_timestamp: now,\n $user_state: parsedIdentity.$user_state || 'anonymous',\n };\n }\n else {\n // Session still valid\n this.identity = parsedIdentity;\n // Ensure $user_state exists for backward compatibility\n if (!this.identity.$user_state) {\n this.identity.$user_state = 'anonymous';\n }\n }\n }\n else {\n // First time, create all new IDs\n const newId = generateUuidv7();\n this.identity = {\n distinct_id: newId,\n $device_id: newId,\n $session_id: newId,\n session_timestamp: Date.now(),\n $user_state: 'anonymous',\n };\n }\n // Save to localStorage\n this.saveIdentity();\n }\n catch (error) {\n console.warn('Journium: Failed to load/create identity:', error);\n // Fallback: create temporary identity without localStorage\n const newId = generateUuidv7();\n this.identity = {\n distinct_id: newId,\n $device_id: newId,\n $session_id: newId,\n session_timestamp: Date.now(),\n $user_state: 'anonymous',\n };\n }\n }\n saveIdentity() {\n if (!this.isBrowser() || !this.identity)\n return;\n try {\n localStorage.setItem(this.storageKey, JSON.stringify(this.identity));\n }\n catch (error) {\n console.warn('Journium: Failed to save identity to localStorage:', error);\n }\n }\n isBrowser() {\n return typeof window !== 'undefined' && typeof localStorage !== 'undefined';\n }\n getIdentity() {\n return this.identity;\n }\n updateSessionTimeout(timeoutMs) {\n this.sessionTimeout = timeoutMs;\n }\n refreshSession() {\n if (!this.identity)\n return;\n this.identity = {\n ...this.identity,\n $session_id: generateUuidv7(),\n session_timestamp: Date.now(),\n };\n this.saveIdentity();\n }\n identify(distinctId, _attributes = {}) {\n if (!this.identity)\n return { previousDistinctId: null };\n const previousDistinctId = this.identity.distinct_id;\n // Update the distinct ID and mark user as identified\n this.identity = {\n ...this.identity,\n distinct_id: distinctId,\n $user_state: 'identified',\n };\n this.saveIdentity();\n return { previousDistinctId };\n }\n reset() {\n if (!this.identity)\n return;\n // Generate new distinct ID but keep device ID\n this.identity = {\n ...this.identity,\n distinct_id: generateUuidv7(),\n $user_state: 'anonymous',\n };\n this.saveIdentity();\n }\n getUserAgentInfo() {\n if (!this.isBrowser()) {\n return {\n $raw_user_agent: '',\n $browser: 'Unknown',\n $os: 'Unknown',\n $device_type: 'Unknown',\n };\n }\n const userAgent = navigator.userAgent;\n return {\n $raw_user_agent: userAgent,\n $browser: this.parseBrowser(userAgent),\n $os: this.parseOS(userAgent),\n $device_type: this.parseDeviceType(userAgent),\n };\n }\n parseBrowser(userAgent) {\n if (userAgent.includes('Chrome') && !userAgent.includes('Edg'))\n return 'Chrome';\n if (userAgent.includes('Firefox'))\n return 'Firefox';\n if (userAgent.includes('Safari') && !userAgent.includes('Chrome'))\n return 'Safari';\n if (userAgent.includes('Edg'))\n return 'Edge';\n if (userAgent.includes('Opera') || userAgent.includes('OPR'))\n return 'Opera';\n return 'Unknown';\n }\n parseOS(userAgent) {\n if (userAgent.includes('Windows'))\n return 'Windows';\n if (userAgent.includes('Macintosh') || userAgent.includes('Mac OS'))\n return 'Mac OS';\n if (userAgent.includes('Linux'))\n return 'Linux';\n if (userAgent.includes('Android'))\n return 'Android';\n if (userAgent.includes('iPhone') || userAgent.includes('iPad'))\n return 'iOS';\n return 'Unknown';\n }\n parseDeviceType(userAgent) {\n if (userAgent.includes('Mobile') || userAgent.includes('Android') || userAgent.includes('iPhone')) {\n return 'Mobile';\n }\n if (userAgent.includes('iPad') || userAgent.includes('Tablet')) {\n return 'Tablet';\n }\n return 'Desktop';\n }\n}\n\nexport { BrowserIdentityManager, fetchRemoteOptions, generateId, generateUuidv7, getCurrentTimestamp, getCurrentUrl, getPageTitle, getReferrer, isBrowser, isNode, mergeOptions };\n//# sourceMappingURL=index.mjs.map\n",null,null,null,null],"names":[],"mappings":"AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,MAAM,MAAM,GAAG,kBAAkB,CAAC;AAClC;AACA,MAAM,IAAI,CAAC;AACX;AACA,IAAI,WAAW,CAAC,KAAK,EAAE;AACvB,QAAQ,IAAI,CAAC,KAAK,GAAG,KAAK,CAAC;AAC3B,KAAK;AACL;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,IAAI,OAAO,OAAO,CAAC,KAAK,EAAE;AAC1B,QAAQ,IAAI,KAAK,CAAC,MAAM,KAAK,EAAE,EAAE;AACjC,YAAY,MAAM,IAAI,SAAS,CAAC,oBAAoB,CAAC,CAAC;AACtD,SAAS;AACT,aAAa;AACb,YAAY,OAAO,IAAI,IAAI,CAAC,KAAK,CAAC,CAAC;AACnC,SAAS;AACT,KAAK;AACL;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,IAAI,OAAO,YAAY,CAAC,QAAQ,EAAE,KAAK,EAAE,OAAO,EAAE,OAAO,EAAE;AAC3D,QAAQ,IAAI,CAAC,MAAM,CAAC,SAAS,CAAC,QAAQ,CAAC;AACvC,YAAY,CAAC,MAAM,CAAC,SAAS,CAAC,KAAK,CAAC;AACpC,YAAY,CAAC,MAAM,CAAC,SAAS,CAAC,OAAO,CAAC;AACtC,YAAY,CAAC,MAAM,CAAC,SAAS,CAAC,OAAO,CAAC;AACtC,YAAY,QAAQ,GAAG,CAAC;AACxB,YAAY,KAAK,GAAG,CAAC;AACrB,YAAY,OAAO,GAAG,CAAC;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