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.
Files changed (35) hide show
  1. package/bin/{v30 → v31}/hookFolder/forImportLine/index.js +2 -1
  2. package/bin/{v30 → v31}/start.js +3 -3
  3. package/bin/{v29 → v32}/hookFolder/forImportLine/index.js +2 -1
  4. package/bin/{v29 → v32}/start.js +13 -8
  5. package/package.json +5 -2
  6. /package/bin/{v29 → v31}/alterFile/forImportLine/index.js +0 -0
  7. /package/bin/{v29 → v31}/alterFile/forInsertIndex.js +0 -0
  8. /package/bin/{v29 → v31}/alterFile/insertLine/addLines.js +0 -0
  9. /package/bin/{v29 → v31}/alterFile/insertLine/findInsertIndex.js +0 -0
  10. /package/bin/{v29 → v31}/alterFile/insertLine/index.js +0 -0
  11. /package/bin/{v29 → v31}/alterFile/insertLine/writeToFile.js +0 -0
  12. /package/bin/{v29 → v31}/alterFile/start.js +0 -0
  13. /package/bin/{v29 → v31}/checkFile.js +0 -0
  14. /package/bin/{v29 → v31}/hookFolder/forInsertIndex.js +0 -0
  15. /package/bin/{v29 → v31}/hookFolder/insertLine/addLines.js +0 -0
  16. /package/bin/{v29 → v31}/hookFolder/insertLine/findInsertIndex.js +0 -0
  17. /package/bin/{v29 → v31}/hookFolder/insertLine/index.js +0 -0
  18. /package/bin/{v29 → v31}/hookFolder/insertLine/writeToFile.js +0 -0
  19. /package/bin/{v29 → v31}/hookFolder/start.js +0 -0
  20. /package/bin/{v29 → v31}/returnPath.js +0 -0
  21. /package/bin/{v30 → v32}/alterFile/forImportLine/index.js +0 -0
  22. /package/bin/{v30 → v32}/alterFile/forInsertIndex.js +0 -0
  23. /package/bin/{v30 → v32}/alterFile/insertLine/addLines.js +0 -0
  24. /package/bin/{v30 → v32}/alterFile/insertLine/findInsertIndex.js +0 -0
  25. /package/bin/{v30 → v32}/alterFile/insertLine/index.js +0 -0
  26. /package/bin/{v30 → v32}/alterFile/insertLine/writeToFile.js +0 -0
  27. /package/bin/{v30 → v32}/alterFile/start.js +0 -0
  28. /package/bin/{v30 → v32}/checkFile.js +0 -0
  29. /package/bin/{v30 → v32}/hookFolder/forInsertIndex.js +0 -0
  30. /package/bin/{v30 → v32}/hookFolder/insertLine/addLines.js +0 -0
  31. /package/bin/{v30 → v32}/hookFolder/insertLine/findInsertIndex.js +0 -0
  32. /package/bin/{v30 → v32}/hookFolder/insertLine/index.js +0 -0
  33. /package/bin/{v30 → v32}/hookFolder/insertLine/writeToFile.js +0 -0
  34. /package/bin/{v30 → v32}/hookFolder/start.js +0 -0
  35. /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 fileContent = fs.readFileSync(inJsPath, 'utf8');
11
+ const localJsPath = inJsPath;
12
+ const fileContent = fs.readFileSync(localJsPath, 'utf8');
12
13
 
13
14
  const story = defaultFunc({ fileContent, fileType: inFileType });
14
15
 
@@ -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 fileContent = fs.readFileSync(inJsPath, 'utf8');
11
+ const localJsPath = inJsPath;
12
+ const fileContent = fs.readFileSync(localJsPath, 'utf8');
12
13
 
13
14
  const story = defaultFunc({ fileContent, fileType: inFileType });
14
15
 
@@ -1,7 +1,10 @@
1
1
  import hookFolder from "./hookFolder/start.js";
2
2
  import alterFile from "./alterFile/start.js";
3
3
 
4
- import { fileNamesJson as fromNpm } from "pattern-collector-base-files";
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
- return {
22
- KTF: false,
23
- KReason: `file not found : ${localJsPath}`
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.30.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.3.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