@stamhoofd/backend-middleware
Advanced tools
Comparing version 2.1.4 to 2.6.0
@@ -23,3 +23,3 @@ "use strict"; | ||
// Allow missing version on /openid/ path | ||
if (request.url.startsWith("/openid/")) { | ||
if (STAMHOOFD.environment === 'development' || request.url.startsWith("/openid/")) { | ||
request.version = this.latestVersions.web; | ||
@@ -26,0 +26,0 @@ return; |
{ | ||
"name": "@stamhoofd/backend-middleware", | ||
"version": "2.1.4", | ||
"version": "2.6.0", | ||
"main": "./dist/index.js", | ||
@@ -21,3 +21,3 @@ "types": "./dist/index.d.ts", | ||
}, | ||
"gitHead": "22be7c0740ce4705470d6fc79b5a50ccccabad9d" | ||
"gitHead": "7a3f9f6c08058dc8b671befbfad73184afdc6d7c" | ||
} |
@@ -28,3 +28,3 @@ import { EncodedResponse, Request, RequestMiddleware, ResponseMiddleware } from "@simonbackx/simple-endpoints"; | ||
// Allow missing version on /openid/ path | ||
if (request.url.startsWith("/openid/")) { | ||
if (STAMHOOFD.environment === 'development' || request.url.startsWith("/openid/")) { | ||
request.version = this.latestVersions.web | ||
@@ -85,2 +85,2 @@ return | ||
} | ||
} | ||
} |
Sorry, the diff of this file is not supported yet
63190
437
180