px-jspreadsheet-ce 0.0.18 → 0.0.19

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
@@ -5,7 +5,7 @@
5
5
  "main": "dist/index.js",
6
6
  "module": "src/index.js",
7
7
  "types": "dist/index.d.ts",
8
- "version": "0.0.18",
8
+ "version": "0.0.19",
9
9
  "exports": {
10
10
  ".": {
11
11
  "import": "./src/index.js",
@@ -349,7 +349,7 @@ export const closeEditor = function (cell, save) {
349
349
  }
350
350
 
351
351
  // Ignore changes if the value is the same
352
- if (obj.options.data[y][x] == value) {
352
+ if (obj.options.data[y][x] === value) {
353
353
  cell.innerHTML = obj.edition[1];
354
354
  } else {
355
355
  obj.setValue(cell, value); // update cell
package/src/utils/rows.js CHANGED
@@ -622,3 +622,9 @@ export const setRowData = function (rowNumber, data, force) {
622
622
  }
623
623
  }
624
624
  };
625
+
626
+ export const getRowLength = function () {
627
+ const obj = this;
628
+
629
+ return obj.options.data.length;
630
+ };