@vtj/local 0.9.2 → 0.9.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.
@@ -124,7 +124,7 @@ export const router = async (req, opts) => {
124
124
  }
125
125
  };
126
126
  await service.saveLogs(info);
127
- return fail("\u5F02\u5E38\u9519\u8BEF", e?.message);
127
+ return fail("\u5F02\u5E38\u9519\u8BEF", e?.message, e?.stack);
128
128
  }
129
129
  }
130
130
  };
package/dist/service.mjs CHANGED
@@ -28,6 +28,7 @@ export async function getExtension(_body, opts) {
28
28
  const adapters = {
29
29
  remote: "https://lcdp.vtj.pro",
30
30
  access: {
31
+ auth: "/auth.html",
31
32
  privateKey: "MIIBOgIBAAJBAKoIzmn1FYQ1YOhOBw9EhABxZ+PySAIaydI+zdhoKflrdgJ4A5E4/5gbQmRpk09hPWG8nvX7h+l/QLU8kXxAIBECAwEAAQJAAlgpxQY6sByLsXqzJcthC8LSGsLf2JEJkHwlnpwFqlEV8UCkoINpuZ2Wzl+aftURu5rIfAzRCQBvHmeOTW9/zQIhAO5ufWDmnSLyfAAsNo5JRNpVuLFCFodR8Xm+ulDlosR/AiEAtpAltyP9wmCABKG/v/hrtTr3mcvFNGCjoGa9bUAok28CIHbrVs9w1ijrBlvTsXYwJw46uP539uKRRT4ymZzlm9QjAiB+1KH/G9f9pEEL9rtaSOG7JF5D0JcOjlze4MGVFs+ZrQIhALKOUFBNr2zEsyJIjw2PlvEucdlG77UniszjXTROHSPd"
32
33
  }
33
34
  };
package/dist/shared.d.ts CHANGED
@@ -6,6 +6,7 @@ export interface ApiResponse {
6
6
  code: number;
7
7
  msg: string;
8
8
  data: any;
9
+ stack?: any;
9
10
  success: boolean;
10
11
  }
11
12
  export declare enum Result {
@@ -13,5 +14,5 @@ export declare enum Result {
13
14
  Fail = 1
14
15
  }
15
16
  export declare const success: (data: any) => ApiResponse;
16
- export declare const fail: (msg: string, data?: any) => ApiResponse;
17
+ export declare const fail: (msg: string, data?: any, stack?: any) => ApiResponse;
17
18
  export declare const CLIENT_DIR = "__vtj__";
package/dist/shared.mjs CHANGED
@@ -11,11 +11,12 @@ export const success = (data) => {
11
11
  success: true
12
12
  };
13
13
  };
14
- export const fail = (msg, data = null) => {
14
+ export const fail = (msg, data = null, stack = null) => {
15
15
  return {
16
16
  code: 1 /* Fail */,
17
17
  msg,
18
18
  data,
19
+ stack,
19
20
  success: false
20
21
  };
21
22
  };
package/package.json CHANGED
@@ -1,12 +1,12 @@
1
1
  {
2
2
  "name": "@vtj/local",
3
3
  "private": false,
4
- "version": "0.9.2",
4
+ "version": "0.9.3",
5
5
  "type": "module",
6
6
  "dependencies": {
7
7
  "formidable": "~3.5.1",
8
- "@vtj/coder": "~0.9.2",
9
- "@vtj/core": "~0.9.2",
8
+ "@vtj/coder": "~0.9.3",
9
+ "@vtj/core": "~0.9.3",
10
10
  "@vtj/node": "~0.9.1"
11
11
  },
12
12
  "devDependencies": {