express-fix-any-js 1.17.3 → 1.18.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.
- package/README.md +12 -1
- package/bin/v17/addTableName/start.js +5 -14
- package/bin/v17/fileNames.json +6 -0
- package/bin/v18/fileNames.json +6 -0
- package/bin/v18/start.js +16 -0
- package/package.json +1 -1
- /package/bin/{v16 → v18/hookFolder}/addLines.js +0 -0
- /package/bin/{v16 → v18/hookFolder}/findInsertIndex.js +0 -0
- /package/bin/{v16 → v18/hookFolder}/forImportLine/index.js +0 -0
- /package/bin/{v16 → v18/hookFolder}/forImportLine/insertImportLine.js +0 -0
- /package/bin/{v16 → v18/hookFolder}/forInsertIndex.js +0 -0
- /package/bin/{v16 → v18/hookFolder}/forUseLine/index.js +0 -0
- /package/bin/{v16 → v18/hookFolder}/forUseLine/insertUseLine.js +0 -0
- /package/bin/{v16 → v18/hookFolder}/start.js +0 -0
package/README.md
CHANGED
|
@@ -113,6 +113,17 @@ For detailed developer notes, architectural mappings, and code analyses:
|
|
|
113
113
|
|
|
114
114
|
---
|
|
115
115
|
|
|
116
|
+
## 🌐 Documentation
|
|
117
|
+
|
|
118
|
+
Visit the official documentation portal for detailed guides, workflow diagrams, architecture explanations, and API references.
|
|
119
|
+
|
|
120
|
+
[](https://keshavsoft.github.io/express-fix-any-js/)
|
|
121
|
+
|
|
122
|
+
**Documentation Portal:**
|
|
123
|
+
https://keshavsoft.github.io/express-fix-any-js/
|
|
124
|
+
|
|
125
|
+
---
|
|
126
|
+
|
|
116
127
|
## ⚖️ License
|
|
117
128
|
|
|
118
|
-
MIT License. Designed with ❤️ by [KeshavSoft](https://github.com/keshavsoft).
|
|
129
|
+
MIT License. Designed with ❤️ by [KeshavSoft](https://github.com/keshavsoft).
|
|
@@ -2,8 +2,7 @@ import fs from "fs";
|
|
|
2
2
|
|
|
3
3
|
import path from "path";
|
|
4
4
|
|
|
5
|
-
import
|
|
6
|
-
import forUseLine from "./forUseLine/index.js";
|
|
5
|
+
import fileNamesJson from '../fileNames.json' with {type: 'json'};
|
|
7
6
|
|
|
8
7
|
const alterEndPointsJs = ({ filePath, inTableName }) => {
|
|
9
8
|
try {
|
|
@@ -24,19 +23,11 @@ const startFunc = ({ inTableName, inFileType, jsFilePath,
|
|
|
24
23
|
}) => {
|
|
25
24
|
let fromInternal;
|
|
26
25
|
|
|
27
|
-
|
|
28
|
-
|
|
26
|
+
fromInternal = alterEndPointsJs({
|
|
27
|
+
filePath: path.join(inTargetPath, fileNamesJson[inFileType]),
|
|
28
|
+
inTableName
|
|
29
|
+
});
|
|
29
30
|
|
|
30
|
-
fromInternal = alterEndPointsJs({
|
|
31
|
-
filePath: path.join(inTargetPath, "end-points.js"),
|
|
32
|
-
inTableName
|
|
33
|
-
});
|
|
34
|
-
|
|
35
|
-
break;
|
|
36
|
-
|
|
37
|
-
default:
|
|
38
|
-
break;
|
|
39
|
-
};
|
|
40
31
|
|
|
41
32
|
return fromInternal;
|
|
42
33
|
};
|
package/bin/v18/start.js
ADDED
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import hookFolder from "./hookFolder/start.js";
|
|
2
|
+
|
|
3
|
+
const startFunc = ({ inFolderNameToInsert, inFileType, jsFilePath,
|
|
4
|
+
inTargetPath
|
|
5
|
+
}) => {
|
|
6
|
+
let fromInternal;
|
|
7
|
+
|
|
8
|
+
fromInternal = hookFolder({
|
|
9
|
+
inFolderNameToInsert, inFileType, jsFilePath,
|
|
10
|
+
inTargetPath
|
|
11
|
+
});
|
|
12
|
+
|
|
13
|
+
return fromInternal;
|
|
14
|
+
};
|
|
15
|
+
|
|
16
|
+
export default startFunc;
|
package/package.json
CHANGED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|