UNPKG

nestjs-roles

Version:

Create custom roles guard and decorator

75 lines (74 loc) 2.07 kB
{ "name": "nestjs-roles", "version": "0.7.0", "description": "Create custom roles guard and decorator", "main": "index.js", "types": "index.d.ts", "scripts": { "test": "jest --verbose -i --detectOpenHandles", "lint": "eslint \"{src,__tests__}/**/*.ts\" --fix", "prebuild": "rimraf dist", "build": "tsc -p tsconfig.build.json", "prepublishOnly": "npm run build && cp -r ./dist/* .", "postpublish": "git clean -fd" }, "files": [ "*.{js,d.ts}", "!jest.config.js", "!.eslintrc.js" ], "engineStrict": true, "engines": { "node": ">=18.0.0" }, "repository": { "type": "git", "url": "git+https://github.com/iamolegga/nestjs-roles.git" }, "keywords": [ "nest", "nestjs", "nest.js", "role", "roles", "guard" ], "author": "iamolegga <iamolegga@gmail.com> (http://github.com/iamolegga)", "license": "MIT", "bugs": { "url": "https://github.com/iamolegga/nestjs-roles/issues" }, "homepage": "https://github.com/iamolegga/nestjs-roles#readme", "devDependencies": { "@eslint/compat": "^1.2.5", "@eslint/eslintrc": "^3.2.0", "@eslint/js": "^9.18.0", "@nestjs/common": "^11.0.5", "@nestjs/core": "^11.0.5", "@nestjs/platform-express": "^11.0.5", "@nestjs/platform-fastify": "^11.0.5", "@types/jest": "^29.5.14", "@types/node": "^22.10.10", "@types/supertest": "^6.0.2", "@typescript-eslint/eslint-plugin": "^8.21.0", "@typescript-eslint/parser": "^8.21.0", "eslint": "^9.18.0", "eslint-config-prettier": "^10.0.1", "eslint-plugin-import": "^2.31.0", "eslint-plugin-prettier": "^5.2.3", "jest": "29.7.0", "prettier": "^3.4.2", "reflect-metadata": "^0.1.14", "rimraf": "^6.0.1", "rxjs": "^7.8.1", "supertest": "^7.0.0", "ts-jest": "^29.2.5", "ts-loader": "^9.5.2", "ts-node": "^10.9.2", "typescript": "^5.7.3" }, "peerDependencies": { "@nestjs/common": "^8.0.0 || ^9.0.0 || ^10.0.0 || ^11.0.0", "@nestjs/core": "^8.0.0 || ^9.0.0 || ^10.0.0 || ^11.0.0" } }