{
  "name": "csrf-csrf",
  "version": "3.1.0",
  "description": "A utility package to help implement stateless CSRF protection using the Double Submit Cookie Pattern in express.",
  "type": "module",
  "main": "./lib/cjs/index.cjs",
  "exports": {
    ".": {
      "require": {
        "types": "./lib/index.d.cts",
        "default": "./lib/cjs/index.cjs"
      },
      "import": {
        "types": "./lib/index.d.ts",
        "default": "./lib/esm/index.js"
      }
    }
  },
  "types": "./lib/index.d.ts",
  "files": [
    "lib/esm/index.js",
    "lib/cjs/index.cjs",
    "lib/index.d.ts",
    "lib/index.d.cts"
  ],
  "scripts": {
    "test": "mocha --recursive ./src/tests/*.test.ts",
    "clean": "rm -rf ./lib",
    "lint": "npx eslint .",
    "prettify": "npx prettier --write .",
    "build:types": "npx tsup src/index.ts --out-dir lib --dts-only --format esm,cjs",
    "build:cjs": "tsc -p tsconfig.cjs.json && mv ./lib/cjs/index.js ./lib/cjs/index.cjs && rm ./lib/cjs/types.js",
    "build:esm": "tsc -p tsconfig.json && rm ./lib/esm/types.js",
    "build:code": "npm run build:cjs && npm run build:esm",
    "build": "npm run build:types && npm run build:code",
    "build:clean": "npm run clean && npm run build",
    "pack": "npm pack",
    "pack:clean": "rm -rf *.tgz && npm run pack",
    "changelog": "standard-version"
  },
  "author": "psibean",
  "license": "ISC",
  "homepage": "https://github.com/Psifi-Solutions/csrf-csrf",
  "repository": "https://github.com/Psifi-Solutions/csrf-csrf",
  "keywords": [
    "csrf",
    "middleware",
    "express",
    "tokens"
  ],
  "devDependencies": {
    "@types/chai": "^4.3.11",
    "@types/cookie": "^0.6.0",
    "@types/cookie-parser": "^1.4.6",
    "@types/cookie-signature": "^1.1.2",
    "@types/express": "^4.17.21",
    "@types/http-errors": "^2.0.4",
    "@types/mocha": "^10.0.6",
    "@types/node": "^18.15.8",
    "@typescript-eslint/eslint-plugin": "^6.14.0",
    "@typescript-eslint/parser": "^6.14.0",
    "chai": "^4.3.10",
    "cookie": "^0.6.0",
    "cookie-parser": "^1.4.6",
    "cookie-signature": "^1.2.1",
    "eslint": "^8.56.0",
    "mocha": "^10.2.0",
    "prettier": "^3.1.1",
    "standard-version": "^9.5.0",
    "ts-node": "^10.9.2",
    "tsup": "^8.0.1",
    "typescript": "^5.3.3"
  },
  "dependencies": {
    "http-errors": "^2.0.0"
  }
}
