diff --git a/package-lock.json b/package-lock.json index 66ef7a1..976a8a1 100644 --- a/package-lock.json +++ b/package-lock.json @@ -11,7 +11,6 @@ "dependencies": { "axios": "^1.17.0", "socket.io-client": "^4.8.3", - "uuid": "^13.0.2" }, "devDependencies": { "@types/hast": "^3.0.4", @@ -5502,19 +5501,6 @@ "punycode": "^2.1.0" } }, - "node_modules/uuid": { - "version": "13.0.2", - "resolved": "https://registry.npmjs.org/uuid/-/uuid-13.0.2.tgz", - "integrity": "sha512-vzi9uRZ926x4XV73S/4qQaTwPXM2JBj6/6lI/byHH1jOpCzb0zDbfytgA9LcN/hzb2l7WQSQnxITOVx5un/wGw==", - "funding": [ - "https://github.com/sponsors/broofa", - "https://github.com/sponsors/ctavan" - ], - "license": "MIT", - "bin": { - "uuid": "dist-node/bin/uuid" - } - }, "node_modules/vite": { "version": "8.0.16", "resolved": "https://registry.npmjs.org/vite/-/vite-8.0.16.tgz", diff --git a/package.json b/package.json index 83bd984..e0f1a62 100644 --- a/package.json +++ b/package.json @@ -28,7 +28,6 @@ "dependencies": { "axios": "^1.17.0", "socket.io-client": "^4.8.3", - "uuid": "^13.0.2" }, "devDependencies": { "@types/hast": "^3.0.4", diff --git a/src/utils/axios-client.ts b/src/utils/axios-client.ts index f432e9d..deb8f9e 100644 --- a/src/utils/axios-client.ts +++ b/src/utils/axios-client.ts @@ -1,6 +1,5 @@ import axios from "axios"; import { isInIFrame } from "./common.js"; -import { v4 as uuidv4 } from "uuid"; import { getAnalyticsSessionId } from "../modules/analytics.js"; import type { Base44ErrorJSON } from "./axios-client.types.js"; @@ -186,7 +185,7 @@ export function createAxiosClient({ config.headers.set("X-Base44-Anonymous-Id", getAnalyticsSessionId()); } } - const requestId = uuidv4(); + const requestId = crypto.randomUUID(); (config as any).requestId = requestId; if (isInIFrame) { try {