@twintag/twintag-core 0.2.277 → 0.2.278

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.
@@ -18408,8 +18408,13 @@ class LocalArrowDataService {
18408
18408
  arrowTable = objData;
18409
18409
  }
18410
18410
  else {
18411
- // convert the json response data to an arrow table
18412
- arrowTable = Arrow_dom.tableFromJSON(objData);
18411
+ if (Array.isArray(objData)) {
18412
+ // convert the json response data to an arrow table
18413
+ arrowTable = Arrow_dom.tableFromJSON(objData);
18414
+ }
18415
+ else {
18416
+ arrowTable = Arrow_dom.tableFromJSON([objData]);
18417
+ }
18413
18418
  }
18414
18419
  // convert the arrow table to ipc format as we cannot save an arrow table object to indexeddb directly
18415
18420
  const ipcData = Arrow_dom.tableToIPC(arrowTable);
@@ -116,8 +116,13 @@ export class LocalArrowDataService {
116
116
  arrowTable = objData;
117
117
  }
118
118
  else {
119
- // convert the json response data to an arrow table
120
- arrowTable = tableFromJSON(objData);
119
+ if (Array.isArray(objData)) {
120
+ // convert the json response data to an arrow table
121
+ arrowTable = tableFromJSON(objData);
122
+ }
123
+ else {
124
+ arrowTable = tableFromJSON([objData]);
125
+ }
121
126
  }
122
127
  // convert the arrow table to ipc format as we cannot save an arrow table object to indexeddb directly
123
128
  const ipcData = tableToIPC(arrowTable);
@@ -2,4 +2,4 @@
2
2
  /**
3
3
  * The library version.
4
4
  */
5
- export const VERSION = '0.2.277';
5
+ export const VERSION = '0.2.278';
@@ -18425,8 +18425,13 @@ class LocalArrowDataService {
18425
18425
  arrowTable = objData;
18426
18426
  }
18427
18427
  else {
18428
- // convert the json response data to an arrow table
18429
- arrowTable = Arrow_dom.tableFromJSON(objData);
18428
+ if (Array.isArray(objData)) {
18429
+ // convert the json response data to an arrow table
18430
+ arrowTable = Arrow_dom.tableFromJSON(objData);
18431
+ }
18432
+ else {
18433
+ arrowTable = Arrow_dom.tableFromJSON([objData]);
18434
+ }
18430
18435
  }
18431
18436
  // convert the arrow table to ipc format as we cannot save an arrow table object to indexeddb directly
18432
18437
  const ipcData = Arrow_dom.tableToIPC(arrowTable);
@@ -18404,8 +18404,13 @@ class LocalArrowDataService {
18404
18404
  arrowTable = objData;
18405
18405
  }
18406
18406
  else {
18407
- // convert the json response data to an arrow table
18408
- arrowTable = Arrow_dom.tableFromJSON(objData);
18407
+ if (Array.isArray(objData)) {
18408
+ // convert the json response data to an arrow table
18409
+ arrowTable = Arrow_dom.tableFromJSON(objData);
18410
+ }
18411
+ else {
18412
+ arrowTable = Arrow_dom.tableFromJSON([objData]);
18413
+ }
18409
18414
  }
18410
18415
  // convert the arrow table to ipc format as we cannot save an arrow table object to indexeddb directly
18411
18416
  const ipcData = Arrow_dom.tableToIPC(arrowTable);