@apigames/sdk-core 22.1.14 → 22.1.15
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.
|
@@ -8,13 +8,9 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
|
|
|
8
8
|
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
|
9
9
|
});
|
|
10
10
|
};
|
|
11
|
-
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
12
|
-
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
13
|
-
};
|
|
14
11
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
15
12
|
exports.ResourceObjectMode = void 0;
|
|
16
13
|
const json_1 = require("@apigames/json");
|
|
17
|
-
const date_and_time_1 = __importDefault(require("date-and-time"));
|
|
18
14
|
const __1 = require("..");
|
|
19
15
|
var ResourceObjectMode;
|
|
20
16
|
(function (ResourceObjectMode) {
|
|
@@ -72,11 +68,6 @@ class ResourceObject {
|
|
|
72
68
|
return data;
|
|
73
69
|
if ((0, json_1.isArray)(data))
|
|
74
70
|
return data;
|
|
75
|
-
if ((0, json_1.isDate)(data)) {
|
|
76
|
-
if (data.getTime() === 0)
|
|
77
|
-
return date_and_time_1.default.format(data, 'YYYY-MM-DD', false);
|
|
78
|
-
return data.toISOString();
|
|
79
|
-
}
|
|
80
71
|
if ((0, json_1.isObject)(data)) {
|
|
81
72
|
if ((Object.keys(data).length === 2)
|
|
82
73
|
&& ((0, json_1.hasProperty)(data, 'latitude') && (0, json_1.isNumber)(data.latitude))
|
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.
|
|
16
|
+
"version": "22.1.15",
|
|
17
17
|
"main": "lib/index.js",
|
|
18
18
|
"types": "lib/index.d.ts",
|
|
19
19
|
"scripts": {
|
|
@@ -35,7 +35,6 @@
|
|
|
35
35
|
"dependencies": {
|
|
36
36
|
"@apigames/json": "22.1.3",
|
|
37
37
|
"@apigames/rest-client": "22.1.4",
|
|
38
|
-
"date-and-time": "^2.3.0",
|
|
39
38
|
"object-hash": "2.2.0"
|
|
40
39
|
},
|
|
41
40
|
"devDependencies": {
|