@albirex/platformatic-logto 1.1.0 → 1.2.1

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 (2) hide show
  1. package/lib/index.js +0 -1
  2. package/package.json +6 -4
package/lib/index.js CHANGED
@@ -118,7 +118,6 @@ async function auth(app, opts) {
118
118
  }
119
119
  if (forceAdminRole) {
120
120
  // We replace just the role in `request.user`, all the rest is untouched
121
- console.log(this.user);
122
121
  this.user = {
123
122
  // ...request.user,
124
123
  [roleKey]: PLT_ADMIN_ROLE,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@albirex/platformatic-logto",
3
- "version": "1.1.0",
3
+ "version": "1.2.1",
4
4
  "description": "",
5
5
  "type": "module",
6
6
  "main": "lib/index.js",
@@ -14,11 +14,14 @@
14
14
  },
15
15
  "peerDependencies": {
16
16
  "fastify": "^5.0.0",
17
- "platformatic": ">=2"
17
+ "platformatic": ">=2",
18
+ "@platformatic/db": "^2.66.0"
18
19
  },
19
20
  "devDependencies": {
20
21
  "@eslint/js": "^9.12.0",
22
+ "@platformatic/db-core": "^2.66.1",
21
23
  "@types/node": "^22.10.1",
24
+ "dotenv": "^16.5.0",
22
25
  "eslint": "^9.12.0",
23
26
  "tap": "^21.1.0",
24
27
  "typescript": "~5.5",
@@ -29,7 +32,6 @@
29
32
  "@fastify/error": "^4.1.0",
30
33
  "@logto/js": "^5.1.1",
31
34
  "@logto/node": "^3.1.4",
32
- "@platformatic/db": "^2.66.0",
33
35
  "@platformatic/db-authorization": "^2.66.0",
34
36
  "@platformatic/sql-mapper": "^2.66.0",
35
37
  "@sinclair/typebox": "^0.34.14",
@@ -45,6 +47,6 @@
45
47
  "build": "npm run lint && npm run build-ts",
46
48
  "build-ts": "tsc",
47
49
  "lint": "eslint",
48
- "test": "tap --tsconfig=tsconfig.test.json --disable-coverage --jobs=1 --reporter=spec test/**/*.test.ts"
50
+ "test": "tap --tsconfig=tsconfig.test.json --disable-coverage --jobs=1 test/**/*.test.ts"
49
51
  }
50
52
  }