backend-plus 2.2.2 → 2.2.3

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.
@@ -266,6 +266,7 @@ export type TableDefinition = EditableDbDefinition & {
266
266
  tableName?:string
267
267
  schema?:string
268
268
  title?:string
269
+ prefix?:string // this prefix will be striped out from the fields name to compute the title of the column in the grid
269
270
  fields:FieldDefinition[]
270
271
  primaryKey:string[]
271
272
  refrescable?: boolean
@@ -553,7 +554,7 @@ export class AppBackend{
553
554
  addUnloggedServices(mainApp:ExpressPlus, baseUrl:string):void
554
555
  addLoggedServices():void
555
556
  getProcedures():Promise<ProcedureDef[]>
556
- isAdmin():boolean
557
+ isAdmin(reqOrContext:Request|Context):boolean
557
558
  canChangePass():Promise<boolean>
558
559
  getMenu(context?:Context):MenuDefinition
559
560
  inDbClient<T>(req:RequestDb|null, doThisWithDbClient:(client:Client)=>Promise<T>):Promise<T>
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "backend-plus",
3
3
  "description": "Backend for the anti Pareto rule",
4
- "version": "2.2.2",
4
+ "version": "2.2.3",
5
5
  "author": "Codenautas <codenautas@googlegroups.com>",
6
6
  "license": "MIT",
7
7
  "repository": "codenautas/backend-plus",
@@ -34,7 +34,7 @@
34
34
  "backend-skins": "^0.1.15",
35
35
  "best-globals": "^1.1.6",
36
36
  "big.js": "^6.2.2",
37
- "body-parser": "^1.20.3",
37
+ "body-parser": "^2.2.0",
38
38
  "cast-error": "^0.1.1",
39
39
  "castellano": "^0.1.4",
40
40
  "connect-pg-simple": "^10.0.0",
@@ -82,7 +82,7 @@
82
82
  "@types/js-yaml": "^4.0.9",
83
83
  "@types/mocha": "^10.0.10",
84
84
  "@types/multiparty": "~4.2.1",
85
- "@types/node": "^22.13.13",
85
+ "@types/node": "^22.14.0",
86
86
  "@types/nodemailer": "^6.4.17",
87
87
  "@types/numeral": "~2.0.5",
88
88
  "@types/session-file-store": "^1.2.5",
@@ -99,11 +99,11 @@
99
99
  "kill-9": "~0.4.3",
100
100
  "mocha": "^11.1.0",
101
101
  "nyc": "^17.1.0",
102
- "puppeteer": "^24.4.0",
103
- "sinon": "^19.0.4",
102
+ "puppeteer": "^24.6.0",
103
+ "sinon": "^20.0.0",
104
104
  "supertest": "^7.1.0",
105
105
  "types.d.ts": "~0.6.22",
106
- "typescript": "^5.8.2",
106
+ "typescript": "^5.8.3",
107
107
  "why-is-node-running": "^3.2.2"
108
108
  },
109
109
  "engines": {