@apigames/sdk-core 24.1.9 → 24.1.11

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.
@@ -79,10 +79,19 @@ class ResourceObject {
79
79
  const payload = {};
80
80
  for (const fieldName in data) {
81
81
  if ((0, json_1.hasProperty)(data, fieldName)) {
82
- if ((0, json_1.isDefined)(shadow))
83
- payload[fieldName] = this.SerializeAttributesPayload(shadow[fieldName], data[fieldName]);
84
- else
85
- payload[fieldName] = this.SerializeAttributesPayload(undefined, data[fieldName]);
82
+ if ((0, json_1.isObject)(data[fieldName])
83
+ && (0, json_1.hasProperty)(data[fieldName], 'BranchType')
84
+ && (0, json_1.isDefinedAndNotNull)(data[fieldName].BranchType)
85
+ && (0, json_1.isString)(data[fieldName].BranchType)) {
86
+ if ((0, json_1.isFalse)((0, json_1.areEqual)(shadow[fieldName], data[fieldName])))
87
+ payload[fieldName] = data[fieldName];
88
+ }
89
+ else {
90
+ if ((0, json_1.isDefined)(shadow))
91
+ payload[fieldName] = this.SerializeAttributesPayload(shadow[fieldName], data[fieldName]);
92
+ else
93
+ payload[fieldName] = this.SerializeAttributesPayload(undefined, data[fieldName]);
94
+ }
86
95
  }
87
96
  }
88
97
  if ((0, json_1.isDefined)(shadow) && (0, json_1.isObject)(shadow)) {
package/package.json CHANGED
@@ -13,7 +13,7 @@
13
13
  ],
14
14
  "description": "API Games SDK Core",
15
15
  "license": "MIT",
16
- "version": "24.1.9",
16
+ "version": "24.1.11",
17
17
  "main": "lib/index.js",
18
18
  "types": "lib/index.d.ts",
19
19
  "scripts": {
@@ -33,14 +33,14 @@
33
33
  "test:watch": "jest --watch"
34
34
  },
35
35
  "dependencies": {
36
- "@apigames/json": "^24.1.8",
37
- "@apigames/rest-client": "^24.1.8",
36
+ "@apigames/json": "^24.1.9",
37
+ "@apigames/rest-client": "^24.1.9",
38
38
  "object-hash": "^3.0.0"
39
39
  },
40
40
  "devDependencies": {
41
41
  "@types/date-and-time": "^0.13.0",
42
42
  "@types/jest": "^29.5.14",
43
- "@types/node": "^20.17.14",
43
+ "@types/node": "^20.17.24",
44
44
  "@typescript-eslint/eslint-plugin": "^7.18.0",
45
45
  "@typescript-eslint/parser": "^7.18.0",
46
46
  "date-and-time": "^3.6.0",
@@ -51,8 +51,8 @@
51
51
  "eslint-plugin-react": "^7.37.4",
52
52
  "eslint-plugin-react-hooks": "^4.6.2",
53
53
  "jest": "^29.7.0",
54
- "ts-jest": "^29.2.5",
55
- "typescript": "^5.7.3"
54
+ "ts-jest": "^29.2.6",
55
+ "typescript": "^5.8.2"
56
56
  },
57
57
  "eslintConfig": {},
58
58
  "repository": {