diff --git a/package.json b/package.json index 4728af2c5..6b01a56ae 100644 --- a/package.json +++ b/package.json @@ -61,7 +61,7 @@ "@types/js-yaml": "^4.0.9", "@types/mocha": "^10.0.10", "@types/ncp": "^2.0.8", - "@types/node": "^18.19.75", + "@types/node": "^18.19.127", "@types/pull-stream": "^3.6.7", "@types/recursive-readdir": "^2.2.4", "@types/semver": "^7.5.8", diff --git a/src/test/testUtils.ts b/src/test/testUtils.ts index ca9dad16a..cd48c5359 100644 --- a/src/test/testUtils.ts +++ b/src/test/testUtils.ts @@ -39,7 +39,7 @@ export interface ExecResult { stderr: string; } -export function shellExec(command: string, options: cp.ExecOptions = {}, suppressOutput: boolean = false, doNotThrow: boolean = false): Promise { +export function shellExec(command: string, options: cp.ExecOptionsWithStringEncoding = {}, suppressOutput: boolean = false, doNotThrow: boolean = false): Promise { return new Promise((resolve, reject) => { cp.exec(command, options, (error, stdout, stderr) => { if (!suppressOutput) { diff --git a/yarn.lock b/yarn.lock index e7f161f57..f5c81738b 100644 --- a/yarn.lock +++ b/yarn.lock @@ -353,10 +353,10 @@ dependencies: undici-types "~6.20.0" -"@types/node@^18.19.75": - version "18.19.112" - resolved "https://registry.yarnpkg.com/@types/node/-/node-18.19.112.tgz#cd2aee9c075402e0e1942a44101428881dbeb110" - integrity sha512-i+Vukt9POdS/MBI7YrrkkI5fMfwFtOjphSmt4WXYLfwqsfr6z/HdCx7LqT9M7JktGob8WNgj8nFB4TbGNE4Cog== +"@types/node@^18.19.127": + version "18.19.127" + resolved "https://registry.yarnpkg.com/@types/node/-/node-18.19.127.tgz#7c2e47fa79ad7486134700514d4a975c4607f09d" + integrity sha512-gSjxjrnKXML/yo0BO099uPixMqfpJU0TKYjpfLU7TrtA2WWDki412Np/RSTPRil1saKBhvVVKzVx/p/6p94nVA== dependencies: undici-types "~5.26.4"