UNPKG

csrf-sync

Version:

A utility package to help implement stateful CSRF protection using the Synchroniser Token Pattern in express.

51 lines (50 loc) 1.53 kB
{ "name": "csrf-sync", "version": "4.2.1", "description": "A utility package to help implement stateful CSRF protection using the Synchroniser Token Pattern in express.", "type": "module", "main": "./lib/index.cjs", "exports": { "require": { "types": "./lib/index.d.cts", "default": "./lib/index.cjs" }, "import": { "types": "./lib/index.d.ts", "import": "./lib/index.js" } }, "types": "./lib/index.d.ts", "files": ["lib/index.js", "lib/index.cjs", "lib/index.d.ts", "lib/index.d.cts"], "scripts": { "clean": "rm -rf ./lib", "lint": "biome check .", "lint:fix": "biome check --write .", "build": "tsup", "build:clean": "npm run clean && npm run build", "changelog": "commit-and-tag-version", "pack:clean": "rm -rf *.tgz && npm pack", "test": "vitest run", "test:coverage": "vitest run --coverage" }, "author": "psibean", "license": "ISC", "homepage": "https://github.com/Psifi-Solutions/csrf-sync", "repository": "https://github.com/Psifi-Solutions/csrf-sync", "keywords": ["csrf", "middleware", "express", "tokens"], "devDependencies": { "@biomejs/biome": "1.9.4", "@types/express": "^4.17.21", "@types/express-session": "^1.18.0", "@types/http-errors": "^2.0.4", "@types/node": "^18.15.8", "@vitest/coverage-istanbul": "3.1.2", "commit-and-tag-version": "12.5.0", "tsup": "8.4.0", "typescript": "^5.3.3", "vitest": "3.1.2" }, "dependencies": { "http-errors": "^2.0.0" } }