diff --git a/CHANGELOG.md b/CHANGELOG.md index 04dab57..15b0e95 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -7,6 +7,8 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 ## Unreleased +## 2.4.4 - 2024-07-22 + ## 2.4.3 - 2024-07-15 ## 1.2.0 - 2023-10-13 diff --git a/package.json b/package.json index cff60d9..7251ada 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "apitoolkit-express", - "version": "2.4.3", + "version": "2.4.4", "description": "Nodejs SDK for the API Toolkit Monitoring and Reliability platform written in Typescript", "main": "lib/index.js", "types": "lib/index.d.ts", diff --git a/src/apitoolkit.ts b/src/apitoolkit.ts index 350474f..58018d6 100644 --- a/src/apitoolkit.ts +++ b/src/apitoolkit.ts @@ -316,12 +316,12 @@ export class APIToolkit { export const findMatchedRoute = (app: Application, method: string, url: string): string => { try { - let path = url.split('?')[0]; + const path = url.split('?')[0]; const stack = app._router.stack; let final_path = ''; const gatherRoutes = (stack: any, build_path: string, path: string) => { - for (let layer of stack) { + for (const layer of stack) { if (layer.route) { if (path.startsWith(layer.path)) { const route = layer.route;