UNPKG

electrode-csrf-jwt

Version:

Stateless Cross-Site Request Forgery (CSRF) protection with JWT

85 lines (84 loc) 1.86 kB
{ "name": "electrode-csrf-jwt", "version": "1.8.0", "description": "Stateless Cross-Site Request Forgery (CSRF) protection with JWT", "main": "lib/index.js", "scripts": { "lint": "clap lint", "test": "npm run lint && clap test", "coverage": "clap check", "prepublishOnly": "npm test", "demo": "node demo/server" }, "repository": { "type": "git", "url": "git+https://github.com/electrode-io/electrode-csrf-jwt.git" }, "keywords": [ "hapi", "plugin", "express", "middleware", "jwt", "csrf" ], "files": [ "lib" ], "author": "Caoyang Shi <cshi@walmartlabs.com>", "license": "Apache-2.0", "engines": { "node": ">= 6.0.0" }, "dependencies": { "@hapi/boom": "^7.4.3", "electrode-hapi-compat": "^1.2.0", "jsonwebtoken": "^9.0.0", "ms": "^2.1.1", "on-headers": "^1.0.1", "uuid": "^3.2.1" }, "devDependencies": { "body-parser": "^1.14.2", "cookie-parser": "^1.4.1", "electrode-archetype-njs-module-dev": "^3.0.0", "electrode-server": "^1.5.0", "electrode-static-paths": "^1.1.0", "express": "^4.13.3", "fastify": "^2.13.1", "fastify-cookie": "^3.6.0", "hapi": "^16.2.0", "hapi17": "./hapi17", "isomorphic-fetch": "^2.2.1", "istanbul": "^0.4.5", "koa": "^2.0.0", "koa-bodyparser": "^3.2.0", "koa-router": "^7.0.1", "mocha": "^3.0.2", "set-cookie-parser": "^2.1.1", "vision": "^4.0.1", "xstdout": "^0.1.1" }, "nyc": { "all": true, "reporter": [ "lcov", "text", "text-summary" ], "exclude": [ "coverage", "*clap.js", "dist", "test", "demo", "fastify-demo" ], "check-coverage": true, "statements": 100, "branches": 100, "functions": 100, "lines": 100, "cache": true } }