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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "wgt-node-utils",
3
- "version": "0.0.22",
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": "^1.7.7"
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 || [];
package/webpack.config.js CHANGED
@@ -31,7 +31,7 @@ module.exports = {
31
31
  fs: 'commonjs fs', // 这样 Webpack 不会尝试解析 fs,运行时从 Node.js 中加载
32
32
  path: 'commonjs path',
33
33
  https: 'commonjs https',
34
- lark: 'commonjs lark'
34
+ // lark: 'commonjs lark'
35
35
  // 其他可能的 Node.js 内置模块
36
36
  },
37
37
  };