@cloudize/sdk-core 24.1.8 → 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.
package/LICENSE CHANGED
@@ -1,6 +1,6 @@
1
1
  MIT License
2
2
 
3
- Copyright (c) 2024 Cloudize Limited.
3
+ Copyright (c) 2025 Cloudize Limited.
4
4
 
5
5
  Permission is hereby granted, free of charge, to any person obtaining a copy
6
6
  of this software and associated documentation files (the "Software"), to deal
@@ -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": "Cloudize SDK Core",
15
15
  "license": "MIT",
16
- "version": "24.1.8",
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
- "@cloudize/json": "^24.1.7",
37
- "@cloudize/rest-client": "^24.1.7",
36
+ "@cloudize/json": "^24.1.9",
37
+ "@cloudize/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.9",
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",
@@ -48,11 +48,11 @@
48
48
  "eslint-config-airbnb": "^19.0.4",
49
49
  "eslint-plugin-import": "^2.31.0",
50
50
  "eslint-plugin-jsx-a11y": "^6.10.2",
51
- "eslint-plugin-react": "^7.37.2",
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.2"
54
+ "ts-jest": "^29.2.6",
55
+ "typescript": "^5.8.2"
56
56
  },
57
57
  "eslintConfig": {},
58
58
  "repository": {