From e48b929d812300b3cc88282bd0f6952d8871785c Mon Sep 17 00:00:00 2001 From: Andre Loreth Date: Sat, 15 Feb 2025 20:50:23 +0100 Subject: [PATCH 1/2] build: upgrade linting/formatting dependencies --- package.json | 18 +- yarn.lock | 529 ++++++++++++++++++++++++++------------------------- 2 files changed, 277 insertions(+), 270 deletions(-) diff --git a/package.json b/package.json index b4b0f9d..da90ea0 100644 --- a/package.json +++ b/package.json @@ -67,10 +67,10 @@ "zod": "^3.24.1" }, "devDependencies": { - "@abinnovision/commitlint-config": "^2.2.0", - "@abinnovision/eslint-config-base": "^2.1.0", - "@abinnovision/eslint-config-typescript": "^2.1.0", - "@abinnovision/prettier-config": "^2.1.0", + "@abinnovision/commitlint-config": "^2.2.1", + "@abinnovision/eslint-config-base": "^2.2.0", + "@abinnovision/eslint-config-typescript": "^2.2.1", + "@abinnovision/prettier-config": "^2.1.3", "@commitlint/cli": "^19.7.1", "@types/body-parser": "^1", "@types/express": "^4", @@ -81,16 +81,16 @@ "dotenv-cli": "^8.0.0", "esbuild": "^0.25.0", "esbuild-node-tsc": "^2.0.5", - "eslint": "^9.13.0", + "eslint": "^9.20.1", "get-port-please": "^3.1.2", - "globals": "^15.11.0", - "husky": "^9.1.6", + "globals": "^15.15.0", + "husky": "^9.1.7", "lint-staged": "^15.4.3", "nock": "^14.0.0-beta.6", "nodemon": "^3.1.4", "oauth2-mock-server": "^7.2.0", - "prettier": "^3.3.3", - "sort-package-json": "^2.10.1", + "prettier": "^3.5.1", + "sort-package-json": "^2.14.0", "supertest": "^7.0.0", "ts-node": "^10.9.2", "typescript": "^5.7.3", diff --git a/yarn.lock b/yarn.lock index 3799804..56462bb 100644 --- a/yarn.lock +++ b/yarn.lock @@ -12,49 +12,49 @@ __metadata: languageName: node linkType: hard -"@abinnovision/commitlint-config@npm:^2.2.0": - version: 2.2.0 - resolution: "@abinnovision/commitlint-config@npm:2.2.0::__archiveUrl=https%3A%2F%2Fnpm.pkg.github.com%2Fdownload%2F%40abinnovision%2Fcommitlint-config%2F2.2.0%2F043cfef7b9dca1e5a652d076b8d8a33de85fda57" +"@abinnovision/commitlint-config@npm:^2.2.1": + version: 2.2.1 + resolution: "@abinnovision/commitlint-config@npm:2.2.1::__archiveUrl=https%3A%2F%2Fnpm.pkg.github.com%2Fdownload%2F%40abinnovision%2Fcommitlint-config%2F2.2.1%2Fbdfa9998e16598cdcbb4b97f897646ae12bb73ac" dependencies: - "@commitlint/config-conventional": "npm:^19.2.2" - checksum: 10/8938f4ad7f7e0b14cf7cafa4e2dd0c1317679972cc18a8e6cbd3c5666585a3abca90c8e925d15608ef8422c87fffb2a7e05ecc4421941a7e0bd5ec443c7c6337 + "@commitlint/config-conventional": "npm:^19.5.0" + checksum: 10/252ab10355f16bf834cf1a8507b6527d87e707b7ecefb6e61d5f7e6d6db5a0f84a2d4829736668f8f3e0b43eb6582ba07ed945e508b6cad35d3f5fe95188d00c languageName: node linkType: hard -"@abinnovision/eslint-config-base@npm:^2.1.0": - version: 2.1.0 - resolution: "@abinnovision/eslint-config-base@npm:2.1.0::__archiveUrl=https%3A%2F%2Fnpm.pkg.github.com%2Fdownload%2F%40abinnovision%2Feslint-config-base%2F2.1.0%2Ffd88458b96c29f2310bb004e3bfa7695dd3b3237" +"@abinnovision/eslint-config-base@npm:^2.2.0": + version: 2.2.0 + resolution: "@abinnovision/eslint-config-base@npm:2.2.0::__archiveUrl=https%3A%2F%2Fnpm.pkg.github.com%2Fdownload%2F%40abinnovision%2Feslint-config-base%2F2.2.0%2Ffe30d2a31faebfa5847c484657514b0a1ed81bfa" dependencies: - "@eslint/compat": "npm:^1.1.1" eslint-config-alloy: "npm:^5.1.2" - eslint-plugin-import: "npm:^2.29.1" + eslint-plugin-import: "npm:^2.31.0" + eslint-plugin-unused-imports: "npm:^4.1.4" peerDependencies: - eslint: ^8.24.0 || ^9.0.0 - checksum: 10/c9fd7502c1201a0ad679c8412b95fb9d49531599cd727e73aeffbcbf4596046f231de87fd83bf88801e7ba2414551df62ff2922607becac9238c813be4ea8c6f + eslint: ^9.0.0 + checksum: 10/8f5ec19ac7c1c5eb1512a28c13cda821e9e0335b8c23f72fcc347e53993743f0551a7094485fd226d4471ca5776068fc8ddb7c6e5f4bb6a383c8e3a88703a479 languageName: node linkType: hard -"@abinnovision/eslint-config-typescript@npm:^2.1.0": - version: 2.1.0 - resolution: "@abinnovision/eslint-config-typescript@npm:2.1.0::__archiveUrl=https%3A%2F%2Fnpm.pkg.github.com%2Fdownload%2F%40abinnovision%2Feslint-config-typescript%2F2.1.0%2Fdfa38743aaff3da6b119b7ad45da1b975de52bed" +"@abinnovision/eslint-config-typescript@npm:^2.2.1": + version: 2.2.1 + resolution: "@abinnovision/eslint-config-typescript@npm:2.2.1::__archiveUrl=https%3A%2F%2Fnpm.pkg.github.com%2Fdownload%2F%40abinnovision%2Feslint-config-typescript%2F2.2.1%2F51ae50a09bedbf79226739dc6fc5abda028fc139" dependencies: - "@typescript-eslint/eslint-plugin": "npm:^8.0.0" - "@typescript-eslint/parser": "npm:^8.0.0" + "@typescript-eslint/eslint-plugin": "npm:^8.18.0" + "@typescript-eslint/parser": "npm:^8.18.0" eslint-config-alloy: "npm:^5.1.2" peerDependencies: - eslint: ^8.24.0 || ^9.0.0 - checksum: 10/3a656b3d398bd6a16b05bc51fd58485137fbcc592e5947fc2b89f5c472ce044097db052180b94afd673a865ec3cffb46649530629e65965a1fdc98c9ccab0fe6 + eslint: ^9.0.0 + checksum: 10/dd8ec4de015bd679a97768cbc41997418feca457cb4dc8c21841a480cb1cbb54b8229f7c61fbc496e13912f47a28ab0f3ab0a75ee5f853911f4266d1916cfdc4 languageName: node linkType: hard -"@abinnovision/prettier-config@npm:^2.1.0": - version: 2.1.0 - resolution: "@abinnovision/prettier-config@npm:2.1.0::__archiveUrl=https%3A%2F%2Fnpm.pkg.github.com%2Fdownload%2F%40abinnovision%2Fprettier-config%2F2.1.0%2Ffa39788b87fd96734b71c7b65e13f0607d183493" +"@abinnovision/prettier-config@npm:^2.1.3": + version: 2.1.3 + resolution: "@abinnovision/prettier-config@npm:2.1.3::__archiveUrl=https%3A%2F%2Fnpm.pkg.github.com%2Fdownload%2F%40abinnovision%2Fprettier-config%2F2.1.3%2Feb71e15732830490368bfd48b1cc3eff40c5d5bf" peerDependencies: prettier: ^2.4.0 || ^3.0.0 bin: sync-editorconfig: ./dist/bin/sync-editorconfig.cjs - checksum: 10/c37a032380b053b4cef3296cdb7f78fd7cee65e9b629e64c2333f291310b1c175a8c24b323b0c98415eca1228a8a29ed231c44fc5510ffd647a4db06a8575c17 + checksum: 10/0255d0666ead1022e08953e3e32a605f30efd8f3c9d7a5e4cc471fd45a4ee1d216c5060a4ddbd97f73968dd067da0cba59df1a2047d981e4dc1ca1c41e9fc4b1 languageName: node linkType: hard @@ -150,13 +150,13 @@ __metadata: languageName: node linkType: hard -"@commitlint/config-conventional@npm:^19.2.2": - version: 19.5.0 - resolution: "@commitlint/config-conventional@npm:19.5.0" +"@commitlint/config-conventional@npm:^19.5.0": + version: 19.7.1 + resolution: "@commitlint/config-conventional@npm:19.7.1" dependencies: "@commitlint/types": "npm:^19.5.0" conventional-changelog-conventionalcommits: "npm:^7.0.2" - checksum: 10/5844fb51347677dd28f970a50528fbc44b9b415a8a5fd6fea6c7f6a2a11357956748eda9d1d6ae499430659b0aa78bfa7dcf8abf599951e7f34a581e60bf57da + checksum: 10/fce984d36e1a721bbbb466f67b5ec6634fbbf7626fbb9c53bdf3cca8810c4350c7cbce8c93627d1107398b61b14373dea34cd344fc9244c2834133b93569081a languageName: node linkType: hard @@ -700,41 +700,45 @@ __metadata: languageName: node linkType: hard -"@eslint-community/regexpp@npm:^4.10.0, @eslint-community/regexpp@npm:^4.11.0": - version: 4.11.1 - resolution: "@eslint-community/regexpp@npm:4.11.1" - checksum: 10/934b6d3588c7f16b18d41efec4fdb89616c440b7e3256b8cb92cfd31ae12908600f2b986d6c1e61a84cbc10256b1dd3448cd1eec79904bd67ac365d0f1aba2e2 +"@eslint-community/regexpp@npm:^4.10.0, @eslint-community/regexpp@npm:^4.12.1": + version: 4.12.1 + resolution: "@eslint-community/regexpp@npm:4.12.1" + checksum: 10/c08f1dd7dd18fbb60bdd0d85820656d1374dd898af9be7f82cb00451313402a22d5e30569c150315b4385907cdbca78c22389b2a72ab78883b3173be317620cc languageName: node linkType: hard -"@eslint/compat@npm:^1.1.1": - version: 1.1.1 - resolution: "@eslint/compat@npm:1.1.1" - checksum: 10/9004697701e9e9a7749d9e37452ee965af3620af46796ac0ee196478bbda490c780d17686c2888353c2a12d764837fa71c027c3ca18b1c3af6136105caa93642 +"@eslint/config-array@npm:^0.19.0": + version: 0.19.2 + resolution: "@eslint/config-array@npm:0.19.2" + dependencies: + "@eslint/object-schema": "npm:^2.1.6" + debug: "npm:^4.3.1" + minimatch: "npm:^3.1.2" + checksum: 10/a6809720908f7dd8536e1a73b2369adf802fe61335536ed0592bca9543c476956e0c0a20fef8001885da8026e2445dc9bf3e471bb80d32c3be7bcdabb7628fd1 languageName: node linkType: hard -"@eslint/config-array@npm:^0.18.0": - version: 0.18.0 - resolution: "@eslint/config-array@npm:0.18.0" +"@eslint/core@npm:^0.10.0": + version: 0.10.0 + resolution: "@eslint/core@npm:0.10.0" dependencies: - "@eslint/object-schema": "npm:^2.1.4" - debug: "npm:^4.3.1" - minimatch: "npm:^3.1.2" - checksum: 10/60ccad1eb4806710b085cd739568ec7afd289ee5af6ca0383f0876f9fe375559ef525f7b3f86bdb3f961493de952f2cf3ab4aa4a6ccaef0ae3cd688267cabcb3 + "@types/json-schema": "npm:^7.0.15" + checksum: 10/de41d7fa5dc468b70fb15c72829096939fc0217c41b8519af4620bc1089cb42539a15325c4c3ee3832facac1836c8c944c4a0c4d0cc8b33ffd8e95962278ae14 languageName: node linkType: hard -"@eslint/core@npm:^0.7.0": - version: 0.7.0 - resolution: "@eslint/core@npm:0.7.0" - checksum: 10/69227f33fddd9b402b7b0830732a6e84cae77d202cb5b56f0dbcc462882e07d00e80216b796cf2f243f5b775af3ef27545a0c439d78e66122eab71da4773b81c +"@eslint/core@npm:^0.11.0": + version: 0.11.0 + resolution: "@eslint/core@npm:0.11.0" + dependencies: + "@types/json-schema": "npm:^7.0.15" + checksum: 10/0a055edf516529d19eea2196e3149eefb4c6f0bb30145b08cdb92ec114735630bd27585f76466c7cb6fa1073617d1f5e49b36ad63d4d45e55defd94a3268256d languageName: node linkType: hard -"@eslint/eslintrc@npm:^3.1.0": - version: 3.1.0 - resolution: "@eslint/eslintrc@npm:3.1.0" +"@eslint/eslintrc@npm:^3.2.0": + version: 3.2.0 + resolution: "@eslint/eslintrc@npm:3.2.0" dependencies: ajv: "npm:^6.12.4" debug: "npm:^4.3.2" @@ -745,47 +749,48 @@ __metadata: js-yaml: "npm:^4.1.0" minimatch: "npm:^3.1.2" strip-json-comments: "npm:^3.1.1" - checksum: 10/02bf892d1397e1029209dea685e9f4f87baf643315df2a632b5f121ec7e8548a3b34f428a007234fa82772218fa8a3ac2d10328637b9ce63b7f8344035b74db3 + checksum: 10/b32dd90ce7da68e89b88cd729db46b27aac79a2e6cb1fa75d25a6b766d586b443bfbf59622489efbd3c6f696f147b51111e81ec7cd23d70f215c5d474cad0261 languageName: node linkType: hard -"@eslint/js@npm:9.13.0": - version: 9.13.0 - resolution: "@eslint/js@npm:9.13.0" - checksum: 10/aa7a4c45044a6cf6e14666ecc0b56ad41c80f022bd4718620b4a7e3d892111312f4e4ac4787fd11b3bf5abdb6ff9a95fdae7e73ef790528f150d86e9be1754a2 +"@eslint/js@npm:9.20.0": + version: 9.20.0 + resolution: "@eslint/js@npm:9.20.0" + checksum: 10/2304cd725700046ba611f06bf9cd0941db7e02e0d602d8fd9e4734c13067699954597b9a3a2b048ce02eb0550373669d2ab7be6edaf6abf7b67eb19d1276b57b languageName: node linkType: hard -"@eslint/object-schema@npm:^2.1.4": - version: 2.1.4 - resolution: "@eslint/object-schema@npm:2.1.4" - checksum: 10/221e8d9f281c605948cd6e030874aacce83fe097f8f9c1964787037bccf08e82b7aa9eff1850a30fffac43f1d76555727ec22a2af479d91e268e89d1e035131e +"@eslint/object-schema@npm:^2.1.6": + version: 2.1.6 + resolution: "@eslint/object-schema@npm:2.1.6" + checksum: 10/266085c8d3fa6cd99457fb6350dffb8ee39db9c6baf28dc2b86576657373c92a568aec4bae7d142978e798b74c271696672e103202d47a0c148da39154351ed6 languageName: node linkType: hard -"@eslint/plugin-kit@npm:^0.2.0": - version: 0.2.3 - resolution: "@eslint/plugin-kit@npm:0.2.3" +"@eslint/plugin-kit@npm:^0.2.5": + version: 0.2.5 + resolution: "@eslint/plugin-kit@npm:0.2.5" dependencies: + "@eslint/core": "npm:^0.10.0" levn: "npm:^0.4.1" - checksum: 10/0d0653ef840823fd5c0354ef8f1937e7763dbe830173eb6d2d55a19374bf04a06dff0e5214330c10a9425cf38655f632bb0d7d0666249b366e506ae291d82f7e + checksum: 10/82d0142bc7054587bde4f75c2c517f477df7c320e4bdb47a4d5f766899a313ce65e9ce5d59428178d0be473a95292065053f69637042546b811ad89079781cbc languageName: node linkType: hard -"@humanfs/core@npm:^0.19.0": - version: 0.19.0 - resolution: "@humanfs/core@npm:0.19.0" - checksum: 10/9c4f96b9e934b7d2f69c5ee8b9414dcaf5c5a03225eb08f8ace3b80429c0fc796e11c4e2ef182172790e7b4560b1137ef984da4dc9662cdd5e3e92baceb02821 +"@humanfs/core@npm:^0.19.1": + version: 0.19.1 + resolution: "@humanfs/core@npm:0.19.1" + checksum: 10/270d936be483ab5921702623bc74ce394bf12abbf57d9145a69e8a0d1c87eb1c768bd2d93af16c5705041e257e6d9cc7529311f63a1349f3678abc776fc28523 languageName: node linkType: hard -"@humanfs/node@npm:^0.16.5": - version: 0.16.5 - resolution: "@humanfs/node@npm:0.16.5" +"@humanfs/node@npm:^0.16.6": + version: 0.16.6 + resolution: "@humanfs/node@npm:0.16.6" dependencies: - "@humanfs/core": "npm:^0.19.0" + "@humanfs/core": "npm:^0.19.1" "@humanwhocodes/retry": "npm:^0.3.0" - checksum: 10/16e49b5f9d4a3cf8205af18f0909b8c6e00faa70a0e01bc606b413423ee20123e53028b6ca22c57725595341d62e148cd1908c297a761ee495087cc674f7b0a6 + checksum: 10/6d43c6727463772d05610aa05c83dab2bfbe78291022ee7a92cb50999910b8c720c76cc312822e2dea2b497aa1b3fef5fe9f68803fc45c9d4ed105874a65e339 languageName: node linkType: hard @@ -796,13 +801,20 @@ __metadata: languageName: node linkType: hard -"@humanwhocodes/retry@npm:^0.3.0, @humanwhocodes/retry@npm:^0.3.1": +"@humanwhocodes/retry@npm:^0.3.0": version: 0.3.1 resolution: "@humanwhocodes/retry@npm:0.3.1" checksum: 10/eb457f699529de7f07649679ec9e0353055eebe443c2efe71c6dd950258892475a038e13c6a8c5e13ed1fb538cdd0a8794faa96b24b6ffc4c87fb1fc9f70ad7f languageName: node linkType: hard +"@humanwhocodes/retry@npm:^0.4.1": + version: 0.4.1 + resolution: "@humanwhocodes/retry@npm:0.4.1" + checksum: 10/39fafc7319e88f61befebd5e1b4f0136534ea6a9bd10d74366698187bd63544210ec5d79a87ed4d91297f1cc64c4c53d45fb0077a2abfdce212cf0d3862d5f04 + languageName: node + linkType: hard + "@isaacs/cliui@npm:^8.0.2": version: 8.0.2 resolution: "@isaacs/cliui@npm:8.0.2" @@ -1558,119 +1570,115 @@ __metadata: languageName: node linkType: hard -"@typescript-eslint/eslint-plugin@npm:^8.0.0": - version: 8.5.0 - resolution: "@typescript-eslint/eslint-plugin@npm:8.5.0" +"@typescript-eslint/eslint-plugin@npm:^8.18.0": + version: 8.24.0 + resolution: "@typescript-eslint/eslint-plugin@npm:8.24.0" dependencies: "@eslint-community/regexpp": "npm:^4.10.0" - "@typescript-eslint/scope-manager": "npm:8.5.0" - "@typescript-eslint/type-utils": "npm:8.5.0" - "@typescript-eslint/utils": "npm:8.5.0" - "@typescript-eslint/visitor-keys": "npm:8.5.0" + "@typescript-eslint/scope-manager": "npm:8.24.0" + "@typescript-eslint/type-utils": "npm:8.24.0" + "@typescript-eslint/utils": "npm:8.24.0" + "@typescript-eslint/visitor-keys": "npm:8.24.0" graphemer: "npm:^1.4.0" ignore: "npm:^5.3.1" natural-compare: "npm:^1.4.0" - ts-api-utils: "npm:^1.3.0" + ts-api-utils: "npm:^2.0.1" peerDependencies: "@typescript-eslint/parser": ^8.0.0 || ^8.0.0-alpha.0 eslint: ^8.57.0 || ^9.0.0 - peerDependenciesMeta: - typescript: - optional: true - checksum: 10/344f5aca7e167544af718b81269b87b8c2a041210882cac76e1608dbec7c2a646de74387920ca9a5704fcd4c24ada052c2bc5adbeee39e950e7bce83647dae7d + typescript: ">=4.8.4 <5.8.0" + checksum: 10/2b65131dab6159285cd8688ae8fe4708e87f6aede7a6bcf65deec6f506a26f04409c7320d7957f59380f5b387fff2acfaa2c8117e2cbfc1b9368002e7905f616 languageName: node linkType: hard -"@typescript-eslint/parser@npm:^8.0.0": - version: 8.5.0 - resolution: "@typescript-eslint/parser@npm:8.5.0" +"@typescript-eslint/parser@npm:^8.18.0": + version: 8.24.0 + resolution: "@typescript-eslint/parser@npm:8.24.0" dependencies: - "@typescript-eslint/scope-manager": "npm:8.5.0" - "@typescript-eslint/types": "npm:8.5.0" - "@typescript-eslint/typescript-estree": "npm:8.5.0" - "@typescript-eslint/visitor-keys": "npm:8.5.0" + "@typescript-eslint/scope-manager": "npm:8.24.0" + "@typescript-eslint/types": "npm:8.24.0" + "@typescript-eslint/typescript-estree": "npm:8.24.0" + "@typescript-eslint/visitor-keys": "npm:8.24.0" debug: "npm:^4.3.4" peerDependencies: eslint: ^8.57.0 || ^9.0.0 - peerDependenciesMeta: - typescript: - optional: true - checksum: 10/f0d5a11a8d4b42750c3e7a3a8f6874740c7bb006b6bf3037a2b1422ba8f4eb2ff2d46e673a9f54007b95d3e4302b7966677b2481da58b6307d0ceb962478ee95 + typescript: ">=4.8.4 <5.8.0" + checksum: 10/b5c66a3208c69144cd5d0b7a2c763205ef8ae88eea76067186bab0909aa9756fe015616b98a7f252a5106aa5e86baeb98f9affbdc0f5d19863a2150f2431bfe0 languageName: node linkType: hard -"@typescript-eslint/scope-manager@npm:8.5.0": - version: 8.5.0 - resolution: "@typescript-eslint/scope-manager@npm:8.5.0" +"@typescript-eslint/scope-manager@npm:8.24.0": + version: 8.24.0 + resolution: "@typescript-eslint/scope-manager@npm:8.24.0" dependencies: - "@typescript-eslint/types": "npm:8.5.0" - "@typescript-eslint/visitor-keys": "npm:8.5.0" - checksum: 10/18f9958cdf196a0beede93535e564313d27dfd392a335952c785e46c32def55fdeae8c3c7d46f07c81c105ed2b48e9cd36a1fe5101fccd80e83c04cf1693dbed + "@typescript-eslint/types": "npm:8.24.0" + "@typescript-eslint/visitor-keys": "npm:8.24.0" + checksum: 10/175032d4f714d68b734d7281c340e073a37d348010d308b9cccf8d63d745b8cc9515229e32dcd838acf4a85e21a4e8eff6c557c31ba45e36917e3417de32d723 languageName: node linkType: hard -"@typescript-eslint/type-utils@npm:8.5.0": - version: 8.5.0 - resolution: "@typescript-eslint/type-utils@npm:8.5.0" +"@typescript-eslint/type-utils@npm:8.24.0": + version: 8.24.0 + resolution: "@typescript-eslint/type-utils@npm:8.24.0" dependencies: - "@typescript-eslint/typescript-estree": "npm:8.5.0" - "@typescript-eslint/utils": "npm:8.5.0" + "@typescript-eslint/typescript-estree": "npm:8.24.0" + "@typescript-eslint/utils": "npm:8.24.0" debug: "npm:^4.3.4" - ts-api-utils: "npm:^1.3.0" - peerDependenciesMeta: - typescript: - optional: true - checksum: 10/ed487c8b530a0a6ea292385c82b2d9d9d94b99768ddd93882899be3319ea6af09c1b9f1a07e0381beb6149bbbb1f66ae95a635279fad8946345fd2298bce3549 + ts-api-utils: "npm:^2.0.1" + peerDependencies: + eslint: ^8.57.0 || ^9.0.0 + typescript: ">=4.8.4 <5.8.0" + checksum: 10/a6558d0b0ab7a43826b481c103c556abbafa93c9941d75d647266dc0f55e68950f44a63842a2e7839a7448329f9b7ee88c84913084438dbac38dba5efbc1afbc languageName: node linkType: hard -"@typescript-eslint/types@npm:8.5.0": - version: 8.5.0 - resolution: "@typescript-eslint/types@npm:8.5.0" - checksum: 10/5cc55411fbf3f46d1571fe6ad1ef88f937093629a58e2b7bafb389646dde8a4e29d938fd57309eb30ee3f20978b4bdc5f823b31d718e053ba4c54c637a6df4e4 +"@typescript-eslint/types@npm:8.24.0": + version: 8.24.0 + resolution: "@typescript-eslint/types@npm:8.24.0" + checksum: 10/ddaaec99c191830cc29ce289678d44f7201dd06c29540750ca4802b6bd2a6dfd8cc29b46ed270dc0198f23e742540bb1e4fe618b6b44e4e76bad7f774bd3fc4a languageName: node linkType: hard -"@typescript-eslint/typescript-estree@npm:8.5.0": - version: 8.5.0 - resolution: "@typescript-eslint/typescript-estree@npm:8.5.0" +"@typescript-eslint/typescript-estree@npm:8.24.0": + version: 8.24.0 + resolution: "@typescript-eslint/typescript-estree@npm:8.24.0" dependencies: - "@typescript-eslint/types": "npm:8.5.0" - "@typescript-eslint/visitor-keys": "npm:8.5.0" + "@typescript-eslint/types": "npm:8.24.0" + "@typescript-eslint/visitor-keys": "npm:8.24.0" debug: "npm:^4.3.4" fast-glob: "npm:^3.3.2" is-glob: "npm:^4.0.3" minimatch: "npm:^9.0.4" semver: "npm:^7.6.0" - ts-api-utils: "npm:^1.3.0" - peerDependenciesMeta: - typescript: - optional: true - checksum: 10/69f21c49a158c394106e0d627f57451430cf32449a6c01118ee4afbb9f92f06be3aa87f3478ffc84d1062c3b21dca983e458f70f2cbe4fee1ad206f84ab97eb8 + ts-api-utils: "npm:^2.0.1" + peerDependencies: + typescript: ">=4.8.4 <5.8.0" + checksum: 10/89e451f5d2136b405d046823c93ac7065d90c7a9f084ffb324e374c769b17ee2580d3711ada1e1575331b234059148f173230e560b08efa3073f8f0c04ce1224 languageName: node linkType: hard -"@typescript-eslint/utils@npm:8.5.0": - version: 8.5.0 - resolution: "@typescript-eslint/utils@npm:8.5.0" +"@typescript-eslint/utils@npm:8.24.0": + version: 8.24.0 + resolution: "@typescript-eslint/utils@npm:8.24.0" dependencies: "@eslint-community/eslint-utils": "npm:^4.4.0" - "@typescript-eslint/scope-manager": "npm:8.5.0" - "@typescript-eslint/types": "npm:8.5.0" - "@typescript-eslint/typescript-estree": "npm:8.5.0" + "@typescript-eslint/scope-manager": "npm:8.24.0" + "@typescript-eslint/types": "npm:8.24.0" + "@typescript-eslint/typescript-estree": "npm:8.24.0" peerDependencies: eslint: ^8.57.0 || ^9.0.0 - checksum: 10/f4727ebdee15082debe61a815eaad588f006a4f93d7fe94d065da563b4d3f91b7b7f795b5c77aa4cdebdf0936f83aa878089f22b8dbdbb738c557e8974129f54 + typescript: ">=4.8.4 <5.8.0" + checksum: 10/773a4085e45a94f5a64b34550e7d890b5418c69a9dcd58862410e7e0ded46e3380c8dd7d38baafaa93ef40b2a77320092bded3ca36f15b2f7ea6babeb831e590 languageName: node linkType: hard -"@typescript-eslint/visitor-keys@npm:8.5.0": - version: 8.5.0 - resolution: "@typescript-eslint/visitor-keys@npm:8.5.0" +"@typescript-eslint/visitor-keys@npm:8.24.0": + version: 8.24.0 + resolution: "@typescript-eslint/visitor-keys@npm:8.24.0" dependencies: - "@typescript-eslint/types": "npm:8.5.0" - eslint-visitor-keys: "npm:^3.4.3" - checksum: 10/32cc9d8120531bb1b5da79d697ab80bbbf18e5630d74c8b6c0f835d7914be7833ed9e5b95fa05f6f7b724d928cd4208b4028a2cc9d767401434d88214614887b + "@typescript-eslint/types": "npm:8.24.0" + eslint-visitor-keys: "npm:^4.2.0" + checksum: 10/a93bc9e587784cbc47d6849f14581aa3f15574b187a7b98597362acbca43b06c36a6dfa889b5320ced62b182abf0b9759a694489d72fc7902cdea11830a7a535 languageName: node linkType: hard @@ -1843,12 +1851,12 @@ __metadata: languageName: node linkType: hard -"acorn@npm:^8.12.0, acorn@npm:^8.4.1": - version: 8.12.1 - resolution: "acorn@npm:8.12.1" +"acorn@npm:^8.14.0, acorn@npm:^8.4.1": + version: 8.14.0 + resolution: "acorn@npm:8.14.0" bin: acorn: bin/acorn - checksum: 10/d08c2d122bba32d0861e0aa840b2ee25946c286d5dc5990abca991baf8cdbfbe199b05aacb221b979411a2fea36f83e26b5ac4f6b4e0ce49038c62316c1848f0 + checksum: 10/6df29c35556782ca9e632db461a7f97947772c6c1d5438a81f0c873a3da3a792487e83e404d1c6c25f70513e91aa18745f6eafb1fcc3a43ecd1920b21dd173d2 languageName: node linkType: hard @@ -2582,7 +2590,7 @@ __metadata: languageName: node linkType: hard -"cross-spawn@npm:^7.0.0, cross-spawn@npm:^7.0.2, cross-spawn@npm:^7.0.3, cross-spawn@npm:^7.0.6": +"cross-spawn@npm:^7.0.0, cross-spawn@npm:^7.0.3, cross-spawn@npm:^7.0.6": version: 7.0.6 resolution: "cross-spawn@npm:7.0.6" dependencies: @@ -2758,15 +2766,6 @@ __metadata: languageName: node linkType: hard -"dir-glob@npm:^3.0.1": - version: 3.0.1 - resolution: "dir-glob@npm:3.0.1" - dependencies: - path-type: "npm:^4.0.0" - checksum: 10/fa05e18324510d7283f55862f3161c6759a3f2f8dbce491a2fc14c8324c498286c54282c1f0e933cb930da8419b30679389499b919122952a4f8592362ef4615 - languageName: node - linkType: hard - "doctrine@npm:^2.1.0": version: 2.1.0 resolution: "doctrine@npm:2.1.0" @@ -3274,21 +3273,21 @@ __metadata: languageName: node linkType: hard -"eslint-module-utils@npm:^2.9.0": - version: 2.11.0 - resolution: "eslint-module-utils@npm:2.11.0" +"eslint-module-utils@npm:^2.12.0": + version: 2.12.0 + resolution: "eslint-module-utils@npm:2.12.0" dependencies: debug: "npm:^3.2.7" peerDependenciesMeta: eslint: optional: true - checksum: 10/1ba42cf48c5f9ec3b76dfa42c16f1c24c10508313689425c05ccb1d0eaa34bdc5c5b9c0c033cd402e9c429666bd3eb8c6d0c66565b0c00949fae743ad3643c95 + checksum: 10/dd27791147eca17366afcb83f47d6825b6ce164abb256681e5de4ec1d7e87d8605641eb869298a0dbc70665e2446dbcc2f40d3e1631a9475dd64dd23d4ca5dee languageName: node linkType: hard -"eslint-plugin-import@npm:^2.29.1": - version: 2.30.0 - resolution: "eslint-plugin-import@npm:2.30.0" +"eslint-plugin-import@npm:^2.31.0": + version: 2.31.0 + resolution: "eslint-plugin-import@npm:2.31.0" dependencies: "@rtsao/scc": "npm:^1.1.0" array-includes: "npm:^3.1.8" @@ -3298,7 +3297,7 @@ __metadata: debug: "npm:^3.2.7" doctrine: "npm:^2.1.0" eslint-import-resolver-node: "npm:^0.3.9" - eslint-module-utils: "npm:^2.9.0" + eslint-module-utils: "npm:^2.12.0" hasown: "npm:^2.0.2" is-core-module: "npm:^2.15.1" is-glob: "npm:^4.0.3" @@ -3307,61 +3306,75 @@ __metadata: object.groupby: "npm:^1.0.3" object.values: "npm:^1.2.0" semver: "npm:^6.3.1" + string.prototype.trimend: "npm:^1.0.8" tsconfig-paths: "npm:^3.15.0" peerDependencies: - eslint: ^2 || ^3 || ^4 || ^5 || ^6 || ^7.2.0 || ^8 - checksum: 10/a5f85dfe76e27286c28a01d137769726ce3f758bcc03aa6b6f9e18700a40a08f57239f82e07efcab763c4b03a02d425edcc29fbecf40aad0124286978c6bc63c + eslint: ^2 || ^3 || ^4 || ^5 || ^6 || ^7.2.0 || ^8 || ^9 + checksum: 10/6b76bd009ac2db0615d9019699d18e2a51a86cb8c1d0855a35fb1b418be23b40239e6debdc6e8c92c59f1468ed0ea8d7b85c817117a113d5cc225be8a02ad31c languageName: node linkType: hard -"eslint-scope@npm:^8.1.0": - version: 8.1.0 - resolution: "eslint-scope@npm:8.1.0" +"eslint-plugin-unused-imports@npm:^4.1.4": + version: 4.1.4 + resolution: "eslint-plugin-unused-imports@npm:4.1.4" + peerDependencies: + "@typescript-eslint/eslint-plugin": ^8.0.0-0 || ^7.0.0 || ^6.0.0 || ^5.0.0 + eslint: ^9.0.0 || ^8.0.0 + peerDependenciesMeta: + "@typescript-eslint/eslint-plugin": + optional: true + checksum: 10/8e987028ad925ce1e04c01dcae70adbf44c2878a8b15c4327b33a2861e471d7fe00f6fe213fbd2b936f3fcefc8ccabb0d778aa1d6e0e0387a3dc7fe150cd4ed4 + languageName: node + linkType: hard + +"eslint-scope@npm:^8.2.0": + version: 8.2.0 + resolution: "eslint-scope@npm:8.2.0" dependencies: esrecurse: "npm:^4.3.0" estraverse: "npm:^5.2.0" - checksum: 10/4c34a12fbeb0677822a9e93e81f2027e39e6f27557c17bc1e5ff76debbd41e748c3673517561792bda9e276245f89fbfd9b0b24fcec3b33a04ee2196729b3489 + checksum: 10/cd9ab60d5a68f3a0fcac04d1cff5a7383d0f331964d5f1c446259123caec5b3ccc542284d07846e4f4d1389da77750821cc9a6e1ce18558c674977351666f9a6 languageName: node linkType: hard -"eslint-visitor-keys@npm:^3.3.0, eslint-visitor-keys@npm:^3.4.3": +"eslint-visitor-keys@npm:^3.3.0": version: 3.4.3 resolution: "eslint-visitor-keys@npm:3.4.3" checksum: 10/3f357c554a9ea794b094a09bd4187e5eacd1bc0d0653c3adeb87962c548e6a1ab8f982b86963ae1337f5d976004146536dcee5d0e2806665b193fbfbf1a9231b languageName: node linkType: hard -"eslint-visitor-keys@npm:^4.1.0": - version: 4.1.0 - resolution: "eslint-visitor-keys@npm:4.1.0" - checksum: 10/3fb5bd1b2f36db89d0ac57ddd66d36ccd3b1e3cddb2a55a0f9f6f1c85268cfcc1cc32e7eda4990e3423107a120dd254fb6cb52d6154cf81d344d8c3fa671f7c2 +"eslint-visitor-keys@npm:^4.2.0": + version: 4.2.0 + resolution: "eslint-visitor-keys@npm:4.2.0" + checksum: 10/9651b3356b01760e586b4c631c5268c0e1a85236e3292bf754f0472f465bf9a856c0ddc261fceace155334118c0151778effafbab981413dbf9288349343fa25 languageName: node linkType: hard -"eslint@npm:^9.13.0": - version: 9.13.0 - resolution: "eslint@npm:9.13.0" +"eslint@npm:^9.20.1": + version: 9.20.1 + resolution: "eslint@npm:9.20.1" dependencies: "@eslint-community/eslint-utils": "npm:^4.2.0" - "@eslint-community/regexpp": "npm:^4.11.0" - "@eslint/config-array": "npm:^0.18.0" - "@eslint/core": "npm:^0.7.0" - "@eslint/eslintrc": "npm:^3.1.0" - "@eslint/js": "npm:9.13.0" - "@eslint/plugin-kit": "npm:^0.2.0" - "@humanfs/node": "npm:^0.16.5" + "@eslint-community/regexpp": "npm:^4.12.1" + "@eslint/config-array": "npm:^0.19.0" + "@eslint/core": "npm:^0.11.0" + "@eslint/eslintrc": "npm:^3.2.0" + "@eslint/js": "npm:9.20.0" + "@eslint/plugin-kit": "npm:^0.2.5" + "@humanfs/node": "npm:^0.16.6" "@humanwhocodes/module-importer": "npm:^1.0.1" - "@humanwhocodes/retry": "npm:^0.3.1" + "@humanwhocodes/retry": "npm:^0.4.1" "@types/estree": "npm:^1.0.6" "@types/json-schema": "npm:^7.0.15" ajv: "npm:^6.12.4" chalk: "npm:^4.0.0" - cross-spawn: "npm:^7.0.2" + cross-spawn: "npm:^7.0.6" debug: "npm:^4.3.2" escape-string-regexp: "npm:^4.0.0" - eslint-scope: "npm:^8.1.0" - eslint-visitor-keys: "npm:^4.1.0" - espree: "npm:^10.2.0" + eslint-scope: "npm:^8.2.0" + eslint-visitor-keys: "npm:^4.2.0" + espree: "npm:^10.3.0" esquery: "npm:^1.5.0" esutils: "npm:^2.0.2" fast-deep-equal: "npm:^3.1.3" @@ -3376,7 +3389,6 @@ __metadata: minimatch: "npm:^3.1.2" natural-compare: "npm:^1.4.0" optionator: "npm:^0.9.3" - text-table: "npm:^0.2.0" peerDependencies: jiti: "*" peerDependenciesMeta: @@ -3384,18 +3396,18 @@ __metadata: optional: true bin: eslint: bin/eslint.js - checksum: 10/4342cc24a8d73581676f1b4959c2ddac18ed169731d9c55b708d2eacfc066ed5bdbc2c3c129e1f70142f0704bc25884a1a9ae580e15be5921f9c7f7d0f3ebe68 + checksum: 10/b1d870135c8ff628685e72c0e9cd161476835e8e69e803d89d87fc4aebe85fc6b51ca422c3c4bc62f0ef7bbd9b10feda76e37e4801706e75931c1791d0e051a8 languageName: node linkType: hard -"espree@npm:^10.0.1, espree@npm:^10.2.0": - version: 10.2.0 - resolution: "espree@npm:10.2.0" +"espree@npm:^10.0.1, espree@npm:^10.3.0": + version: 10.3.0 + resolution: "espree@npm:10.3.0" dependencies: - acorn: "npm:^8.12.0" + acorn: "npm:^8.14.0" acorn-jsx: "npm:^5.3.2" - eslint-visitor-keys: "npm:^4.1.0" - checksum: 10/365076a963ca84244c1e2d36e4f812362d21cfa7e7df10d67f7b82b759467796df81184721d153c4e235d9ef5eb5b4d044167dd66be3be00f53a21a515b1bfb1 + eslint-visitor-keys: "npm:^4.2.0" + checksum: 10/3412d44d4204c9e29d6b5dd0277400cfa0cd68495dc09eae1b9ce79d0c8985c1c5cc09cb9ba32a1cd963f48a49b0c46bdb7736afe395a300aa6bb1c0d86837e8 languageName: node linkType: hard @@ -3545,7 +3557,7 @@ __metadata: languageName: node linkType: hard -"fast-glob@npm:^3.3.0, fast-glob@npm:^3.3.2": +"fast-glob@npm:^3.3.2": version: 3.3.2 resolution: "fast-glob@npm:3.3.2" dependencies: @@ -3595,6 +3607,18 @@ __metadata: languageName: node linkType: hard +"fdir@npm:^6.4.2": + version: 6.4.3 + resolution: "fdir@npm:6.4.3" + peerDependencies: + picomatch: ^3 || ^4 + peerDependenciesMeta: + picomatch: + optional: true + checksum: 10/8e6d20f4590dc168de1374a9cadaa37e20ca6e0b822aa247c230e7ea1d9e9674a68cd816146435e4ecc98f9285091462ab7e5e56eebc9510931a1794e4db68b2 + languageName: node + linkType: hard + "file-entry-cache@npm:^8.0.0": version: 8.0.0 resolution: "file-entry-cache@npm:8.0.0" @@ -3874,10 +3898,10 @@ __metadata: version: 0.0.0-use.local resolution: "github-workflow-dispatch-proxy@workspace:." dependencies: - "@abinnovision/commitlint-config": "npm:^2.2.0" - "@abinnovision/eslint-config-base": "npm:^2.1.0" - "@abinnovision/eslint-config-typescript": "npm:^2.1.0" - "@abinnovision/prettier-config": "npm:^2.1.0" + "@abinnovision/commitlint-config": "npm:^2.2.1" + "@abinnovision/eslint-config-base": "npm:^2.2.0" + "@abinnovision/eslint-config-typescript": "npm:^2.2.1" + "@abinnovision/prettier-config": "npm:^2.1.3" "@commitlint/cli": "npm:^19.7.1" "@cross-policy/core": "npm:^0.1.0" "@cross-policy/target-opa-wasm": "npm:^0.1.0" @@ -3893,11 +3917,11 @@ __metadata: dotenv-cli: "npm:^8.0.0" esbuild: "npm:^0.25.0" esbuild-node-tsc: "npm:^2.0.5" - eslint: "npm:^9.13.0" + eslint: "npm:^9.20.1" express: "npm:^4.21.0" get-port-please: "npm:^3.1.2" - globals: "npm:^15.11.0" - husky: "npm:^9.1.6" + globals: "npm:^15.15.0" + husky: "npm:^9.1.7" jose: "npm:^5.9.2" lint-staged: "npm:^15.4.3" lru-cache: "npm:^11.0.1" @@ -3909,8 +3933,8 @@ __metadata: pino: "npm:^9.4.0" pino-http: "npm:^10.4.0" pino-pretty: "npm:^13.0.0" - prettier: "npm:^3.3.3" - sort-package-json: "npm:^2.10.1" + prettier: "npm:^3.5.1" + sort-package-json: "npm:^2.14.0" supertest: "npm:^7.0.0" ts-node: "npm:^10.9.2" typescript: "npm:^5.7.3" @@ -3969,10 +3993,10 @@ __metadata: languageName: node linkType: hard -"globals@npm:^15.11.0": - version: 15.11.0 - resolution: "globals@npm:15.11.0" - checksum: 10/14009ef1906ac929d930ed1c896a47159e7d11b4d201901ca5f3827766519191a3f5fb45124de43c4511fee04018704e7ed5a097fb37d23abf39523d1d41c85f +"globals@npm:^15.15.0": + version: 15.15.0 + resolution: "globals@npm:15.15.0" + checksum: 10/7f561c87b2fd381b27fc2db7df8a4ea7a9bb378667b8a7193e61fd2ca3a876479174e2a303a74345fbea6e1242e16db48915c1fd3bf35adcf4060a795b425e18 languageName: node linkType: hard @@ -3985,19 +4009,6 @@ __metadata: languageName: node linkType: hard -"globby@npm:^13.1.2": - version: 13.2.2 - resolution: "globby@npm:13.2.2" - dependencies: - dir-glob: "npm:^3.0.1" - fast-glob: "npm:^3.3.0" - ignore: "npm:^5.2.4" - merge2: "npm:^1.4.1" - slash: "npm:^4.0.0" - checksum: 10/4494a9d2162a7e4d327988b26be66d8eab87d7f59a83219e74b065e2c3ced23698f68fb10482bf9337133819281803fb886d6ae06afbb2affa743623eb0b1949 - languageName: node - linkType: hard - "globby@npm:^14.0.2": version: 14.0.2 resolution: "globby@npm:14.0.2" @@ -4165,12 +4176,12 @@ __metadata: languageName: node linkType: hard -"husky@npm:^9.1.6": - version: 9.1.6 - resolution: "husky@npm:9.1.6" +"husky@npm:^9.1.7": + version: 9.1.7 + resolution: "husky@npm:9.1.7" bin: husky: bin.js - checksum: 10/421ccd8850378231aaefd70dbe9e4f1549b84ffe3a6897f93a202242bbc04e48bd498169aef43849411105d9fcf7c192b757d42661e28d06b934a609a4eb8771 + checksum: 10/c2412753f15695db369634ba70f50f5c0b7e5cb13b673d0826c411ec1bd9ddef08c1dad89ea154f57da2521d2605bd64308af748749b27d08c5f563bcd89975f languageName: node linkType: hard @@ -4997,7 +5008,7 @@ __metadata: languageName: node linkType: hard -"merge2@npm:^1.3.0, merge2@npm:^1.4.1": +"merge2@npm:^1.3.0": version: 1.4.1 resolution: "merge2@npm:1.4.1" checksum: 10/7268db63ed5169466540b6fb947aec313200bcf6d40c5ab722c22e242f651994619bcd85601602972d3c85bd2cc45a358a4c61937e9f11a061919a1da569b0c2 @@ -5659,13 +5670,6 @@ __metadata: languageName: node linkType: hard -"path-type@npm:^4.0.0": - version: 4.0.0 - resolution: "path-type@npm:4.0.0" - checksum: 10/5b1e2daa247062061325b8fdbfd1fb56dde0a448fb1455453276ea18c60685bdad23a445dc148cf87bc216be1573357509b7d4060494a6fd768c7efad833ee45 - languageName: node - linkType: hard - "path-type@npm:^5.0.0": version: 5.0.0 resolution: "path-type@npm:5.0.0" @@ -5701,6 +5705,13 @@ __metadata: languageName: node linkType: hard +"picomatch@npm:^4.0.2": + version: 4.0.2 + resolution: "picomatch@npm:4.0.2" + checksum: 10/ce617b8da36797d09c0baacb96ca8a44460452c89362d7cb8f70ca46b4158ba8bc3606912de7c818eb4a939f7f9015cef3c766ec8a0c6bfc725fdc078e39c717 + languageName: node + linkType: hard + "pidtree@npm:^0.6.0": version: 0.6.0 resolution: "pidtree@npm:0.6.0" @@ -5817,12 +5828,12 @@ __metadata: languageName: node linkType: hard -"prettier@npm:^3.3.3": - version: 3.3.3 - resolution: "prettier@npm:3.3.3" +"prettier@npm:^3.5.1": + version: 3.5.1 + resolution: "prettier@npm:3.5.1" bin: prettier: bin/prettier.cjs - checksum: 10/5beac1f30b5b40162532b8e2f7c3a4eb650910a2695e9c8512a62ffdc09dae93190c29db9107fa7f26d1b6c71aad3628ecb9b5de1ecb0911191099be109434d7 + checksum: 10/09ab168e651e50c2c79804d65f17a68129ce1c573830b2fb08c988b585add8076b8d995789034d66a14338d6b8835e8c591e0fc1bc90f4344af9645738636d01 languageName: node linkType: hard @@ -6333,13 +6344,6 @@ __metadata: languageName: node linkType: hard -"slash@npm:^4.0.0": - version: 4.0.0 - resolution: "slash@npm:4.0.0" - checksum: 10/da8e4af73712253acd21b7853b7e0dbba776b786e82b010a5bfc8b5051a1db38ed8aba8e1e8f400dd2c9f373be91eb1c42b66e91abb407ff42b10feece5e1d2d - languageName: node - linkType: hard - "slash@npm:^5.1.0": version: 5.1.0 resolution: "slash@npm:5.1.0" @@ -6411,21 +6415,21 @@ __metadata: languageName: node linkType: hard -"sort-package-json@npm:^2.10.1": - version: 2.10.1 - resolution: "sort-package-json@npm:2.10.1" +"sort-package-json@npm:^2.14.0": + version: 2.14.0 + resolution: "sort-package-json@npm:2.14.0" dependencies: detect-indent: "npm:^7.0.1" detect-newline: "npm:^4.0.0" get-stdin: "npm:^9.0.0" git-hooks-list: "npm:^3.0.0" - globby: "npm:^13.1.2" is-plain-obj: "npm:^4.1.0" semver: "npm:^7.6.0" sort-object-keys: "npm:^1.1.3" + tinyglobby: "npm:^0.2.9" bin: sort-package-json: cli.js - checksum: 10/3a08cb9227c244d51bfb0eaaa5a9ea82fd3c96ea299c040365700b3f445d46a98411df4237f4e3c96ba67be4dcd53931747eab3b799f0335d278b36d64f1061d + checksum: 10/f528be0e41840c6fa7f2a8f0d22110f9cc7d43d0cefe69c9f9f7d59e6680097c9839473d24749cfe611613c0cdf67ea9d28b13f97e9b8bcd20eb7be2ed52a214 languageName: node linkType: hard @@ -6687,13 +6691,6 @@ __metadata: languageName: node linkType: hard -"text-table@npm:^0.2.0": - version: 0.2.0 - resolution: "text-table@npm:0.2.0" - checksum: 10/4383b5baaeffa9bb4cda2ac33a4aa2e6d1f8aaf811848bf73513a9b88fd76372dc461f6fd6d2e9cb5100f48b473be32c6f95bd983509b7d92bb4d92c10747452 - languageName: node - linkType: hard - "thread-stream@npm:^3.0.0": version: 3.1.0 resolution: "thread-stream@npm:3.1.0" @@ -6724,6 +6721,16 @@ __metadata: languageName: node linkType: hard +"tinyglobby@npm:^0.2.9": + version: 0.2.10 + resolution: "tinyglobby@npm:0.2.10" + dependencies: + fdir: "npm:^6.4.2" + picomatch: "npm:^4.0.2" + checksum: 10/10c976866d849702edc47fc3fef27d63f074c40f75ef17171ecc1452967900699fa1e62373681dd58e673ddff2e3f6094bcd0a2101e3e4b30f4c2b9da41397f2 + languageName: node + linkType: hard + "tinypool@npm:^1.0.0": version: 1.0.1 resolution: "tinypool@npm:1.0.1" @@ -6779,12 +6786,12 @@ __metadata: languageName: node linkType: hard -"ts-api-utils@npm:^1.3.0": - version: 1.3.0 - resolution: "ts-api-utils@npm:1.3.0" +"ts-api-utils@npm:^2.0.1": + version: 2.0.1 + resolution: "ts-api-utils@npm:2.0.1" peerDependencies: - typescript: ">=4.2.0" - checksum: 10/3ee44faa24410cd649b5c864e068d438aa437ef64e9e4a66a41646a6d3024d3097a695eeb3fb26ee364705d3cb9653a65756d009e6a53badb6066a5f447bf7ed + typescript: ">=4.8.4" + checksum: 10/2e68938cd5acad6b5157744215ce10cd097f9f667fd36b5fdd5efdd4b0c51063e855459d835f94f6777bb8a0f334916b6eb5c1eedab8c325feb34baa39238898 languageName: node linkType: hard From 61f642b1129f9e7f000e75974eb872b9d255de19 Mon Sep 17 00:00:00 2001 From: Andre Loreth Date: Sat, 15 Feb 2025 20:54:01 +0100 Subject: [PATCH 2/2] style: align new codestyle --- README.md | 40 +++++++++---------- etsc.config.js | 2 +- src/bootstrap.ts | 4 +- src/dispatch/controller.ts | 1 - src/dispatch/github.ts | 14 +++---- src/dispatch/id-token.ts | 6 +-- src/dispatch/policy.ts | 6 +-- src/utils/config.ts | 4 +- .../dispatch-handler.spec-integration.ts | 6 +-- test/utils/setup-oauth-server.ts | 2 +- 10 files changed, 42 insertions(+), 43 deletions(-) diff --git a/README.md b/README.md index ad64741..7b2ddc8 100644 --- a/README.md +++ b/README.md @@ -87,26 +87,26 @@ The input schema for the policy is defined as follows: ```json5 { - // Can be empty if not provided. - config: { - key: "value", - }, - target: { - owner: "owner", - repository: "repository", - ref: "ref", - workflow: "workflow", - // Can be empty if none are required. - inputs: { - key: "value", - }, - }, - caller: { - owner: "owner", - repository: "repository", - ref: "ref", - workflow: "workflow", - }, + // Can be empty if not provided. + config: { + key: "value", + }, + target: { + owner: "owner", + repository: "repository", + ref: "ref", + workflow: "workflow", + // Can be empty if none are required. + inputs: { + key: "value", + }, + }, + caller: { + owner: "owner", + repository: "repository", + ref: "ref", + workflow: "workflow", + }, } ``` diff --git a/etsc.config.js b/etsc.config.js index db5b708..b80f94d 100644 --- a/etsc.config.js +++ b/etsc.config.js @@ -26,7 +26,7 @@ export default { const fsp = await import("node:fs/promises"); await fsp.writeFile( "dist/package.json", - JSON.stringify({ type: "module" }) + JSON.stringify({ type: "module" }), ); }, }; diff --git a/src/bootstrap.ts b/src/bootstrap.ts index b7abc53..2df8e72 100644 --- a/src/bootstrap.ts +++ b/src/bootstrap.ts @@ -77,7 +77,7 @@ export const bootstrap = (async (): Promise => { .status(200) .header( "cache-control", - "public, max-age 172800, stale-while-revalidate 172800" + "public, max-age 172800, stale-while-revalidate 172800", ) .header("content-type", "application/yaml") .send(content); @@ -91,7 +91,7 @@ export const bootstrap = (async (): Promise => { .status(200) .header( "cache-control", - "public, max-age 172800, stale-while-revalidate 172800" + "public, max-age 172800, stale-while-revalidate 172800", ) .header("content-type", "application/json") .send(content); diff --git a/src/dispatch/controller.ts b/src/dispatch/controller.ts index bd51ac7..04a4ecc 100644 --- a/src/dispatch/controller.ts +++ b/src/dispatch/controller.ts @@ -73,7 +73,6 @@ export const dispatchControllerFactory: () => Promise = let body; try { body = await bodySchema.parseAsync(await req.body); - // eslint-disable-next-line @typescript-eslint/no-unused-vars } catch (e) { return res .status(400) diff --git a/src/dispatch/github.ts b/src/dispatch/github.ts index 649453c..63ddc11 100644 --- a/src/dispatch/github.ts +++ b/src/dispatch/github.ts @@ -44,11 +44,11 @@ let _baseOctokit = new Octokit({ */ async function runOctokit( token: string, - callback: (octokit: Octokit) => Promise + callback: (octokit: Octokit) => Promise, ): Promise { return await _authCallbackAls.run( token, - async () => await callback(_baseOctokit) + async () => await callback(_baseOctokit), ); } @@ -83,7 +83,7 @@ async function resolveAccessToken(id: RepositoryIdentity): Promise { }); return data.id; - } + }, ); const installationAuth = await createAppAuth({ @@ -99,7 +99,7 @@ async function resolveAccessToken(id: RepositoryIdentity): Promise { } catch (e) { throw new GitHubAuthError( "Failed to resolve access token", - e instanceof Error ? e : undefined + e instanceof Error ? e : undefined, ); } } @@ -114,7 +114,7 @@ async function resolveAccessToken(id: RepositoryIdentity): Promise { * @param id Identification of the repository. */ export async function getRepositoryDefaultBranch( - id: RepositoryIdentity + id: RepositoryIdentity, ): Promise { try { const { data } = await _baseOctokit.rest.repos.get({ @@ -126,7 +126,7 @@ export async function getRepositoryDefaultBranch( } catch (e) { throw new GitHubAuthError( "Failed to resolve default branch", - e instanceof Error ? e : undefined + e instanceof Error ? e : undefined, ); } } @@ -150,7 +150,7 @@ export async function sendWorkflowDispatch(opts: WorkflowDispatchOpts) { } catch (e) { throw new GitHubDispatchError( "Failed to dispatch workflow", - e instanceof Error ? e : undefined + e instanceof Error ? e : undefined, ); } } diff --git a/src/dispatch/id-token.ts b/src/dispatch/id-token.ts index 4b8bf54..2de808c 100644 --- a/src/dispatch/id-token.ts +++ b/src/dispatch/id-token.ts @@ -54,7 +54,7 @@ export const getJwtVerifier = async (): Promise => { } catch (e) { throw new IdTokenError( "Failed to discover issuer", - e instanceof Error ? e : undefined + e instanceof Error ? e : undefined, ); } @@ -75,7 +75,7 @@ export const getJwtVerifier = async (): Promise => { */ export const decodeIdToken = async ( jwtVerifier: JWTVerifyGetKey, - token: string + token: string, ): Promise => { const config = getConfig(); @@ -89,7 +89,7 @@ export const decodeIdToken = async ( } catch (e) { throw new IdTokenError( "Failed to decode/verify IdToken", - e instanceof Error ? e : undefined + e instanceof Error ? e : undefined, ); } }; diff --git a/src/dispatch/policy.ts b/src/dispatch/policy.ts index 0318ec7..3255d25 100644 --- a/src/dispatch/policy.ts +++ b/src/dispatch/policy.ts @@ -23,7 +23,7 @@ function getPolicyPath(): string { } else { policyPath = path.join( process.env.POLICY_DIR as string, - builtInPolicyMapping[config.POLICY_TYPE] + builtInPolicyMapping[config.POLICY_TYPE], ); } @@ -60,7 +60,7 @@ const crossPolicy = createCrossPolicy({ * @param value */ async function parsePolicyConfig( - value: string + value: string, ): Promise> { const config: Record = {}; @@ -78,7 +78,7 @@ export type PolicyInput = Pick, "caller" | "target">; * Evaluates the given policy using the inputs provided. */ export async function evaluatePolicyForRequest( - input: Pick + input: Pick, ): Promise { const config = getConfig(); diff --git a/src/utils/config.ts b/src/utils/config.ts index 8fa0ced..344a3ba 100644 --- a/src/utils/config.ts +++ b/src/utils/config.ts @@ -45,7 +45,7 @@ const githubAuthSchema = z.discriminatedUnion("GH_AUTH_TYPE", [ const configSchema = z.intersection( baseSchema, - z.intersection(policySchema, githubAuthSchema) + z.intersection(policySchema, githubAuthSchema), ); /** @@ -73,7 +73,7 @@ function parseConfig(): z.infer { Object.entries(process.env) .filter(([key]) => key.startsWith(PREFIX)) .filter((it): it is [string, string] => it[1] !== undefined) - .map(([key, value]) => [key.slice(PREFIX.length), value]) + .map(([key, value]) => [key.slice(PREFIX.length), value]), ); // Apply the defaults to the environment variables. diff --git a/test/integration/dispatch-handler.spec-integration.ts b/test/integration/dispatch-handler.spec-integration.ts index a376b20..d329a9f 100644 --- a/test/integration/dispatch-handler.spec-integration.ts +++ b/test/integration/dispatch-handler.spec-integration.ts @@ -49,7 +49,7 @@ describe("dispatch-handler", () => { nock("https://api.github.com") .post( - "/repos/octo-org/octo-repo/actions/workflows/example-workflow/dispatches" + "/repos/octo-org/octo-repo/actions/workflows/example-workflow/dispatches", ) .reply(200); @@ -77,7 +77,7 @@ describe("dispatch-handler", () => { const dispatchScope = nock("https://api.github.com") .post( - "/repos/octo-org/octo-repo/actions/workflows/example-workflow/dispatches" + "/repos/octo-org/octo-repo/actions/workflows/example-workflow/dispatches", ) .reply((uri, body) => { if ((body as any).ref !== _testDefaultBranch) { @@ -117,7 +117,7 @@ describe("dispatch-handler", () => { const dispatchScope = nock("https://api.github.com") .post( - "/repos/octo-org/octo-repo/actions/workflows/example-workflow/dispatches" + "/repos/octo-org/octo-repo/actions/workflows/example-workflow/dispatches", ) .reply(200); diff --git a/test/utils/setup-oauth-server.ts b/test/utils/setup-oauth-server.ts index aa992ce..16cb8eb 100644 --- a/test/utils/setup-oauth-server.ts +++ b/test/utils/setup-oauth-server.ts @@ -20,7 +20,7 @@ interface SetupOAuthServerHolder { * @returns The OAuth server holder. */ export const setupOAuthServer = ( - opts?: SetupOAuthServerOpts + opts?: SetupOAuthServerOpts, ): SetupOAuthServerHolder => { let oAuthServer: OAuth2Server | undefined;