From 733b31f0c9f5a539bc576f8e64fa26e6acaa17cf Mon Sep 17 00:00:00 2001 From: uzlopak Date: Wed, 11 Oct 2023 16:21:09 +0200 Subject: [PATCH] fix prettier --- package-lock.json | 884 +++++++++++++++++++++++++++- package.json | 4 +- src/action.js | 12 +- src/util.js | 2 +- src/verifyCommitSignatures.js | 4 +- test/action.test.js | 86 +-- test/github-client.test.js | 12 +- test/mapUpdateType.test.js | 2 +- test/util.test.js | 14 +- test/verifyCommitSignatures.test.js | 40 +- 10 files changed, 944 insertions(+), 116 deletions(-) diff --git a/package-lock.json b/package-lock.json index f31929c4..bfe745cd 100644 --- a/package-lock.json +++ b/package-lock.json @@ -17,9 +17,9 @@ }, "devDependencies": { "@vercel/ncc": "^0.38.0", - "eslint": "^8.50.0", + "eslint": "^8.51.0", "eslint-config-prettier": "^9.0.0", - "eslint-plugin-prettier": "^4.2.1", + "eslint-plugin-prettier": "^5.0.1", "husky": "^8.0.3", "prettier": "^3.0.3", "proxyquire": "^2.1.3", @@ -161,9 +161,9 @@ } }, "node_modules/@eslint/js": { - "version": "8.50.0", - "resolved": "https://registry.npmjs.org/@eslint/js/-/js-8.50.0.tgz", - "integrity": "sha512-NCC3zz2+nvYd+Ckfh87rA47zfu2QsQpvc6k1yzTk+b9KzRj0wkGa8LSoGOXN6Zv4lRf/EIoZ80biDh9HOI+RNQ==", + "version": "8.51.0", + "resolved": "https://registry.npmjs.org/@eslint/js/-/js-8.51.0.tgz", + "integrity": "sha512-HxjQ8Qn+4SI3/AFv6sOrDB+g6PpUTDwSJiQqOrnneEk8L71161srI9gjzzZvYVbzHiVg/BvcH95+cK/zfIt4pg==", "dev": true, "engines": { "node": "^12.22.0 || ^14.17.0 || >=16.0.0" @@ -659,6 +659,26 @@ "node": ">=14" } }, + "node_modules/@pkgr/utils": { + "version": "2.4.2", + "resolved": "https://registry.npmjs.org/@pkgr/utils/-/utils-2.4.2.tgz", + "integrity": "sha512-POgTXhjrTfbTV63DiFXav4lBHiICLKKwDeaKn9Nphwj7WH6m0hMMCaJkMyRWjgtPFyRKRVoMXXjczsTQRDEhYw==", + "dev": true, + "dependencies": { + "cross-spawn": "^7.0.3", + "fast-glob": "^3.3.0", + "is-glob": "^4.0.3", + "open": "^9.1.0", + "picocolors": "^1.0.0", + "tslib": "^2.6.0" + }, + "engines": { + "node": "^12.20.0 || ^14.18.0 || >=16.0.0" + }, + "funding": { + "url": "https://opencollective.com/unts" + } + }, "node_modules/@sigstore/bundle": { "version": "2.1.0", "resolved": "https://registry.npmjs.org/@sigstore/bundle/-/bundle-2.1.0.tgz", @@ -1800,6 +1820,15 @@ "version": "2.2.2", "license": "Apache-2.0" }, + "node_modules/big-integer": { + "version": "1.6.51", + "resolved": "https://registry.npmjs.org/big-integer/-/big-integer-1.6.51.tgz", + "integrity": "sha512-GPEid2Y9QU1Exl1rpO9B2IPJGHPSupF5GnVIP0blYvNOMer2bTvSWs1jGOUg04hTmu67nmLsQ9TBo1puaotBHg==", + "dev": true, + "engines": { + "node": ">=0.6" + } + }, "node_modules/binary-extensions": { "version": "2.2.0", "resolved": "https://registry.npmjs.org/binary-extensions/-/binary-extensions-2.2.0.tgz", @@ -1809,6 +1838,18 @@ "node": ">=8" } }, + "node_modules/bplist-parser": { + "version": "0.2.0", + "resolved": "https://registry.npmjs.org/bplist-parser/-/bplist-parser-0.2.0.tgz", + "integrity": "sha512-z0M+byMThzQmD9NILRniCUXYsYpjwnlO8N5uCFaCqIOpqRsJCrQL9NK3JsD67CN5a08nF5oIL2bD6loTdHOuKw==", + "dev": true, + "dependencies": { + "big-integer": "^1.6.44" + }, + "engines": { + "node": ">= 5.10.0" + } + }, "node_modules/brace-expansion": { "version": "1.1.11", "dev": true, @@ -1839,6 +1880,21 @@ "semver": "^7.0.0" } }, + "node_modules/bundle-name": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/bundle-name/-/bundle-name-3.0.0.tgz", + "integrity": "sha512-PKA4BeSvBpQKQ8iPOGCSiell+N8P+Tf1DlwqmYhpe2gAhKPHn8EYOxVT+ShuGmhg8lN8XiSlS80yiExKXrURlw==", + "dev": true, + "dependencies": { + "run-applescript": "^5.0.0" + }, + "engines": { + "node": ">=12" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, "node_modules/c8": { "version": "8.0.1", "resolved": "https://registry.npmjs.org/c8/-/c8-8.0.1.tgz", @@ -2288,6 +2344,52 @@ "integrity": "sha512-oIPzksmTg4/MriiaYGO+okXDT7ztn/w3Eptv/+gSIdMdKsJo0u4CfYNFJPy+4SKMuCqGw2wxnA+URMg3t8a/bQ==", "dev": true }, + "node_modules/default-browser": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/default-browser/-/default-browser-4.0.0.tgz", + "integrity": "sha512-wX5pXO1+BrhMkSbROFsyxUm0i/cJEScyNhA4PPxc41ICuv05ZZB/MX28s8aZx6xjmatvebIapF6hLEKEcpneUA==", + "dev": true, + "dependencies": { + "bundle-name": "^3.0.0", + "default-browser-id": "^3.0.0", + "execa": "^7.1.1", + "titleize": "^3.0.0" + }, + "engines": { + "node": ">=14.16" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, + "node_modules/default-browser-id": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/default-browser-id/-/default-browser-id-3.0.0.tgz", + "integrity": "sha512-OZ1y3y0SqSICtE8DE4S8YOE9UZOJ8wO16fKWVP5J1Qz42kV9jcnMVFrEE/noXb/ss3Q4pZIH79kxofzyNNtUNA==", + "dev": true, + "dependencies": { + "bplist-parser": "^0.2.0", + "untildify": "^4.0.0" + }, + "engines": { + "node": ">=12" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, + "node_modules/define-lazy-prop": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/define-lazy-prop/-/define-lazy-prop-3.0.0.tgz", + "integrity": "sha512-N+MeXYoqr3pOgn8xfyRPREN7gHakLYjhsHhWGT3fWAiL4IkAt0iDw14QiiEm2bE30c5XX5q0FtAA3CK5f9/BUg==", + "dev": true, + "engines": { + "node": ">=12" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, "node_modules/delegates": { "version": "1.0.0", "resolved": "https://registry.npmjs.org/delegates/-/delegates-1.0.0.tgz", @@ -2375,15 +2477,15 @@ } }, "node_modules/eslint": { - "version": "8.50.0", - "resolved": "https://registry.npmjs.org/eslint/-/eslint-8.50.0.tgz", - "integrity": "sha512-FOnOGSuFuFLv/Sa+FDVRZl4GGVAAFFi8LecRsI5a1tMO5HIE8nCm4ivAlzt4dT3ol/PaaGC0rJEEXQmHJBGoOg==", + "version": "8.51.0", + "resolved": "https://registry.npmjs.org/eslint/-/eslint-8.51.0.tgz", + "integrity": "sha512-2WuxRZBrlwnXi+/vFSJyjMqrNjtJqiasMzehF0shoLaW7DzS3/9Yvrmq5JiT66+pNjiX4UBnLDiKHcWAr/OInA==", "dev": true, "dependencies": { "@eslint-community/eslint-utils": "^4.2.0", "@eslint-community/regexpp": "^4.6.1", "@eslint/eslintrc": "^2.1.2", - "@eslint/js": "8.50.0", + "@eslint/js": "8.51.0", "@humanwhocodes/config-array": "^0.11.11", "@humanwhocodes/module-importer": "^1.0.1", "@nodelib/fs.walk": "^1.2.8", @@ -2441,21 +2543,29 @@ } }, "node_modules/eslint-plugin-prettier": { - "version": "4.2.1", - "resolved": "https://registry.npmjs.org/eslint-plugin-prettier/-/eslint-plugin-prettier-4.2.1.tgz", - "integrity": "sha512-f/0rXLXUt0oFYs8ra4w49wYZBG5GKZpAYsJSm6rnYL5uVDjd+zowwMwVZHnAjf4edNrKpCDYfXDgmRE/Ak7QyQ==", + "version": "5.0.1", + "resolved": "https://registry.npmjs.org/eslint-plugin-prettier/-/eslint-plugin-prettier-5.0.1.tgz", + "integrity": "sha512-m3u5RnR56asrwV/lDC4GHorlW75DsFfmUcjfCYylTUs85dBRnB7VM6xG8eCMJdeDRnppzmxZVf1GEPJvl1JmNg==", "dev": true, "dependencies": { - "prettier-linter-helpers": "^1.0.0" + "prettier-linter-helpers": "^1.0.0", + "synckit": "^0.8.5" }, "engines": { - "node": ">=12.0.0" + "node": "^14.18.0 || >=16.0.0" + }, + "funding": { + "url": "https://opencollective.com/prettier" }, "peerDependencies": { - "eslint": ">=7.28.0", - "prettier": ">=2.0.0" + "@types/eslint": ">=8.0.0", + "eslint": ">=8.0.0", + "prettier": ">=3.0.0" }, "peerDependenciesMeta": { + "@types/eslint": { + "optional": true + }, "eslint-config-prettier": { "optional": true } @@ -2555,6 +2665,62 @@ "node": ">=12" } }, + "node_modules/execa": { + "version": "7.2.0", + "resolved": "https://registry.npmjs.org/execa/-/execa-7.2.0.tgz", + "integrity": "sha512-UduyVP7TLB5IcAQl+OzLyLcS/l32W/GLg+AhHJ+ow40FOk2U3SAllPwR44v4vmdFwIWqpdwxxpQbF1n5ta9seA==", + "dev": true, + "dependencies": { + "cross-spawn": "^7.0.3", + "get-stream": "^6.0.1", + "human-signals": "^4.3.0", + "is-stream": "^3.0.0", + "merge-stream": "^2.0.0", + "npm-run-path": "^5.1.0", + "onetime": "^6.0.0", + "signal-exit": "^3.0.7", + "strip-final-newline": "^3.0.0" + }, + "engines": { + "node": "^14.18.0 || ^16.14.0 || >=18.0.0" + }, + "funding": { + "url": "https://github.com/sindresorhus/execa?sponsor=1" + } + }, + "node_modules/execa/node_modules/mimic-fn": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/mimic-fn/-/mimic-fn-4.0.0.tgz", + "integrity": "sha512-vqiC06CuhBTUdZH+RYl8sFrL096vA45Ok5ISO6sE/Mr1jRbGH4Csnhi8f3wKVl7x8mO4Au7Ir9D3Oyv1VYMFJw==", + "dev": true, + "engines": { + "node": ">=12" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, + "node_modules/execa/node_modules/onetime": { + "version": "6.0.0", + "resolved": "https://registry.npmjs.org/onetime/-/onetime-6.0.0.tgz", + "integrity": "sha512-1FlR+gjXK7X+AsAHso35MnyN5KqGwJRi/31ft6x0M194ht7S+rWAvd7PHss9xSKMzE0asv1pyIHaJYq+BbacAQ==", + "dev": true, + "dependencies": { + "mimic-fn": "^4.0.0" + }, + "engines": { + "node": ">=12" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, + "node_modules/execa/node_modules/signal-exit": { + "version": "3.0.7", + "resolved": "https://registry.npmjs.org/signal-exit/-/signal-exit-3.0.7.tgz", + "integrity": "sha512-wnD2ZE+l+SPC/uoS0vXeE9L1+0wuaMqKlfz9AMUo38JsyLSBWSFcHR1Rri62LZc12vLr1gb3jl7iwQhgwpAbGQ==", + "dev": true + }, "node_modules/exponential-backoff": { "version": "3.1.1", "resolved": "https://registry.npmjs.org/exponential-backoff/-/exponential-backoff-3.1.1.tgz", @@ -2572,6 +2738,34 @@ "integrity": "sha512-xJuoT5+L99XlZ8twedaRf6Ax2TgQVxvgZOYoPKqZufmJib0tL2tegPBOZb1pVNgIhlqDlA0eO0c3wBvQcmzx4w==", "dev": true }, + "node_modules/fast-glob": { + "version": "3.3.1", + "resolved": "https://registry.npmjs.org/fast-glob/-/fast-glob-3.3.1.tgz", + "integrity": "sha512-kNFPyjhh5cKjrUltxs+wFx+ZkbRaxxmZ+X0ZU31SOsxCEtP9VPgtq2teZw1DebupL5GmDaNQ6yKMMVcM41iqDg==", + "dev": true, + "dependencies": { + "@nodelib/fs.stat": "^2.0.2", + "@nodelib/fs.walk": "^1.2.3", + "glob-parent": "^5.1.2", + "merge2": "^1.3.0", + "micromatch": "^4.0.4" + }, + "engines": { + "node": ">=8.6.0" + } + }, + "node_modules/fast-glob/node_modules/glob-parent": { + "version": "5.1.2", + "resolved": "https://registry.npmjs.org/glob-parent/-/glob-parent-5.1.2.tgz", + "integrity": "sha512-AOIgSQCepiJYwP3ARnGx+5VnTu2HBYdzbGP45eLw1vr3zB3vZLeyed1sC9hnbcOc9/SrMyM5RPQrkGz4aS9Zow==", + "dev": true, + "dependencies": { + "is-glob": "^4.0.1" + }, + "engines": { + "node": ">= 6" + } + }, "node_modules/fast-json-stable-stringify": { "version": "2.1.0", "dev": true, @@ -2801,6 +2995,18 @@ "node": "6.* || 8.* || >= 10.*" } }, + "node_modules/get-stream": { + "version": "6.0.1", + "resolved": "https://registry.npmjs.org/get-stream/-/get-stream-6.0.1.tgz", + "integrity": "sha512-ts6Wi+2j3jQjqi70w5AlN8DFnkSwC+MqmxEzdEALB2qXZYV3X/b1CTfgPLGJNMeAWxdPfU8FO1ms3NUfaHCPYg==", + "dev": true, + "engines": { + "node": ">=10" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, "node_modules/gitdiff-parser": { "version": "0.3.1", "resolved": "https://registry.npmjs.org/gitdiff-parser/-/gitdiff-parser-0.3.1.tgz", @@ -2948,6 +3154,15 @@ "node": ">= 6" } }, + "node_modules/human-signals": { + "version": "4.3.1", + "resolved": "https://registry.npmjs.org/human-signals/-/human-signals-4.3.1.tgz", + "integrity": "sha512-nZXjEF2nbo7lIw3mgYjItAfgQXog3OjJogSbKa2CQIIvSGWcKgeJnQlNXip6NglNzYH45nSRiEVimMvYL8DDqQ==", + "dev": true, + "engines": { + "node": ">=14.18.0" + } + }, "node_modules/humanize-ms": { "version": "1.2.1", "resolved": "https://registry.npmjs.org/humanize-ms/-/humanize-ms-1.2.1.tgz", @@ -3206,6 +3421,21 @@ "url": "https://github.com/sponsors/ljharb" } }, + "node_modules/is-docker": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/is-docker/-/is-docker-3.0.0.tgz", + "integrity": "sha512-eljcgEDlEns/7AXFosB5K/2nCM4P7FQPkGc/DWLy5rmFEWvZayGrik1d9/QIY5nJ4f9YsVvBkA6kJpHn9rISdQ==", + "dev": true, + "bin": { + "is-docker": "cli.js" + }, + "engines": { + "node": "^12.20.0 || ^14.13.1 || >=16.0.0" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, "node_modules/is-extglob": { "version": "2.1.1", "dev": true, @@ -3237,6 +3467,24 @@ "node": ">=0.10.0" } }, + "node_modules/is-inside-container": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/is-inside-container/-/is-inside-container-1.0.0.tgz", + "integrity": "sha512-KIYLCCJghfHZxqjYBE7rEy0OBuTd5xCHS7tHVgvCLkx7StIoaxwNW3hCALgEUjFfeRk+MG/Qxmp/vtETEF3tRA==", + "dev": true, + "dependencies": { + "is-docker": "^3.0.0" + }, + "bin": { + "is-inside-container": "cli.js" + }, + "engines": { + "node": ">=14.16" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, "node_modules/is-lambda": { "version": "1.0.1", "resolved": "https://registry.npmjs.org/is-lambda/-/is-lambda-1.0.1.tgz", @@ -3285,6 +3533,18 @@ "node": ">=0.10.0" } }, + "node_modules/is-stream": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/is-stream/-/is-stream-3.0.0.tgz", + "integrity": "sha512-LnQR4bZ9IADDRSkvpqMGvt/tEJWclzklNgSw48V5EAaAeDd6qGvN8ei6k5p0tvxSR171VmGyHuTiAOfxAbr8kA==", + "dev": true, + "engines": { + "node": "^12.20.0 || ^14.13.1 || >=16.0.0" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, "node_modules/is-upper-case": { "version": "2.0.2", "resolved": "https://registry.npmjs.org/is-upper-case/-/is-upper-case-2.0.2.tgz", @@ -3294,6 +3554,33 @@ "tslib": "^2.0.3" } }, + "node_modules/is-wsl": { + "version": "2.2.0", + "resolved": "https://registry.npmjs.org/is-wsl/-/is-wsl-2.2.0.tgz", + "integrity": "sha512-fKzAra0rGJUUBwGBgNkHZuToZcn+TtXHpeCgmkMJMMYx1sQDYaCSyjJBSCa2nH1DGm7s3n1oBnohoVTBaN7Lww==", + "dev": true, + "dependencies": { + "is-docker": "^2.0.0" + }, + "engines": { + "node": ">=8" + } + }, + "node_modules/is-wsl/node_modules/is-docker": { + "version": "2.2.1", + "resolved": "https://registry.npmjs.org/is-docker/-/is-docker-2.2.1.tgz", + "integrity": "sha512-F+i2BKsFrH66iaUFc0woD8sLy8getkwTwtOBjvs56Cx4CgJDeKQeqfz8wAYiSb8JOprWhHH5p77PbmYCvvUuXQ==", + "dev": true, + "bin": { + "is-docker": "cli.js" + }, + "engines": { + "node": ">=8" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, "node_modules/isarray": { "version": "0.0.1", "resolved": "https://registry.npmjs.org/isarray/-/isarray-0.0.1.tgz", @@ -3627,6 +3914,34 @@ "dev": true, "license": "MIT" }, + "node_modules/merge-stream": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/merge-stream/-/merge-stream-2.0.0.tgz", + "integrity": "sha512-abv/qOcuPfk3URPfDzmZU1LKmuw8kT+0nIHvKrKgFrwifol/doWcdA4ZqsWQ8ENrFKkd67Mfpo/LovbIUsbt3w==", + "dev": true + }, + "node_modules/merge2": { + "version": "1.4.1", + "resolved": "https://registry.npmjs.org/merge2/-/merge2-1.4.1.tgz", + "integrity": "sha512-8q7VEgMJW4J8tcfVPy8g09NcQwZdbwFEqhe/WZkoIzjn/3TGDwtOCYtXGxA3O8tPzpczCCDgv+P2P5y00ZJOOg==", + "dev": true, + "engines": { + "node": ">= 8" + } + }, + "node_modules/micromatch": { + "version": "4.0.5", + "resolved": "https://registry.npmjs.org/micromatch/-/micromatch-4.0.5.tgz", + "integrity": "sha512-DMy+ERcEW2q8Z2Po+WNXuw3c5YaUSFjAO5GsJqfEl7UjvtIuFKO6ZrKvcItdy98dwFI2N1tg3zNIdKaQT+aNdA==", + "dev": true, + "dependencies": { + "braces": "^3.0.2", + "picomatch": "^2.3.1" + }, + "engines": { + "node": ">=8.6" + } + }, "node_modules/mimic-fn": { "version": "2.1.0", "resolved": "https://registry.npmjs.org/mimic-fn/-/mimic-fn-2.1.0.tgz", @@ -4067,6 +4382,33 @@ "node": "^16.14.0 || >=18.0.0" } }, + "node_modules/npm-run-path": { + "version": "5.1.0", + "resolved": "https://registry.npmjs.org/npm-run-path/-/npm-run-path-5.1.0.tgz", + "integrity": "sha512-sJOdmRGrY2sjNTRMbSvluQqg+8X7ZK61yvzBEIDhz4f8z1TZFYABsqjjCBd/0PUNE9M6QDgHJXQkGUEm7Q+l9Q==", + "dev": true, + "dependencies": { + "path-key": "^4.0.0" + }, + "engines": { + "node": "^12.20.0 || ^14.13.1 || >=16.0.0" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, + "node_modules/npm-run-path/node_modules/path-key": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/path-key/-/path-key-4.0.0.tgz", + "integrity": "sha512-haREypq7xkM7ErfgIyA0z+Bj4AGKlMSdlQE2jvJo6huWD1EdkKYV+G/T4nq0YEF2vgTT8kqMFKo1uHn950r4SQ==", + "dev": true, + "engines": { + "node": ">=12" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, "node_modules/npmlog": { "version": "6.0.2", "resolved": "https://registry.npmjs.org/npmlog/-/npmlog-6.0.2.tgz", @@ -4104,6 +4446,24 @@ "url": "https://github.com/sponsors/sindresorhus" } }, + "node_modules/open": { + "version": "9.1.0", + "resolved": "https://registry.npmjs.org/open/-/open-9.1.0.tgz", + "integrity": "sha512-OS+QTnw1/4vrf+9hh1jc1jnYjzSG4ttTBB8UxOwAnInG3Uo4ssetzC1ihqaIHjLJnA5GGlRl6QlZXOTQhRBUvg==", + "dev": true, + "dependencies": { + "default-browser": "^4.0.0", + "define-lazy-prop": "^3.0.0", + "is-inside-container": "^1.0.0", + "is-wsl": "^2.2.0" + }, + "engines": { + "node": ">=14.16" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, "node_modules/opener": { "version": "1.5.2", "resolved": "https://registry.npmjs.org/opener/-/opener-1.5.2.tgz", @@ -4291,6 +4651,12 @@ "isarray": "0.0.1" } }, + "node_modules/picocolors": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/picocolors/-/picocolors-1.0.0.tgz", + "integrity": "sha512-1fygroTLlHu66zi26VoTDv8yRgm0Fccecssto+MhsZ0D/DGW2sm8E8AjW7NU5VVTRt5GxbeZ5qBuJr+HyLYkjQ==", + "dev": true + }, "node_modules/picomatch": { "version": "2.3.1", "resolved": "https://registry.npmjs.org/picomatch/-/picomatch-2.3.1.tgz", @@ -4786,6 +5152,92 @@ "url": "https://github.com/sponsors/isaacs" } }, + "node_modules/run-applescript": { + "version": "5.0.0", + "resolved": "https://registry.npmjs.org/run-applescript/-/run-applescript-5.0.0.tgz", + "integrity": "sha512-XcT5rBksx1QdIhlFOCtgZkB99ZEouFZ1E2Kc2LHqNW13U3/74YGdkQRmThTwxy4QIyookibDKYZOPqX//6BlAg==", + "dev": true, + "dependencies": { + "execa": "^5.0.0" + }, + "engines": { + "node": ">=12" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, + "node_modules/run-applescript/node_modules/execa": { + "version": "5.1.1", + "resolved": "https://registry.npmjs.org/execa/-/execa-5.1.1.tgz", + "integrity": "sha512-8uSpZZocAZRBAPIEINJj3Lo9HyGitllczc27Eh5YYojjMFMn8yHMDMaUHE2Jqfq05D/wucwI4JGURyXt1vchyg==", + "dev": true, + "dependencies": { + "cross-spawn": "^7.0.3", + "get-stream": "^6.0.0", + "human-signals": "^2.1.0", + "is-stream": "^2.0.0", + "merge-stream": "^2.0.0", + "npm-run-path": "^4.0.1", + "onetime": "^5.1.2", + "signal-exit": "^3.0.3", + "strip-final-newline": "^2.0.0" + }, + "engines": { + "node": ">=10" + }, + "funding": { + "url": "https://github.com/sindresorhus/execa?sponsor=1" + } + }, + "node_modules/run-applescript/node_modules/human-signals": { + "version": "2.1.0", + "resolved": "https://registry.npmjs.org/human-signals/-/human-signals-2.1.0.tgz", + "integrity": "sha512-B4FFZ6q/T2jhhksgkbEW3HBvWIfDW85snkQgawt07S7J5QXTk6BkNV+0yAeZrM5QpMAdYlocGoljn0sJ/WQkFw==", + "dev": true, + "engines": { + "node": ">=10.17.0" + } + }, + "node_modules/run-applescript/node_modules/is-stream": { + "version": "2.0.1", + "resolved": "https://registry.npmjs.org/is-stream/-/is-stream-2.0.1.tgz", + "integrity": "sha512-hFoiJiTl63nn+kstHGBtewWSKnQLpyb155KHheA1l39uvtO9nWIop1p3udqPcUd/xbF1VLMO4n7OI6p7RbngDg==", + "dev": true, + "engines": { + "node": ">=8" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, + "node_modules/run-applescript/node_modules/npm-run-path": { + "version": "4.0.1", + "resolved": "https://registry.npmjs.org/npm-run-path/-/npm-run-path-4.0.1.tgz", + "integrity": "sha512-S48WzZW777zhNIrn7gxOlISNAqi9ZC/uQFnRdbeIHhZhCA6UqpkOT8T1G7BvfdgP4Er8gF4sUbaS0i7QvIfCWw==", + "dev": true, + "dependencies": { + "path-key": "^3.0.0" + }, + "engines": { + "node": ">=8" + } + }, + "node_modules/run-applescript/node_modules/signal-exit": { + "version": "3.0.7", + "resolved": "https://registry.npmjs.org/signal-exit/-/signal-exit-3.0.7.tgz", + "integrity": "sha512-wnD2ZE+l+SPC/uoS0vXeE9L1+0wuaMqKlfz9AMUo38JsyLSBWSFcHR1Rri62LZc12vLr1gb3jl7iwQhgwpAbGQ==", + "dev": true + }, + "node_modules/run-applescript/node_modules/strip-final-newline": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/strip-final-newline/-/strip-final-newline-2.0.0.tgz", + "integrity": "sha512-BrpvfNAE3dcvq7ll3xVumzjKjZQ5tI1sEUIKr3Uoks0XUl45St3FlatVqef9prk4jRDzhW6WZg+3bk93y6pLjA==", + "dev": true, + "engines": { + "node": ">=6" + } + }, "node_modules/run-parallel": { "version": "1.2.0", "resolved": "https://registry.npmjs.org/run-parallel/-/run-parallel-1.2.0.tgz", @@ -5217,6 +5669,18 @@ "node": ">=8" } }, + "node_modules/strip-final-newline": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/strip-final-newline/-/strip-final-newline-3.0.0.tgz", + "integrity": "sha512-dOESqjYr96iWYylGObzd39EuNTa5VJxyvVAEm5Jnh7KGo75V43Hk1odPQkNDyXNmUR6k+gEiDVXnjB8HJ3crXw==", + "dev": true, + "engines": { + "node": ">=12" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, "node_modules/strip-json-comments": { "version": "3.1.1", "resolved": "https://registry.npmjs.org/strip-json-comments/-/strip-json-comments-3.1.1.tgz", @@ -5325,6 +5789,22 @@ "url": "https://github.com/sponsors/isaacs" } }, + "node_modules/synckit": { + "version": "0.8.5", + "resolved": "https://registry.npmjs.org/synckit/-/synckit-0.8.5.tgz", + "integrity": "sha512-L1dapNV6vu2s/4Sputv8xGsCdAVlb5nRDMFU/E27D44l5U6cw1g0dGd45uLc+OXjNMmF4ntiMdCimzcjFKQI8Q==", + "dev": true, + "dependencies": { + "@pkgr/utils": "^2.3.1", + "tslib": "^2.5.0" + }, + "engines": { + "node": "^14.18.0 || >=16.0.0" + }, + "funding": { + "url": "https://opencollective.com/unts" + } + }, "node_modules/tap": { "version": "18.4.2", "resolved": "https://registry.npmjs.org/tap/-/tap-18.4.2.tgz", @@ -5483,6 +5963,18 @@ "dev": true, "license": "MIT" }, + "node_modules/titleize": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/titleize/-/titleize-3.0.0.tgz", + "integrity": "sha512-KxVu8EYHDPBdUYdKZdKtU2aj2XfEx9AfjXxE/Aj0vT06w2icA09Vus1rh6eSu1y01akYg6BjIK/hxyLJINoMLQ==", + "dev": true, + "engines": { + "node": ">=12" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, "node_modules/to-regex-range": { "version": "5.0.1", "resolved": "https://registry.npmjs.org/to-regex-range/-/to-regex-range-5.0.1.tgz", @@ -5780,6 +6272,15 @@ "version": "6.0.0", "license": "ISC" }, + "node_modules/untildify": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/untildify/-/untildify-4.0.0.tgz", + "integrity": "sha512-KK8xQ1mkzZeg9inewmFVDNkg3l5LUhoq9kN6iWYB/CC9YMG8HA+c1Q8HwDe6dEX7kErrEVNVBO3fWsVq5iDgtw==", + "dev": true, + "engines": { + "node": ">=8" + } + }, "node_modules/uri-js": { "version": "4.4.1", "dev": true, @@ -6286,9 +6787,9 @@ } }, "@eslint/js": { - "version": "8.50.0", - "resolved": "https://registry.npmjs.org/@eslint/js/-/js-8.50.0.tgz", - "integrity": "sha512-NCC3zz2+nvYd+Ckfh87rA47zfu2QsQpvc6k1yzTk+b9KzRj0wkGa8LSoGOXN6Zv4lRf/EIoZ80biDh9HOI+RNQ==", + "version": "8.51.0", + "resolved": "https://registry.npmjs.org/@eslint/js/-/js-8.51.0.tgz", + "integrity": "sha512-HxjQ8Qn+4SI3/AFv6sOrDB+g6PpUTDwSJiQqOrnneEk8L71161srI9gjzzZvYVbzHiVg/BvcH95+cK/zfIt4pg==", "dev": true }, "@humanwhocodes/config-array": { @@ -6665,6 +7166,20 @@ "dev": true, "optional": true }, + "@pkgr/utils": { + "version": "2.4.2", + "resolved": "https://registry.npmjs.org/@pkgr/utils/-/utils-2.4.2.tgz", + "integrity": "sha512-POgTXhjrTfbTV63DiFXav4lBHiICLKKwDeaKn9Nphwj7WH6m0hMMCaJkMyRWjgtPFyRKRVoMXXjczsTQRDEhYw==", + "dev": true, + "requires": { + "cross-spawn": "^7.0.3", + "fast-glob": "^3.3.0", + "is-glob": "^4.0.3", + "open": "^9.1.0", + "picocolors": "^1.0.0", + "tslib": "^2.6.0" + } + }, "@sigstore/bundle": { "version": "2.1.0", "resolved": "https://registry.npmjs.org/@sigstore/bundle/-/bundle-2.1.0.tgz", @@ -7332,7 +7847,7 @@ "actions-toolkit": { "version": "git+ssh://git@github.com/nearform/actions-toolkit.git#994e8bf882c0b0fa5cf53fb489e55480db80f8ef", "integrity": "sha512-B1BNl7EeTpcpsWz5Fg7gjHhpvFAhOFlYUlWEUIQGWt9Yb3+45b6aRwI3LL5wenBEor4K/CIzogNhHEIoBU14KA==", - "from": "actions-toolkit@github:nearform/actions-toolkit#994e8bf882c0b0fa5cf53fb489e55480db80f8ef", + "from": "actions-toolkit@github:nearform/actions-toolkit", "requires": { "@actions/core": "^1.10.0" } @@ -7468,12 +7983,27 @@ "before-after-hook": { "version": "2.2.2" }, + "big-integer": { + "version": "1.6.51", + "resolved": "https://registry.npmjs.org/big-integer/-/big-integer-1.6.51.tgz", + "integrity": "sha512-GPEid2Y9QU1Exl1rpO9B2IPJGHPSupF5GnVIP0blYvNOMer2bTvSWs1jGOUg04hTmu67nmLsQ9TBo1puaotBHg==", + "dev": true + }, "binary-extensions": { "version": "2.2.0", "resolved": "https://registry.npmjs.org/binary-extensions/-/binary-extensions-2.2.0.tgz", "integrity": "sha512-jDctJ/IVQbZoJykoeHbhXpOlNBqGNcwXJKJog42E5HDPUwQTSdjCHdihjj0DlnheQ7blbT6dHOafNAiS8ooQKA==", "dev": true }, + "bplist-parser": { + "version": "0.2.0", + "resolved": "https://registry.npmjs.org/bplist-parser/-/bplist-parser-0.2.0.tgz", + "integrity": "sha512-z0M+byMThzQmD9NILRniCUXYsYpjwnlO8N5uCFaCqIOpqRsJCrQL9NK3JsD67CN5a08nF5oIL2bD6loTdHOuKw==", + "dev": true, + "requires": { + "big-integer": "^1.6.44" + } + }, "brace-expansion": { "version": "1.1.11", "dev": true, @@ -7500,6 +8030,15 @@ "semver": "^7.0.0" } }, + "bundle-name": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/bundle-name/-/bundle-name-3.0.0.tgz", + "integrity": "sha512-PKA4BeSvBpQKQ8iPOGCSiell+N8P+Tf1DlwqmYhpe2gAhKPHn8EYOxVT+ShuGmhg8lN8XiSlS80yiExKXrURlw==", + "dev": true, + "requires": { + "run-applescript": "^5.0.0" + } + }, "c8": { "version": "8.0.1", "resolved": "https://registry.npmjs.org/c8/-/c8-8.0.1.tgz", @@ -7818,6 +8357,34 @@ "integrity": "sha512-oIPzksmTg4/MriiaYGO+okXDT7ztn/w3Eptv/+gSIdMdKsJo0u4CfYNFJPy+4SKMuCqGw2wxnA+URMg3t8a/bQ==", "dev": true }, + "default-browser": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/default-browser/-/default-browser-4.0.0.tgz", + "integrity": "sha512-wX5pXO1+BrhMkSbROFsyxUm0i/cJEScyNhA4PPxc41ICuv05ZZB/MX28s8aZx6xjmatvebIapF6hLEKEcpneUA==", + "dev": true, + "requires": { + "bundle-name": "^3.0.0", + "default-browser-id": "^3.0.0", + "execa": "^7.1.1", + "titleize": "^3.0.0" + } + }, + "default-browser-id": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/default-browser-id/-/default-browser-id-3.0.0.tgz", + "integrity": "sha512-OZ1y3y0SqSICtE8DE4S8YOE9UZOJ8wO16fKWVP5J1Qz42kV9jcnMVFrEE/noXb/ss3Q4pZIH79kxofzyNNtUNA==", + "dev": true, + "requires": { + "bplist-parser": "^0.2.0", + "untildify": "^4.0.0" + } + }, + "define-lazy-prop": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/define-lazy-prop/-/define-lazy-prop-3.0.0.tgz", + "integrity": "sha512-N+MeXYoqr3pOgn8xfyRPREN7gHakLYjhsHhWGT3fWAiL4IkAt0iDw14QiiEm2bE30c5XX5q0FtAA3CK5f9/BUg==", + "dev": true + }, "delegates": { "version": "1.0.0", "resolved": "https://registry.npmjs.org/delegates/-/delegates-1.0.0.tgz", @@ -7884,15 +8451,15 @@ "dev": true }, "eslint": { - "version": "8.50.0", - "resolved": "https://registry.npmjs.org/eslint/-/eslint-8.50.0.tgz", - "integrity": "sha512-FOnOGSuFuFLv/Sa+FDVRZl4GGVAAFFi8LecRsI5a1tMO5HIE8nCm4ivAlzt4dT3ol/PaaGC0rJEEXQmHJBGoOg==", + "version": "8.51.0", + "resolved": "https://registry.npmjs.org/eslint/-/eslint-8.51.0.tgz", + "integrity": "sha512-2WuxRZBrlwnXi+/vFSJyjMqrNjtJqiasMzehF0shoLaW7DzS3/9Yvrmq5JiT66+pNjiX4UBnLDiKHcWAr/OInA==", "dev": true, "requires": { "@eslint-community/eslint-utils": "^4.2.0", "@eslint-community/regexpp": "^4.6.1", "@eslint/eslintrc": "^2.1.2", - "@eslint/js": "8.50.0", + "@eslint/js": "8.51.0", "@humanwhocodes/config-array": "^0.11.11", "@humanwhocodes/module-importer": "^1.0.1", "@nodelib/fs.walk": "^1.2.8", @@ -7936,12 +8503,13 @@ "requires": {} }, "eslint-plugin-prettier": { - "version": "4.2.1", - "resolved": "https://registry.npmjs.org/eslint-plugin-prettier/-/eslint-plugin-prettier-4.2.1.tgz", - "integrity": "sha512-f/0rXLXUt0oFYs8ra4w49wYZBG5GKZpAYsJSm6rnYL5uVDjd+zowwMwVZHnAjf4edNrKpCDYfXDgmRE/Ak7QyQ==", + "version": "5.0.1", + "resolved": "https://registry.npmjs.org/eslint-plugin-prettier/-/eslint-plugin-prettier-5.0.1.tgz", + "integrity": "sha512-m3u5RnR56asrwV/lDC4GHorlW75DsFfmUcjfCYylTUs85dBRnB7VM6xG8eCMJdeDRnppzmxZVf1GEPJvl1JmNg==", "dev": true, "requires": { - "prettier-linter-helpers": "^1.0.0" + "prettier-linter-helpers": "^1.0.0", + "synckit": "^0.8.5" } }, "eslint-scope": { @@ -8003,6 +8571,46 @@ "integrity": "sha512-f/qE2gImHRa4Cp2y1stEOSgw8wTFyUdVJX7G//bMwbaV9JqISFxg99NbmVQeP7YLnDUZ2un851jlaDrlpmGehQ==", "dev": true }, + "execa": { + "version": "7.2.0", + "resolved": "https://registry.npmjs.org/execa/-/execa-7.2.0.tgz", + "integrity": "sha512-UduyVP7TLB5IcAQl+OzLyLcS/l32W/GLg+AhHJ+ow40FOk2U3SAllPwR44v4vmdFwIWqpdwxxpQbF1n5ta9seA==", + "dev": true, + "requires": { + "cross-spawn": "^7.0.3", + "get-stream": "^6.0.1", + "human-signals": "^4.3.0", + "is-stream": "^3.0.0", + "merge-stream": "^2.0.0", + "npm-run-path": "^5.1.0", + "onetime": "^6.0.0", + "signal-exit": "^3.0.7", + "strip-final-newline": "^3.0.0" + }, + "dependencies": { + "mimic-fn": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/mimic-fn/-/mimic-fn-4.0.0.tgz", + "integrity": "sha512-vqiC06CuhBTUdZH+RYl8sFrL096vA45Ok5ISO6sE/Mr1jRbGH4Csnhi8f3wKVl7x8mO4Au7Ir9D3Oyv1VYMFJw==", + "dev": true + }, + "onetime": { + "version": "6.0.0", + "resolved": "https://registry.npmjs.org/onetime/-/onetime-6.0.0.tgz", + "integrity": "sha512-1FlR+gjXK7X+AsAHso35MnyN5KqGwJRi/31ft6x0M194ht7S+rWAvd7PHss9xSKMzE0asv1pyIHaJYq+BbacAQ==", + "dev": true, + "requires": { + "mimic-fn": "^4.0.0" + } + }, + "signal-exit": { + "version": "3.0.7", + "resolved": "https://registry.npmjs.org/signal-exit/-/signal-exit-3.0.7.tgz", + "integrity": "sha512-wnD2ZE+l+SPC/uoS0vXeE9L1+0wuaMqKlfz9AMUo38JsyLSBWSFcHR1Rri62LZc12vLr1gb3jl7iwQhgwpAbGQ==", + "dev": true + } + } + }, "exponential-backoff": { "version": "3.1.1", "resolved": "https://registry.npmjs.org/exponential-backoff/-/exponential-backoff-3.1.1.tgz", @@ -8019,6 +8627,30 @@ "integrity": "sha512-xJuoT5+L99XlZ8twedaRf6Ax2TgQVxvgZOYoPKqZufmJib0tL2tegPBOZb1pVNgIhlqDlA0eO0c3wBvQcmzx4w==", "dev": true }, + "fast-glob": { + "version": "3.3.1", + "resolved": "https://registry.npmjs.org/fast-glob/-/fast-glob-3.3.1.tgz", + "integrity": "sha512-kNFPyjhh5cKjrUltxs+wFx+ZkbRaxxmZ+X0ZU31SOsxCEtP9VPgtq2teZw1DebupL5GmDaNQ6yKMMVcM41iqDg==", + "dev": true, + "requires": { + "@nodelib/fs.stat": "^2.0.2", + "@nodelib/fs.walk": "^1.2.3", + "glob-parent": "^5.1.2", + "merge2": "^1.3.0", + "micromatch": "^4.0.4" + }, + "dependencies": { + "glob-parent": { + "version": "5.1.2", + "resolved": "https://registry.npmjs.org/glob-parent/-/glob-parent-5.1.2.tgz", + "integrity": "sha512-AOIgSQCepiJYwP3ARnGx+5VnTu2HBYdzbGP45eLw1vr3zB3vZLeyed1sC9hnbcOc9/SrMyM5RPQrkGz4aS9Zow==", + "dev": true, + "requires": { + "is-glob": "^4.0.1" + } + } + } + }, "fast-json-stable-stringify": { "version": "2.1.0", "dev": true @@ -8183,6 +8815,12 @@ "integrity": "sha512-DyFP3BM/3YHTQOCUL/w0OZHR0lpKeGrxotcHWcqNEdnltqFwXVfhEBQ94eIo34AfQpo0rGki4cyIiftY06h2Fg==", "dev": true }, + "get-stream": { + "version": "6.0.1", + "resolved": "https://registry.npmjs.org/get-stream/-/get-stream-6.0.1.tgz", + "integrity": "sha512-ts6Wi+2j3jQjqi70w5AlN8DFnkSwC+MqmxEzdEALB2qXZYV3X/b1CTfgPLGJNMeAWxdPfU8FO1ms3NUfaHCPYg==", + "dev": true + }, "gitdiff-parser": { "version": "0.3.1", "resolved": "https://registry.npmjs.org/gitdiff-parser/-/gitdiff-parser-0.3.1.tgz", @@ -8295,6 +8933,12 @@ "debug": "4" } }, + "human-signals": { + "version": "4.3.1", + "resolved": "https://registry.npmjs.org/human-signals/-/human-signals-4.3.1.tgz", + "integrity": "sha512-nZXjEF2nbo7lIw3mgYjItAfgQXog3OjJogSbKa2CQIIvSGWcKgeJnQlNXip6NglNzYH45nSRiEVimMvYL8DDqQ==", + "dev": true + }, "humanize-ms": { "version": "1.2.1", "resolved": "https://registry.npmjs.org/humanize-ms/-/humanize-ms-1.2.1.tgz", @@ -8478,6 +9122,12 @@ "has": "^1.0.3" } }, + "is-docker": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/is-docker/-/is-docker-3.0.0.tgz", + "integrity": "sha512-eljcgEDlEns/7AXFosB5K/2nCM4P7FQPkGc/DWLy5rmFEWvZayGrik1d9/QIY5nJ4f9YsVvBkA6kJpHn9rISdQ==", + "dev": true + }, "is-extglob": { "version": "2.1.1", "dev": true @@ -8495,6 +9145,15 @@ "is-extglob": "^2.1.1" } }, + "is-inside-container": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/is-inside-container/-/is-inside-container-1.0.0.tgz", + "integrity": "sha512-KIYLCCJghfHZxqjYBE7rEy0OBuTd5xCHS7tHVgvCLkx7StIoaxwNW3hCALgEUjFfeRk+MG/Qxmp/vtETEF3tRA==", + "dev": true, + "requires": { + "is-docker": "^3.0.0" + } + }, "is-lambda": { "version": "1.0.1", "resolved": "https://registry.npmjs.org/is-lambda/-/is-lambda-1.0.1.tgz", @@ -8529,6 +9188,12 @@ "is-plain-object": { "version": "5.0.0" }, + "is-stream": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/is-stream/-/is-stream-3.0.0.tgz", + "integrity": "sha512-LnQR4bZ9IADDRSkvpqMGvt/tEJWclzklNgSw48V5EAaAeDd6qGvN8ei6k5p0tvxSR171VmGyHuTiAOfxAbr8kA==", + "dev": true + }, "is-upper-case": { "version": "2.0.2", "resolved": "https://registry.npmjs.org/is-upper-case/-/is-upper-case-2.0.2.tgz", @@ -8538,6 +9203,23 @@ "tslib": "^2.0.3" } }, + "is-wsl": { + "version": "2.2.0", + "resolved": "https://registry.npmjs.org/is-wsl/-/is-wsl-2.2.0.tgz", + "integrity": "sha512-fKzAra0rGJUUBwGBgNkHZuToZcn+TtXHpeCgmkMJMMYx1sQDYaCSyjJBSCa2nH1DGm7s3n1oBnohoVTBaN7Lww==", + "dev": true, + "requires": { + "is-docker": "^2.0.0" + }, + "dependencies": { + "is-docker": { + "version": "2.2.1", + "resolved": "https://registry.npmjs.org/is-docker/-/is-docker-2.2.1.tgz", + "integrity": "sha512-F+i2BKsFrH66iaUFc0woD8sLy8getkwTwtOBjvs56Cx4CgJDeKQeqfz8wAYiSb8JOprWhHH5p77PbmYCvvUuXQ==", + "dev": true + } + } + }, "isarray": { "version": "0.0.1", "resolved": "https://registry.npmjs.org/isarray/-/isarray-0.0.1.tgz", @@ -8793,6 +9475,28 @@ "version": "1.0.1", "dev": true }, + "merge-stream": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/merge-stream/-/merge-stream-2.0.0.tgz", + "integrity": "sha512-abv/qOcuPfk3URPfDzmZU1LKmuw8kT+0nIHvKrKgFrwifol/doWcdA4ZqsWQ8ENrFKkd67Mfpo/LovbIUsbt3w==", + "dev": true + }, + "merge2": { + "version": "1.4.1", + "resolved": "https://registry.npmjs.org/merge2/-/merge2-1.4.1.tgz", + "integrity": "sha512-8q7VEgMJW4J8tcfVPy8g09NcQwZdbwFEqhe/WZkoIzjn/3TGDwtOCYtXGxA3O8tPzpczCCDgv+P2P5y00ZJOOg==", + "dev": true + }, + "micromatch": { + "version": "4.0.5", + "resolved": "https://registry.npmjs.org/micromatch/-/micromatch-4.0.5.tgz", + "integrity": "sha512-DMy+ERcEW2q8Z2Po+WNXuw3c5YaUSFjAO5GsJqfEl7UjvtIuFKO6ZrKvcItdy98dwFI2N1tg3zNIdKaQT+aNdA==", + "dev": true, + "requires": { + "braces": "^3.0.2", + "picomatch": "^2.3.1" + } + }, "mimic-fn": { "version": "2.1.0", "resolved": "https://registry.npmjs.org/mimic-fn/-/mimic-fn-2.1.0.tgz", @@ -9132,6 +9836,23 @@ } } }, + "npm-run-path": { + "version": "5.1.0", + "resolved": "https://registry.npmjs.org/npm-run-path/-/npm-run-path-5.1.0.tgz", + "integrity": "sha512-sJOdmRGrY2sjNTRMbSvluQqg+8X7ZK61yvzBEIDhz4f8z1TZFYABsqjjCBd/0PUNE9M6QDgHJXQkGUEm7Q+l9Q==", + "dev": true, + "requires": { + "path-key": "^4.0.0" + }, + "dependencies": { + "path-key": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/path-key/-/path-key-4.0.0.tgz", + "integrity": "sha512-haREypq7xkM7ErfgIyA0z+Bj4AGKlMSdlQE2jvJo6huWD1EdkKYV+G/T4nq0YEF2vgTT8kqMFKo1uHn950r4SQ==", + "dev": true + } + } + }, "npmlog": { "version": "6.0.2", "resolved": "https://registry.npmjs.org/npmlog/-/npmlog-6.0.2.tgz", @@ -9159,6 +9880,18 @@ "mimic-fn": "^2.1.0" } }, + "open": { + "version": "9.1.0", + "resolved": "https://registry.npmjs.org/open/-/open-9.1.0.tgz", + "integrity": "sha512-OS+QTnw1/4vrf+9hh1jc1jnYjzSG4ttTBB8UxOwAnInG3Uo4ssetzC1ihqaIHjLJnA5GGlRl6QlZXOTQhRBUvg==", + "dev": true, + "requires": { + "default-browser": "^4.0.0", + "define-lazy-prop": "^3.0.0", + "is-inside-container": "^1.0.0", + "is-wsl": "^2.2.0" + } + }, "opener": { "version": "1.5.2", "resolved": "https://registry.npmjs.org/opener/-/opener-1.5.2.tgz", @@ -9290,6 +10023,12 @@ "isarray": "0.0.1" } }, + "picocolors": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/picocolors/-/picocolors-1.0.0.tgz", + "integrity": "sha512-1fygroTLlHu66zi26VoTDv8yRgm0Fccecssto+MhsZ0D/DGW2sm8E8AjW7NU5VVTRt5GxbeZ5qBuJr+HyLYkjQ==", + "dev": true + }, "picomatch": { "version": "2.3.1", "resolved": "https://registry.npmjs.org/picomatch/-/picomatch-2.3.1.tgz", @@ -9626,6 +10365,67 @@ "glob": "^7.1.3" } }, + "run-applescript": { + "version": "5.0.0", + "resolved": "https://registry.npmjs.org/run-applescript/-/run-applescript-5.0.0.tgz", + "integrity": "sha512-XcT5rBksx1QdIhlFOCtgZkB99ZEouFZ1E2Kc2LHqNW13U3/74YGdkQRmThTwxy4QIyookibDKYZOPqX//6BlAg==", + "dev": true, + "requires": { + "execa": "^5.0.0" + }, + "dependencies": { + "execa": { + "version": "5.1.1", + "resolved": "https://registry.npmjs.org/execa/-/execa-5.1.1.tgz", + "integrity": "sha512-8uSpZZocAZRBAPIEINJj3Lo9HyGitllczc27Eh5YYojjMFMn8yHMDMaUHE2Jqfq05D/wucwI4JGURyXt1vchyg==", + "dev": true, + "requires": { + "cross-spawn": "^7.0.3", + "get-stream": "^6.0.0", + "human-signals": "^2.1.0", + "is-stream": "^2.0.0", + "merge-stream": "^2.0.0", + "npm-run-path": "^4.0.1", + "onetime": "^5.1.2", + "signal-exit": "^3.0.3", + "strip-final-newline": "^2.0.0" + } + }, + "human-signals": { + "version": "2.1.0", + "resolved": "https://registry.npmjs.org/human-signals/-/human-signals-2.1.0.tgz", + "integrity": "sha512-B4FFZ6q/T2jhhksgkbEW3HBvWIfDW85snkQgawt07S7J5QXTk6BkNV+0yAeZrM5QpMAdYlocGoljn0sJ/WQkFw==", + "dev": true + }, + "is-stream": { + "version": "2.0.1", + "resolved": "https://registry.npmjs.org/is-stream/-/is-stream-2.0.1.tgz", + "integrity": "sha512-hFoiJiTl63nn+kstHGBtewWSKnQLpyb155KHheA1l39uvtO9nWIop1p3udqPcUd/xbF1VLMO4n7OI6p7RbngDg==", + "dev": true + }, + "npm-run-path": { + "version": "4.0.1", + "resolved": "https://registry.npmjs.org/npm-run-path/-/npm-run-path-4.0.1.tgz", + "integrity": "sha512-S48WzZW777zhNIrn7gxOlISNAqi9ZC/uQFnRdbeIHhZhCA6UqpkOT8T1G7BvfdgP4Er8gF4sUbaS0i7QvIfCWw==", + "dev": true, + "requires": { + "path-key": "^3.0.0" + } + }, + "signal-exit": { + "version": "3.0.7", + "resolved": "https://registry.npmjs.org/signal-exit/-/signal-exit-3.0.7.tgz", + "integrity": "sha512-wnD2ZE+l+SPC/uoS0vXeE9L1+0wuaMqKlfz9AMUo38JsyLSBWSFcHR1Rri62LZc12vLr1gb3jl7iwQhgwpAbGQ==", + "dev": true + }, + "strip-final-newline": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/strip-final-newline/-/strip-final-newline-2.0.0.tgz", + "integrity": "sha512-BrpvfNAE3dcvq7ll3xVumzjKjZQ5tI1sEUIKr3Uoks0XUl45St3FlatVqef9prk4jRDzhW6WZg+3bk93y6pLjA==", + "dev": true + } + } + }, "run-parallel": { "version": "1.2.0", "resolved": "https://registry.npmjs.org/run-parallel/-/run-parallel-1.2.0.tgz", @@ -9931,6 +10731,12 @@ "ansi-regex": "^5.0.1" } }, + "strip-final-newline": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/strip-final-newline/-/strip-final-newline-3.0.0.tgz", + "integrity": "sha512-dOESqjYr96iWYylGObzd39EuNTa5VJxyvVAEm5Jnh7KGo75V43Hk1odPQkNDyXNmUR6k+gEiDVXnjB8HJ3crXw==", + "dev": true + }, "strip-json-comments": { "version": "3.1.1", "resolved": "https://registry.npmjs.org/strip-json-comments/-/strip-json-comments-3.1.1.tgz", @@ -9998,6 +10804,16 @@ } } }, + "synckit": { + "version": "0.8.5", + "resolved": "https://registry.npmjs.org/synckit/-/synckit-0.8.5.tgz", + "integrity": "sha512-L1dapNV6vu2s/4Sputv8xGsCdAVlb5nRDMFU/E27D44l5U6cw1g0dGd45uLc+OXjNMmF4ntiMdCimzcjFKQI8Q==", + "dev": true, + "requires": { + "@pkgr/utils": "^2.3.1", + "tslib": "^2.5.0" + } + }, "tap": { "version": "18.4.2", "resolved": "https://registry.npmjs.org/tap/-/tap-18.4.2.tgz", @@ -10117,6 +10933,12 @@ "version": "0.2.0", "dev": true }, + "titleize": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/titleize/-/titleize-3.0.0.tgz", + "integrity": "sha512-KxVu8EYHDPBdUYdKZdKtU2aj2XfEx9AfjXxE/Aj0vT06w2icA09Vus1rh6eSu1y01akYg6BjIK/hxyLJINoMLQ==", + "dev": true + }, "to-regex-range": { "version": "5.0.1", "resolved": "https://registry.npmjs.org/to-regex-range/-/to-regex-range-5.0.1.tgz", @@ -10317,6 +11139,12 @@ "universal-user-agent": { "version": "6.0.0" }, + "untildify": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/untildify/-/untildify-4.0.0.tgz", + "integrity": "sha512-KK8xQ1mkzZeg9inewmFVDNkg3l5LUhoq9kN6iWYB/CC9YMG8HA+c1Q8HwDe6dEX7kErrEVNVBO3fWsVq5iDgtw==", + "dev": true + }, "uri-js": { "version": "4.4.1", "dev": true, diff --git a/package.json b/package.json index d3894ab3..4c42a226 100644 --- a/package.json +++ b/package.json @@ -34,9 +34,9 @@ }, "devDependencies": { "@vercel/ncc": "^0.38.0", - "eslint": "^8.50.0", + "eslint": "^8.51.0", "eslint-config-prettier": "^9.0.0", - "eslint-plugin-prettier": "^4.2.1", + "eslint-plugin-prettier": "^5.0.1", "husky": "^8.0.3", "prettier": "^3.0.3", "proxyquire": "^2.1.3", diff --git a/src/action.js b/src/action.js index d3b581ee..de59e042 100644 --- a/src/action.js +++ b/src/action.js @@ -25,7 +25,7 @@ module.exports = async function run({ }) { const { updateType } = dependabotMetadata const dependencyNames = parseCommaOrSemicolonSeparatedValue( - dependabotMetadata.dependencyNames + dependabotMetadata.dependencyNames, ) const { @@ -48,7 +48,7 @@ module.exports = async function run({ if (!pull_request && !PR_NUMBER) { core.setOutput(MERGE_STATUS_KEY, MERGE_STATUS.skippedNotADependabotPr) return logError( - 'This action must be used in the context of a Pull Request or with a Pull Request number' + 'This action must be used in the context of a Pull Request or with a Pull Request number', ) } @@ -76,10 +76,10 @@ module.exports = async function run({ } catch { core.setOutput( MERGE_STATUS_KEY, - MERGE_STATUS.skippedCommitVerificationFailed + MERGE_STATUS.skippedCommitVerificationFailed, ) return logWarning( - 'PR contains invalid dependabot commit signatures, skipping.' + 'PR contains invalid dependabot commit signatures, skipping.', ) } } @@ -105,7 +105,7 @@ Tried to do a '${updateType}' update but the max allowed is '${TARGET}'`) } const changedExcludedPackages = EXCLUDE_PKGS.filter( - pkg => dependencyNames.indexOf(pkg) > -1 + pkg => dependencyNames.indexOf(pkg) > -1, ) // TODO: Improve error message for excluded packages? @@ -132,7 +132,7 @@ ${changedExcludedPackages.join(', ')}. Skipping.`) if (APPROVE_ONLY) { core.setOutput(MERGE_STATUS_KEY, MERGE_STATUS.approved) return logInfo( - 'APPROVE_ONLY set, PR was approved but it will not be merged' + 'APPROVE_ONLY set, PR was approved but it will not be merged', ) } diff --git a/src/util.js b/src/util.js index 9d9674bf..b94da21a 100644 --- a/src/util.js +++ b/src/util.js @@ -18,7 +18,7 @@ const getMergeMethod = inputs => { if (!mergeMethods[input]) { logWarning( - 'merge-method input is ignored because it is malformed, defaulting to `squash`.' + 'merge-method input is ignored because it is malformed, defaulting to `squash`.', ) return mergeMethods.squash } diff --git a/src/verifyCommitSignatures.js b/src/verifyCommitSignatures.js index 2d1478bf..d4a4b2a7 100644 --- a/src/verifyCommitSignatures.js +++ b/src/verifyCommitSignatures.js @@ -23,7 +23,7 @@ function verifyCommitSignatureCommitterAndAuthor( sha, author, committer, - verified + verified, ) { if ( !verified || @@ -31,7 +31,7 @@ function verifyCommitSignatureCommitterAndAuthor( author.name !== dependabotAuthor ) { throw new Error( - `Signature for commit ${sha} could not be verified - Not a dependabot commit` + `Signature for commit ${sha} could not be verified - Not a dependabot commit`, ) } } diff --git a/test/action.test.js b/test/action.test.js index 4eb017c8..68fabf59 100644 --- a/test/action.test.js +++ b/test/action.test.js @@ -126,7 +126,7 @@ tap.test('should not run if a pull request number is missing', async () => { sinon.assert.calledWith( stubs.coreStub.setOutput, MERGE_STATUS_KEY, - MERGE_STATUS.skippedNotADependabotPr + MERGE_STATUS.skippedNotADependabotPr, ) }) @@ -142,7 +142,7 @@ tap.test( await action() sinon.assert.calledOnce(stubs.prStub) - } + }, ) tap.test('should skip non-dependabot PR', async () => { @@ -163,14 +163,14 @@ tap.test('should skip non-dependabot PR', async () => { sinon.assert.calledOnce(stubs.prStub) sinon.assert.calledWithExactly( stubs.logStub.logWarning, - 'Not a dependabot PR, skipping.' + 'Not a dependabot PR, skipping.', ) sinon.assert.notCalled(stubs.approveStub) sinon.assert.notCalled(stubs.mergeStub) sinon.assert.calledWith( stubs.coreStub.setOutput, MERGE_STATUS_KEY, - MERGE_STATUS.skippedNotADependabotPr + MERGE_STATUS.skippedNotADependabotPr, ) }) @@ -206,7 +206,7 @@ for (const prCommitsStub of prCommitsStubs) { sinon.assert.calledOnce(stubs.prCommitsStub) sinon.assert.calledWithExactly( stubs.logStub.logWarning, - 'PR contains non dependabot commits, skipping.' + 'PR contains non dependabot commits, skipping.', ) sinon.assert.notCalled(stubs.approveStub) sinon.assert.notCalled(stubs.mergeStub) @@ -214,7 +214,7 @@ for (const prCommitsStub of prCommitsStubs) { sinon.assert.calledWith( stubs.coreStub.setOutput, MERGE_STATUS_KEY, - MERGE_STATUS.skippedNotADependabotPr + MERGE_STATUS.skippedNotADependabotPr, ) }) } @@ -243,7 +243,7 @@ for (const prCommitsStub of prCommitsStubs) { sinon.assert.calledWithExactly( stubs.logStub.logInfo, - 'Dependabot merge completed' + 'Dependabot merge completed', ) sinon.assert.calledOnce(stubs.prCommitsStub) sinon.assert.calledOnce(stubs.approveStub) @@ -252,9 +252,9 @@ for (const prCommitsStub of prCommitsStubs) { sinon.assert.calledWith( stubs.coreStub.setOutput, MERGE_STATUS_KEY, - MERGE_STATUS.merged + MERGE_STATUS.merged, ) - } + }, ) } @@ -287,16 +287,16 @@ tap.test( sinon.assert.calledWithExactly( stubs.logStub.logWarning, - 'PR contains invalid dependabot commit signatures, skipping.' + 'PR contains invalid dependabot commit signatures, skipping.', ) sinon.assert.notCalled(stubs.approveStub) sinon.assert.notCalled(stubs.mergeStub) sinon.assert.calledWith( stubs.coreStub.setOutput, MERGE_STATUS_KEY, - MERGE_STATUS.skippedCommitVerificationFailed + MERGE_STATUS.skippedCommitVerificationFailed, ) - } + }, ) tap.test( @@ -329,7 +329,7 @@ tap.test( sinon.assert.calledWithExactly( stubs.logStub.logInfo, - 'Dependabot merge completed' + 'Dependabot merge completed', ) sinon.assert.notCalled(stubs.coreStub.setFailed) sinon.assert.calledOnce(stubs.approveStub) @@ -337,9 +337,9 @@ tap.test( sinon.assert.calledWith( stubs.coreStub.setOutput, MERGE_STATUS_KEY, - MERGE_STATUS.merged + MERGE_STATUS.merged, ) - } + }, ) tap.test( @@ -372,7 +372,7 @@ tap.test( sinon.assert.calledWithExactly( stubs.logStub.logInfo, - 'Dependabot merge completed' + 'Dependabot merge completed', ) sinon.assert.notCalled(stubs.coreStub.setFailed) sinon.assert.calledOnce(stubs.approveStub) @@ -381,9 +381,9 @@ tap.test( sinon.assert.calledWith( stubs.coreStub.setOutput, MERGE_STATUS_KEY, - MERGE_STATUS.merged + MERGE_STATUS.merged, ) - } + }, ) tap.test( @@ -416,7 +416,7 @@ tap.test( sinon.assert.calledWithExactly( stubs.logStub.logInfo, - 'Dependabot merge completed' + 'Dependabot merge completed', ) sinon.assert.notCalled(stubs.coreStub.setFailed) sinon.assert.calledOnce(stubs.approveStub) @@ -424,9 +424,9 @@ tap.test( sinon.assert.calledWith( stubs.coreStub.setOutput, MERGE_STATUS_KEY, - MERGE_STATUS.merged + MERGE_STATUS.merged, ) - } + }, ) tap.test('should ignore excluded package', async () => { @@ -445,14 +445,14 @@ tap.test('should ignore excluded package', async () => { sinon.assert.calledWithExactly( stubs.logStub.logInfo, - '1 package(s) excluded: react. Skipping.' + '1 package(s) excluded: react. Skipping.', ) sinon.assert.notCalled(stubs.approveStub) sinon.assert.notCalled(stubs.mergeStub) sinon.assert.calledWith( stubs.coreStub.setOutput, MERGE_STATUS_KEY, - MERGE_STATUS.skippedPackageExcluded + MERGE_STATUS.skippedPackageExcluded, ) }) @@ -478,13 +478,13 @@ tap.test('approve only should not merge', async () => { sinon.assert.calledWithExactly( stubs.logStub.logInfo, - 'APPROVE_ONLY set, PR was approved but it will not be merged' + 'APPROVE_ONLY set, PR was approved but it will not be merged', ) sinon.assert.notCalled(stubs.mergeStub) sinon.assert.calledWith( stubs.coreStub.setOutput, MERGE_STATUS_KEY, - MERGE_STATUS.approved + MERGE_STATUS.approved, ) }) @@ -504,14 +504,14 @@ tap.test('should review and merge', async () => { sinon.assert.calledWithExactly( stubs.logStub.logInfo, - 'Dependabot merge completed' + 'Dependabot merge completed', ) sinon.assert.calledOnce(stubs.approveStub) sinon.assert.calledOnce(stubs.mergeStub) sinon.assert.calledWith( stubs.coreStub.setOutput, MERGE_STATUS_KEY, - MERGE_STATUS.merged + MERGE_STATUS.merged, ) }) @@ -533,16 +533,16 @@ tap.test( sinon.assert.calledWithExactly( stubs.logStub.logInfo, - 'Dependabot merge completed' + 'Dependabot merge completed', ) sinon.assert.calledOnce(stubs.approveStub) sinon.assert.calledOnce(stubs.mergeStub) sinon.assert.calledWith( stubs.coreStub.setOutput, MERGE_STATUS_KEY, - MERGE_STATUS.merged + MERGE_STATUS.merged, ) - } + }, ) tap.test( @@ -571,9 +571,9 @@ tap.test( sinon.assert.calledWith( stubs.coreStub.setOutput, MERGE_STATUS_KEY, - MERGE_STATUS.skippedCannotUpdateMajor + MERGE_STATUS.skippedCannotUpdateMajor, ) - } + }, ) tap.test('should review and merge', async () => { @@ -592,7 +592,7 @@ tap.test('should review and merge', async () => { sinon.assert.calledWithExactly( stubs.logStub.logInfo, - 'Dependabot merge completed' + 'Dependabot merge completed', ) sinon.assert.notCalled(stubs.coreStub.setFailed) sinon.assert.calledOnce(stubs.approveStub) @@ -600,7 +600,7 @@ tap.test('should review and merge', async () => { sinon.assert.calledWith( stubs.coreStub.setOutput, MERGE_STATUS_KEY, - MERGE_STATUS.merged + MERGE_STATUS.merged, ) }) @@ -626,7 +626,7 @@ tap.test('should review and enable github auto-merge', async () => { sinon.assert.calledWithExactly( stubs.logStub.logInfo, - 'USE_GITHUB_AUTO_MERGE set, PR was marked as auto-merge' + 'USE_GITHUB_AUTO_MERGE set, PR was marked as auto-merge', ) sinon.assert.notCalled(stubs.coreStub.setFailed) sinon.assert.calledOnce(stubs.approveStub) @@ -658,14 +658,14 @@ tap.test('should forbid major when target is minor', async () => { sinon.assert.calledWithExactly( stubs.logStub.logWarning, `Semver bump is higher than allowed in TARGET. -Tried to do a '${updateTypes.major}' update but the max allowed is '${updateTypes.minor}'` +Tried to do a '${updateTypes.major}' update but the max allowed is '${updateTypes.minor}'`, ) sinon.assert.notCalled(stubs.approveStub) sinon.assert.notCalled(stubs.mergeStub) sinon.assert.calledWith( stubs.coreStub.setOutput, MERGE_STATUS_KEY, - MERGE_STATUS.skippedBumpHigherThanTarget + MERGE_STATUS.skippedBumpHigherThanTarget, ) }) @@ -694,14 +694,14 @@ tap.test('should forbid minor when target is patch', async () => { sinon.assert.calledWithExactly( stubs.logStub.logWarning, `Semver bump is higher than allowed in TARGET. -Tried to do a '${updateTypes.minor}' update but the max allowed is '${updateTypes.patch}'` +Tried to do a '${updateTypes.minor}' update but the max allowed is '${updateTypes.patch}'`, ) sinon.assert.notCalled(stubs.approveStub) sinon.assert.notCalled(stubs.mergeStub) sinon.assert.calledWith( stubs.coreStub.setOutput, MERGE_STATUS_KEY, - MERGE_STATUS.skippedBumpHigherThanTarget + MERGE_STATUS.skippedBumpHigherThanTarget, ) }) @@ -729,14 +729,14 @@ tap.test('should forbid when update type is missing', async () => { sinon.assert.calledWithExactly( stubs.logStub.logWarning, - `Semver bump 'null' is invalid!` + `Semver bump 'null' is invalid!`, ) sinon.assert.notCalled(stubs.approveStub) sinon.assert.notCalled(stubs.mergeStub) sinon.assert.calledWith( stubs.coreStub.setOutput, MERGE_STATUS_KEY, - MERGE_STATUS.skippedInvalidVersion + MERGE_STATUS.skippedInvalidVersion, ) }) @@ -764,13 +764,13 @@ tap.test('should forbid when update type is not valid', async () => { sinon.assert.calledWithExactly( stubs.logStub.logWarning, - `Semver bump 'semver:invalid' is invalid!` + `Semver bump 'semver:invalid' is invalid!`, ) sinon.assert.notCalled(stubs.approveStub) sinon.assert.notCalled(stubs.mergeStub) sinon.assert.calledWith( stubs.coreStub.setOutput, MERGE_STATUS_KEY, - MERGE_STATUS.skippedInvalidVersion + MERGE_STATUS.skippedInvalidVersion, ) }) diff --git a/test/github-client.test.js b/test/github-client.test.js index 7c152ef2..7e5432a7 100644 --- a/test/github-client.test.js +++ b/test/github-client.test.js @@ -39,7 +39,7 @@ tap.afterEach(() => { tap.test('githubClient', async t => { t.test('getPullRequest', async () => { const result = await githubClient(githubStub, contextStub).getPullRequest( - PR_NUMBER + PR_NUMBER, ) tap.equal(result, data) @@ -54,7 +54,7 @@ tap.test('githubClient', async t => { const comment = 'Test pull request comment' const result = await githubClient( githubStub, - contextStub + contextStub, ).approvePullRequest(PR_NUMBER, comment) tap.equal(result, data) @@ -71,7 +71,7 @@ tap.test('githubClient', async t => { const method = 'squash' const result = await githubClient(githubStub, contextStub).mergePullRequest( PR_NUMBER, - method + method, ) tap.equal(result, data) @@ -87,7 +87,7 @@ tap.test('githubClient', async t => { const method = 'squash' const result = await githubClient( githubStub, - contextStub + contextStub, ).enableAutoMergePullRequest(PR_NODE_ID, method) tap.equal(result, data) @@ -117,7 +117,7 @@ mutation ($pullRequestId: ID!, $mergeMethod: PullRequestMergeMethod!) { t.test('getPullRequestDiff', async () => { const result = await githubClient( githubStub, - contextStub + contextStub, ).getPullRequestDiff(PR_NUMBER) tap.equal(result, data) @@ -134,7 +134,7 @@ mutation ($pullRequestId: ID!, $mergeMethod: PullRequestMergeMethod!) { t.test('getPullRequestCommits', async () => { const result = await githubClient( githubStub, - contextStub + contextStub, ).getPullRequestCommits(PR_NUMBER) tap.equal(result, data) diff --git a/test/mapUpdateType.test.js b/test/mapUpdateType.test.js index 360ed767..524a5a07 100644 --- a/test/mapUpdateType.test.js +++ b/test/mapUpdateType.test.js @@ -13,6 +13,6 @@ tap.test('mapUpdateType', async t => { t.equal(mapUpdateType('bad_input'), updateTypes.any) t.equal(mapUpdateType(), updateTypes.any) t.equal(mapUpdateType('any'), updateTypes.any) - } + }, ) }) diff --git a/test/util.test.js b/test/util.test.js index 8ec6e3cb..a3beb461 100644 --- a/test/util.test.js +++ b/test/util.test.js @@ -57,7 +57,7 @@ tap.test('getInputs', async t => { t.equal(getInputs({ 'merge-method': 'merge' }).MERGE_METHOD, 'merge') t.equal( getInputs({ 'merge-method': 'invalid-merge-method' }).MERGE_METHOD, - 'squash' + 'squash', ) }) t.test('EXCLUDE_PKGS', async t => { @@ -70,7 +70,7 @@ tap.test('getInputs', async t => { t.equal(getInputs({}).MERGE_COMMENT, '') t.equal( getInputs({ 'merge-comment': 'test-merge-comment' }).MERGE_COMMENT, - 'test-merge-comment' + 'test-merge-comment', ) }) t.test('BOOLEAN INPUTS', async t => { @@ -87,25 +87,25 @@ tap.test('getInputs', async t => { t.test('TARGET', async t => { t.equal( getInputs({ target: 'major' }).TARGET, - 'version-update:semver-major' + 'version-update:semver-major', ) t.equal( getInputs({ target: 'minor' }).TARGET, - 'version-update:semver-minor' + 'version-update:semver-minor', ) t.equal( getInputs({ target: 'patch' }).TARGET, - 'version-update:semver-patch' + 'version-update:semver-patch', ) t.equal(getInputs({ target: '' }).TARGET, 'version-update:semver-any') t.equal( getInputs({ target: 'any' }).TARGET, - 'version-update:semver-any' + 'version-update:semver-any', ) }) t.test('PR_NUMBER', async t => { t.equal(getInputs({ 'pr-number': '10' }).PR_NUMBER, '10') }) - } + }, ) }) diff --git a/test/verifyCommitSignatures.test.js b/test/verifyCommitSignatures.test.js index 4e57b66a..510f5de6 100644 --- a/test/verifyCommitSignatures.test.js +++ b/test/verifyCommitSignatures.test.js @@ -82,11 +82,11 @@ tap.test('verifyCommitSignatureCommitterAndAuthor', async t => { sha, author, committer, - verified + verified, ), new Error( - `Signature for commit ${sha} could not be verified - Not a dependabot commit` - ) + `Signature for commit ${sha} could not be verified - Not a dependabot commit`, + ), ) }) @@ -105,11 +105,11 @@ tap.test('verifyCommitSignatureCommitterAndAuthor', async t => { sha, author, committer, - verified + verified, ), new Error( - `Signature for commit ${sha} could not be verified - Not a dependabot commit` - ) + `Signature for commit ${sha} could not be verified - Not a dependabot commit`, + ), ) }) @@ -128,11 +128,11 @@ tap.test('verifyCommitSignatureCommitterAndAuthor', async t => { sha, author, committer, - verified + verified, ), new Error( - `Signature for commit ${sha} could not be verified - Not a dependabot commit` - ) + `Signature for commit ${sha} could not be verified - Not a dependabot commit`, + ), ) }) @@ -153,13 +153,13 @@ tap.test('verifyCommitSignatureCommitterAndAuthor', async t => { sha, author, committer, - verified + verified, ), new Error( - `Signature for commit ${sha} could not be verified - Not a dependabot commit` - ) + `Signature for commit ${sha} could not be verified - Not a dependabot commit`, + ), ) - } + }, ) }) @@ -181,11 +181,11 @@ tap.test('verifyCommitSignatureCommitterAndAuthor', async t => { sha, author, committer, - verified + verified, ), - {} + {}, ) - } + }, ) }) }) @@ -196,8 +196,8 @@ tap.test('VerifyCommits', async t => { t.throws( () => verifyCommits(prCommitsValidAndInvalid), new Error( - `Signature for commit sha could not be verified - Not a dependabot commit` - ) + `Signature for commit sha could not be verified - Not a dependabot commit`, + ), ) }) @@ -205,8 +205,8 @@ tap.test('VerifyCommits', async t => { t.throws( () => verifyCommits(prCommitsInvalid), new Error( - `Signature for commit sha could not be verified - Not a dependabot commit` - ) + `Signature for commit sha could not be verified - Not a dependabot commit`, + ), ) }) })