occam-verify-cli 0.0.289 → 0.0.290

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/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "occam-verify-cli",
3
3
  "author": "James Smith",
4
- "version": "0.0.289",
4
+ "version": "0.0.290",
5
5
  "license": "MIT, Anti-996",
6
6
  "homepage": "https://github.com/djalbat/occam-verify-cli",
7
7
  "description": "Occam's Verifier",
@@ -15,7 +15,7 @@
15
15
  "occam-custom-grammars": "^5.0.356",
16
16
  "occam-dom": "^3.0.171",
17
17
  "occam-grammar-utilities": "^7.0.66",
18
- "occam-open-cli": "^5.0.50",
18
+ "occam-open-cli": "^5.0.51",
19
19
  "occam-parsers": "^16.0.122"
20
20
  },
21
21
  "devDependencies": {
@@ -1,66 +0,0 @@
1
- "use strict";
2
-
3
- const { Release, filePathUtilities } = require("occam-open-cli"),
4
- { fileSystemUtilities } = require("necessary");
5
-
6
- const { isFilePathFlorenceFilePath } = filePathUtilities,
7
- { readFile, isEntryFile, readDirectory, isEntryDirectory, checkFileExists } = fileSystemUtilities;
8
-
9
- function releaseFromReleaseName(releaseName) {
10
-
11
- }
12
-
13
- function filePathsFromReleaseName(releaseName) {
14
- const directoryName = releaseName, ///
15
- filePaths = readFilePaths(directoryName, (filePath) => {
16
- const filePathFlorenceFilePath = isFilePathFlorenceFilePath(filePath);
17
-
18
- if (filePathFlorenceFilePath) {
19
- return true;
20
- }
21
- });
22
-
23
- return filePaths;
24
- }
25
-
26
- module.exports = {
27
- filePathsFromReleaseName,
28
- dependenciesFromReleaseName
29
- };
30
-
31
- function readFilePaths(directoryPath, test, filePaths = []) {
32
- const subEntryNames = readDirectory(directoryPath);
33
-
34
- subEntryNames.forEach((subEntryName) => {
35
- const subEntryNameHiddenName = isNameHiddenName(subEntryName);
36
-
37
- if (!subEntryNameHiddenName) {
38
- const subEntryPath = `${directoryPath}/${subEntryName}`,
39
- subEntryFile = isEntryFile(subEntryPath),
40
- subEntryDirectory = isEntryDirectory(subEntryPath);
41
-
42
- if (subEntryFile) {
43
- const filePath = subEntryPath, ///
44
- pass = test(filePath);
45
-
46
- if (pass) {
47
- filePaths.push(filePath);
48
- }
49
- }
50
-
51
- if (subEntryDirectory) {
52
- const subDirectoryPath = subEntryPath; ///
53
-
54
- readFilePaths(subDirectoryPath, test, filePaths);
55
- }
56
- }
57
- });
58
-
59
- return filePaths;
60
- }
61
-
62
- function isNameHiddenName(name) {
63
- const nameHiddenName = /^\..+/.test(name);
64
-
65
- return nameHiddenName;
66
- }