diff --git a/package.json b/package.json index 50188251..977fa0a3 100644 --- a/package.json +++ b/package.json @@ -52,13 +52,13 @@ "dependencies": { "axios": "^0.21.1", "jsonwebtoken": "^8.5.1", - "uuid": "^3.3.2" + "uuid": "^8.3.2" }, "devDependencies": { "@rollup/plugin-json": "^4.1.0", "@types/jest": "^26.0.22", "@types/jsonwebtoken": "^8.3.2", - "@types/uuid": "^3.4.4", + "@types/uuid": "^8.3.0", "dotenv": "^8.2.0", "husky": "^6.0.0", "jest": "^26.0.1", diff --git a/src/TokenHandler.ts b/src/TokenHandler.ts index b2652d8c..b22a1bc7 100644 --- a/src/TokenHandler.ts +++ b/src/TokenHandler.ts @@ -1,6 +1,6 @@ import jwt from "jsonwebtoken"; import crypto from "crypto"; -import uuidv4 from "uuid/v4"; +import { v4 as uuidv4 } from "uuid"; import { OAuthToken, OnStarConfig } from "./types"; import onStarAppConfig from "./onStarAppConfig.json"; diff --git a/yarn.lock b/yarn.lock index d7c3f896..3a4e9cf6 100644 --- a/yarn.lock +++ b/yarn.lock @@ -617,10 +617,10 @@ resolved "https://registry.yarnpkg.com/@types/stack-utils/-/stack-utils-2.0.0.tgz#7036640b4e21cc2f259ae826ce843d277dad8cff" integrity sha512-RJJrrySY7A8havqpGObOB4W92QXKJo63/jFLLgpvOtsGUqbQZ9Sbgl35KMm1DjC6j7AvmmU2bIno+3IyEaemaw== -"@types/uuid@^3.4.4": - version "3.4.9" - resolved "https://registry.yarnpkg.com/@types/uuid/-/uuid-3.4.9.tgz#fcf01997bbc9f7c09ae5f91383af076d466594e1" - integrity sha512-XDwyIlt/47l2kWLTzw/mtrpLdB+GPSskR2n/PIcPn+VYhVO77rGhRncIR5GPU0KRzXuqkDO+J5qqrG0Y8P6jzQ== +"@types/uuid@^8.3.0": + version "8.3.0" + resolved "https://registry.yarnpkg.com/@types/uuid/-/uuid-8.3.0.tgz#215c231dff736d5ba92410e6d602050cce7e273f" + integrity sha512-eQ9qFW/fhfGJF8WKHGEHZEyVWfZxrT+6CLIJGBcZPfxUh/+BnEj+UCGYMlr9qZuX/2AltsvwrGqp0LhEW8D0zQ== "@types/yargs-parser@*": version "20.2.0" @@ -4909,7 +4909,7 @@ uuid@^3.3.2: resolved "https://registry.yarnpkg.com/uuid/-/uuid-3.4.0.tgz#b23e4358afa8a202fe7a100af1f5f883f02007ee" integrity sha512-HjSDRw6gZE5JMggctHBcjVak08+KEVhSIiDzFnT9S9aegmp85S/bReBVTb4QTFaRNptJ9kuYaNhnbNEOkbKb/A== -uuid@^8.3.0: +uuid@^8.3.0, uuid@^8.3.2: version "8.3.2" resolved "https://registry.yarnpkg.com/uuid/-/uuid-8.3.2.tgz#80d5b5ced271bb9af6c445f21a1a04c606cefbe2" integrity sha512-+NYs2QeMWy+GWFOEm9xnn6HCDp0l7QBD7ml8zLUmJ+93Q5NF0NocErnwkTkXVFNiX3/fpC6afS8Dhb/gz7R7eg==