microboard-temp 0.5.71 → 0.5.73

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.
@@ -8650,7 +8650,7 @@ class SessionStorage {
8650
8650
  get(key) {
8651
8651
  const boardId = this.getBoardId() || "";
8652
8652
  const item = _sessionStorage.getItem(boardId + "_" + key);
8653
- if (!item) {
8653
+ if (!item || item === "undefined") {
8654
8654
  return;
8655
8655
  }
8656
8656
  return JSON.parse(item);
package/dist/cjs/index.js CHANGED
@@ -8650,7 +8650,7 @@ class SessionStorage {
8650
8650
  get(key) {
8651
8651
  const boardId = this.getBoardId() || "";
8652
8652
  const item = _sessionStorage.getItem(boardId + "_" + key);
8653
- if (!item) {
8653
+ if (!item || item === "undefined") {
8654
8654
  return;
8655
8655
  }
8656
8656
  return JSON.parse(item);
package/dist/cjs/node.js CHANGED
@@ -9687,7 +9687,7 @@ class SessionStorage {
9687
9687
  get(key) {
9688
9688
  const boardId = this.getBoardId() || "";
9689
9689
  const item = _sessionStorage.getItem(boardId + "_" + key);
9690
- if (!item) {
9690
+ if (!item || item === "undefined") {
9691
9691
  return;
9692
9692
  }
9693
9693
  return JSON.parse(item);
@@ -8486,7 +8486,7 @@ class SessionStorage {
8486
8486
  get(key) {
8487
8487
  const boardId = this.getBoardId() || "";
8488
8488
  const item = _sessionStorage.getItem(boardId + "_" + key);
8489
- if (!item) {
8489
+ if (!item || item === "undefined") {
8490
8490
  return;
8491
8491
  }
8492
8492
  return JSON.parse(item);
package/dist/esm/index.js CHANGED
@@ -8479,7 +8479,7 @@ class SessionStorage {
8479
8479
  get(key) {
8480
8480
  const boardId = this.getBoardId() || "";
8481
8481
  const item = _sessionStorage.getItem(boardId + "_" + key);
8482
- if (!item) {
8482
+ if (!item || item === "undefined") {
8483
8483
  return;
8484
8484
  }
8485
8485
  return JSON.parse(item);
package/dist/esm/node.js CHANGED
@@ -9263,7 +9263,7 @@ class SessionStorage {
9263
9263
  get(key) {
9264
9264
  const boardId = this.getBoardId() || "";
9265
9265
  const item = _sessionStorage.getItem(boardId + "_" + key);
9266
- if (!item) {
9266
+ if (!item || item === "undefined") {
9267
9267
  return;
9268
9268
  }
9269
9269
  return JSON.parse(item);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "microboard-temp",
3
- "version": "0.5.71",
3
+ "version": "0.5.73",
4
4
  "description": "A flexible interactive whiteboard library",
5
5
  "main": "dist/cjs/index.js",
6
6
  "module": "dist/esm/index.js",