@ministryofjustice/hmpps-prison-permissions-lib
Version:
A library to centralise the process of determining whether a user should have access to create/read/update/delete a prison resource, for example, accessing a prisoner's Prisoner Profile.
75 lines (74 loc) • 2.31 kB
JSON
{
"name": "@ministryofjustice/hmpps-prison-permissions-lib",
"version": "0.2.0",
"description": "A library to centralise the process of determining whether a user should have access to create/read/update/delete a prison resource, for example, accessing a prisoner's Prisoner Profile.",
"keywords": [
"hmpps",
"prison",
"permissions",
"typescript",
"lib",
"node"
],
"author": "hmpps-developers",
"homepage": "https://github.com/ministryofjustice/hmpps-prison-permissions-lib#readme",
"license": "MIT",
"repository": {
"type": "git",
"url": "git+https://github.com/ministryofjustice/hmpps-prison-permissions-lib.git"
},
"main": "./dist/index.cjs",
"module": "./dist/index.esm.js",
"types": "./dist/index.d.ts",
"files": [
"*.md",
"dist/**/*"
],
"engines": {
"node": "20 || 22"
},
"scripts": {
"prepare": "hmpps-precommit-hooks-prepare",
"build": "rollup -c rollup.config.ts --bundleConfigAsCjs",
"clean": "rm -rf ./dist/",
"test": "jest",
"lint": "eslint . --cache --max-warnings 0",
"lint-fix": "eslint . --cache --max-warnings 0 --fix",
"typecheck": "tsc",
"precommit:secrets": "gitleaks git --pre-commit --redact --staged --verbose --config .gitleaks/config.toml",
"precommit:lint": "node_modules/.bin/lint-staged",
"precommit:verify": "npm run typecheck && npm test"
},
"lint-staged": {
"*.{ts,css}": [
"prettier --write",
"eslint --fix"
],
"*.json": [
"prettier --write"
]
},
"devDependencies": {
"@ministryofjustice/eslint-config-hmpps": "^0.0.1",
"@ministryofjustice/hmpps-precommit-hooks": "^0.0.3",
"@rollup/plugin-commonjs": "^28.0.6",
"@rollup/plugin-multi-entry": "^6.0.1",
"@rollup/plugin-node-resolve": "^16.0.1",
"@rollup/plugin-typescript": "^12.1.4",
"@tsconfig/node22": "^22.0.2",
"@types/bunyan": "^1.8.11",
"@types/express": "^5.0.3",
"@types/express-session": "^1.18.2",
"@types/jest": "^30.0.0",
"jest": "^30.0.5",
"lint-staged": "^16.1.2",
"rollup": "^4.45.1",
"rollup-plugin-dts": "^6.2.1",
"ts-jest": "^29.4.0",
"typescript": "^5.8.3"
},
"dependencies": {
"@ministryofjustice/hmpps-rest-client": "^0.0.1",
"applicationinsights": "^2.9.7"
}
}