@exulu/backend 1.6.2 → 1.8.0

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.
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@exulu/backend",
3
3
  "author": "Qventu Bv.",
4
- "version": "1.6.2",
4
+ "version": "1.8.0",
5
5
  "main": "./dist/index.js",
6
6
  "private": false,
7
7
  "publishConfig": {
@@ -11,13 +11,14 @@
11
11
  "types": "./dist/index.d.ts",
12
12
  "homepage": "https://exulu.com",
13
13
  "engines": {
14
- "node": "20.10.0"
14
+ "node": "22.17.1"
15
15
  },
16
16
  "repository": {
17
17
  "type": "git",
18
18
  "url": "https://github.com/Qventu/exulu-backend"
19
19
  },
20
20
  "scripts": {
21
+ "preinstall": "node -e \"if (process.version !== 'v22.17.1') { console.error('❌ Wrong Node.js version. Expected v22.17.1, got ' + process.version); process.exit(1); }\"",
21
22
  "build": "tsup",
22
23
  "dev": "npm link && tsup --watch",
23
24
  "prepare": "husky",
@@ -4,6 +4,7 @@ export type User = {
4
4
  emailVerified?: string;
5
5
  type?: "api" | "user"
6
6
  anthropic_token?: string;
7
+ super_admin?: boolean;
7
8
  roles?: {
8
9
  id: string;
9
10
  role: string;