diff --git a/packages/backend-core/package.json b/packages/backend-core/package.json index d6325e1de9..93dc911f4e 100644 --- a/packages/backend-core/package.json +++ b/packages/backend-core/package.json @@ -54,7 +54,7 @@ "sanitize-s3-objectkey": "0.0.1", "semver": "7.3.7", "tar-fs": "2.1.1", - "uuid": "8.3.2" + "uuid": "^8.3.2" }, "devDependencies": { "@shopify/jest-koa-mocks": "5.1.1", diff --git a/packages/server/package.json b/packages/server/package.json index 2f5c3db6e9..a52623802a 100644 --- a/packages/server/package.json +++ b/packages/server/package.json @@ -106,7 +106,7 @@ "svelte": "^3.49.0", "tar": "6.1.15", "to-json-schema": "0.2.5", - "uuid": "3.3.2", + "uuid": "^8.3.2", "validate.js": "0.13.1", "worker-farm": "1.7.0", "xml2js": "0.5.0" @@ -130,6 +130,7 @@ "@types/server-destroy": "1.0.1", "@types/supertest": "2.0.14", "@types/tar": "6.1.5", + "@types/uuid": "8.3.4", "apidoc": "0.50.4", "copyfiles": "2.4.1", "docker-compose": "0.23.17", diff --git a/packages/server/src/api/controllers/static/index.ts b/packages/server/src/api/controllers/static/index.ts index 5f383e837d..ec45361604 100644 --- a/packages/server/src/api/controllers/static/index.ts +++ b/packages/server/src/api/controllers/static/index.ts @@ -3,7 +3,7 @@ import { InvalidFileExtensions } from "@budibase/shared-core" require("svelte/register") import { join } from "../../../utilities/centralPath" -import uuid from "uuid" +import * as uuid from "uuid" import { ObjectStoreBuckets } from "../../../constants" import { processString } from "@budibase/string-templates" import { diff --git a/packages/server/src/utilities/fileSystem/filesystem.ts b/packages/server/src/utilities/fileSystem/filesystem.ts index be656f54d1..add587cdea 100644 --- a/packages/server/src/utilities/fileSystem/filesystem.ts +++ b/packages/server/src/utilities/fileSystem/filesystem.ts @@ -4,7 +4,7 @@ import { resolve, join } from "path" import env from "../../environment" import tar from "tar" -const uuid = require("uuid/v4") +import { v4 as uuid } from "uuid" export const TOP_LEVEL_PATH = env.TOP_LEVEL_PATH || resolve(join(__dirname, "..", "..", ".."))