feat: replace uuidv4 package with uuid

This commit is contained in:
Rohit
2025-05-28 14:22:43 +05:30
parent 9519414a10
commit 1d3a6674cd
7 changed files with 7 additions and 7 deletions

View File

@@ -7,7 +7,7 @@ import Robot from "../models/Robot";
import Run from "../models/Run";
const router = Router();
import { getDecryptedProxyConfig } from "../routes/proxy";
import { uuid } from "uuidv4";
import { v4 as uuid } from "uuid";
import { createRemoteBrowserForRun, destroyRemoteBrowser } from "../browser-management/controller";
import logger from "../logger";
import { browserPool } from "../server";

View File

@@ -3,7 +3,7 @@
* Holds the singleton instances of browser pool and socket.io server.
*/
import { Socket } from "socket.io";
import { uuid } from 'uuidv4';
import { v4 as uuid } from "uuid";
import { createSocketConnection, createSocketConnectionForRun } from "../socket-connection/connection";
import { io, browserPool } from "../server";

View File

@@ -4,7 +4,7 @@ import { createRemoteBrowserForRun, getActiveBrowserIdByState } from "../browser
import { chromium } from 'playwright-extra';
import stealthPlugin from 'puppeteer-extra-plugin-stealth';
import { browserPool } from "../server";
import { uuid } from "uuidv4";
import { v4 as uuid } from "uuid";
import moment from 'moment-timezone';
import cron from 'node-cron';
import { getDecryptedProxyConfig } from './proxy';

View File

@@ -2,7 +2,7 @@ import { Router, Request, Response } from 'express';
import Robot from '../models/Robot';
import { requireSignIn } from '../middlewares/auth';
import axios from 'axios';
import { uuid } from "uuidv4";
import { v4 as uuid } from "uuid";
export const router = Router();

View File

@@ -15,7 +15,7 @@ import {
import { CustomActions } from "../../../../src/shared/types";
import Robot from "../../models/Robot";
import { getBestSelectorForAction } from "../utils";
import { uuid } from "uuidv4";
import { v4 as uuid } from "uuid";
import { capture } from "../../utils/analytics"
import { decrypt, encrypt } from "../../utils/auth";

View File

@@ -1,4 +1,4 @@
import { uuid } from "uuidv4";
import { v4 as uuid } from "uuid";
import { chromium } from 'playwright-extra';
import stealthPlugin from 'puppeteer-extra-plugin-stealth';
import { io, Socket } from "socket.io-client";

View File

@@ -29,7 +29,7 @@ import axios from "axios";
import { useGlobalInfoStore } from "../../context/globalInfo";
import { getStoredRecording } from "../../api/storage";
import { apiUrl } from "../../apiConfig.js";
import { uuid } from "uuidv4";
import { v4 as uuid } from "uuid";
import Cookies from "js-cookie";