diff --git a/lib/session.js b/lib/session.js index 97ba8db..fc9308f 100644 --- a/lib/session.js +++ b/lib/session.js @@ -1,7 +1,7 @@ var grpc = require("@grpc/grpc-js"), protoLoader = require("@grpc/proto-loader"), path = require("path"), - uuid = require("uuid").v4; + uuid = require("crypto").randomUUID; function withSession(docker, auth, handler) { const sessionId = uuid(); diff --git a/package-lock.json b/package-lock.json index d4b9795..e11f953 100644 --- a/package-lock.json +++ b/package-lock.json @@ -14,8 +14,7 @@ "@grpc/proto-loader": "^0.7.13", "docker-modem": "^5.0.6", "protobufjs": "^7.3.2", - "tar-fs": "~2.1.2", - "uuid": "^10.0.0" + "tar-fs": "~2.1.2" }, "devDependencies": { "bluebird": "^3.7.0", @@ -1203,17 +1202,6 @@ "version": "1.0.2", "license": "MIT" }, - "node_modules/uuid": { - "version": "10.0.0", - "funding": [ - "https://github.com/sponsors/broofa", - "https://github.com/sponsors/ctavan" - ], - "license": "MIT", - "bin": { - "uuid": "dist/bin/uuid" - } - }, "node_modules/workerpool": { "version": "6.5.1", "resolved": "https://registry.npmjs.org/workerpool/-/workerpool-6.5.1.tgz", diff --git a/package.json b/package.json index e2091cb..71c730f 100644 --- a/package.json +++ b/package.json @@ -20,8 +20,7 @@ "@grpc/proto-loader": "^0.7.13", "docker-modem": "^5.0.6", "protobufjs": "^7.3.2", - "tar-fs": "~2.1.2", - "uuid": "^10.0.0" + "tar-fs": "~2.1.2" }, "devDependencies": { "bluebird": "^3.7.0",