From f7ff2e63b8a01ca039ebf750d6c7c710b538d062 Mon Sep 17 00:00:00 2001 From: GitHub Actions <41898282+github-actions[bot]@users.noreply.github.com> Date: Mon, 22 Jul 2024 20:22:14 +0000 Subject: [PATCH] chore: release 2.4.4 --- CHANGELOG.md | 2 ++ package.json | 2 +- src/apitoolkit.ts | 4 ++-- 3 files changed, 5 insertions(+), 3 deletions(-) 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 266aefb..3a7746f 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;