@vuu-ui/vuu-data-remote 3.5.3 → 3.5.4

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,5 +1,5 @@
1
1
  {
2
- "version": "3.5.3",
2
+ "version": "3.5.4",
3
3
  "main": "./src/index.js",
4
4
  "author": "heswell",
5
5
  "license": "Apache-2.0",
@@ -11,14 +11,14 @@
11
11
  "type-defs": "node ../../scripts/build-type-defs.mjs"
12
12
  },
13
13
  "devDependencies": {
14
- "@vuu-ui/vuu-data-types": "3.5.3",
15
- "@vuu-ui/vuu-table-types": "3.5.3",
16
- "@vuu-ui/vuu-filter-types": "3.5.3",
17
- "@vuu-ui/vuu-protocol-types": "3.5.3"
14
+ "@vuu-ui/vuu-data-types": "3.5.4",
15
+ "@vuu-ui/vuu-table-types": "3.5.4",
16
+ "@vuu-ui/vuu-filter-types": "3.5.4",
17
+ "@vuu-ui/vuu-protocol-types": "3.5.4"
18
18
  },
19
19
  "dependencies": {
20
- "@vuu-ui/vuu-filter-parser": "3.5.3",
21
- "@vuu-ui/vuu-utils": "3.5.3"
20
+ "@vuu-ui/vuu-filter-parser": "3.5.4",
21
+ "@vuu-ui/vuu-utils": "3.5.4"
22
22
  },
23
23
  "files": [
24
24
  "README.md",
@@ -476,6 +476,10 @@ class VuuDataSource extends BaseDataSource {
476
476
  });
477
477
  }
478
478
  async endEditSession(saveChanges = false, force = false) {
479
+ if ("unsubscribed" === this.#status || !this.server || !this.viewport) {
480
+ if (!saveChanges) return;
481
+ throw Error("Cannot save changes: server or viewport are undefined");
482
+ }
479
483
  const type = "RPC_REQUEST";
480
484
  const rpcName = "endEditSession";
481
485
  const rpcResponse = await this.rpcRequest(saveChanges ? {