@mercury-labs/auth
Version:
Mercury framework auth library. It supports local auth, jwt with both bearer token and cookie, basic auth.
121 lines • 3.83 kB
JSON
{
"name": "@mercury-labs/auth",
"version": "1.1.32",
"description": "Mercury framework auth library. It supports local auth, jwt with both bearer token and cookie, basic auth.",
"author": "duysolo <duypt.dev@gmail.com>",
"repository": {
"type": "git",
"url": "https://github.com/duysolo/mercury-auth"
},
"keywords": [
"mercury-labs",
"basic auth",
"jwt auth",
"nestjs auth",
"nestjs basic auth",
"nestjs jwt auth",
"nestjs jwt auth with cookie",
"basic auth",
"jwt auth",
"jwt auth with cookie",
"nestjs auth with cookie"
],
"main": "dist/index.js",
"typings": "dist/index.d.ts",
"private": false,
"license": "MIT",
"scripts": {
"prebuild": "rimraf dist",
"build": "rm -rf ./dist && nest build",
"format": "prettier --write \"src/**/*.ts\" \"test/**/*.ts\"",
"lint": "eslint \"{src,apps,libs,test}/**/*.ts\" --fix",
"increase-version": "node ./infrastructure/increase-version.js",
"test": "jest --verbose=true",
"test:watch": "jest --verbose=true --watch",
"test:cov": "jest --coverage",
"test:debug": "node --inspect-brk -r tsconfig-paths/register -r ts-node/register node_modules/.bin/jest --runInBand",
"test:e2e": "jest --verbose=true --config ./test/jest-e2e.json"
},
"dependencies": {
"@mercury-labs/hashing": "^1.0.0",
"@nestjs/common": "^9.0.0 || ^8.0.0 || ^7.0.0",
"@nestjs/core": "^9.0.0 || ^8.0.0 || ^7.0.0",
"@nestjs/cqrs": "^9.0.0 || ^8.0.0 || ^7.0.0",
"@nestjs/jwt": "^9.0.0 || ^8.0.0 || ^7.0.0",
"@nestjs/passport": "^9.0.0 || ^8.0.0 || ^7.0.0",
"@nestjs/swagger": "^6.0.0 || ^5.0.0",
"bcrypt": "~5.0.1",
"class-transformer": "~0.5.1",
"class-validator": "~0.13.2",
"lodash": "~4.17.21",
"moment": "~2.29.4",
"passport": "~0.6.0",
"passport-jwt": "~4.0.0",
"passport-local": "~1.0.0",
"passport-strategy": "~1.0.0",
"reflect-metadata": "^0.1.13",
"rimraf": "^3.0.2",
"rxjs": "^7.2.0"
},
"devDependencies": {
"@fastify/cookie": "^6.0.0",
"@nestjs/cli": "^9.0.0",
"@nestjs/platform-express": "^9.0.0",
"@nestjs/platform-fastify": "^9.0.0",
"@nestjs/schematics": "^9.0.0",
"@nestjs/testing": "^9.0.0",
"@rushstack/eslint-config": "~2.6.1",
"@types/bcrypt": "~5.0.0",
"@types/cookie-parser": "^1.4.3",
"@types/express": "^4.17.13",
"@types/jest": "27.0.2",
"@types/lodash": "~4.14.182",
"@types/node": "^16.0.0",
"@types/passport-jwt": "~3.0.6",
"@types/passport-local": "~1.0.34",
"@types/passport-strategy": "~0.2.35",
"@types/supertest": "^2.0.11",
"@typescript-eslint/eslint-plugin": "^5.0.0",
"@typescript-eslint/parser": "^5.0.0",
"cookie-parser": "^1.4.6",
"eslint": "^8.0.1",
"eslint-config-prettier": "^8.3.0",
"eslint-plugin-prettier": "^4.0.0",
"jest": "^27.2.5",
"prettier": "^2.3.2",
"source-map-support": "^0.5.20",
"supertest": "^6.1.3",
"ts-jest": "^27.0.3",
"ts-loader": "^9.2.3",
"ts-node": "^10.0.0",
"tsconfig-paths": "^3.10.1",
"typescript": "^4.3.5"
},
"peerDependencies": {
"@nestjs/common": "^9.0.0 || ^8.0.0 || ^7.0.0",
"@nestjs/core": "^9.0.0 || ^8.0.0 || ^7.0.0",
"@nestjs/cqrs": "^9.0.0 || ^8.0.0 || ^7.0.0",
"@nestjs/jwt": "^9.0.0 || ^8.0.0 || ^7.0.0",
"@nestjs/passport": "^9.0.0 || ^8.0.0 || ^7.0.0",
"@nestjs/swagger": "^6.0.0 || ^5.0.0"
},
"jest": {
"moduleFileExtensions": [
"js",
"json",
"ts"
],
"rootDir": "src",
"testRegex": ".*\\.spec\\.ts$",
"transform": {
"^.+\\.(t|j)s$": "ts-jest"
},
"collectCoverageFrom": [
"**/*.(t|j)s",
"!**/node_modules/**",
"!**/__tests__/**"
],
"coverageDirectory": "../coverage",
"testEnvironment": "node"
}
}