express-fix-any-js 1.30.1 → 1.32.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/bin/{v30 → v31}/hookFolder/forImportLine/index.js +2 -1
- package/bin/{v30 → v31}/start.js +3 -3
- package/bin/{v29 → v32}/hookFolder/forImportLine/index.js +2 -1
- package/bin/{v29 → v32}/start.js +13 -8
- package/package.json +5 -2
- /package/bin/{v29 → v31}/alterFile/forImportLine/index.js +0 -0
- /package/bin/{v29 → v31}/alterFile/forInsertIndex.js +0 -0
- /package/bin/{v29 → v31}/alterFile/insertLine/addLines.js +0 -0
- /package/bin/{v29 → v31}/alterFile/insertLine/findInsertIndex.js +0 -0
- /package/bin/{v29 → v31}/alterFile/insertLine/index.js +0 -0
- /package/bin/{v29 → v31}/alterFile/insertLine/writeToFile.js +0 -0
- /package/bin/{v29 → v31}/alterFile/start.js +0 -0
- /package/bin/{v29 → v31}/checkFile.js +0 -0
- /package/bin/{v29 → v31}/hookFolder/forInsertIndex.js +0 -0
- /package/bin/{v29 → v31}/hookFolder/insertLine/addLines.js +0 -0
- /package/bin/{v29 → v31}/hookFolder/insertLine/findInsertIndex.js +0 -0
- /package/bin/{v29 → v31}/hookFolder/insertLine/index.js +0 -0
- /package/bin/{v29 → v31}/hookFolder/insertLine/writeToFile.js +0 -0
- /package/bin/{v29 → v31}/hookFolder/start.js +0 -0
- /package/bin/{v29 → v31}/returnPath.js +0 -0
- /package/bin/{v30 → v32}/alterFile/forImportLine/index.js +0 -0
- /package/bin/{v30 → v32}/alterFile/forInsertIndex.js +0 -0
- /package/bin/{v30 → v32}/alterFile/insertLine/addLines.js +0 -0
- /package/bin/{v30 → v32}/alterFile/insertLine/findInsertIndex.js +0 -0
- /package/bin/{v30 → v32}/alterFile/insertLine/index.js +0 -0
- /package/bin/{v30 → v32}/alterFile/insertLine/writeToFile.js +0 -0
- /package/bin/{v30 → v32}/alterFile/start.js +0 -0
- /package/bin/{v30 → v32}/checkFile.js +0 -0
- /package/bin/{v30 → v32}/hookFolder/forInsertIndex.js +0 -0
- /package/bin/{v30 → v32}/hookFolder/insertLine/addLines.js +0 -0
- /package/bin/{v30 → v32}/hookFolder/insertLine/findInsertIndex.js +0 -0
- /package/bin/{v30 → v32}/hookFolder/insertLine/index.js +0 -0
- /package/bin/{v30 → v32}/hookFolder/insertLine/writeToFile.js +0 -0
- /package/bin/{v30 → v32}/hookFolder/start.js +0 -0
- /package/bin/{v30 → v32}/returnPath.js +0 -0
|
@@ -8,7 +8,8 @@ const startFunc = ({ inParts, inFileType, inJsPath,
|
|
|
8
8
|
presentKey, regexKey, templateKey, inConsiderKey
|
|
9
9
|
}) => {
|
|
10
10
|
try {
|
|
11
|
-
const
|
|
11
|
+
const localJsPath = inJsPath;
|
|
12
|
+
const fileContent = fs.readFileSync(localJsPath, 'utf8');
|
|
12
13
|
|
|
13
14
|
const story = defaultFunc({ fileContent, fileType: inFileType });
|
|
14
15
|
|
package/bin/{v30 → v31}/start.js
RENAMED
|
@@ -26,14 +26,14 @@ const startFunc = ({ inValue, OutValue,
|
|
|
26
26
|
|
|
27
27
|
if (inValue && OutValue) {
|
|
28
28
|
fromInternal = hookFolder({
|
|
29
|
-
inValue, OutValue,
|
|
30
|
-
inFileType, inTargetPath
|
|
29
|
+
inValue, OutValue, inJsPath: localJsPath,
|
|
30
|
+
inFileType, inTargetPath, inFileNameStory: localFileNameStory
|
|
31
31
|
});
|
|
32
32
|
};
|
|
33
33
|
|
|
34
34
|
fromAlterFile = alterFile({
|
|
35
35
|
alterArray, inFileType, inValue,
|
|
36
|
-
inTargetPath
|
|
36
|
+
inTargetPath, inFileNameStory: localFileNameStory
|
|
37
37
|
});
|
|
38
38
|
|
|
39
39
|
return { fromInternal, fromAlterFile };
|
|
@@ -8,7 +8,8 @@ const startFunc = ({ inParts, inFileType, inJsPath,
|
|
|
8
8
|
presentKey, regexKey, templateKey, inConsiderKey
|
|
9
9
|
}) => {
|
|
10
10
|
try {
|
|
11
|
-
const
|
|
11
|
+
const localJsPath = inJsPath;
|
|
12
|
+
const fileContent = fs.readFileSync(localJsPath, 'utf8');
|
|
12
13
|
|
|
13
14
|
const story = defaultFunc({ fileContent, fileType: inFileType });
|
|
14
15
|
|
package/bin/{v29 → v32}/start.js
RENAMED
|
@@ -1,7 +1,10 @@
|
|
|
1
1
|
import hookFolder from "./hookFolder/start.js";
|
|
2
2
|
import alterFile from "./alterFile/start.js";
|
|
3
3
|
|
|
4
|
-
import {
|
|
4
|
+
import {
|
|
5
|
+
fileNamesJson as fromNpm,
|
|
6
|
+
outputStructureJson as getOutputStructureJson
|
|
7
|
+
} from "pattern-collector-base-files";
|
|
5
8
|
|
|
6
9
|
import returnPath from "./returnPath.js";
|
|
7
10
|
import checkFile from "./checkFile.js";
|
|
@@ -9,6 +12,8 @@ import checkFile from "./checkFile.js";
|
|
|
9
12
|
const startFunc = ({ inValue, OutValue,
|
|
10
13
|
inFileType, inTargetPath, alterArray }) => {
|
|
11
14
|
|
|
15
|
+
const outputStructureJson = { ...getOutputStructureJson() };
|
|
16
|
+
|
|
12
17
|
let fromInternal;
|
|
13
18
|
let fromAlterFile;
|
|
14
19
|
|
|
@@ -18,22 +23,22 @@ const startFunc = ({ inValue, OutValue,
|
|
|
18
23
|
const localJsPath = returnPath({ inFileNameStory: localFileNameStory, inTargetPath });
|
|
19
24
|
|
|
20
25
|
if (!checkFile(localJsPath)) {
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
26
|
+
outputStructureJson.KTF = false;
|
|
27
|
+
outputStructureJson.KReason = `file not found : ${localJsPath}`;
|
|
28
|
+
|
|
29
|
+
return outputStructureJson;
|
|
25
30
|
};
|
|
26
31
|
|
|
27
32
|
if (inValue && OutValue) {
|
|
28
33
|
fromInternal = hookFolder({
|
|
29
|
-
inValue, OutValue,
|
|
30
|
-
inFileType, inTargetPath
|
|
34
|
+
inValue, OutValue, inJsPath: localJsPath,
|
|
35
|
+
inFileType, inTargetPath, inFileNameStory: localFileNameStory
|
|
31
36
|
});
|
|
32
37
|
};
|
|
33
38
|
|
|
34
39
|
fromAlterFile = alterFile({
|
|
35
40
|
alterArray, inFileType, inValue,
|
|
36
|
-
inTargetPath
|
|
41
|
+
inTargetPath, inFileNameStory: localFileNameStory
|
|
37
42
|
});
|
|
38
43
|
|
|
39
44
|
return { fromInternal, fromAlterFile };
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "express-fix-any-js",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.32.2",
|
|
4
4
|
"description": "CLI to build for appjs, the endpoints",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"cli",
|
|
@@ -11,7 +11,10 @@
|
|
|
11
11
|
],
|
|
12
12
|
"dependencies": {
|
|
13
13
|
"pattern-collector-anyjs-story": "^1.24.9",
|
|
14
|
-
"pattern-collector-base-files": "^1.
|
|
14
|
+
"pattern-collector-base-files": "^1.6.1"
|
|
15
|
+
},
|
|
16
|
+
"devDependencies": {
|
|
17
|
+
"ks-delete-workflow-runs": "^1.0.0"
|
|
15
18
|
},
|
|
16
19
|
"type": "module",
|
|
17
20
|
"exports": {
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|