UNPKG

@dr.pogodin/csurf

Version:

CSRF token middleware for ExpressJS

79 lines (78 loc) 2.4 kB
{ "name": "@dr.pogodin/csurf", "description": "CSRF token middleware for ExpressJS", "version": "1.16.9", "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": { "types": "./build/types/index.d.ts", "require": "./cjs.js", "default": "./build/mjs/index.mjs" }, "dependencies": { "@babel/runtime": "^7.29.2", "cookie": "^1.1.1", "cookie-signature": "^1.2.2", "http-errors": "^2.0.1", "rndm": "1.2.0", "tsscmp": "1.0.6", "uid-safe": "2.1.5" }, "devDependencies": { "@babel/cli": "^7.28.6", "@babel/core": "^7.29.0", "@babel/plugin-transform-runtime": "^7.29.0", "@babel/preset-env": "^7.29.2", "@babel/preset-typescript": "^7.28.5", "@dr.pogodin/eslint-configs": "^0.2.8", "@tsconfig/recommended": "^1.0.13", "@types/cookie-parser": "^1.4.10", "@types/cookie-session": "^2.0.49", "@types/cookie-signature": "^1.1.2", "@types/express": "^5.0.6", "@types/http-errors": "^2.0.5", "@types/jest": "^30.0.0", "@types/rndm": "^1.2.2", "@types/supertest": "^7.2.0", "@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.2", "cookie-parser": "^1.4.7", "cookie-session": "^2.1.1", "express": "^5.2.1", "jest": "^30.3.0", "rimraf": "^6.1.3", "supertest": "^7.2.2", "typescript": "^5.9.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 --cache", "jest": "jest", "test": "npm run lint && npm run jest" }, "keywords": [ "express", "csrf", "csurf", "tokens", "middleware", "javascript", "tools", "utils" ] }