diff --git a/package-lock.json b/package-lock.json index c990000..38645a1 100644 --- a/package-lock.json +++ b/package-lock.json @@ -10,8 +10,7 @@ "license": "MIT", "dependencies": { "axios": "^1.6.2", - "socket.io-client": "^4.7.5", - "uuid": "^13.0.0" + "socket.io-client": "^4.7.5" }, "devDependencies": { "@types/hast": "^3.0.4", @@ -6197,19 +6196,6 @@ "punycode": "^2.1.0" } }, - "node_modules/uuid": { - "version": "13.0.0", - "resolved": "https://registry.npmjs.org/uuid/-/uuid-13.0.0.tgz", - "integrity": "sha512-XQegIaBTVUjSHliKqcnFqYypAd4S+WCYt5NIeRs6w/UAry7z8Y9j5ZwRRL4kzq9U3sD6v+85er9FvkEaBpji2w==", - "funding": [ - "https://github.com/sponsors/broofa", - "https://github.com/sponsors/ctavan" - ], - "license": "MIT", - "bin": { - "uuid": "dist-node/bin/uuid" - } - }, "node_modules/vite": { "version": "5.4.21", "resolved": "https://registry.npmjs.org/vite/-/vite-5.4.21.tgz", diff --git a/package.json b/package.json index 3ed0545..09df863 100644 --- a/package.json +++ b/package.json @@ -27,8 +27,7 @@ }, "dependencies": { "axios": "^1.6.2", - "socket.io-client": "^4.7.5", - "uuid": "^13.0.0" + "socket.io-client": "^4.7.5" }, "devDependencies": { "@types/hast": "^3.0.4", diff --git a/src/utils/axios-client.ts b/src/utils/axios-client.ts index 957835c..1d777dc 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 type { Base44ErrorJSON } from "./axios-client.types.js"; /** @@ -177,7 +176,7 @@ export function createAxiosClient({ if (typeof window !== "undefined") { config.headers.set("X-Origin-URL", window.location.href); } - const requestId = uuidv4(); + const requestId = crypto.randomUUID(); (config as any).requestId = requestId; if (isInIFrame) { try {