sks-maximo-utils 1.0.1 → 1.0.3

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
@@ -6,12 +6,12 @@ Maximo 表结构和数据更新工具集。
6
6
 
7
7
  ### 全局安装(CLI 使用)
8
8
  ```bash
9
- npm install -g sks-maximo-utils
9
+ npm install -g shoukaiseki-maximo-utils
10
10
  ```
11
11
 
12
12
  ### 项目中安装(引用使用)
13
13
  ```bash
14
- npm install sks-maximo-utils
14
+ npm install shoukaiseki-maximo-utils
15
15
  ```
16
16
 
17
17
  ## 使用方式
@@ -40,7 +40,7 @@ import {
40
40
  importMaxAutoKey,
41
41
  loadConfig,
42
42
  logger
43
- } from 'sks-maximo-utils';
43
+ } from 'shoukaiseki-maximo-utils';
44
44
 
45
45
  // 加载配置(可选,默认 local)
46
46
  loadConfig('local');
@@ -125,7 +125,7 @@ npm install
125
125
  npm link
126
126
 
127
127
  # 在其他项目中链接测试
128
- npm link sks-maximo-utils
128
+ npm link shoukaiseki-maximo-utils
129
129
  ```
130
130
 
131
131
  ## License
@@ -121,7 +121,21 @@ function createService() {
121
121
  }
122
122
  }, error => {
123
123
  logger.error('[Response Error] 请求错误:', error.message);
124
- logger.debug('[Response Error] 错误对象:', error);
124
+ try{
125
+ if(error){
126
+ logger.debug('[Response Error] 错误对象:', error);
127
+ if (error.data) {
128
+ logger.info('[Response Error] 错误error.data:', error.data);
129
+ }
130
+ if (error.response&&error.response.data) {
131
+ logger.info('[Response Error] 错误error.response.data:', error.response.data);
132
+ if(error.response.data['oslc:Error']&&error.response.data['oslc:Error']['oslc:extendedError']&&error.response.data['oslc:Error']['oslc:extendedError']['oslc:moreInfo']){
133
+ logger.info('[Response Error] 错误error.response.data:', error.response.data['oslc:Error']['oslc:extendedError']['oslc:moreInfo']);
134
+
135
+ }
136
+ }
137
+ }
138
+ }catch(e){}
125
139
 
126
140
  let { message } = error;
127
141
  if (message == "Network Error") {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "sks-maximo-utils",
3
- "version": "1.0.1",
3
+ "version": "1.0.3",
4
4
  "description": "Maximo helper tools for updating table structures and data",
5
5
  "type": "module",
6
6
  "main": "index.js",