@vcita/oauth-client-nestjs 1.22.2 → 2.0.0-rc.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (39) hide show
  1. package/CHANGELOG.md +25 -1
  2. package/dist/audit/index.d.ts +7 -0
  3. package/dist/audit/index.js +20 -0
  4. package/dist/audit/index.js.map +1 -0
  5. package/dist/index.d.ts +2 -1
  6. package/dist/index.js +2 -1
  7. package/dist/index.js.map +1 -1
  8. package/dist/oauth/controllers/oauth.controller.d.ts +1 -1
  9. package/dist/oauth/controllers/oauth.controller.js +8 -6
  10. package/dist/oauth/controllers/oauth.controller.js.map +1 -1
  11. package/dist/oauth/enums/auth.enum.d.ts +4 -2
  12. package/dist/oauth/enums/auth.enum.js +2 -0
  13. package/dist/oauth/enums/auth.enum.js.map +1 -1
  14. package/dist/oauth/enums/index.d.ts +2 -0
  15. package/dist/oauth/enums/index.js +15 -0
  16. package/dist/oauth/enums/index.js.map +1 -0
  17. package/dist/oauth/interfaces/oauth.interface.d.ts +8 -4
  18. package/dist/oauth/middleware/auth.middleware.d.ts +1 -1
  19. package/dist/oauth/middleware/auth.middleware.js +14 -4
  20. package/dist/oauth/middleware/auth.middleware.js.map +1 -1
  21. package/dist/oauth/oauth.module.js +30 -18
  22. package/dist/oauth/oauth.module.js.map +1 -1
  23. package/dist/oauth/repositories/oauth-data.entity.d.ts +2 -1
  24. package/dist/oauth/repositories/oauth-data.entity.js +7 -1
  25. package/dist/oauth/repositories/oauth-data.entity.js.map +1 -1
  26. package/dist/oauth/repositories/oauth.repository.d.ts +3 -2
  27. package/dist/oauth/repositories/oauth.repository.js +11 -6
  28. package/dist/oauth/repositories/oauth.repository.js.map +1 -1
  29. package/dist/oauth/services/oauth-http.service.js +3 -3
  30. package/dist/oauth/services/oauth-http.service.js.map +1 -1
  31. package/dist/oauth/services/oauth.service.d.ts +5 -2
  32. package/dist/oauth/services/oauth.service.js +49 -18
  33. package/dist/oauth/services/oauth.service.js.map +1 -1
  34. package/dist/oauth/utils/authentication.utils.d.ts +3 -1
  35. package/dist/oauth/utils/authentication.utils.js +22 -9
  36. package/dist/oauth/utils/authentication.utils.js.map +1 -1
  37. package/dist/oauth/utils/vcita-claims.config.json +10 -3
  38. package/dist/tsconfig.build.tsbuildinfo +1 -1
  39. package/package.json +6 -7
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@vcita/oauth-client-nestjs",
3
- "version": "1.22.2",
3
+ "version": "2.0.0-rc.2",
4
4
  "description": "Oauth2 Generic Vcita Integration",
5
5
  "main": "dist/index.js",
6
6
  "files": [
@@ -21,11 +21,9 @@
21
21
  "cache-manager": "^3.4.4",
22
22
  "class-transformer": "^0.4.0",
23
23
  "class-validator": "^0.13.1",
24
- "cookie-parser": "^1.4.5",
25
24
  "dotenv": "^10.0.0",
26
- "express": "^4.17.1",
27
25
  "joi": "^17.4.0",
28
- "jsonwebtoken": "^8.5.1",
26
+ "jsonwebtoken": "^9.0.0",
29
27
  "nestjs-redis": "^1.3.3",
30
28
  "reflect-metadata": "^0.1.13",
31
29
  "rimraf": "^3.0.2",
@@ -41,11 +39,12 @@
41
39
  "@nestjs/swagger": "^4.8.0",
42
40
  "@nestjs/terminus": "^7.2.0",
43
41
  "@nestjs/typeorm": "^7.1.5",
44
- "@vcita/infra-nestjs": "^2.8.3"
42
+ "@vcita/infra-nestjs": "^2.8.3",
43
+ "express": "^4.17.1",
44
+ "cookie-parser": "^1.4.5"
45
45
  },
46
46
  "devDependencies": {
47
47
  "@nestjs/cli": "^7.6.0",
48
- "@nestjs/mapped-types": "^1.0.0",
49
48
  "@nestjs/schematics": "^7.3.1",
50
49
  "@nestjs/testing": "^7.6.15",
51
50
  "@types/bull": "^3.15.1",
@@ -53,7 +52,7 @@
53
52
  "@types/express": "^4.17.11",
54
53
  "@types/jest": "^26.0.22",
55
54
  "@types/joi": "^17.2.3",
56
- "@types/jsonwebtoken": "^8.5.2",
55
+ "@types/jsonwebtoken": "^9.0.0",
57
56
  "@types/node": "^14.14.36",
58
57
  "@types/supertest": "^2.0.10",
59
58
  "@typescript-eslint/eslint-plugin": "^4.19.0",