From 1fa61ab6fc0de6fb71935734ece0886d65e2b457 Mon Sep 17 00:00:00 2001 From: Benjamin Toby Date: Sat, 14 Dec 2024 17:20:25 +0100 Subject: [PATCH] Updates --- package.json | 2 +- users/user-auth.js | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/package.json b/package.json index 59a3043..5c352c9 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "@moduletrace/datasquirel", - "version": "3.1.4", + "version": "3.1.5", "description": "Cloud-based SQL data management tool", "main": "index.js", "bin": { diff --git a/users/user-auth.js b/users/user-auth.js index 3a0043e..671c084 100644 --- a/users/user-auth.js +++ b/users/user-auth.js @@ -144,7 +144,7 @@ function userAuth({ } const targetCsrfHeaderKey = Object.keys(finalRequest.headers) - .filter((k) => k.replace(/[^a-zA-Z0-9\-]/g, "")) + .map((k) => k.replace(/[^a-zA-Z0-9\-]/g, "")) .find((k) => k == userObject.csrf_k); if (csrfHeaderIsValue && !targetCsrfHeaderKey) {