@apigames/sdk-core 25.1.2 → 25.1.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/lib/classes/resource.object.js +11 -0
- package/package.json +8 -10
|
@@ -256,6 +256,17 @@ class ResourceObject {
|
|
|
256
256
|
}
|
|
257
257
|
this.id = this.GetHeaderValue(response.headers, 'x-api-resource-id');
|
|
258
258
|
this._uri = this.GetHeaderValue(response.headers, 'location');
|
|
259
|
+
if ((0, json_1.isDefined)(response.data) && (0, json_1.isObject)(response.data)) {
|
|
260
|
+
if ((0, json_1.hasProperty)(response.data, 'data')) {
|
|
261
|
+
if ((0, json_1.isObject)(response.data.data)) {
|
|
262
|
+
const resourceData = response.data.data;
|
|
263
|
+
if ((0, json_1.hasProperty)(resourceData, 'type') && (0, json_1.isString)(resourceData.type) && resourceData.type === this.type
|
|
264
|
+
&& (0, json_1.hasProperty)(resourceData, 'id') && (0, json_1.isString)(resourceData.id) && resourceData.id === this.id) {
|
|
265
|
+
this.LoadData(resourceData);
|
|
266
|
+
}
|
|
267
|
+
}
|
|
268
|
+
}
|
|
269
|
+
}
|
|
259
270
|
this._mode = ResourceObjectMode.ExistingDocument;
|
|
260
271
|
});
|
|
261
272
|
}
|
package/package.json
CHANGED
|
@@ -13,7 +13,7 @@
|
|
|
13
13
|
],
|
|
14
14
|
"description": "API Games SDK Core",
|
|
15
15
|
"license": "MIT",
|
|
16
|
-
"version": "25.1.
|
|
16
|
+
"version": "25.1.4",
|
|
17
17
|
"main": "lib/index.js",
|
|
18
18
|
"types": "lib/index.d.ts",
|
|
19
19
|
"scripts": {
|
|
@@ -33,24 +33,22 @@
|
|
|
33
33
|
"test:watch": "jest --watch"
|
|
34
34
|
},
|
|
35
35
|
"dependencies": {
|
|
36
|
-
"@apigames/json": "^25.1.
|
|
37
|
-
"@apigames/rest-client": "^25.1.
|
|
36
|
+
"@apigames/json": "^25.1.2",
|
|
37
|
+
"@apigames/rest-client": "^25.1.3",
|
|
38
38
|
"object-hash": "^3.0.0"
|
|
39
39
|
},
|
|
40
40
|
"devDependencies": {
|
|
41
41
|
"@types/jest": "^30.0.0",
|
|
42
|
-
"@types/node": "^24.
|
|
43
|
-
"@typescript-eslint/eslint-plugin": "^8.
|
|
44
|
-
"@typescript-eslint/parser": "^8.
|
|
42
|
+
"@types/node": "^24.10.9",
|
|
43
|
+
"@typescript-eslint/eslint-plugin": "^8.54.0",
|
|
44
|
+
"@typescript-eslint/parser": "^8.54.0",
|
|
45
45
|
"date-and-time": "^3.6.0",
|
|
46
46
|
"eslint": "^8.57.1",
|
|
47
|
-
"eslint-config-airbnb": "^
|
|
47
|
+
"eslint-config-airbnb-base": "^15.0.0",
|
|
48
48
|
"eslint-plugin-import": "^2.32.0",
|
|
49
49
|
"eslint-plugin-jsx-a11y": "^6.10.2",
|
|
50
|
-
"eslint-plugin-react": "^7.37.5",
|
|
51
|
-
"eslint-plugin-react-hooks": "^4.6.2",
|
|
52
50
|
"jest": "^30.2.0",
|
|
53
|
-
"ts-jest": "^29.4.
|
|
51
|
+
"ts-jest": "^29.4.6",
|
|
54
52
|
"typescript": "^5.9.3"
|
|
55
53
|
},
|
|
56
54
|
"eslintConfig": {},
|