@sasjs/cli 3.19.5 → 3.19.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.
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* Returns Dot-code
|
|
3
|
-
* @param {string[]} folderList- dot-code will be generated against provided folderList
|
|
4
|
-
* @param {string} serverUrl- prefixes with links to Libs(Inputs/Outputs)
|
|
3
|
+
* @param {string[]} folderList - dot-code will be generated against provided folderList
|
|
4
|
+
* @param {string} serverUrl - prefixes with links to Libs(Inputs/Outputs)
|
|
5
5
|
*/
|
|
6
6
|
export declare function getDotFileContent(folderList: string[], serverUrl: string): Promise<string>;
|
|
@@ -49,8 +49,8 @@ var populateNodeDictionary_1 = require("./populateNodeDictionary");
|
|
|
49
49
|
var populateParamNodeTypes_1 = require("./populateParamNodeTypes");
|
|
50
50
|
/**
|
|
51
51
|
* Returns Dot-code
|
|
52
|
-
* @param {string[]} folderList- dot-code will be generated against provided folderList
|
|
53
|
-
* @param {string} serverUrl- prefixes with links to Libs(Inputs/Outputs)
|
|
52
|
+
* @param {string[]} folderList - dot-code will be generated against provided folderList
|
|
53
|
+
* @param {string} serverUrl - prefixes with links to Libs(Inputs/Outputs)
|
|
54
54
|
*/
|
|
55
55
|
function getDotFileContent(folderList, serverUrl) {
|
|
56
56
|
return __awaiter(this, void 0, void 0, function () {
|
|
@@ -69,7 +69,7 @@ function getDotFileContent(folderList, serverUrl) {
|
|
|
69
69
|
var _this = this;
|
|
70
70
|
return __generator(this, function (_a) {
|
|
71
71
|
switch (_a.label) {
|
|
72
|
-
case 0: return [4 /*yield*/, (0, utils_1.
|
|
72
|
+
case 0: return [4 /*yield*/, (0, utils_1.listFilesAndSubFoldersInFolder)(folder)];
|
|
73
73
|
case 1:
|
|
74
74
|
filesNamesInPath = (_a.sent()).filter(function (f) { return f.endsWith('.sas'); });
|
|
75
75
|
return [4 /*yield*/, (0, utils_1.asyncForEach)(filesNamesInPath, function (fileName) { return __awaiter(_this, void 0, void 0, function () {
|
|
@@ -84,7 +84,7 @@ function getDotFileContent(folderList, serverUrl) {
|
|
|
84
84
|
fileBrief = (0, file_1.getBrief)(fileContent);
|
|
85
85
|
if (fileBrief === undefined)
|
|
86
86
|
return [2 /*return*/];
|
|
87
|
-
fileName = fileName.toUpperCase();
|
|
87
|
+
fileName = fileName.split(path_1.default.sep).pop().toUpperCase();
|
|
88
88
|
fileInputs = (0, getFileInputs_1.getFileInputs)(fileName, fileContent, paramNodes);
|
|
89
89
|
fileOutputs = (0, getFileOutputs_1.getFileOutputs)(fileContent, paramNodes);
|
|
90
90
|
if (fileInputs.length === 0 && fileOutputs.length === 0)
|
package/package.json
CHANGED