@graphql-yoga/plugin-csrf-prevention
Version:
CSRF prevention plugin for GraphQL Yoga that requires the clients to have a specific header set.
65 lines (64 loc) • 1.6 kB
JSON
{
"name": "@graphql-yoga/plugin-csrf-prevention",
"version": "3.18.1-alpha-20260205002102-3907273d720911b1f0a452da1b772ad00bc8984d",
"type": "module",
"description": "CSRF prevention plugin for GraphQL Yoga that requires the clients to have a specific header set.",
"repository": {
"type": "git",
"url": "https://github.com/graphql-hive/graphql-yoga.git",
"directory": "packages/plugins/csrf-prevention"
},
"author": "Denis Badurina <badurinadenis@gmail.com>",
"license": "MIT",
"engines": {
"node": ">=18.0.0"
},
"main": "dist/index.cjs",
"typings": "dist/index.d.mts",
"module": "dist/index.mjs",
"exports": {
".": {
"require": {
"types": "./dist/index.d.cts",
"default": "./dist/index.cjs"
},
"import": {
"types": "./dist/index.d.mts",
"default": "./dist/index.mjs"
},
"default": {
"types": "./dist/index.d.mts",
"default": "./dist/index.mjs"
}
},
"./package.json": "./package.json"
},
"files": [
"dist"
],
"scripts": {
"build": "tsdown",
"check": "tsc --pretty --noEmit",
"watch": "tsdown --watch"
},
"peerDependencies": {
"graphql": "^15.2.0 || ^16.0.0",
"graphql-yoga": "workspace:^"
},
"devDependencies": {
"graphql": "^16.12.0",
"graphql-yoga": "workspace:*",
"tsdown": "^0.20.0-beta.1",
"tslib": "^2.8.1"
},
"publishConfig": {
"access": "public"
},
"sideEffects": false,
"buildOptions": {
"input": "./src/index.ts"
},
"typescript": {
"definition": "dist/index.d.mts"
}
}