@zwa73/utils 1.0.31 → 1.0.32

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/dist/UtilCom.js CHANGED
@@ -5,7 +5,6 @@ const UtilInterfaces_1 = require("./UtilInterfaces");
5
5
  const https = require("https");
6
6
  const http = require("http");
7
7
  const UtilLogger_1 = require("./UtilLogger");
8
- const util_1 = require("util");
9
8
  function sPost(type, json, options, timeLimit = -1) {
10
9
  //转换为毫秒
11
10
  const hasTimeLimit = (timeLimit >= 10);
@@ -34,7 +33,7 @@ function sPost(type, json, options, timeLimit = -1) {
34
33
  throw funcName + " 接收反馈错误: resdata 为空";
35
34
  try {
36
35
  let obj = JSON.parse(resdata);
37
- UtilLogger_1.SLogger.http(funcName + " 接受信息:", (0, util_1.inspect)((0, UtilInterfaces_1.stringifyJToken)(obj)));
36
+ UtilLogger_1.SLogger.http(funcName + " 接受信息:", (0, UtilInterfaces_1.stringifyJToken)(obj));
38
37
  resolve(obj);
39
38
  return;
40
39
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@zwa73/utils",
3
- "version": "1.0.31",
3
+ "version": "1.0.32",
4
4
  "description": "my utils",
5
5
  "main": "index.js",
6
6
  "scripts": {
package/src/UtilCom.ts CHANGED
@@ -2,7 +2,7 @@ import { JObject, stringifyJToken } from "./UtilInterfaces";
2
2
  import * as https from 'https';
3
3
  import * as http from 'http';
4
4
  import { SLogger } from "./UtilLogger";
5
- import {inspect} from 'util';
5
+
6
6
 
7
7
 
8
8
  function sPost(type:"http"|"https",json:JObject,options:Object,timeLimit:number=-1):Promise<JObject|null>{
@@ -38,7 +38,7 @@ function sPost(type:"http"|"https",json:JObject,options:Object,timeLimit:number=
38
38
  throw funcName+" 接收反馈错误: resdata 为空";
39
39
  try{
40
40
  let obj = JSON.parse(resdata);
41
- SLogger.http(funcName+" 接受信息:",inspect(stringifyJToken(obj)));
41
+ SLogger.http(funcName+" 接受信息:",stringifyJToken(obj));
42
42
  resolve(obj);
43
43
  return;
44
44
  }