@uniformdev/context 20.24.4-alpha.29 → 20.25.2-alpha.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/dist/index.esm.js CHANGED
@@ -2257,6 +2257,7 @@ var ScriptType = /* @__PURE__ */ ((ScriptType2) => {
2257
2257
  var EdgeNodeTagName = "nesitag";
2258
2258
 
2259
2259
  // src/insights/index.ts
2260
+ import { v4 } from "uuid";
2260
2261
  var getBasePayload = () => {
2261
2262
  const timeZone = Intl.DateTimeFormat().resolvedOptions().timeZone;
2262
2263
  const locale = navigator.languages && navigator.languages.length ? navigator.languages[0] : navigator.userLanguage || navigator.language || navigator.browserLanguage || "en";
@@ -2595,11 +2596,8 @@ var enableUniformInsights = (options) => {
2595
2596
  };
2596
2597
  };
2597
2598
  var generalRandomId = () => {
2598
- if (typeof crypto !== "undefined" && typeof crypto.randomUUID === "function") {
2599
- const id = crypto.randomUUID();
2600
- return id.replaceAll("-", "").toLowerCase();
2601
- }
2602
- return Math.random().toString(32).substring(2);
2599
+ const id = v4();
2600
+ return id.replaceAll("-", "").toLowerCase();
2603
2601
  };
2604
2602
 
2605
2603
  // src/logging/enableConsoleLogDrain.ts
package/dist/index.js CHANGED
@@ -2350,6 +2350,7 @@ var ScriptType = /* @__PURE__ */ ((ScriptType2) => {
2350
2350
  var EdgeNodeTagName = "nesitag";
2351
2351
 
2352
2352
  // src/insights/index.ts
2353
+ var import_uuid = require("uuid");
2353
2354
  var getBasePayload = () => {
2354
2355
  const timeZone = Intl.DateTimeFormat().resolvedOptions().timeZone;
2355
2356
  const locale = navigator.languages && navigator.languages.length ? navigator.languages[0] : navigator.userLanguage || navigator.language || navigator.browserLanguage || "en";
@@ -2688,11 +2689,8 @@ var enableUniformInsights = (options) => {
2688
2689
  };
2689
2690
  };
2690
2691
  var generalRandomId = () => {
2691
- if (typeof crypto !== "undefined" && typeof crypto.randomUUID === "function") {
2692
- const id = crypto.randomUUID();
2693
- return id.replaceAll("-", "").toLowerCase();
2694
- }
2695
- return Math.random().toString(32).substring(2);
2692
+ const id = (0, import_uuid.v4)();
2693
+ return id.replaceAll("-", "").toLowerCase();
2696
2694
  };
2697
2695
 
2698
2696
  // src/logging/enableConsoleLogDrain.ts
package/dist/index.mjs CHANGED
@@ -2257,6 +2257,7 @@ var ScriptType = /* @__PURE__ */ ((ScriptType2) => {
2257
2257
  var EdgeNodeTagName = "nesitag";
2258
2258
 
2259
2259
  // src/insights/index.ts
2260
+ import { v4 } from "uuid";
2260
2261
  var getBasePayload = () => {
2261
2262
  const timeZone = Intl.DateTimeFormat().resolvedOptions().timeZone;
2262
2263
  const locale = navigator.languages && navigator.languages.length ? navigator.languages[0] : navigator.userLanguage || navigator.language || navigator.browserLanguage || "en";
@@ -2595,11 +2596,8 @@ var enableUniformInsights = (options) => {
2595
2596
  };
2596
2597
  };
2597
2598
  var generalRandomId = () => {
2598
- if (typeof crypto !== "undefined" && typeof crypto.randomUUID === "function") {
2599
- const id = crypto.randomUUID();
2600
- return id.replaceAll("-", "").toLowerCase();
2601
- }
2602
- return Math.random().toString(32).substring(2);
2599
+ const id = v4();
2600
+ return id.replaceAll("-", "").toLowerCase();
2603
2601
  };
2604
2602
 
2605
2603
  // src/logging/enableConsoleLogDrain.ts
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@uniformdev/context",
3
- "version": "20.24.4-alpha.29+6e3acd5888",
3
+ "version": "20.25.2-alpha.3+fac462fd6d",
4
4
  "description": "Uniform Context core package",
5
5
  "license": "SEE LICENSE IN LICENSE.txt",
6
6
  "main": "./dist/index.js",
@@ -59,7 +59,8 @@
59
59
  "js-cookie": "3.0.5",
60
60
  "mitt": "^3.0.1",
61
61
  "p-limit": "^3.1.0",
62
- "rfdc": "^1.4.1"
62
+ "rfdc": "^1.4.1",
63
+ "uuid": "9.0.1"
63
64
  },
64
65
  "files": [
65
66
  "/dist"
@@ -67,5 +68,5 @@
67
68
  "publishConfig": {
68
69
  "access": "public"
69
70
  },
70
- "gitHead": "6e3acd5888de318fc57ec3fc609a9d2bf1b81ea3"
71
+ "gitHead": "fac462fd6dd8d6d51a6d37d5ed321ed058e23d00"
71
72
  }