From e98f2b91788516f96de96f5c21849d1a1d2c83fd Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Fri, 20 Oct 2023 04:43:21 +0000 Subject: [PATCH 1/2] chore(deps-dev): bump @biomejs/biome from 1.2.2 to 1.3.0 Bumps [@biomejs/biome](https://github.com/biomejs/biome/tree/HEAD/packages/@biomejs/biome) from 1.2.2 to 1.3.0. - [Release notes](https://github.com/biomejs/biome/releases) - [Changelog](https://github.com/biomejs/biome/blob/main/CHANGELOG.md) - [Commits](https://github.com/biomejs/biome/commits/cli/v1.3.0/packages/@biomejs/biome) --- updated-dependencies: - dependency-name: "@biomejs/biome" dependency-type: direct:development update-type: version-update:semver-minor ... Signed-off-by: dependabot[bot] --- package-lock.json | 112 ++++++++++++++++++++++++---------------------- 1 file changed, 58 insertions(+), 54 deletions(-) diff --git a/package-lock.json b/package-lock.json index 731f3d9..d8797fa 100644 --- a/package-lock.json +++ b/package-lock.json @@ -35,9 +35,9 @@ "dev": true }, "node_modules/@biomejs/biome": { - "version": "1.2.2", - "resolved": "https://registry.npmjs.org/@biomejs/biome/-/biome-1.2.2.tgz", - "integrity": "sha512-fXwXi56ZdaKO/N3rTmhWw41UxstoviODk+wia4WWNSlm23r8xJ/NxjaZ88scV2IsmsFHqc8rmwb2dkrStAdIEw==", + "version": "1.3.0", + "resolved": "https://registry.npmjs.org/@biomejs/biome/-/biome-1.3.0.tgz", + "integrity": "sha512-IKe8eGhiW5PfD4B3GMerS9YucvL1cqEqocVdeBi/Q8o63znqy7aLU2Xc4DAw1qg9OurWxemAp2RQorSqYHwMow==", "dev": true, "hasInstallScript": true, "bin": { @@ -46,19 +46,23 @@ "engines": { "node": ">=14.*" }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/biome" + }, "optionalDependencies": { - "@biomejs/cli-darwin-arm64": "1.2.2", - "@biomejs/cli-darwin-x64": "1.2.2", - "@biomejs/cli-linux-arm64": "1.2.2", - "@biomejs/cli-linux-x64": "1.2.2", - "@biomejs/cli-win32-arm64": "1.2.2", - "@biomejs/cli-win32-x64": "1.2.2" + "@biomejs/cli-darwin-arm64": "1.3.0", + "@biomejs/cli-darwin-x64": "1.3.0", + "@biomejs/cli-linux-arm64": "1.3.0", + "@biomejs/cli-linux-x64": "1.3.0", + "@biomejs/cli-win32-arm64": "1.3.0", + "@biomejs/cli-win32-x64": "1.3.0" } }, "node_modules/@biomejs/cli-darwin-arm64": { - "version": "1.2.2", - "resolved": "https://registry.npmjs.org/@biomejs/cli-darwin-arm64/-/cli-darwin-arm64-1.2.2.tgz", - "integrity": "sha512-Fx1IURKhoqH6wPawtKLT6wcfMSjRRcNK8+VWau0iDOjXvNtjJpSmICbU89B7Vt/gZRwPqkfDMBkFwm6V5vFTSQ==", + "version": "1.3.0", + "resolved": "https://registry.npmjs.org/@biomejs/cli-darwin-arm64/-/cli-darwin-arm64-1.3.0.tgz", + "integrity": "sha512-O2NhR3ZXw1QknvoKAxwn76U9q/RYvLsZwbYl6+iY79gnL2SL1bljuFMUzRS5R1nNs3H/LOrHUq/JpleKjOwGUw==", "cpu": [ "arm64" ], @@ -72,9 +76,9 @@ } }, "node_modules/@biomejs/cli-darwin-x64": { - "version": "1.2.2", - "resolved": "https://registry.npmjs.org/@biomejs/cli-darwin-x64/-/cli-darwin-x64-1.2.2.tgz", - "integrity": "sha512-JNaAFOI/ZisnmzvcFNd73geJxaFaN2L4YsWM6cgBeKyLY/ycl9C/PBTFfEmeB1c7f5XIIal8P2cj47kLJpN5Ig==", + "version": "1.3.0", + "resolved": "https://registry.npmjs.org/@biomejs/cli-darwin-x64/-/cli-darwin-x64-1.3.0.tgz", + "integrity": "sha512-8rljS+4nLVuSPuPmuFp64bMZqwmGv9O/6wKoVk0kzeaVD1elSzMz+ZoTrRodbI1Hl8kItDdGf431L7S1EqRokQ==", "cpu": [ "x64" ], @@ -88,9 +92,9 @@ } }, "node_modules/@biomejs/cli-linux-arm64": { - "version": "1.2.2", - "resolved": "https://registry.npmjs.org/@biomejs/cli-linux-arm64/-/cli-linux-arm64-1.2.2.tgz", - "integrity": "sha512-JHXRnfhOLx8UO/Fcyn2c5pFRri0XKqRZm2wf5oH5GSfLVpckDw2X15dYGbu3nmfM/3pcAaTV46pUpjrCnaAieg==", + "version": "1.3.0", + "resolved": "https://registry.npmjs.org/@biomejs/cli-linux-arm64/-/cli-linux-arm64-1.3.0.tgz", + "integrity": "sha512-vQIEaXQf1pPJPetcd4jfM3118sG4AfZvbDuLnU/4lCUIs0XuwPYMcx2KzwXu2m0tn6J4xQsZHvNQyHpiBbp9vA==", "cpu": [ "arm64" ], @@ -104,9 +108,9 @@ } }, "node_modules/@biomejs/cli-linux-x64": { - "version": "1.2.2", - "resolved": "https://registry.npmjs.org/@biomejs/cli-linux-x64/-/cli-linux-x64-1.2.2.tgz", - "integrity": "sha512-5Zr+iM7lUKsw81p9PkXRESuH2/AhRZ6RCWkgE+FSLcxMhXy/4RDR+o2YQDsJM6cWKIzOJM05vDHTGrDq7vXE4A==", + "version": "1.3.0", + "resolved": "https://registry.npmjs.org/@biomejs/cli-linux-x64/-/cli-linux-x64-1.3.0.tgz", + "integrity": "sha512-ZH+PvgAZ3nr69O8Tb+MO+08k+0PhG0paWhkIaUW1AUlD7ruIpk+dlHp3DjHauSPFDZkNIxj6utwI1c5lP8hF9w==", "cpu": [ "x64" ], @@ -120,9 +124,9 @@ } }, "node_modules/@biomejs/cli-win32-arm64": { - "version": "1.2.2", - "resolved": "https://registry.npmjs.org/@biomejs/cli-win32-arm64/-/cli-win32-arm64-1.2.2.tgz", - "integrity": "sha512-HvUcG2p++RvYP0zfOqh+DgiUUH+JI/uETr0kzWlOJ9F3lsG525pkywg4RSd4OvJd7Wpd3wt3UpN/A4IEJaVmbA==", + "version": "1.3.0", + "resolved": "https://registry.npmjs.org/@biomejs/cli-win32-arm64/-/cli-win32-arm64-1.3.0.tgz", + "integrity": "sha512-Mfo1oWXnuOL4zWidx0A7jQSs6+uZZYZB4wuD9lBCbuoQoRNFobGEs11z/iy8XW5mucx+MW4ylTAcDAS+5/2kEw==", "cpu": [ "arm64" ], @@ -136,9 +140,9 @@ } }, "node_modules/@biomejs/cli-win32-x64": { - "version": "1.2.2", - "resolved": "https://registry.npmjs.org/@biomejs/cli-win32-x64/-/cli-win32-x64-1.2.2.tgz", - "integrity": "sha512-bfaFJwqJ9ApFga2o88OaROSd3pasYRzRGXHJWAE9VUUKdSNSTYxHOqVrNvV54yYPtL6Kt9xkuZa4HNu9it3TaA==", + "version": "1.3.0", + "resolved": "https://registry.npmjs.org/@biomejs/cli-win32-x64/-/cli-win32-x64-1.3.0.tgz", + "integrity": "sha512-t2EPg+zeMzimBoURfj9CKeNObCZ/MbFxdQj0+K5Q+LR41fUaevG/wOrM+Swh5emRXdSBUm0qsTq3xiyv77C3Ww==", "cpu": [ "x64" ], @@ -2146,58 +2150,58 @@ "dev": true }, "@biomejs/biome": { - "version": "1.2.2", - "resolved": "https://registry.npmjs.org/@biomejs/biome/-/biome-1.2.2.tgz", - "integrity": "sha512-fXwXi56ZdaKO/N3rTmhWw41UxstoviODk+wia4WWNSlm23r8xJ/NxjaZ88scV2IsmsFHqc8rmwb2dkrStAdIEw==", + "version": "1.3.0", + "resolved": "https://registry.npmjs.org/@biomejs/biome/-/biome-1.3.0.tgz", + "integrity": "sha512-IKe8eGhiW5PfD4B3GMerS9YucvL1cqEqocVdeBi/Q8o63znqy7aLU2Xc4DAw1qg9OurWxemAp2RQorSqYHwMow==", "dev": true, "requires": { - "@biomejs/cli-darwin-arm64": "1.2.2", - "@biomejs/cli-darwin-x64": "1.2.2", - "@biomejs/cli-linux-arm64": "1.2.2", - "@biomejs/cli-linux-x64": "1.2.2", - "@biomejs/cli-win32-arm64": "1.2.2", - "@biomejs/cli-win32-x64": "1.2.2" + "@biomejs/cli-darwin-arm64": "1.3.0", + "@biomejs/cli-darwin-x64": "1.3.0", + "@biomejs/cli-linux-arm64": "1.3.0", + "@biomejs/cli-linux-x64": "1.3.0", + "@biomejs/cli-win32-arm64": "1.3.0", + "@biomejs/cli-win32-x64": "1.3.0" } }, "@biomejs/cli-darwin-arm64": { - "version": "1.2.2", - "resolved": "https://registry.npmjs.org/@biomejs/cli-darwin-arm64/-/cli-darwin-arm64-1.2.2.tgz", - "integrity": "sha512-Fx1IURKhoqH6wPawtKLT6wcfMSjRRcNK8+VWau0iDOjXvNtjJpSmICbU89B7Vt/gZRwPqkfDMBkFwm6V5vFTSQ==", + "version": "1.3.0", + "resolved": "https://registry.npmjs.org/@biomejs/cli-darwin-arm64/-/cli-darwin-arm64-1.3.0.tgz", + "integrity": "sha512-O2NhR3ZXw1QknvoKAxwn76U9q/RYvLsZwbYl6+iY79gnL2SL1bljuFMUzRS5R1nNs3H/LOrHUq/JpleKjOwGUw==", "dev": true, "optional": true }, "@biomejs/cli-darwin-x64": { - "version": "1.2.2", - "resolved": "https://registry.npmjs.org/@biomejs/cli-darwin-x64/-/cli-darwin-x64-1.2.2.tgz", - "integrity": "sha512-JNaAFOI/ZisnmzvcFNd73geJxaFaN2L4YsWM6cgBeKyLY/ycl9C/PBTFfEmeB1c7f5XIIal8P2cj47kLJpN5Ig==", + "version": "1.3.0", + "resolved": "https://registry.npmjs.org/@biomejs/cli-darwin-x64/-/cli-darwin-x64-1.3.0.tgz", + "integrity": "sha512-8rljS+4nLVuSPuPmuFp64bMZqwmGv9O/6wKoVk0kzeaVD1elSzMz+ZoTrRodbI1Hl8kItDdGf431L7S1EqRokQ==", "dev": true, "optional": true }, "@biomejs/cli-linux-arm64": { - "version": "1.2.2", - "resolved": "https://registry.npmjs.org/@biomejs/cli-linux-arm64/-/cli-linux-arm64-1.2.2.tgz", - "integrity": "sha512-JHXRnfhOLx8UO/Fcyn2c5pFRri0XKqRZm2wf5oH5GSfLVpckDw2X15dYGbu3nmfM/3pcAaTV46pUpjrCnaAieg==", + "version": "1.3.0", + "resolved": "https://registry.npmjs.org/@biomejs/cli-linux-arm64/-/cli-linux-arm64-1.3.0.tgz", + "integrity": "sha512-vQIEaXQf1pPJPetcd4jfM3118sG4AfZvbDuLnU/4lCUIs0XuwPYMcx2KzwXu2m0tn6J4xQsZHvNQyHpiBbp9vA==", "dev": true, "optional": true }, "@biomejs/cli-linux-x64": { - "version": "1.2.2", - "resolved": "https://registry.npmjs.org/@biomejs/cli-linux-x64/-/cli-linux-x64-1.2.2.tgz", - "integrity": "sha512-5Zr+iM7lUKsw81p9PkXRESuH2/AhRZ6RCWkgE+FSLcxMhXy/4RDR+o2YQDsJM6cWKIzOJM05vDHTGrDq7vXE4A==", + "version": "1.3.0", + "resolved": "https://registry.npmjs.org/@biomejs/cli-linux-x64/-/cli-linux-x64-1.3.0.tgz", + "integrity": "sha512-ZH+PvgAZ3nr69O8Tb+MO+08k+0PhG0paWhkIaUW1AUlD7ruIpk+dlHp3DjHauSPFDZkNIxj6utwI1c5lP8hF9w==", "dev": true, "optional": true }, "@biomejs/cli-win32-arm64": { - "version": "1.2.2", - "resolved": "https://registry.npmjs.org/@biomejs/cli-win32-arm64/-/cli-win32-arm64-1.2.2.tgz", - "integrity": "sha512-HvUcG2p++RvYP0zfOqh+DgiUUH+JI/uETr0kzWlOJ9F3lsG525pkywg4RSd4OvJd7Wpd3wt3UpN/A4IEJaVmbA==", + "version": "1.3.0", + "resolved": "https://registry.npmjs.org/@biomejs/cli-win32-arm64/-/cli-win32-arm64-1.3.0.tgz", + "integrity": "sha512-Mfo1oWXnuOL4zWidx0A7jQSs6+uZZYZB4wuD9lBCbuoQoRNFobGEs11z/iy8XW5mucx+MW4ylTAcDAS+5/2kEw==", "dev": true, "optional": true }, "@biomejs/cli-win32-x64": { - "version": "1.2.2", - "resolved": "https://registry.npmjs.org/@biomejs/cli-win32-x64/-/cli-win32-x64-1.2.2.tgz", - "integrity": "sha512-bfaFJwqJ9ApFga2o88OaROSd3pasYRzRGXHJWAE9VUUKdSNSTYxHOqVrNvV54yYPtL6Kt9xkuZa4HNu9it3TaA==", + "version": "1.3.0", + "resolved": "https://registry.npmjs.org/@biomejs/cli-win32-x64/-/cli-win32-x64-1.3.0.tgz", + "integrity": "sha512-t2EPg+zeMzimBoURfj9CKeNObCZ/MbFxdQj0+K5Q+LR41fUaevG/wOrM+Swh5emRXdSBUm0qsTq3xiyv77C3Ww==", "dev": true, "optional": true }, From 1c3151164a8d842b81d458753dfbdeeb9ae8b8ee Mon Sep 17 00:00:00 2001 From: Hans Klunder Date: Fri, 20 Oct 2023 11:23:46 +0200 Subject: [PATCH 2/2] fix biome linting errors --- lib/Parser.v2.js | 6 ++---- lib/Parser.v3.js | 4 ++-- lib/templates/js/test-plugin.js | 2 +- lib/templates/standaloneJS/test-plugin.js | 2 +- 4 files changed, 6 insertions(+), 8 deletions(-) diff --git a/lib/Parser.v2.js b/lib/Parser.v2.js index 5da1cee..377ae32 100644 --- a/lib/Parser.v2.js +++ b/lib/Parser.v2.js @@ -140,12 +140,10 @@ export class ParserV2 extends ParserBase { } case "basePath": this.config.prefix = spec[item]; - // the missing break is on purpose ! - // eslint-disable-next-line no-fallthrough + break; case "securityDefinitions": this.config.securitySchemes = spec[item]; - // the missing break is on purpose ! - // eslint-disable-next-line no-fallthrough + break; default: this.config.generic[item] = spec[item]; } diff --git a/lib/Parser.v3.js b/lib/Parser.v3.js index da64d2f..e30bcab 100644 --- a/lib/Parser.v3.js +++ b/lib/Parser.v3.js @@ -139,8 +139,8 @@ export class ParserV3 extends ParserBase { case "components": if (spec.components.securitySchemes) { this.config.securitySchemes = spec.components.securitySchemes; - } // the missing break is on purpose ! - // eslint-disable-next-line no-fallthrough + } + break; default: this.config.generic[item] = spec[item]; } diff --git a/lib/templates/js/test-plugin.js b/lib/templates/js/test-plugin.js index 5af8591..0b9d650 100644 --- a/lib/templates/js/test-plugin.js +++ b/lib/templates/js/test-plugin.js @@ -32,7 +32,7 @@ test("testing ${route.operationId}", (t) => { fastify.inject( { method: "${route.method}", - url: "${data.generic.basePath ? data.generic.basePath : ""}${route.url}", + url: "${data.prefix ? data.prefix : ""}${route.url}", payload: undefined,${ route.schema.body ? " //insert body data here!!" : "" } diff --git a/lib/templates/standaloneJS/test-plugin.js b/lib/templates/standaloneJS/test-plugin.js index 21e94fb..a6f6287 100644 --- a/lib/templates/standaloneJS/test-plugin.js +++ b/lib/templates/standaloneJS/test-plugin.js @@ -27,7 +27,7 @@ test("testing ${route.operationId}", (t) => { fastify.inject( { method: "${route.method}", - url: "${data.generic.basePath ? data.generic.basePath : ""}${route.url}", + url: "${data.prefix ? data.prefix : ""}${route.url}", payload: undefined,${ route.schema.body ? " //insert body data here!!" : "" }