@anncic-api/core 1.3.18 → 1.3.19

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/index.d.ts +6 -6
  2. package/package.json +2 -2
package/index.d.ts CHANGED
@@ -63,24 +63,24 @@ declare global { // 全局变量设置
63
63
 
64
64
  export class AnnError extends Error {
65
65
  readonly code: number;
66
- readonly result: { [key: string]: any; };
67
-
66
+ readonly response: { [key: string]: any; };
67
+
68
68
  static readonly OK = 0;
69
69
  static readonly UNKNOW = 5000000;
70
70
  static readonly PARAMS = 4060000;
71
- static readonly NOAUTH = 4030000;
72
71
  static readonly NOTFIND = 4040000;
73
72
  static readonly NOTLOGIN = 4010000;
74
-
75
- constructor(code: number, result?: {
73
+ static readonly NOAUTH = 4030000;
74
+ constructor(code: number, response?: {
76
75
  [key: string]: any;
77
76
  });
78
77
  }
79
78
 
80
79
  export abstract class AnnErrorRender extends AnnError {
81
- constructor(code: number, result?: {
80
+ constructor(code: number, response?: {
82
81
  [key: string]: any;
83
82
  });
84
83
  abstract render(ctx: any, app: any): Promise<void>;
85
84
  }
85
+
86
86
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@anncic-api/core",
3
- "version": "1.3.18",
3
+ "version": "1.3.19",
4
4
  "main": "./dist/index.js",
5
5
  "typings": "index.d.ts",
6
6
  "files": [
@@ -42,5 +42,5 @@
42
42
  "javascript-obfuscator": "2.19.0",
43
43
  "typescript": "^4.8.4"
44
44
  },
45
- "gitHead": "e2f07e1c82c27ea7a10a7d8eba7e93d84ca4be3e"
45
+ "gitHead": "6626f1fea1b3099e8725707af1269cac57691ce6"
46
46
  }