diff --git a/package.json b/package.json index 447b8d2..23c98b0 100644 --- a/package.json +++ b/package.json @@ -544,8 +544,7 @@ "node-fetch": "^3.3.2", "opn": "5.3.0", "rimraf": "^3.0.2", - "tar-fs": "^3.1.3", - "uuid": "^11.1.1" + "tar-fs": "^3.1.3" }, "resolutions": { "node.extend": "^1.1.7", @@ -567,6 +566,6 @@ "form-data": ">=4.0.6", "browserslist": ">=4.28.7", "baseline-browser-mapping": ">=2.11.0", - "uuid": "^11.1.1" + "uuid": "^14.0.3" } } diff --git a/src/providers/authProvider.ts b/src/providers/authProvider.ts index d46f06b..890f2b5 100644 --- a/src/providers/authProvider.ts +++ b/src/providers/authProvider.ts @@ -14,7 +14,7 @@ import { window, workspace, } from 'vscode'; -import { v4 as uuid } from 'uuid'; +import { randomUUID } from 'crypto'; import { PromiseAdapter, promiseFromEvent } from '../utils/common'; import fetch from 'node-fetch'; import { ILaunchDarklyAuthenticationSession, Member, Team } from '../models'; @@ -127,7 +127,7 @@ export class LaunchDarklyAuthenticationProvider implements AuthenticationProvide ); const session: ILaunchDarklyAuthenticationSession = { - id: uuid(), + id: randomUUID(), accessToken: access_token, refreshToken: refresh_token, account: { @@ -194,7 +194,7 @@ export class LaunchDarklyAuthenticationProvider implements AuthenticationProvide cancellable: true, }, async (_, token) => { - const stateId = uuid(); + const stateId = randomUUID(); this._pendingStates.push(stateId); const scopeString = scopes.join(' '); const instances: QuickPickItem[] = [ diff --git a/yarn.lock b/yarn.lock index f30daa5..9022e95 100644 --- a/yarn.lock +++ b/yarn.lock @@ -5839,10 +5839,10 @@ utila@~0.4: resolved "https://registry.yarnpkg.com/utila/-/utila-0.4.0.tgz#8a16a05d445657a3aea5eecc5b12a4fa5379772c" integrity sha512-Z0DbgELS9/L/75wZbro8xAnT50pBVFQZ+hUEueGDU5FN51YSCYM+jdxsfCiHjwNP/4LCDD0i/graKpeBnOXKRA== -uuid@^11.1.1, uuid@^8.3.2: - version "11.1.1" - resolved "https://registry.yarnpkg.com/uuid/-/uuid-11.1.1.tgz#f6d81d2e1c65d00762e5e29b16c5d2d995e208ad" - integrity sha512-vIYxrBCC/N/K+Js3qSN88go7kIfNPssr/hHCesKCQNAjmgvYS2oqr69kIufEG+O4+PfezOH4EbIeHCfFov8ZgQ== +uuid@^14.0.3, uuid@^8.3.2: + version "14.0.3" + resolved "https://registry.yarnpkg.com/uuid/-/uuid-14.0.3.tgz#48c9b0dcf5a42d983c23162399eeb9af8b2cc617" + integrity sha512-Sc5u1VVln93y1Xnz4R+CunOZc7R9LUcTmhj7Rc7Eg3HVcf7rVn2FOoa812fe0W8p3jD7xeoGSYbfqCGGH2B6xw== v8-to-istanbul@^9.0.0: version "9.3.0"