@apigames/sdk-core 22.1.9 → 22.1.10

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.
@@ -80,6 +80,7 @@ class ResourceContainer {
80
80
  else {
81
81
  this._data = obj;
82
82
  }
83
+ this._countQueryHash = undefined;
83
84
  }
84
85
  RemoveResourceFromMemoryStructure(resource) {
85
86
  if (this.isResourceList(this.data)) {
@@ -91,6 +92,7 @@ class ResourceContainer {
91
92
  else if (this.isResourceObject(this.data) && this.data.id === resource.id) {
92
93
  this._data = undefined;
93
94
  }
95
+ this._countQueryHash = undefined;
94
96
  }
95
97
  LoadResourceData(resourceData) {
96
98
  if ((0, json_1.hasProperty)(resourceData, 'type') && (0, json_1.isString)(resourceData.type)) {
@@ -242,6 +242,12 @@ class ResourceObject {
242
242
  else {
243
243
  yield this.UpdateResource();
244
244
  }
245
+ if ((0, json_1.isDefined)(this.attributes)) {
246
+ this.shadowAttributes.LoadData(this.attributes);
247
+ }
248
+ if ((0, json_1.isDefined)(this.relationships)) {
249
+ this.shadowRelationships.LoadData(this.relationships);
250
+ }
245
251
  });
246
252
  }
247
253
  get type() {
package/package.json CHANGED
@@ -13,7 +13,7 @@
13
13
  ],
14
14
  "description": "API Games SDK Core",
15
15
  "license": "MIT",
16
- "version": "22.1.9",
16
+ "version": "22.1.10",
17
17
  "main": "lib/index.js",
18
18
  "types": "lib/index.d.ts",
19
19
  "scripts": {