backend-plus 2.0.4 → 2.0.6

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.
@@ -575,7 +575,6 @@ var TIME_STAMP_PROP = Symbol('TIME_STAMP_PROP');
575
575
  myOwn.setTimeStamp = function setTimeStamp(row){
576
576
  var timeStamp = new Date().getTime();
577
577
  row[TIME_STAMP_PROP] = timeStamp;
578
- console.log('SET=', timeStamp, row[TIME_STAMP_PROP], JSON4all.toUrl(row))
579
578
  return timeStamp;
580
579
  }
581
580
 
@@ -166,7 +166,7 @@ export interface TableContext extends Context{
166
166
  superuser?:true
167
167
  forDump?:boolean
168
168
  }
169
- export type PgKnownTypes='decimal'|'text'|'boolean'|'integer'|'bigint'|'date'|'interval'|'timestamp'|'jsonb'|'double'|'bytea'|'jsona'|'time'|'tsrange'|'time_range';
169
+ export type PgKnownTypes='decimal'|'text'|'boolean'|'integer'|'bigint'|'date'|'interval'|'timestamp'|'jsonb'|'double'|'bytea'|'jsona'|'time'|'tsrange'|'time_range'|'daterange';
170
170
  export type PgKnownDbValues='current_timestamp'|'current_user'|'session_user';
171
171
  export type SequenceDefinition = {
172
172
  name:string
@@ -85,7 +85,7 @@ ProcedureTables = [
85
85
  /**
86
86
  *
87
87
  * @param {*} context
88
- * @param {{table:string, fixedFields:{fieldName:string, value:any, range:string}[], paramfun:string[], pick:string, retrieveIgnoringWhere:boolean}} parameters * @param {{table:string, fixedFields:{fieldName:string, value:any, range:string}[], paramfun:string[], pick:string}} parameters
88
+ * @param {{table:string, fixedFields:{fieldName:string, value:any, range?:string, until?:string}[], paramfun:string[], pick:string, retrieveIgnoringWhere:boolean}} parameters * @param {{table:string, fixedFields:{fieldName:string, value:any, range?:string, until?:string}[], paramfun:string[], pick:string}} parameters
89
89
  */
90
90
  async function tableDatum(context, parameters){
91
91
  var be=context.be;
@@ -136,6 +136,9 @@ ProcedureTables = [
136
136
  queryValues.push(pair.range);
137
137
  queryValues.push(pair.range);
138
138
  comparison = " between $" + (queryValues.length-3) + ' - $' +(queryValues.length-1) + ' and $' +(queryValues.length-2) + ' + $' +(queryValues.length-3);
139
+ } else if(pair.until){
140
+ queryValues.push(pair.until);
141
+ comparison = " between $" + (queryValues.length-1) + ' and $' + (queryValues.length);
139
142
  }
140
143
  }
141
144
  var exprClausule=' AND '+be.db.quoteIdent(alias)+'.'+be.db.quoteIdent(fieldName) + comparison
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.0.4",
4
+ "version": "2.0.6",
5
5
  "author": "Codenautas <codenautas@googlegroups.com>",
6
6
  "license": "MIT",
7
7
  "repository": "codenautas/backend-plus",
@@ -55,9 +55,9 @@
55
55
  "mini-tools": "^1.12.2",
56
56
  "moment": "^2.30.1",
57
57
  "multiparty": "^4.2.3",
58
- "nodemailer": "^6.9.15",
58
+ "nodemailer": "^6.9.16",
59
59
  "numeral": "^2.0.6",
60
- "pg-promise-strict": "^1.4.1",
60
+ "pg-promise-strict": "^1.4.2",
61
61
  "pikaday": "^1.8.2",
62
62
  "pug": "^3.0.3",
63
63
  "read-yaml-promise": "^1.0.2",
@@ -68,7 +68,7 @@
68
68
  "session-file-store": "^1.5.0",
69
69
  "sql-tools": "^0.1.2",
70
70
  "stack-trace": "^0.0.10",
71
- "stylus": "0.63.0",
71
+ "stylus": "0.64.0",
72
72
  "type-store": "^0.4.4",
73
73
  "typed-controls": "^0.12.2",
74
74
  "xlsx": "https://cdn.sheetjs.com/xlsx-0.20.2/xlsx-0.20.2.tgz"
@@ -82,7 +82,7 @@
82
82
  "@types/js-yaml": "^4.0.9",
83
83
  "@types/mocha": "^10.0.9",
84
84
  "@types/multiparty": "~4.2.1",
85
- "@types/node": "^22.7.5",
85
+ "@types/node": "^22.9.0",
86
86
  "@types/nodemailer": "^6.4.16",
87
87
  "@types/numeral": "~2.0.5",
88
88
  "@types/session-file-store": "^1.2.5",
@@ -97,14 +97,14 @@
97
97
  "karma-ie-launcher": "^1.0.0",
98
98
  "karma-mocha": "^2.0.1",
99
99
  "kill-9": "~0.4.3",
100
- "mocha": "^10.7.3",
100
+ "mocha": "^10.8.2",
101
101
  "nyc": "^17.1.0",
102
- "puppeteer": "^23.5.2",
102
+ "puppeteer": "^23.7.1",
103
103
  "sinon": "^19.0.2",
104
104
  "supertest": "^7.0.0",
105
105
  "types.d.ts": "~0.6.21",
106
106
  "typescript": "^5.6.3",
107
- "why-is-node-running": "^3.2.0"
107
+ "why-is-node-running": "^3.2.1"
108
108
  },
109
109
  "engines": {
110
110
  "node": ">= 18"