You're Invited:Meet the Socket Team at BlackHat and DEF CON in Las Vegas, Aug 4-6.RSVP
Socket
Book a DemoInstallSign in
Socket

simple-next-csrf

Package Overview
Dependencies
Maintainers
1
Versions
5
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

simple-next-csrf - npm Package Compare versions

Comparing version

to
1.0.3

2

dist/middlewares.js

@@ -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": {