@apigames/sdk-core 24.1.4 → 24.1.5
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/sdk.config.js +2 -2
- package/lib/helpers/index.js +2 -3
- package/lib/type-guards/index.js +4 -5
- package/package.json +11 -11
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.
|
|
3
|
+
exports.SDKConfiguration = void 0;
|
|
4
|
+
exports.SDKConfig = SDKConfig;
|
|
4
5
|
const json_1 = require("@apigames/json");
|
|
5
6
|
class SDKConfiguration {
|
|
6
7
|
constructor() {
|
|
@@ -49,4 +50,3 @@ function SDKConfig() {
|
|
|
49
50
|
configInstance = new SDKConfiguration();
|
|
50
51
|
return configInstance;
|
|
51
52
|
}
|
|
52
|
-
exports.SDKConfig = SDKConfig;
|
package/lib/helpers/index.js
CHANGED
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.
|
|
3
|
+
exports.LoadDateTime = LoadDateTime;
|
|
4
|
+
exports.LoadGeospatialPoint = LoadGeospatialPoint;
|
|
4
5
|
const json_1 = require("@apigames/json");
|
|
5
6
|
const interfaces_1 = require("../interfaces");
|
|
6
7
|
function LoadDateTime(value) {
|
|
@@ -8,7 +9,6 @@ function LoadDateTime(value) {
|
|
|
8
9
|
return new Date(value);
|
|
9
10
|
return undefined;
|
|
10
11
|
}
|
|
11
|
-
exports.LoadDateTime = LoadDateTime;
|
|
12
12
|
function LoadGeospatialPoint(geospatialPoint, value) {
|
|
13
13
|
if ((0, json_1.isUndefinedOrNull)(geospatialPoint)) {
|
|
14
14
|
if ((0, json_1.isDefined)(value) && (0, json_1.isObject)(value) && (Object.keys(value).length === 2)
|
|
@@ -27,4 +27,3 @@ function LoadGeospatialPoint(geospatialPoint, value) {
|
|
|
27
27
|
}
|
|
28
28
|
return undefined;
|
|
29
29
|
}
|
|
30
|
-
exports.LoadGeospatialPoint = LoadGeospatialPoint;
|
package/lib/type-guards/index.js
CHANGED
|
@@ -1,23 +1,23 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.
|
|
3
|
+
exports.isResourceContainer = isResourceContainer;
|
|
4
|
+
exports.isResourceObject = isResourceObject;
|
|
5
|
+
exports.isResourceObjectRelationship = isResourceObjectRelationship;
|
|
6
|
+
exports.isResourceObjectRelationships = isResourceObjectRelationships;
|
|
4
7
|
const json_1 = require("@apigames/json");
|
|
5
8
|
const classes_1 = require("../classes");
|
|
6
9
|
const interfaces_1 = require("../interfaces");
|
|
7
10
|
function isResourceContainer(value) {
|
|
8
11
|
return (0, json_1.isDefinedAndNotNull)(value) && (value instanceof classes_1.ResourceContainer);
|
|
9
12
|
}
|
|
10
|
-
exports.isResourceContainer = isResourceContainer;
|
|
11
13
|
function isResourceObject(value) {
|
|
12
14
|
return (0, json_1.isDefinedAndNotNull)(value)
|
|
13
15
|
&& (value instanceof classes_1.ResourceObject)
|
|
14
16
|
&& (typeof value.type === 'string');
|
|
15
17
|
}
|
|
16
|
-
exports.isResourceObject = isResourceObject;
|
|
17
18
|
function isResourceObjectRelationship(value) {
|
|
18
19
|
return (0, json_1.isDefinedAndNotNull)(value) && (value instanceof interfaces_1.ResourceObjectRelationship);
|
|
19
20
|
}
|
|
20
|
-
exports.isResourceObjectRelationship = isResourceObjectRelationship;
|
|
21
21
|
function isResourceObjectRelationships(value) {
|
|
22
22
|
if ((0, json_1.isArray)(value)) {
|
|
23
23
|
let allValid = true;
|
|
@@ -27,4 +27,3 @@ function isResourceObjectRelationships(value) {
|
|
|
27
27
|
}
|
|
28
28
|
return false;
|
|
29
29
|
}
|
|
30
|
-
exports.isResourceObjectRelationships = isResourceObjectRelationships;
|
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.
|
|
16
|
+
"version": "24.1.5",
|
|
17
17
|
"main": "lib/index.js",
|
|
18
18
|
"types": "lib/index.d.ts",
|
|
19
19
|
"scripts": {
|
|
@@ -33,26 +33,26 @@
|
|
|
33
33
|
"test:watch": "jest --watch"
|
|
34
34
|
},
|
|
35
35
|
"dependencies": {
|
|
36
|
-
"@apigames/json": "^24.1.
|
|
37
|
-
"@apigames/rest-client": "^24.1.
|
|
36
|
+
"@apigames/json": "^24.1.5",
|
|
37
|
+
"@apigames/rest-client": "^24.1.5",
|
|
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.12",
|
|
43
|
-
"@types/node": "^20.14.
|
|
44
|
-
"@typescript-eslint/eslint-plugin": "^7.
|
|
45
|
-
"@typescript-eslint/parser": "^7.
|
|
46
|
-
"date-and-time": "^3.
|
|
43
|
+
"@types/node": "^20.14.15",
|
|
44
|
+
"@typescript-eslint/eslint-plugin": "^7.18.0",
|
|
45
|
+
"@typescript-eslint/parser": "^7.18.0",
|
|
46
|
+
"date-and-time": "^3.4.1",
|
|
47
47
|
"eslint": "^8.57.0",
|
|
48
48
|
"eslint-config-airbnb": "^19.0.4",
|
|
49
49
|
"eslint-plugin-import": "^2.29.1",
|
|
50
|
-
"eslint-plugin-jsx-a11y": "^6.
|
|
51
|
-
"eslint-plugin-react": "^7.
|
|
50
|
+
"eslint-plugin-jsx-a11y": "^6.9.0",
|
|
51
|
+
"eslint-plugin-react": "^7.35.0",
|
|
52
52
|
"eslint-plugin-react-hooks": "^4.6.2",
|
|
53
53
|
"jest": "^29.7.0",
|
|
54
|
-
"ts-jest": "^29.
|
|
55
|
-
"typescript": "^5.4
|
|
54
|
+
"ts-jest": "^29.2.4",
|
|
55
|
+
"typescript": "^5.5.4"
|
|
56
56
|
},
|
|
57
57
|
"eslintConfig": {},
|
|
58
58
|
"repository": {
|