@lsby/net-core 0.0.5-beta.7 → 0.0.5
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/bin/gen-test/bin.cjs +3 -0
- package/dist/bin/gen-test/index.cjs +3 -0
- package/dist/bin/gen-type/bin.cjs +3 -0
- package/dist/bin/gen-type/index.cjs +3 -0
- package/dist/cjs/bin/gen-test/bin.cjs +3 -0
- package/dist/cjs/bin/gen-test/index.cjs +3 -0
- package/dist/cjs/bin/gen-type/bin.cjs +3 -0
- package/dist/cjs/bin/gen-type/index.cjs +3 -0
- package/dist/esm/bin/gen-test/bin.js +1 -1
- package/dist/esm/bin/gen-test/index.js +1 -1
- package/dist/esm/bin/gen-type/bin.js +1 -1
- package/dist/esm/bin/gen-type/index.js +1 -1
- package/dist/esm/{chunk-553ZM42W.js → chunk-D2G3YVNR.js} +4 -1
- package/dist/esm/{chunk-2UKWFFJ4.js → chunk-DB7BWSXE.js} +4 -1
- package/dist/esm/index.js +14 -14
- package/package.json +1 -1
|
@@ -203077,6 +203077,9 @@ function main(tsconfigPath, interfaceFolderPath, outFilePath, filter) {
|
|
|
203077
203077
|
"it('exit', async () => process.exit(0))",
|
|
203078
203078
|
""
|
|
203079
203079
|
].join("\n");
|
|
203080
|
+
if (!(0, import_node_fs.existsSync)(outFilePath)) {
|
|
203081
|
+
(0, import_node_fs.mkdirSync)(outFilePath, { recursive: true });
|
|
203082
|
+
}
|
|
203080
203083
|
(0, import_node_fs.writeFileSync)(outFilePath, finalTestFile);
|
|
203081
203084
|
}).run();
|
|
203082
203085
|
}
|
|
@@ -203082,6 +203082,9 @@ function main(tsconfigPath, interfaceFolderPath, outFilePath, filter) {
|
|
|
203082
203082
|
"it('exit', async () => process.exit(0))",
|
|
203083
203083
|
""
|
|
203084
203084
|
].join("\n");
|
|
203085
|
+
if (!(0, import_node_fs.existsSync)(outFilePath)) {
|
|
203086
|
+
(0, import_node_fs.mkdirSync)(outFilePath, { recursive: true });
|
|
203087
|
+
}
|
|
203085
203088
|
(0, import_node_fs.writeFileSync)(outFilePath, finalTestFile);
|
|
203086
203089
|
}).run();
|
|
203087
203090
|
}
|
|
@@ -203109,6 +203109,9 @@ function main(tsconfigPath, apiFolderPath, outputPath) {
|
|
|
203109
203109
|
}
|
|
203110
203110
|
await log.debug("\u6210\u529F\u5904\u7406\u6240\u6709\u63A5\u53E3...").run();
|
|
203111
203111
|
const outputPathAbs = import_node_path.default.resolve(outputPath);
|
|
203112
|
+
if (!(0, import_node_fs.existsSync)(outputPathAbs)) {
|
|
203113
|
+
(0, import_node_fs.mkdirSync)(outputPathAbs, { recursive: true });
|
|
203114
|
+
}
|
|
203112
203115
|
import_node_fs.default.writeFileSync(outputPathAbs, `export type InterfaceType = [${result.join(",")}]`);
|
|
203113
203116
|
await log.debug("\u751F\u6210\u6210\u529F\uFF1A%o", outputPathAbs).run();
|
|
203114
203117
|
}).run();
|
|
@@ -203114,6 +203114,9 @@ function main(tsconfigPath, apiFolderPath, outputPath) {
|
|
|
203114
203114
|
}
|
|
203115
203115
|
await log.debug("\u6210\u529F\u5904\u7406\u6240\u6709\u63A5\u53E3...").run();
|
|
203116
203116
|
const outputPathAbs = import_node_path.default.resolve(outputPath);
|
|
203117
|
+
if (!(0, import_node_fs.existsSync)(outputPathAbs)) {
|
|
203118
|
+
(0, import_node_fs.mkdirSync)(outputPathAbs, { recursive: true });
|
|
203119
|
+
}
|
|
203117
203120
|
import_node_fs.default.writeFileSync(outputPathAbs, `export type InterfaceType = [${result.join(",")}]`);
|
|
203118
203121
|
await log.debug("\u751F\u6210\u6210\u529F\uFF1A%o", outputPathAbs).run();
|
|
203119
203122
|
}).run();
|
|
@@ -203077,6 +203077,9 @@ function main(tsconfigPath, interfaceFolderPath, outFilePath, filter) {
|
|
|
203077
203077
|
"it('exit', async () => process.exit(0))",
|
|
203078
203078
|
""
|
|
203079
203079
|
].join("\n");
|
|
203080
|
+
if (!(0, import_node_fs.existsSync)(outFilePath)) {
|
|
203081
|
+
(0, import_node_fs.mkdirSync)(outFilePath, { recursive: true });
|
|
203082
|
+
}
|
|
203080
203083
|
(0, import_node_fs.writeFileSync)(outFilePath, finalTestFile);
|
|
203081
203084
|
}).run();
|
|
203082
203085
|
}
|
|
@@ -203082,6 +203082,9 @@ function main(tsconfigPath, interfaceFolderPath, outFilePath, filter) {
|
|
|
203082
203082
|
"it('exit', async () => process.exit(0))",
|
|
203083
203083
|
""
|
|
203084
203084
|
].join("\n");
|
|
203085
|
+
if (!(0, import_node_fs.existsSync)(outFilePath)) {
|
|
203086
|
+
(0, import_node_fs.mkdirSync)(outFilePath, { recursive: true });
|
|
203087
|
+
}
|
|
203085
203088
|
(0, import_node_fs.writeFileSync)(outFilePath, finalTestFile);
|
|
203086
203089
|
}).run();
|
|
203087
203090
|
}
|
|
@@ -203109,6 +203109,9 @@ function main(tsconfigPath, apiFolderPath, outputPath) {
|
|
|
203109
203109
|
}
|
|
203110
203110
|
await log.debug("\u6210\u529F\u5904\u7406\u6240\u6709\u63A5\u53E3...").run();
|
|
203111
203111
|
const outputPathAbs = import_node_path.default.resolve(outputPath);
|
|
203112
|
+
if (!(0, import_node_fs.existsSync)(outputPathAbs)) {
|
|
203113
|
+
(0, import_node_fs.mkdirSync)(outputPathAbs, { recursive: true });
|
|
203114
|
+
}
|
|
203112
203115
|
import_node_fs.default.writeFileSync(outputPathAbs, `export type InterfaceType = [${result.join(",")}]`);
|
|
203113
203116
|
await log.debug("\u751F\u6210\u6210\u529F\uFF1A%o", outputPathAbs).run();
|
|
203114
203117
|
}).run();
|
|
@@ -203114,6 +203114,9 @@ function main(tsconfigPath, apiFolderPath, outputPath) {
|
|
|
203114
203114
|
}
|
|
203115
203115
|
await log.debug("\u6210\u529F\u5904\u7406\u6240\u6709\u63A5\u53E3...").run();
|
|
203116
203116
|
const outputPathAbs = import_node_path.default.resolve(outputPath);
|
|
203117
|
+
if (!(0, import_node_fs.existsSync)(outputPathAbs)) {
|
|
203118
|
+
(0, import_node_fs.mkdirSync)(outputPathAbs, { recursive: true });
|
|
203119
|
+
}
|
|
203117
203120
|
import_node_fs.default.writeFileSync(outputPathAbs, `export type InterfaceType = [${result.join(",")}]`);
|
|
203118
203121
|
await log.debug("\u751F\u6210\u6210\u529F\uFF1A%o", outputPathAbs).run();
|
|
203119
203122
|
}).run();
|
|
@@ -10,7 +10,7 @@ import {
|
|
|
10
10
|
|
|
11
11
|
// src/bin/gen-test/index.ts
|
|
12
12
|
var import_typescript = __toESM(require_typescript(), 1);
|
|
13
|
-
import fs, { writeFileSync } from "node:fs";
|
|
13
|
+
import fs, { existsSync, mkdirSync, writeFileSync } from "node:fs";
|
|
14
14
|
import path from "node:path";
|
|
15
15
|
import { Task } from "@lsby/ts-fp-data";
|
|
16
16
|
function main(tsconfigPath, interfaceFolderPath, outFilePath, filter) {
|
|
@@ -81,6 +81,9 @@ function main(tsconfigPath, interfaceFolderPath, outFilePath, filter) {
|
|
|
81
81
|
"it('exit', async () => process.exit(0))",
|
|
82
82
|
""
|
|
83
83
|
].join("\n");
|
|
84
|
+
if (!existsSync(outFilePath)) {
|
|
85
|
+
mkdirSync(outFilePath, { recursive: true });
|
|
86
|
+
}
|
|
84
87
|
writeFileSync(outFilePath, finalTestFile);
|
|
85
88
|
}).run();
|
|
86
89
|
}
|
|
@@ -14,7 +14,7 @@ import {
|
|
|
14
14
|
// src/bin/gen-type/index.ts
|
|
15
15
|
var import_typescript = __toESM(require_typescript(), 1);
|
|
16
16
|
import { randomUUID } from "node:crypto";
|
|
17
|
-
import fs from "node:fs";
|
|
17
|
+
import fs, { existsSync, mkdirSync } from "node:fs";
|
|
18
18
|
import path from "node:path";
|
|
19
19
|
import { Task } from "@lsby/ts-fp-data";
|
|
20
20
|
function main(tsconfigPath, apiFolderPath, outputPath) {
|
|
@@ -88,6 +88,9 @@ function main(tsconfigPath, apiFolderPath, outputPath) {
|
|
|
88
88
|
}
|
|
89
89
|
await log.debug("\u6210\u529F\u5904\u7406\u6240\u6709\u63A5\u53E3...").run();
|
|
90
90
|
const outputPathAbs = path.resolve(outputPath);
|
|
91
|
+
if (!existsSync(outputPathAbs)) {
|
|
92
|
+
mkdirSync(outputPathAbs, { recursive: true });
|
|
93
|
+
}
|
|
91
94
|
fs.writeFileSync(outputPathAbs, `export type InterfaceType = [${result.join(",")}]`);
|
|
92
95
|
await log.debug("\u751F\u6210\u6210\u529F\uFF1A%o", outputPathAbs).run();
|
|
93
96
|
}).run();
|
package/dist/esm/index.js
CHANGED
|
@@ -1,9 +1,14 @@
|
|
|
1
|
-
import {
|
|
2
|
-
JSON解析插件
|
|
3
|
-
} from "./chunk-OA4N72XG.js";
|
|
4
1
|
import {
|
|
5
2
|
表单解析插件
|
|
6
3
|
} from "./chunk-FBQ7H3IE.js";
|
|
4
|
+
import {
|
|
5
|
+
正确JSON结果,
|
|
6
|
+
正确结果,
|
|
7
|
+
正确自定义结果,
|
|
8
|
+
结果,
|
|
9
|
+
错误JSON结果,
|
|
10
|
+
错误结果
|
|
11
|
+
} from "./chunk-6MRTDFSR.js";
|
|
7
12
|
import {
|
|
8
13
|
服务器
|
|
9
14
|
} from "./chunk-R4LHKMZP.js";
|
|
@@ -16,23 +21,18 @@ import {
|
|
|
16
21
|
import {
|
|
17
22
|
接口
|
|
18
23
|
} from "./chunk-KRIDSMPV.js";
|
|
19
|
-
import {
|
|
20
|
-
正确JSON结果,
|
|
21
|
-
正确结果,
|
|
22
|
-
正确自定义结果,
|
|
23
|
-
结果,
|
|
24
|
-
错误JSON结果,
|
|
25
|
-
错误结果
|
|
26
|
-
} from "./chunk-6MRTDFSR.js";
|
|
27
|
-
import "./chunk-UX3PS2US.js";
|
|
28
|
-
import "./chunk-7FRLG3EW.js";
|
|
29
|
-
import "./chunk-PLYBVQKK.js";
|
|
30
24
|
import {
|
|
31
25
|
中文路径支持插件
|
|
32
26
|
} from "./chunk-2GISBUKY.js";
|
|
33
27
|
import {
|
|
34
28
|
自定义数据插件
|
|
35
29
|
} from "./chunk-Z4OJO6ZH.js";
|
|
30
|
+
import {
|
|
31
|
+
JSON解析插件
|
|
32
|
+
} from "./chunk-OA4N72XG.js";
|
|
33
|
+
import "./chunk-UX3PS2US.js";
|
|
34
|
+
import "./chunk-7FRLG3EW.js";
|
|
35
|
+
import "./chunk-PLYBVQKK.js";
|
|
36
36
|
import {
|
|
37
37
|
插件
|
|
38
38
|
} from "./chunk-KSZE2DTR.js";
|