pundit
Version:
Minimal and tiny authorisation library that uses a plain old JavaScript object (POJO)
105 lines • 2.79 kB
JSON
{
"name": "pundit",
"version": "0.3.1",
"description": "Minimal and tiny authorisation library that uses a plain old JavaScript object (POJO)",
"keywords": [
"authorisation",
"authorization",
"pundit",
"react"
],
"homepage": "https://github.com/pundit-community/pundit.js",
"license": "MIT",
"author": "Pundit.js Team",
"contributors": [
"John Otander",
"Chris Alley"
],
"type": "module",
"repository": {
"type": "git",
"url": "https://github.com/pundit-community/pundit.js"
},
"exports": [
"./dist/pundit.js"
],
"source": "src/index.ts",
"files": [
"dist/pundit.js"
],
"engines": {
"node": ">=20"
},
"peerDependencies": {
"react": ">=20.17"
},
"husky": {
"hooks": {
"pre-commit": "pnpm lint"
}
},
"module": "dist/pundit-new.esm.js",
"size-limit": [
{
"path": "dist/pundit.mjs",
"limit": "10 KB"
},
{
"path": "dist/pundit.umd.js",
"limit": "10 KB"
}
],
"devDependencies": {
"@babel/core": "^7.26.0",
"@babel/preset-env": "^7.26.0",
"@babel/preset-react": "^7.26.3",
"@babel/preset-typescript": "^7.26.0",
"@commitlint/cli": "^19.6.0",
"@commitlint/config-conventional": "^19.6.0",
"@commitlint/types": "^19.5.0",
"@size-limit/preset-small-lib": "^10.0.3",
"@testing-library/jest-dom": "^6.6.3",
"@testing-library/react": "^16.1.0",
"@types/react": "^19.0.1",
"@types/react-dom": "^19.0.2",
"@typescript-eslint/eslint-plugin": "^6.21.0",
"@typescript-eslint/parser": "^6.21.0",
"@vitejs/plugin-react": "^4.3.4",
"@vitest/coverage-v8": "^0.34.6",
"@vitest/ui": "^0.34.7",
"babel-preset-airbnb": "^5.0.0",
"eslint": "^8.57.1",
"eslint-config-airbnb": "^19.0.4",
"eslint-config-airbnb-typescript": "^17.1.0",
"eslint-config-prettier": "^9.1.0",
"eslint-plugin-react": "^7.37.2",
"husky": "^9.1.7",
"jsdom": "^25.0.1",
"prettier": "3.4.2",
"react": "^19.0.0",
"react-dom": "^19.0.0",
"remark-cli": "^12.0.1",
"remark-preset-lint-markdown-style-guide": "^5.1.3",
"size-limit": "^10.0.3",
"typescript": "^5.7.2",
"unified-prettier": "^2.0.1",
"vite": "^6.0.3",
"vitest": "^0.34.6"
},
"scripts": {
"build": "tsc && vite build",
"coverage": "vitest run --coverage",
"test": "vitest",
"test:ui": "vitest --ui",
"lint": "eslint src test --ext js,ts,tsx",
"lint:fix": "eslint src test --ext js,ts,tsx --fix",
"remark": "remark .",
"remark:fix": "remark . --output",
"prettier": "prettier --check .",
"prettier:fix": "prettier --write .",
"types": "tsc",
"size": "size-limit",
"analyze": "size-limit --why",
"commitlint": "commitlint --edit"
}
}