feat: replace uuidv4 package with uuid
This commit is contained in:
@@ -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";
|
||||
|
||||
@@ -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";
|
||||
|
||||
@@ -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';
|
||||
|
||||
@@ -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();
|
||||
|
||||
|
||||
@@ -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";
|
||||
|
||||
|
||||
@@ -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";
|
||||
|
||||
@@ -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";
|
||||
|
||||
|
||||
Reference in New Issue
Block a user