wgt-node-utils 0.0.22 → 0.0.24
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/bundle.js +1 -1
- package/package.json +2 -2
- package/src/index.js +3 -2
- package/webpack.config.js +1 -1
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "wgt-node-utils",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.24",
|
|
4
4
|
"description": "WGT工具类包",
|
|
5
5
|
"main": "dist/bundle.js",
|
|
6
6
|
"scripts": {
|
|
@@ -14,7 +14,7 @@
|
|
|
14
14
|
"author": "rookie",
|
|
15
15
|
"license": "ISC",
|
|
16
16
|
"dependencies": {
|
|
17
|
-
"axios": "^
|
|
17
|
+
"axios": "^0.19.2"
|
|
18
18
|
},
|
|
19
19
|
"devDependencies": {
|
|
20
20
|
"@babel/core": "^7.25.8",
|
package/src/index.js
CHANGED
|
@@ -351,11 +351,11 @@ class wgtNodeUtils {
|
|
|
351
351
|
console.error(`${title} [${err.config.method}]: ${err.config.url}`);
|
|
352
352
|
console.error(`request: {params: ${JSON.stringify(err.config.params)}, data: ${JSON.stringify(err.config.data)}}`);
|
|
353
353
|
console.error(`response: ${JSON.stringify(err.response)}`);
|
|
354
|
-
this.sendFeiShu(`${title} [${err.config.method}]: ${err.config.url}`, ENV, components);
|
|
354
|
+
// this.sendFeiShu(`${title} [${err.config.method}]: ${err.config.url}`, ENV, components);
|
|
355
355
|
} else {
|
|
356
356
|
console.error(`============${new Date().toLocaleString()}===========`);
|
|
357
357
|
console.error(`${title} ${err}`);
|
|
358
|
-
this.sendFeiShu(`${title} ${err}`, ENV, components);
|
|
358
|
+
// this.sendFeiShu(`${title} ${err}`, ENV, components);
|
|
359
359
|
}
|
|
360
360
|
} catch (e) {
|
|
361
361
|
|
|
@@ -433,6 +433,7 @@ class wgtNodeUtils {
|
|
|
433
433
|
icon: 'cfgv1bursfevmln3akj0.webp'
|
|
434
434
|
}]
|
|
435
435
|
console.log(axios, 'axios')
|
|
436
|
+
console.log(url, 'url')
|
|
436
437
|
return new Promise((resolve) => {
|
|
437
438
|
axios.get(url).then(res => {
|
|
438
439
|
let list = res.data.data || [];
|