@lsby/net-core 0.5.0-beta.2 → 0.5.0-beta.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/dist/cjs/index.cjs +1 -1
- package/dist/cjs/server/server.cjs +1 -1
- package/dist/cjs/server/server.d.cts +1 -0
- package/dist/esm/{chunk-AXMWOH7L.js → chunk-7EGBQ7BT.js} +1 -1
- package/dist/esm/index.js +4 -4
- package/dist/esm/server/server.d.ts +1 -0
- package/dist/esm/server/server.js +1 -1
- package/package.json +1 -1
package/dist/cjs/index.cjs
CHANGED
|
@@ -535,7 +535,7 @@ var \u670D\u52A1\u5668 = class {
|
|
|
535
535
|
app.use(this.\u5904\u7406\u8BF7\u6C42.bind(this));
|
|
536
536
|
let server = app.listen(this.\u7AEF\u53E3);
|
|
537
537
|
await this.\u521D\u59CB\u5316WebSocket(server);
|
|
538
|
-
return { ip: this.\u83B7\u53D6\u672C\u5730\u5730\u5740(), server };
|
|
538
|
+
return { ip: this.\u83B7\u53D6\u672C\u5730\u5730\u5740(), api: this.\u63A5\u53E3\u4EEC.map((a) => a.\u83B7\u5F97\u8DEF\u5F84()), server };
|
|
539
539
|
}
|
|
540
540
|
async \u5904\u7406\u8BF7\u6C42(req, res) {
|
|
541
541
|
let \u8BF7\u6C42id = (0, import_short_uuid.default)().new();
|
|
@@ -118,7 +118,7 @@ var \u670D\u52A1\u5668 = class {
|
|
|
118
118
|
app.use(this.\u5904\u7406\u8BF7\u6C42.bind(this));
|
|
119
119
|
let server = app.listen(this.\u7AEF\u53E3);
|
|
120
120
|
await this.\u521D\u59CB\u5316WebSocket(server);
|
|
121
|
-
return { ip: this.\u83B7\u53D6\u672C\u5730\u5730\u5740(), server };
|
|
121
|
+
return { ip: this.\u83B7\u53D6\u672C\u5730\u5730\u5740(), api: this.\u63A5\u53E3\u4EEC.map((a) => a.\u83B7\u5F97\u8DEF\u5F84()), server };
|
|
122
122
|
}
|
|
123
123
|
async \u5904\u7406\u8BF7\u6C42(req, res) {
|
|
124
124
|
let \u8BF7\u6C42id = (0, import_short_uuid.default)().new();
|
|
@@ -16,6 +16,7 @@ declare class 服务器 {
|
|
|
16
16
|
constructor(接口们: ____[], 端口: number, 静态资源路径?: string | undefined, 默认get文件路径?: string | undefined);
|
|
17
17
|
run(): Promise<{
|
|
18
18
|
ip: string[];
|
|
19
|
+
api: string[];
|
|
19
20
|
server: http.Server<typeof http.IncomingMessage, typeof http.ServerResponse>;
|
|
20
21
|
}>;
|
|
21
22
|
private 处理请求;
|
|
@@ -24,7 +24,7 @@ var \u670D\u52A1\u5668 = class {
|
|
|
24
24
|
app.use(this.\u5904\u7406\u8BF7\u6C42.bind(this));
|
|
25
25
|
let server = app.listen(this.\u7AEF\u53E3);
|
|
26
26
|
await this.\u521D\u59CB\u5316WebSocket(server);
|
|
27
|
-
return { ip: this.\u83B7\u53D6\u672C\u5730\u5730\u5740(), server };
|
|
27
|
+
return { ip: this.\u83B7\u53D6\u672C\u5730\u5730\u5740(), api: this.\u63A5\u53E3\u4EEC.map((a) => a.\u83B7\u5F97\u8DEF\u5F84()), server };
|
|
28
28
|
}
|
|
29
29
|
async \u5904\u7406\u8BF7\u6C42(req, res) {
|
|
30
30
|
let \u8BF7\u6C42id = short().new();
|
package/dist/esm/index.js
CHANGED
|
@@ -13,17 +13,17 @@ import {
|
|
|
13
13
|
import {
|
|
14
14
|
WebSocket插件
|
|
15
15
|
} from "./chunk-NDNOPR5R.js";
|
|
16
|
+
import {
|
|
17
|
+
服务器
|
|
18
|
+
} from "./chunk-7EGBQ7BT.js";
|
|
16
19
|
import {
|
|
17
20
|
插件
|
|
18
21
|
} from "./chunk-43GZE5YL.js";
|
|
19
|
-
import "./chunk-DAKGERGA.js";
|
|
20
|
-
import {
|
|
21
|
-
服务器
|
|
22
|
-
} from "./chunk-AXMWOH7L.js";
|
|
23
22
|
import {
|
|
24
23
|
截断字符串,
|
|
25
24
|
递归截断字符串
|
|
26
25
|
} from "./chunk-IGHJCQ2S.js";
|
|
26
|
+
import "./chunk-DAKGERGA.js";
|
|
27
27
|
import {
|
|
28
28
|
业务行为
|
|
29
29
|
} from "./chunk-CE4M2QA4.js";
|
|
@@ -16,6 +16,7 @@ declare class 服务器 {
|
|
|
16
16
|
constructor(接口们: ____[], 端口: number, 静态资源路径?: string | undefined, 默认get文件路径?: string | undefined);
|
|
17
17
|
run(): Promise<{
|
|
18
18
|
ip: string[];
|
|
19
|
+
api: string[];
|
|
19
20
|
server: http.Server<typeof http.IncomingMessage, typeof http.ServerResponse>;
|
|
20
21
|
}>;
|
|
21
22
|
private 处理请求;
|