From f6eeda8771e1bf900107409911e18aa5938af975 Mon Sep 17 00:00:00 2001 From: Jordan Jensen Date: Fri, 15 Nov 2024 11:22:52 -0800 Subject: [PATCH 1/2] Update get-port to latest --- extensions/vscode/package-lock.json | 10 +++++----- extensions/vscode/package.json | 2 +- extensions/vscode/src/ports.ts | 2 +- 3 files changed, 7 insertions(+), 7 deletions(-) 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(); From d56891973f0cae578176c3c6868434152c888347 Mon Sep 17 00:00:00 2001 From: Jordan Jensen Date: Fri, 15 Nov 2024 11:23:10 -0800 Subject: [PATCH 2/2] Remove get-port dependency from homeView --- .../vscode/webviews/homeView/package-lock.json | 12 ------------ extensions/vscode/webviews/homeView/package.json | 1 - 2 files changed, 13 deletions(-) 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" },