@csrf-armor/nextjs
Version:
CSRF protection middleware for Next.js applications
76 lines • 1.82 kB
JSON
{
"name": "@csrf-armor/nextjs",
"version": "1.4.4",
"description": "CSRF protection middleware for Next.js applications",
"type": "module",
"main": "./dist/index.js",
"types": "./dist/index.d.ts",
"exports": {
".": "./dist/index.js",
"./client": "./dist/client/index.js",
"./package.json": "./package.json"
},
"files": [
"dist",
"README.md"
],
"keywords": [
"nextjs",
"csrf",
"security",
"middleware",
"protection",
"app-router",
"react"
],
"author": "Muneeb Samuels",
"contributors": [
{
"name": "Raul",
"url": "https://github.com/raulcrisan"
}
],
"license": "MIT",
"repository": {
"type": "git",
"url": "https://github.com/muneebs/csrf-armor",
"directory": "packages/nextjs"
},
"publishConfig": {
"access": "public",
"registry": "https://registry.npmjs.org/"
},
"bugs": {
"url": "https://github.com/muneebs/csrf-armor/issues"
},
"homepage": "https://github.com/muneebs/csrf-armor#readme",
"engines": {
"node": ">=18.0.0"
},
"dependencies": {
"@csrf-armor/core": "1.2.3"
},
"peerDependencies": {
"next": "^13.0.0 || ^14.0.0 || ^15.0.0 || ^16.0.0",
"react": "^18.2.0 || ^19.0.0"
},
"devDependencies": {
"@testing-library/jest-dom": "^6.9.1",
"@testing-library/react": "^16.3.0",
"@types/react": "^19.1.6",
"next": "^16.2.3",
"tsdown": "^0.20.1",
"typescript": "^5"
},
"module": "./dist/index.js",
"scripts": {
"build": "tsdown",
"pretest": "cd ../core && pnpm run build",
"test": "vitest --run",
"pretest:coverage": "cd ../core && pnpm run build",
"test:coverage": "vitest run --coverage",
"test:watch": "vitest",
"type-check": "tsc --noEmit",
"clean": "rm -rf dist tsconfig.tsbuildinfo"
}
}