cgserver 9.1.1 → 9.1.2
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/README.md
CHANGED
|
@@ -5,6 +5,7 @@ const request = require("request");
|
|
|
5
5
|
const qs = require("querystring");
|
|
6
6
|
const Log_1 = require("./Log");
|
|
7
7
|
const Core_1 = require("../Core/Core");
|
|
8
|
+
const lossless_json_1 = require("lossless-json");
|
|
8
9
|
exports.GHttpTool = null;
|
|
9
10
|
class HttpTool {
|
|
10
11
|
get(options_url) {
|
|
@@ -24,7 +25,7 @@ class HttpTool {
|
|
|
24
25
|
}
|
|
25
26
|
try {
|
|
26
27
|
if (Core_1.core.isString(body)) {
|
|
27
|
-
body =
|
|
28
|
+
body = (0, lossless_json_1.parse)(body);
|
|
28
29
|
}
|
|
29
30
|
}
|
|
30
31
|
catch (e) {
|
|
@@ -56,7 +57,7 @@ class HttpTool {
|
|
|
56
57
|
}
|
|
57
58
|
try {
|
|
58
59
|
if (Core_1.core.isString(body)) {
|
|
59
|
-
body =
|
|
60
|
+
body = (0, lossless_json_1.parse)(body);
|
|
60
61
|
}
|
|
61
62
|
}
|
|
62
63
|
catch (e) {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "cgserver",
|
|
3
|
-
"version": "9.1.
|
|
3
|
+
"version": "9.1.2",
|
|
4
4
|
"author": "trojan",
|
|
5
5
|
"type": "commonjs",
|
|
6
6
|
"description": "free for all.Websocket or Http",
|
|
@@ -62,6 +62,7 @@
|
|
|
62
62
|
"https": "^1.0.0",
|
|
63
63
|
"jsonc": "^2.0.0",
|
|
64
64
|
"log4js": "^6.9.1",
|
|
65
|
+
"lossless-json": "^4.0.1",
|
|
65
66
|
"mime": "^3.0.0",
|
|
66
67
|
"mongodb": "^6.7.0",
|
|
67
68
|
"mssql": "^11.0.0",
|