UNPKG

nuxt-security

Version:

🛡️ Security Module for Nuxt based on HTTP Headers and Middleware

99 lines (98 loc) 2.53 kB
{ "name": "nuxt-security", "version": "2.3.0", "license": "MIT", "type": "module", "engines": { "node": ">=20.0.0" }, "homepage": "https://nuxt-security.vercel.app", "description": "🛡️ Security Module for Nuxt based on HTTP Headers and Middleware", "repository": { "url": "https://github.com/Baroshem/nuxt-security" }, "keywords": [ "nuxt", "vue", "security", "owasp", "helmet", "basic-auth", "rate-limit", "xss", "cors", "request-size-limit", "allowed-http-methods", "csrf", "content-security-policy" ], "exports": { ".": { "types": "./dist/types.d.mts", "import": "./dist/module.mjs" } }, "files": [ "dist" ], "scripts": { "prepack": "nuxt-module-build build", "dev": "nuxt-module-build build --stub && nuxt-module-build prepare && nuxi prepare playground && nuxi dev playground", "dev:build": "nuxi build playground", "dev:start": "nuxi start playground", "dev:generate": "nuxi generate playground", "dev:prepare": "nuxt-module-build build --stub && nuxt-module-build prepare && nuxi prepare playground", "dev:preview": "nuxi preview playground", "dev:docs": "rm -rf dist && cd docs && yarn dev", "lint": "eslint .", "release": "yarn lint && yarn test && yarn prepack && changelogen --release && npm publish && git push --follow-tags", "test": "vitest run --silent", "test:watch": "vitest watch", "stackblitz": "cd .stackblitz && yarn && yarn dev" }, "packageManager": "yarn@1.22.19", "dependencies": { "@nuxt/kit": "^3.11.2", "basic-auth": "^2.0.1", "defu": "^6.1.1", "nuxt-csurf": "^1.6.5", "pathe": "^1.0.0", "unplugin-remove": "^1.0.3", "xss": "^1.0.14" }, "devDependencies": { "@nuxt/eslint-config": "^0.3.10", "@nuxt/module-builder": "^1.0.1", "@nuxt/schema": "^3.11.2", "@nuxt/test-utils": "^3.12.0", "@types/node": "^20.14.8", "changelogen": "^0.5.7", "eslint": "^8.50.0", "nuxi": "^3.26.4", "nuxt": "^3.11.2", "typescript": "^5.4.5", "vitest": "^1.3.1" }, "stackblitz": { "installDependencies": false, "startCommand": "yarn stackblitz" }, "typesVersions": { "*": { ".": [ "./dist/types.d.mts" ] } }, "unbuild": { "entries": [ "./src/utils/crypto.ts", "./src/utils/headers.ts", "./src/utils/merge.ts", "./src/defaultConfig.ts" ], "externals": [ "unstorage" ] } }