kschema-fs-api-gen-get-actions 1.7.4 → 1.7.6
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/bin/v7/tasks/actions/lastRecord.js +2 -2
- package/index.js +21 -8
- package/package.json +1 -1
|
@@ -12,7 +12,7 @@ import { announce } from "./LastRecord/steps/announce.js";
|
|
|
12
12
|
import resolveFolderName from "./LastRecord/steps/resolveFolderName.js";
|
|
13
13
|
|
|
14
14
|
const startFunc = async ({ cmd = "", toPath, isAnnounce = true, checkBeforeCreate = true,
|
|
15
|
-
inTargetPath, inGenerateRest = false, inFolderName
|
|
15
|
+
inTargetPath, inGenerateRest = false, inFolderName, inPort
|
|
16
16
|
}) => {
|
|
17
17
|
|
|
18
18
|
const localToPath = toPath;
|
|
@@ -46,7 +46,7 @@ const startFunc = async ({ cmd = "", toPath, isAnnounce = true, checkBeforeCreat
|
|
|
46
46
|
|
|
47
47
|
if (inGenerateRest) {
|
|
48
48
|
generateRest({
|
|
49
|
-
inTargetPath,
|
|
49
|
+
inTargetPath, inPort,
|
|
50
50
|
toPath: path.join(localToPath, resolvedFolderName)
|
|
51
51
|
});
|
|
52
52
|
};
|
package/index.js
CHANGED
|
@@ -6,29 +6,40 @@ const load = async (cmd) => {
|
|
|
6
6
|
return module.default; // Returns a function
|
|
7
7
|
};
|
|
8
8
|
|
|
9
|
-
const find = async ({ toPath, showLog, inTargetPath, inGenerateRest
|
|
9
|
+
const find = async ({ toPath, showLog, inTargetPath, inGenerateRest,
|
|
10
|
+
inPort
|
|
11
|
+
}) => {
|
|
12
|
+
|
|
10
13
|
const commandToSend = "find";
|
|
11
14
|
|
|
12
15
|
const commandFunction = await load(commandToSend);
|
|
13
16
|
// console.log(" ...args :", args);
|
|
14
17
|
await commandFunction({
|
|
15
18
|
toPath, cmd: commandToSend, inTargetPath,
|
|
16
|
-
inFolderName: commandToSend, inGenerateRest
|
|
19
|
+
inFolderName: commandToSend, inGenerateRest,
|
|
20
|
+
inPort
|
|
17
21
|
});
|
|
18
22
|
};
|
|
19
23
|
|
|
20
|
-
const filterQuery = async ({ toPath, showLog, inTargetPath, inGenerateRest
|
|
24
|
+
const filterQuery = async ({ toPath, showLog, inTargetPath, inGenerateRest,
|
|
25
|
+
inPort
|
|
26
|
+
}) => {
|
|
27
|
+
|
|
21
28
|
const commandToSend = "filterQuery";
|
|
22
29
|
|
|
23
30
|
const commandFunction = await load(commandToSend);
|
|
24
31
|
// console.log(" ...args :", args);
|
|
25
32
|
await commandFunction({
|
|
26
33
|
toPath, cmd: commandToSend, inTargetPath,
|
|
27
|
-
inFolderName: commandToSend, inGenerateRest
|
|
34
|
+
inFolderName: commandToSend, inGenerateRest,
|
|
35
|
+
inPort
|
|
28
36
|
});
|
|
29
37
|
};
|
|
30
38
|
|
|
31
|
-
const showAll = async ({ toPath, showLog, inTargetPath, inGenerateRest
|
|
39
|
+
const showAll = async ({ toPath, showLog, inTargetPath, inGenerateRest,
|
|
40
|
+
inPort
|
|
41
|
+
}) => {
|
|
42
|
+
|
|
32
43
|
const commandToSend = "showAll";
|
|
33
44
|
|
|
34
45
|
const commandFunction = await load(commandToSend);
|
|
@@ -36,11 +47,13 @@ const showAll = async ({ toPath, showLog, inTargetPath, inGenerateRest }) => {
|
|
|
36
47
|
await commandFunction({
|
|
37
48
|
toPath, cmd: commandToSend, inTargetPath,
|
|
38
49
|
inFolderName: commandToSend, inGenerateRest,
|
|
39
|
-
showLog
|
|
50
|
+
showLog, inPort
|
|
40
51
|
});
|
|
41
52
|
};
|
|
42
53
|
|
|
43
|
-
const lastRecord = async ({ toPath, showLog, inTargetPath,
|
|
54
|
+
const lastRecord = async ({ toPath, showLog, inTargetPath,
|
|
55
|
+
inGenerateRest, inPort }) => {
|
|
56
|
+
|
|
44
57
|
const commandToSend = "lastRecord";
|
|
45
58
|
|
|
46
59
|
const commandFunction = await load(commandToSend);
|
|
@@ -48,7 +61,7 @@ const lastRecord = async ({ toPath, showLog, inTargetPath, inGenerateRest }) =>
|
|
|
48
61
|
await commandFunction({
|
|
49
62
|
toPath, cmd: commandToSend, inTargetPath,
|
|
50
63
|
inFolderName: commandToSend, inGenerateRest,
|
|
51
|
-
showLog
|
|
64
|
+
showLog, inPort
|
|
52
65
|
});
|
|
53
66
|
};
|
|
54
67
|
|