simple-next-csrf
Advanced tools
Comparing version
@@ -47,3 +47,3 @@ "use strict"; | ||
if (!token || !(0, utils_1.validateToken)(token, secret)) { | ||
return response.json(getErrorReponse()); | ||
return response.status(401).json(getErrorReponse()); | ||
} | ||
@@ -50,0 +50,0 @@ yield handle(); |
{ | ||
"name": "simple-next-csrf", | ||
"version": "1.0.2", | ||
"version": "1.0.3", | ||
"description": "", | ||
"main": "dist/index.js", | ||
"scripts": { | ||
"test": "echo \"Error: no test specified\" && exit 1" | ||
"build": "tsc" | ||
}, | ||
@@ -28,3 +28,3 @@ "repository": { | ||
"@types/node": "^20.1.4", | ||
"tsc": "^2.0.4" | ||
"typescript": "^5.0.4" | ||
}, | ||
@@ -31,0 +31,0 @@ "dependencies": { |
No tests
QualityPackage does not have any tests. This is a strong signal of a poorly maintained or low quality package.
Found 1 instance in 1 package
0
-100%17543
-0.11%