@ibiz-template/core 0.7.41-alpha.52 → 0.7.41-alpha.53
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/out/error/http-error/http-error.d.ts +2 -2
- package/out/error/http-error/http-error.d.ts.map +1 -1
- package/out/interface/api/utils/index.d.ts +1 -0
- package/out/interface/api/utils/index.d.ts.map +1 -1
- package/out/interface/api/utils/net/i-api-http-error.d.ts +39 -0
- package/out/interface/api/utils/net/i-api-http-error.d.ts.map +1 -0
- package/out/interface/api/utils/net/i-api-http-error.js +1 -0
- package/package.json +2 -2
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import { AxiosResponse } from 'axios';
|
|
2
|
-
import { InputError } from '../../interface';
|
|
2
|
+
import { IApiHttpError, InputError } from '../../interface';
|
|
3
3
|
/**
|
|
4
4
|
* @description 请求异常
|
|
5
5
|
* @export
|
|
6
6
|
* @class HttpError
|
|
7
7
|
* @extends {Error}
|
|
8
8
|
*/
|
|
9
|
-
export declare class HttpError extends Error {
|
|
9
|
+
export declare class HttpError extends Error implements IApiHttpError {
|
|
10
10
|
name: string;
|
|
11
11
|
message: string;
|
|
12
12
|
status: number;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"http-error.d.ts","sourceRoot":"","sources":["../../../src/error/http-error/http-error.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAE,MAAM,OAAO,CAAC;AACtC,OAAO,EAAE,UAAU,EAAE,MAAM,iBAAiB,CAAC;
|
|
1
|
+
{"version":3,"file":"http-error.d.ts","sourceRoot":"","sources":["../../../src/error/http-error/http-error.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAE,MAAM,OAAO,CAAC;AACtC,OAAO,EAAE,aAAa,EAAE,UAAU,EAAE,MAAM,iBAAiB,CAAC;AAE5D;;;;;GAKG;AACH,qBAAa,SAAU,SAAQ,KAAM,YAAW,aAAa;IAC3D,IAAI,EAAE,MAAM,CAAe;IAE3B,OAAO,EAAE,MAAM,CAAC;IAEhB,MAAM,EAAE,MAAM,CAAC;IAGf,GAAG,EAAE,MAAM,CAAC;IAEZ,QAAQ,CAAC,EAAE,aAAa,CAAC;gBAEb,GAAG,EAAE,UAAU;CA8B5B"}
|
|
@@ -2,4 +2,5 @@ export * from './message-center';
|
|
|
2
2
|
export type { IApiI18n } from './i-api-i18n';
|
|
3
3
|
export type { IApiNet } from './net/i-api-net';
|
|
4
4
|
export type { IHttpResponse } from './net/i-http-response';
|
|
5
|
+
export type { IApiHttpError } from './net/i-api-http-error';
|
|
5
6
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/interface/api/utils/index.ts"],"names":[],"mappings":"AAAA,cAAc,kBAAkB,CAAC;AACjC,YAAY,EAAE,QAAQ,EAAE,MAAM,cAAc,CAAC;AAC7C,YAAY,EAAE,OAAO,EAAE,MAAM,iBAAiB,CAAC;AAC/C,YAAY,EAAE,aAAa,EAAE,MAAM,uBAAuB,CAAC"}
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/interface/api/utils/index.ts"],"names":[],"mappings":"AAAA,cAAc,kBAAkB,CAAC;AACjC,YAAY,EAAE,QAAQ,EAAE,MAAM,cAAc,CAAC;AAC7C,YAAY,EAAE,OAAO,EAAE,MAAM,iBAAiB,CAAC;AAC/C,YAAY,EAAE,aAAa,EAAE,MAAM,uBAAuB,CAAC;AAC3D,YAAY,EAAE,aAAa,EAAE,MAAM,wBAAwB,CAAC"}
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
import { AxiosResponse } from 'axios';
|
|
2
|
+
/**
|
|
3
|
+
* @description Http错误接口
|
|
4
|
+
* @export
|
|
5
|
+
* @interface IApiHttpError
|
|
6
|
+
*/
|
|
7
|
+
export interface IApiHttpError {
|
|
8
|
+
/**
|
|
9
|
+
* @description 错误名称
|
|
10
|
+
* @type {string}
|
|
11
|
+
* @memberof IApiHttpError
|
|
12
|
+
*/
|
|
13
|
+
name: string;
|
|
14
|
+
/**
|
|
15
|
+
* @description 错误消息
|
|
16
|
+
* @type {string}
|
|
17
|
+
* @memberof IApiHttpError
|
|
18
|
+
*/
|
|
19
|
+
message: string;
|
|
20
|
+
/**
|
|
21
|
+
* @description 状态码
|
|
22
|
+
* @type {number}
|
|
23
|
+
* @memberof IApiHttpError
|
|
24
|
+
*/
|
|
25
|
+
status: number;
|
|
26
|
+
/**
|
|
27
|
+
* @description 错误标识
|
|
28
|
+
* @type {string}
|
|
29
|
+
* @memberof IApiHttpError
|
|
30
|
+
*/
|
|
31
|
+
tag: string;
|
|
32
|
+
/**
|
|
33
|
+
* @description axios响应对象
|
|
34
|
+
* @type {AxiosResponse}
|
|
35
|
+
* @memberof IApiHttpError
|
|
36
|
+
*/
|
|
37
|
+
response?: AxiosResponse;
|
|
38
|
+
}
|
|
39
|
+
//# sourceMappingURL=i-api-http-error.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"i-api-http-error.d.ts","sourceRoot":"","sources":["../../../../../src/interface/api/utils/net/i-api-http-error.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAE,MAAM,OAAO,CAAC;AAEtC;;;;GAIG;AACH,MAAM,WAAW,aAAa;IAC5B;;;;OAIG;IACH,IAAI,EAAE,MAAM,CAAC;IAEb;;;;OAIG;IACH,OAAO,EAAE,MAAM,CAAC;IAEhB;;;;OAIG;IACH,MAAM,EAAE,MAAM,CAAC;IAEf;;;;OAIG;IACH,GAAG,EAAE,MAAM,CAAC;IAEZ;;;;OAIG;IACH,QAAQ,CAAC,EAAE,aAAa,CAAC;CAC1B"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@ibiz-template/core",
|
|
3
|
-
"version": "0.7.41-alpha.
|
|
3
|
+
"version": "0.7.41-alpha.53",
|
|
4
4
|
"description": "运行时核心库",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "out/index.js",
|
|
@@ -50,5 +50,5 @@
|
|
|
50
50
|
"qx-util": "^0.4.8",
|
|
51
51
|
"ramda": "^0.29.0"
|
|
52
52
|
},
|
|
53
|
-
"gitHead": "
|
|
53
|
+
"gitHead": "d4e59a58c76b99678211b97a0f7435ba75264d82"
|
|
54
54
|
}
|