wgt-node-utils 0.0.37 → 0.0.38

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.
Files changed (2) hide show
  1. package/package.json +1 -1
  2. package/src/index.js +2 -3
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "wgt-node-utils",
3
- "version": "0.0.37",
3
+ "version": "0.0.38",
4
4
  "description": "WGT工具类包",
5
5
  "main": "dist/bundle.js",
6
6
  "scripts": {
package/src/index.js CHANGED
@@ -365,13 +365,12 @@ class wgtNodeUtils {
365
365
  console.error(`${title} [${err.config.method}]: ${err.config.url}`);
366
366
  console.error(`request: {params: ${JSON.stringify(err.config.params)}, data: ${JSON.stringify(err.config.data)}}`);
367
367
  console.error(`response: ${JSON.stringify(err.response)}`);
368
-
369
- console.error(`=========================={\"text\":\"<b>前端容器node报错</b> \\n components: ${components}\\n env: ${ENV}, \\n message: ${title} [${err.config.method}]: ${err.config.url}\"}`)
370
-
371
368
  this.sendFeiShu(`${title} [${err.config.method}]: ${err.config.url}`, ENV, components);
372
369
  } else {
373
370
  console.error(`============${new Date().toLocaleString()}===========`);
374
371
  console.error(`${title} ${err}`);
372
+ console.error(`=========================={\"text\":\"<b>前端容器node报错</b> \\n components: ${components}\\n env: ${ENV}, \\n message: ${title} [${err.config.method}]: ${err.config.url}\"}`)
373
+
375
374
  this.sendFeiShu(`${title} ${err}`, ENV, components);
376
375
  }
377
376
  } catch (e) {