@ejfdelgado/ejflab-common 1.14.0 → 1.14.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.
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@ejfdelgado/ejflab-common",
3
3
  "type": "commonjs",
4
- "version": "1.14.0",
4
+ "version": "1.14.3",
5
5
  "repository": {
6
6
  "type": "git",
7
7
  "url": "git+https://github.com/ejfdelgado/ejflab-common.git"
@@ -373,16 +373,16 @@ class FlowChartDiagram {
373
373
  for (let i = 0; i < nodos.length; i++) {
374
374
  const nodo = nodos[i];
375
375
  if (nodo['@_id']) {
376
- nodo['@_id'] = prefix + nodo['@_id'];
376
+ nodo['@_id'] = prefix + "_" + nodo['@_id'];
377
377
  }
378
378
  if (nodo['@_source']) {
379
- nodo['@_source'] = prefix + nodo['@_source'];
379
+ nodo['@_source'] = prefix + "_" + nodo['@_source'];
380
380
  }
381
381
  if (nodo['@_target']) {
382
- nodo['@_target'] = prefix + nodo['@_target'];
382
+ nodo['@_target'] = prefix + "_" + nodo['@_target'];
383
383
  }
384
384
  if (nodo['@_parent']) {
385
- nodo['@_parent'] = prefix + nodo['@_parent'];
385
+ nodo['@_parent'] = prefix + "_" + nodo['@_parent'];
386
386
  }
387
387
  }
388
388
  }
@@ -35,13 +35,15 @@ class CommandPostgres extends CommandBasic {
35
35
  for (let i = 0; i < bodyData.length; i++) {
36
36
  const payload = JSON.parse(JSON.stringify(dbIdData));
37
37
  payload.object = bodyData[i];
38
+ let { limit } = payload.object;
38
39
  payload.now = now;
39
40
  const result = { rows: [], rowCount: 0, command: null };
40
41
  let localResult = { rows: [], rowCount: 0, command: null };
41
42
  if (paging) {
42
- if (typeof payload.limit !== "number") {
43
- payload.limit = 20;
43
+ if (typeof limit !== "number") {
44
+ limit = 20;
44
45
  }
46
+ payload.limit = limit;
45
47
  payload.offset = 0;
46
48
  }
47
49
  do {