automation_model 1.0.53 → 1.0.54

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/bin/locator.js CHANGED
@@ -57,7 +57,7 @@ function processTableQuary(table, quary) {
57
57
  return { error: "Invalid quary" };
58
58
  }
59
59
  const rowSelector = match[1];
60
- const columnSelector = match[2];
60
+ let columnSelector = match[2];
61
61
  const property = match[3];
62
62
  let selectedRows = [];
63
63
  if (rowSelector === "*") {
@@ -77,7 +77,10 @@ function processTableQuary(table, quary) {
77
77
  if (isNaN(columnSelector)) {
78
78
  if (columnSelector.startsWith('"') && columnSelector.endsWith('"')) {
79
79
  columnSelector = columnSelector.substring(1, columnSelector.length - 1);
80
+ } else if (columnSelector.startsWith("'") && columnSelector.endsWith("'")) {
81
+ columnSelector = columnSelector.substring(1, columnSelector.length - 1);
80
82
  }
83
+
81
84
  if (columnheader.length === 0) {
82
85
  return { error: "No column header available" };
83
86
  }
@@ -310,8 +310,11 @@ class StableBrowser {
310
310
  if (cells.length === 0) {
311
311
  throw new Error("no cells found");
312
312
  }
313
+ value = Number(value);
313
314
  for (let i = 0; i < cells.length; i++) {
314
- if (cells[i] < value) {
315
+ let foundValue = Number(cells[i]);
316
+
317
+ if (foundValue < value) {
315
318
  throw new Error(`found table cell value ${cells[i]} < ${value}`);
316
319
  }
317
320
  }
@@ -319,8 +322,10 @@ class StableBrowser {
319
322
  if (cells.length === 0) {
320
323
  throw new Error("no cells found");
321
324
  }
325
+ value = Number(value);
322
326
  for (let i = 0; i < cells.length; i++) {
323
- if (cells[i] <= value) {
327
+ let foundValue = Number(cells[i]);
328
+ if (foundValue <= value) {
324
329
  throw new Error(`found table cell value ${cells[i]} <= ${value}`);
325
330
  }
326
331
  }
@@ -328,8 +333,10 @@ class StableBrowser {
328
333
  if (cells.length === 0) {
329
334
  throw new Error("no cells found");
330
335
  }
336
+ value = Number(value);
331
337
  for (let i = 0; i < cells.length; i++) {
332
- if (cells[i] > value) {
338
+ let foundValue = Number(cells[i]);
339
+ if (foundValue > value) {
333
340
  throw new Error(`found table cell value ${cells[i]} > ${value}`);
334
341
  }
335
342
  }
@@ -337,8 +344,10 @@ class StableBrowser {
337
344
  if (cells.length === 0) {
338
345
  throw new Error("no cells found");
339
346
  }
347
+ value = Number(value);
340
348
  for (let i = 0; i < cells.length; i++) {
341
- if (cells[i] >= value) {
349
+ let foundValue = Number(cells[i]);
350
+ if (foundValue >= value) {
342
351
  throw new Error(`found table cell value ${cells[i]} >= ${value}`);
343
352
  }
344
353
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "automation_model",
3
- "version": "1.0.53",
3
+ "version": "1.0.54",
4
4
  "description": "An automation infrastructure module to be use for generative AI automation projects.",
5
5
  "main": "bin/index.js",
6
6
  "type": "module",