From 3ac96a07a63bb7eaa5c373c08dbd6cd4acc8c723 Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Wed, 26 Oct 2022 19:27:57 +0000 Subject: [PATCH 1/2] deps: bump @npmcli/promise-spawn from 4.0.0 to 5.0.0 Bumps [@npmcli/promise-spawn](https://github.com/npm/promise-spawn) from 4.0.0 to 5.0.0. - [Release notes](https://github.com/npm/promise-spawn/releases) - [Changelog](https://github.com/npm/promise-spawn/blob/main/CHANGELOG.md) - [Commits](https://github.com/npm/promise-spawn/compare/v4.0.0...v5.0.0) --- updated-dependencies: - dependency-name: "@npmcli/promise-spawn" dependency-type: direct:production update-type: version-update:semver-major ... Signed-off-by: dependabot[bot] --- package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/package.json b/package.json index c6397d5..2e6fefb 100644 --- a/package.json +++ b/package.json @@ -39,7 +39,7 @@ "tap": "^16.0.1" }, "dependencies": { - "@npmcli/promise-spawn": "^4.0.0", + "@npmcli/promise-spawn": "^5.0.0", "lru-cache": "^7.4.4", "mkdirp": "^1.0.4", "npm-pick-manifest": "^8.0.0", From b2eca33898a2e00d1537c4807928f5529202b75c Mon Sep 17 00:00:00 2001 From: nlf Date: Wed, 26 Oct 2022 12:35:43 -0700 Subject: [PATCH 2/2] chore: fix tests for @npmcli/promise-spawn@5.0.0 --- test/spawn.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/test/spawn.js b/test/spawn.js index 57a4ca3..da09581 100644 --- a/test/spawn.js +++ b/test/spawn.js @@ -44,7 +44,7 @@ t.test('argument test for allowReplace', async t => { t.test('retries', t => { const logs = [] process.on('log', (...log) => logs.push(log)) - const gitMessage = 'Connection timed out\n' + const gitMessage = 'Connection timed out' const te = resolve(repo, 'transient-error.js') fs.writeFileSync(te, ` console.error('${gitMessage.trim()}') @@ -100,7 +100,7 @@ process.exit(1) }) t.test('missing pathspec', t => { - const gitMessage = 'error: pathspec \'foo\' did not match any file(s) known to git\n' + const gitMessage = 'error: pathspec \'foo\' did not match any file(s) known to git' const te = resolve(repo, 'pathspec-error.js') fs.writeFileSync(te, ` console.error("${gitMessage.trim()}") @@ -124,7 +124,7 @@ process.exit(1) }) t.test('unknown git error', t => { - const gitMessage = 'error: something really bad happened to git\n' + const gitMessage = 'error: something really bad happened to git' const te = resolve(repo, 'unknown-error.js') fs.writeFileSync(te, ` console.error("${gitMessage.trim()}")