UNPKG

@dr.pogodin/csurf

Version:

CSRF token middleware for ExpressJS

78 lines (77 loc) 2.35 kB
{ "name": "@dr.pogodin/csurf", "description": "CSRF token middleware for ExpressJS", "version": "1.16.5", "license": "MIT", "repository": "github:birdofpreyru/csurf", "bugs": { "url": "https://github.com/birdofpreyru/csurf/issues" }, "homepage": "https://dr.pogodin.studio/docs/csurf", "main": "./build/mjs/index.mjs", "types": "./build/types/index.d.ts", "exports": { "require": "./cjs.js", "default": "./build/mjs/index.mjs" }, "dependencies": { "@babel/runtime": "^7.27.6", "cookie": "^1.0.2", "cookie-signature": "^1.2.2", "http-errors": "^2.0.0", "rndm": "1.2.0", "tsscmp": "1.0.6", "uid-safe": "2.1.5" }, "devDependencies": { "@babel/cli": "^7.27.2", "@babel/core": "^7.27.4", "@babel/plugin-transform-runtime": "^7.27.4", "@babel/preset-env": "^7.27.2", "@babel/preset-typescript": "^7.27.1", "@dr.pogodin/eslint-configs": "^0.0.7", "@tsconfig/recommended": "^1.0.8", "@types/cookie-parser": "^1.4.9", "@types/cookie-session": "^2.0.49", "@types/cookie-signature": "^1.1.2", "@types/express": "^5.0.3", "@types/http-errors": "^2.0.5", "@types/jest": "^29.5.14", "@types/rndm": "^1.2.2", "@types/supertest": "^6.0.3", "@types/tsscmp": "^1.0.2", "@types/uid-safe": "^2.1.5", "babel-plugin-add-import-extension": "^1.6.0", "babel-plugin-replace-import-extension": "^1.1.5", "body-parser": "^2.2.0", "cookie-parser": "^1.4.7", "cookie-session": "^2.1.0", "express": "^5.1.0", "jest": "^30.0.0", "rimraf": "^6.0.1", "supertest": "^7.1.1", "typescript": "^5.8.3" }, "engines": { "node": ">=20" }, "scripts": { "build": "rimraf build && npm run build:types && npm run build:cjs && npm run build:mjs", "build:cjs": "rimraf build/cjs && babel src -x .ts --out-dir build/cjs --source-maps", "build:mjs": "rimraf build/mjs && babel src -x .ts --out-dir build/mjs --source-maps --out-file-extension .mjs --config-file ./babel.module.config.js", "build:types": "rimraf build/types && tsc --project tsconfig.types.json", "lint": "eslint", "jest": "jest", "test": "npm run lint && npm run jest" }, "keywords": [ "express", "csrf", "csurf", "tokens", "middleware", "javascript", "tools", "utils" ] }