@ejfdelgado/ejflab-back 1.30.9 → 1.30.11

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,6 +1,6 @@
1
1
  {
2
2
  "name": "@ejfdelgado/ejflab-back",
3
- "version": "1.30.9",
3
+ "version": "1.30.11",
4
4
  "repository": {
5
5
  "type": "git",
6
6
  "url": "git+https://github.com/ejfdelgado/ejflab-back.git"
@@ -45,10 +45,8 @@ export class PostgresSrv {
45
45
  return val.replace(/'/g, "''");
46
46
  }
47
47
  static singleWord(val, ...args) {
48
- if ([null, undefined].indexOf(val) >= 0) {
49
- return "NULL";
50
- }
51
- return val.split(/\s+/g)[0];
48
+ const text = PostgresSrv.sanitizeTextNull(val);
49
+ return text.split(/\s+/g)[0];
52
50
  }
53
51
  static sanitizeText(val, ...args) {
54
52
  let text = val;
@@ -67,7 +65,7 @@ export class PostgresSrv {
67
65
  return "NULL";
68
66
  }
69
67
  let text = PostgresSrv.noQuotes(`${val}`, args);
70
- return "'" + text + "'";
68
+ return text;
71
69
  }
72
70
  static sanitizeNumber(val, ...args) {
73
71
  let myNumber = parseFloat(val);