From b47a7625f61eeda2aa2012df8f077f2b2e7c1f4a Mon Sep 17 00:00:00 2001 From: Ben <43026681+bwp91@users.noreply.github.com> Date: Mon, 13 Nov 2023 06:11:57 +0000 Subject: [PATCH] fix (revert) extractNodejs tar extract --- package-lock.json | 22 +++++++++++----------- package.json | 2 +- src/bin/hb-service.ts | 4 ++-- ui/package-lock.json | 8 ++++---- 4 files changed, 18 insertions(+), 18 deletions(-) diff --git a/package-lock.json b/package-lock.json index 72f0b2b9d..6b536b78f 100644 --- a/package-lock.json +++ b/package-lock.json @@ -93,7 +93,7 @@ "lodash": "^4.17.21", "nodemon": "^3.0.1", "otplib": "^12.0.1", - "prettier": "^3.0.3", + "prettier": "^3.1.0", "rimraf": "^5.0.5", "ts-jest": "^29.1.1", "ts-loader": "^9.5.0", @@ -6213,9 +6213,9 @@ } }, "node_modules/flat-cache": { - "version": "3.1.1", - "resolved": "https://registry.npmjs.org/flat-cache/-/flat-cache-3.1.1.tgz", - "integrity": "sha512-/qM2b3LUIaIgviBQovTLvijfyOQXPtSRnRK26ksj2J7rzPIecePUIpJsZ4T02Qg+xiAEKIs5K8dsHEd+VaKa/Q==", + "version": "3.2.0", + "resolved": "https://registry.npmjs.org/flat-cache/-/flat-cache-3.2.0.tgz", + "integrity": "sha512-CYcENa+FtcUKLmhhqyctpclsq7QF38pKjZHsGNiSQF5r4FtoKDWabFDl3hzaEQMvT1LHEysw5twgLvpYYb4vbw==", "dev": true, "dependencies": { "flatted": "^3.2.9", @@ -6223,7 +6223,7 @@ "rimraf": "^3.0.2" }, "engines": { - "node": ">=12.0.0" + "node": "^10.12.0 || >=12.0.0" } }, "node_modules/flat-cache/node_modules/glob": { @@ -9476,9 +9476,9 @@ } }, "node_modules/luxon": { - "version": "3.4.3", - "resolved": "https://registry.npmjs.org/luxon/-/luxon-3.4.3.tgz", - "integrity": "sha512-tFWBiv3h7z+T/tDaoxA8rqTxy1CHV6gHS//QdaH4pulbq/JuBSGgQspQQqcgnwdAx6pNI7cmvz5Sv/addzHmUg==", + "version": "3.4.4", + "resolved": "https://registry.npmjs.org/luxon/-/luxon-3.4.4.tgz", + "integrity": "sha512-zobTr7akeGHnv7eBOXcRgMeCP6+uyYsczwmeRCauvpvaAltgNyTbLH/+VaEAPUeWBT+1GuNmz4wC/6jtQzbbVA==", "engines": { "node": ">=12" } @@ -10489,9 +10489,9 @@ } }, "node_modules/prettier": { - "version": "3.0.3", - "resolved": "https://registry.npmjs.org/prettier/-/prettier-3.0.3.tgz", - "integrity": "sha512-L/4pUDMxcNa8R/EthV08Zt42WBO4h1rarVtK0K+QJG0X187OLo7l699jWw0GKuwzkPQ//jMFA/8Xm6Fh3J/DAg==", + "version": "3.1.0", + "resolved": "https://registry.npmjs.org/prettier/-/prettier-3.1.0.tgz", + "integrity": "sha512-TQLvXjq5IAibjh8EpBIkNKxO749UEWABoiIZehEPiY4GNpVdhaFKqSTu+QrlU6D2dPAfubRmtJTi4K4YkQ5eXw==", "dev": true, "bin": { "prettier": "bin/prettier.cjs" diff --git a/package.json b/package.json index 6cdf8fd27..a042277cf 100644 --- a/package.json +++ b/package.json @@ -122,7 +122,7 @@ "lodash": "^4.17.21", "nodemon": "^3.0.1", "otplib": "^12.0.1", - "prettier": "^3.0.3", + "prettier": "^3.1.0", "rimraf": "^5.0.5", "ts-jest": "^29.1.1", "ts-loader": "^9.5.0", diff --git a/src/bin/hb-service.ts b/src/bin/hb-service.ts index 804818abb..9b601fe58 100644 --- a/src/bin/hb-service.ts +++ b/src/bin/hb-service.ts @@ -1212,11 +1212,11 @@ export class HomebridgeServiceHelper { /** * Extract the Node.js tarball */ - public async extractNodejs(targetVersion: string, extractConfig) { + public async extractNodejs(targetVersion: string, extractConfig: tar.ExtractOptions) { const spinner = ora(`Installing Node.js ${targetVersion}`).start(); try { - tar.x(extractConfig); + await tar.x(extractConfig); spinner.succeed(`Installed Node.js ${targetVersion}`); } catch (e) { spinner.fail(e.message); diff --git a/ui/package-lock.json b/ui/package-lock.json index 7245e387d..fca297f61 100644 --- a/ui/package-lock.json +++ b/ui/package-lock.json @@ -8177,9 +8177,9 @@ } }, "node_modules/flat-cache": { - "version": "3.1.1", - "resolved": "https://registry.npmjs.org/flat-cache/-/flat-cache-3.1.1.tgz", - "integrity": "sha512-/qM2b3LUIaIgviBQovTLvijfyOQXPtSRnRK26ksj2J7rzPIecePUIpJsZ4T02Qg+xiAEKIs5K8dsHEd+VaKa/Q==", + "version": "3.2.0", + "resolved": "https://registry.npmjs.org/flat-cache/-/flat-cache-3.2.0.tgz", + "integrity": "sha512-CYcENa+FtcUKLmhhqyctpclsq7QF38pKjZHsGNiSQF5r4FtoKDWabFDl3hzaEQMvT1LHEysw5twgLvpYYb4vbw==", "dev": true, "dependencies": { "flatted": "^3.2.9", @@ -8187,7 +8187,7 @@ "rimraf": "^3.0.2" }, "engines": { - "node": ">=12.0.0" + "node": "^10.12.0 || >=12.0.0" } }, "node_modules/flatted": {