diff --git a/extensions/vscode/package-lock.json b/extensions/vscode/package-lock.json index 599b7a08f..dce999ccd 100644 --- a/extensions/vscode/package-lock.json +++ b/extensions/vscode/package-lock.json @@ -17,7 +17,7 @@ "entities": "^5.0.0", "eventsource": "^2.0.2", "filenamify": "^6.0.0", - "get-port": "5.1.1", + "get-port": "^7.1.0", "mutexify": "^1.4.0", "retry": "^0.13.1", "vscode-uri": "^3.0.8" @@ -2860,11 +2860,11 @@ } }, "node_modules/get-port": { - "version": "5.1.1", - "resolved": "https://registry.npmjs.org/get-port/-/get-port-5.1.1.tgz", - "integrity": "sha512-g/Q1aTSDOxFpchXC4i8ZWvxA1lnPqx/JHqcpIw0/LX9T8x/GBbi6YnlN5nhaKIFkT8oFsscUKgDJYxfwfS6QsQ==", + "version": "7.1.0", + "resolved": "https://registry.npmjs.org/get-port/-/get-port-7.1.0.tgz", + "integrity": "sha512-QB9NKEeDg3xxVwCCwJQ9+xycaz6pBB6iQ76wiWMl1927n0Kir6alPiP+yuiICLLU4jpMe08dXfpebuQppFA2zw==", "engines": { - "node": ">=8" + "node": ">=16" }, "funding": { "url": "https://github.com/sponsors/sindresorhus" diff --git a/extensions/vscode/package.json b/extensions/vscode/package.json index b547f77de..0449aa24f 100644 --- a/extensions/vscode/package.json +++ b/extensions/vscode/package.json @@ -546,7 +546,7 @@ "entities": "^5.0.0", "eventsource": "^2.0.2", "filenamify": "^6.0.0", - "get-port": "5.1.1", + "get-port": "^7.1.0", "mutexify": "^1.4.0", "retry": "^0.13.1", "vscode-uri": "^3.0.8" diff --git a/extensions/vscode/src/ports.ts b/extensions/vscode/src/ports.ts index 9973f31a6..7b606fd3d 100644 --- a/extensions/vscode/src/ports.ts +++ b/extensions/vscode/src/ports.ts @@ -1,6 +1,6 @@ // Copyright (C) 2024 by Posit Software, PBC. -import getPort = require("get-port"); +import getPort from "get-port"; export const acquire = (): Promise => { return getPort(); diff --git a/extensions/vscode/webviews/homeView/package-lock.json b/extensions/vscode/webviews/homeView/package-lock.json index 34460417b..8da05f422 100644 --- a/extensions/vscode/webviews/homeView/package-lock.json +++ b/extensions/vscode/webviews/homeView/package-lock.json @@ -10,7 +10,6 @@ "dependencies": { "axios": "1.7.4", "eventsource": "^2.0.2", - "get-port": "5.1.1", "pinia": "^2.1.7", "vue": "^3.4.21" }, @@ -1398,17 +1397,6 @@ "node": "^8.16.0 || ^10.6.0 || >=11.0.0" } }, - "node_modules/get-port": { - "version": "5.1.1", - "resolved": "https://registry.npmjs.org/get-port/-/get-port-5.1.1.tgz", - "integrity": "sha512-g/Q1aTSDOxFpchXC4i8ZWvxA1lnPqx/JHqcpIw0/LX9T8x/GBbi6YnlN5nhaKIFkT8oFsscUKgDJYxfwfS6QsQ==", - "engines": { - "node": ">=8" - }, - "funding": { - "url": "https://github.com/sponsors/sindresorhus" - } - }, "node_modules/has-flag": { "version": "4.0.0", "resolved": "https://registry.npmjs.org/has-flag/-/has-flag-4.0.0.tgz", diff --git a/extensions/vscode/webviews/homeView/package.json b/extensions/vscode/webviews/homeView/package.json index b682ed17b..40c24ce2a 100644 --- a/extensions/vscode/webviews/homeView/package.json +++ b/extensions/vscode/webviews/homeView/package.json @@ -10,7 +10,6 @@ "dependencies": { "axios": "1.7.4", "eventsource": "^2.0.2", - "get-port": "5.1.1", "pinia": "^2.1.7", "vue": "^3.4.21" },