From 41c1d115c6a50a8cf4ebb2ed18c015954f1fc5f6 Mon Sep 17 00:00:00 2001 From: "renovate[bot]" <29139614+renovate[bot]@users.noreply.github.com> Date: Tue, 4 Jul 2023 09:55:20 +0900 Subject: [PATCH] Update dependency simple-git to v3.19.1 (#71) * Update dependency simple-git to v3.19.1 * Update dist --------- Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com> Co-authored-by: sqbot <30003564+sqbot@users.noreply.github.com> --- dist/index.js | 11 +++++++---- package-lock.json | 14 +++++++------- package.json | 2 +- 3 files changed, 15 insertions(+), 12 deletions(-) diff --git a/dist/index.js b/dist/index.js index 3c5a863..705cba8 100644 --- a/dist/index.js +++ b/dist/index.js @@ -8146,20 +8146,23 @@ function suffixPathsPlugin() { type: "spawn.args", action(data) { const prefix = []; - const suffix = []; + let suffix; + function append2(args) { + (suffix = suffix || []).push(...args); + } for (let i = 0; i < data.length; i++) { const param = data[i]; if (isPathSpec(param)) { - suffix.push(...toPaths(param)); + append2(toPaths(param)); continue; } if (param === "--") { - suffix.push(...data.slice(i + 1).flatMap((item) => isPathSpec(item) && toPaths(item) || item)); + append2(data.slice(i + 1).flatMap((item) => isPathSpec(item) && toPaths(item) || item)); break; } prefix.push(param); } - return !suffix.length ? prefix : [...prefix, "--", ...suffix.map(String)]; + return !suffix ? prefix : [...prefix, "--", ...suffix.map(String)]; } }; } diff --git a/package-lock.json b/package-lock.json index 06a4a70..2f7dfe1 100644 --- a/package-lock.json +++ b/package-lock.json @@ -9,7 +9,7 @@ "dependencies": { "@actions/core": "1.10.0", "extract-pr-titles": "1.1.0", - "simple-git": "3.19.0" + "simple-git": "3.19.1" }, "devDependencies": { "@vercel/ncc": "0.36.1", @@ -1117,9 +1117,9 @@ } }, "node_modules/simple-git": { - "version": "3.19.0", - "resolved": "https://registry.npmjs.org/simple-git/-/simple-git-3.19.0.tgz", - "integrity": "sha512-hyH2p9Ptxjf/xPuL7HfXbpYt9gKhC1yWDh3KYIAYJJePAKV7AEjLN4xhp7lozOdNiaJ9jlVvAbBymVlcS2jRiA==", + "version": "3.19.1", + "resolved": "https://registry.npmjs.org/simple-git/-/simple-git-3.19.1.tgz", + "integrity": "sha512-Ck+rcjVaE1HotraRAS8u/+xgTvToTuoMkT9/l9lvuP5jftwnYUp6DwuJzsKErHgfyRk8IB8pqGHWEbM3tLgV1w==", "dependencies": { "@kwsites/file-exists": "^1.1.1", "@kwsites/promise-deferred": "^1.1.1", @@ -2044,9 +2044,9 @@ "dev": true }, "simple-git": { - "version": "3.19.0", - "resolved": "https://registry.npmjs.org/simple-git/-/simple-git-3.19.0.tgz", - "integrity": "sha512-hyH2p9Ptxjf/xPuL7HfXbpYt9gKhC1yWDh3KYIAYJJePAKV7AEjLN4xhp7lozOdNiaJ9jlVvAbBymVlcS2jRiA==", + "version": "3.19.1", + "resolved": "https://registry.npmjs.org/simple-git/-/simple-git-3.19.1.tgz", + "integrity": "sha512-Ck+rcjVaE1HotraRAS8u/+xgTvToTuoMkT9/l9lvuP5jftwnYUp6DwuJzsKErHgfyRk8IB8pqGHWEbM3tLgV1w==", "requires": { "@kwsites/file-exists": "^1.1.1", "@kwsites/promise-deferred": "^1.1.1", diff --git a/package.json b/package.json index a75b7dc..a985cc4 100644 --- a/package.json +++ b/package.json @@ -13,7 +13,7 @@ "dependencies": { "@actions/core": "1.10.0", "extract-pr-titles": "1.1.0", - "simple-git": "3.19.0" + "simple-git": "3.19.1" }, "devDependencies": { "@vercel/ncc": "0.36.1",