@lsby/net-core 0.4.0-beta.1 → 0.4.0-beta.2

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.
@@ -203,7 +203,7 @@ async function main(tsconfig\u8DEF\u5F84, \u76EE\u6807\u8DEF\u5F84, \u8F93\u51FA
203
203
  \u83B7\u5F97\u63A5\u53E3\u903B\u8F91\u7C7B\u578B,
204
204
  \u83B7\u5F97\u63A5\u53E3\u9519\u8BEF\u5F62\u5F0F,
205
205
  } from '@lsby/net-core'
206
- import \u5BFC\u5165 from './index'
206
+ import \u5BFC\u5165 from "./${a.fileName.split("/").at(-1)?.replaceAll(".ts", "")}",
207
207
 
208
208
  type jsonPath = \u83B7\u5F97\u63A5\u53E3\u8DEF\u5F84\u7C7B\u578B<typeof \u5BFC\u5165>
209
209
  type jsonMethod = \u83B7\u5F97\u63A5\u53E3\u65B9\u6CD5\u7C7B\u578B<typeof \u5BFC\u5165>
@@ -234,10 +234,12 @@ async function main(tsconfig\u8DEF\u5F84, \u76EE\u6807\u8DEF\u5F84, \u8F93\u51FA
234
234
 
235
235
  type WS\u63A5\u53E3\u8BA1\u7B97\u7ED3\u679C = wsPath extends infer _
236
236
  ? wsData extends infer _
237
- ? {
238
- path: wsPath
239
- data: wsData
240
- }
237
+ ? wsData extends Record<string, never>
238
+ ? never
239
+ : {
240
+ path: wsPath
241
+ data: wsData
242
+ }
241
243
  : never
242
244
  : never
243
245
  `;
@@ -208,7 +208,7 @@ async function main(tsconfig\u8DEF\u5F84, \u76EE\u6807\u8DEF\u5F84, \u8F93\u51FA
208
208
  \u83B7\u5F97\u63A5\u53E3\u903B\u8F91\u7C7B\u578B,
209
209
  \u83B7\u5F97\u63A5\u53E3\u9519\u8BEF\u5F62\u5F0F,
210
210
  } from '@lsby/net-core'
211
- import \u5BFC\u5165 from './index'
211
+ import \u5BFC\u5165 from "./${a.fileName.split("/").at(-1)?.replaceAll(".ts", "")}",
212
212
 
213
213
  type jsonPath = \u83B7\u5F97\u63A5\u53E3\u8DEF\u5F84\u7C7B\u578B<typeof \u5BFC\u5165>
214
214
  type jsonMethod = \u83B7\u5F97\u63A5\u53E3\u65B9\u6CD5\u7C7B\u578B<typeof \u5BFC\u5165>
@@ -239,10 +239,12 @@ async function main(tsconfig\u8DEF\u5F84, \u76EE\u6807\u8DEF\u5F84, \u8F93\u51FA
239
239
 
240
240
  type WS\u63A5\u53E3\u8BA1\u7B97\u7ED3\u679C = wsPath extends infer _
241
241
  ? wsData extends infer _
242
- ? {
243
- path: wsPath
244
- data: wsData
245
- }
242
+ ? wsData extends Record<string, never>
243
+ ? never
244
+ : {
245
+ path: wsPath
246
+ data: wsData
247
+ }
246
248
  : never
247
249
  : never
248
250
  `;
@@ -203,7 +203,7 @@ async function main(tsconfig\u8DEF\u5F84, \u76EE\u6807\u8DEF\u5F84, \u8F93\u51FA
203
203
  \u83B7\u5F97\u63A5\u53E3\u903B\u8F91\u7C7B\u578B,
204
204
  \u83B7\u5F97\u63A5\u53E3\u9519\u8BEF\u5F62\u5F0F,
205
205
  } from '@lsby/net-core'
206
- import \u5BFC\u5165 from './index'
206
+ import \u5BFC\u5165 from "./${a.fileName.split("/").at(-1)?.replaceAll(".ts", "")}",
207
207
 
208
208
  type jsonPath = \u83B7\u5F97\u63A5\u53E3\u8DEF\u5F84\u7C7B\u578B<typeof \u5BFC\u5165>
209
209
  type jsonMethod = \u83B7\u5F97\u63A5\u53E3\u65B9\u6CD5\u7C7B\u578B<typeof \u5BFC\u5165>
@@ -234,10 +234,12 @@ async function main(tsconfig\u8DEF\u5F84, \u76EE\u6807\u8DEF\u5F84, \u8F93\u51FA
234
234
 
235
235
  type WS\u63A5\u53E3\u8BA1\u7B97\u7ED3\u679C = wsPath extends infer _
236
236
  ? wsData extends infer _
237
- ? {
238
- path: wsPath
239
- data: wsData
240
- }
237
+ ? wsData extends Record<string, never>
238
+ ? never
239
+ : {
240
+ path: wsPath
241
+ data: wsData
242
+ }
241
243
  : never
242
244
  : never
243
245
  `;
@@ -208,7 +208,7 @@ async function main(tsconfig\u8DEF\u5F84, \u76EE\u6807\u8DEF\u5F84, \u8F93\u51FA
208
208
  \u83B7\u5F97\u63A5\u53E3\u903B\u8F91\u7C7B\u578B,
209
209
  \u83B7\u5F97\u63A5\u53E3\u9519\u8BEF\u5F62\u5F0F,
210
210
  } from '@lsby/net-core'
211
- import \u5BFC\u5165 from './index'
211
+ import \u5BFC\u5165 from "./${a.fileName.split("/").at(-1)?.replaceAll(".ts", "")}",
212
212
 
213
213
  type jsonPath = \u83B7\u5F97\u63A5\u53E3\u8DEF\u5F84\u7C7B\u578B<typeof \u5BFC\u5165>
214
214
  type jsonMethod = \u83B7\u5F97\u63A5\u53E3\u65B9\u6CD5\u7C7B\u578B<typeof \u5BFC\u5165>
@@ -239,10 +239,12 @@ async function main(tsconfig\u8DEF\u5F84, \u76EE\u6807\u8DEF\u5F84, \u8F93\u51FA
239
239
 
240
240
  type WS\u63A5\u53E3\u8BA1\u7B97\u7ED3\u679C = wsPath extends infer _
241
241
  ? wsData extends infer _
242
- ? {
243
- path: wsPath
244
- data: wsData
245
- }
242
+ ? wsData extends Record<string, never>
243
+ ? never
244
+ : {
245
+ path: wsPath
246
+ data: wsData
247
+ }
246
248
  : never
247
249
  : never
248
250
  `;
@@ -1,7 +1,7 @@
1
1
  #!/usr/bin/env node
2
2
  import {
3
3
  main
4
- } from "../../chunk-KW3T4UPB.js";
4
+ } from "../../chunk-BOCS6H24.js";
5
5
  import "../../chunk-KRQ6KUVY.js";
6
6
 
7
7
  // src/bin/gen-type/bin.ts
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  main
3
- } from "../../chunk-KW3T4UPB.js";
3
+ } from "../../chunk-BOCS6H24.js";
4
4
  import "../../chunk-KRQ6KUVY.js";
5
5
  export {
6
6
  main
@@ -55,7 +55,7 @@ async function main(tsconfig\u8DEF\u5F84, \u76EE\u6807\u8DEF\u5F84, \u8F93\u51FA
55
55
  \u83B7\u5F97\u63A5\u53E3\u903B\u8F91\u7C7B\u578B,
56
56
  \u83B7\u5F97\u63A5\u53E3\u9519\u8BEF\u5F62\u5F0F,
57
57
  } from '@lsby/net-core'
58
- import \u5BFC\u5165 from './index'
58
+ import \u5BFC\u5165 from "./${a.fileName.split("/").at(-1)?.replaceAll(".ts", "")}",
59
59
 
60
60
  type jsonPath = \u83B7\u5F97\u63A5\u53E3\u8DEF\u5F84\u7C7B\u578B<typeof \u5BFC\u5165>
61
61
  type jsonMethod = \u83B7\u5F97\u63A5\u53E3\u65B9\u6CD5\u7C7B\u578B<typeof \u5BFC\u5165>
@@ -86,10 +86,12 @@ async function main(tsconfig\u8DEF\u5F84, \u76EE\u6807\u8DEF\u5F84, \u8F93\u51FA
86
86
 
87
87
  type WS\u63A5\u53E3\u8BA1\u7B97\u7ED3\u679C = wsPath extends infer _
88
88
  ? wsData extends infer _
89
- ? {
90
- path: wsPath
91
- data: wsData
92
- }
89
+ ? wsData extends Record<string, never>
90
+ ? never
91
+ : {
92
+ path: wsPath
93
+ data: wsData
94
+ }
93
95
  : never
94
96
  : never
95
97
  `;
package/dist/esm/index.js CHANGED
@@ -13,17 +13,6 @@ import {
13
13
  import {
14
14
  WebSocket插件
15
15
  } from "./chunk-AVB7KPZC.js";
16
- import {
17
- 常用形式转换器,
18
- 接口结果转换器
19
- } from "./chunk-QPKNMZKV.js";
20
- import {
21
- 接口测试
22
- } from "./chunk-N7TPWCQ5.js";
23
- import "./chunk-DAKGERGA.js";
24
- import {
25
- 业务行为
26
- } from "./chunk-5WR5VNYH.js";
27
16
  import {
28
17
  插件
29
18
  } from "./chunk-43GZE5YL.js";
@@ -34,6 +23,10 @@ import {
34
23
  截断字符串,
35
24
  递归截断字符串
36
25
  } from "./chunk-PVE5VI5K.js";
26
+ import "./chunk-DAKGERGA.js";
27
+ import {
28
+ 业务行为
29
+ } from "./chunk-5WR5VNYH.js";
37
30
  import {
38
31
  接口
39
32
  } from "./chunk-JMR7QAHO.js";
@@ -42,6 +35,13 @@ import {
42
35
  } from "./chunk-EZ7OJFSQ.js";
43
36
  import "./chunk-BC6IISWS.js";
44
37
  import "./chunk-EAVNASDB.js";
38
+ import {
39
+ 常用形式转换器,
40
+ 接口结果转换器
41
+ } from "./chunk-QPKNMZKV.js";
42
+ import {
43
+ 接口测试
44
+ } from "./chunk-N7TPWCQ5.js";
45
45
  export {
46
46
  JSON\u89E3\u6790\u63D2\u4EF6,
47
47
  WebSocket\u63D2\u4EF6,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@lsby/net-core",
3
- "version": "0.4.0-beta.1",
3
+ "version": "0.4.0-beta.2",
4
4
  "type": "module",
5
5
  "exports": {
6
6
  "require": "./dist/cjs/index.cjs",