backend-plus 2.2.3 → 2.2.5

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.
@@ -373,7 +373,7 @@ export interface OptsClientPage {
373
373
  baseUrlForRelativePaths?:boolean
374
374
  }
375
375
 
376
- export type DumpOptions={complete?:boolean, skipEnance?:boolean, disableDBFunctions?:boolean}
376
+ export type DumpOptions={complete?:boolean, skipEnance?:boolean, disableDBFunctions?:boolean, commonFunsToDisable?:string[]}
377
377
 
378
378
  export interface Caches {
379
379
  procedures:Record<string, {timestamp:number, result:any}>
@@ -3112,7 +3112,7 @@ AppBackend.prototype.dumpDbSchemaPartial = async function dumpDbSchemaPartial(pa
3112
3112
  var list = [];
3113
3113
  }
3114
3114
  for(var fileName of list){
3115
- if (fileName.endsWith('-fun.sql')) {
3115
+ if (fileName.endsWith('-fun.sql') && !opts?.commonFunsToDisable?.includes(fileName)) {
3116
3116
  common.push(await fs.readFile(Path.join(dirName,fileName), 'utf-8'));
3117
3117
  }
3118
3118
  }
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.3",
4
+ "version": "2.2.5",
5
5
  "author": "Codenautas <codenautas@googlegroups.com>",
6
6
  "license": "MIT",
7
7
  "repository": "codenautas/backend-plus",