@sasjs/cli 3.19.4 → 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.listFilesInFolder)(folder)];
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
@@ -6,6 +6,7 @@
6
6
  "build/**/*"
7
7
  ],
8
8
  "scripts": {
9
+ "nodeVersionMessage": "echo \u001b[33m make sure you are running node lts version \u001b[0m",
9
10
  "checkNodeVersion": "node -e \"console.log('\u001b[36m', 'Checking your Node.js version...'); if (!process.versions || !process.versions.node) { console.log('\u001b[31m', 'Error determining Node.js version. Exiting...') } if (parseInt(process.versions.node) < 14) { console.log('\u001b[31m', '❌ You must be running at least Node.js 14 to install SASjs CLI.\\nYour current version is ' + process.versions.node + '.\\nPlease install a more recent version and try again.'); process.exit(1); } else { console.log('\u001b[32m', '✅ Node.js version check passed. Continuing...'); } console.log('\u001b[0m', '');\"",
10
11
  "start": "nodemon --watch \"src/**/*\" --exec \"npm run build && npm run set:permissions\"",
11
12
  "set:permissions": "node -e \"require('fs').chmodSync('build/index.js', '755')\"",
@@ -17,7 +18,7 @@
17
18
  "test:mocked": "jest --silent --runInBand --config=jest.config.js --coverage",
18
19
  "lint:fix": "npx prettier --write \"{src,test}/**/*.{ts,tsx,js,jsx,html,css,sass,less,yml,md,graphql}\"",
19
20
  "lint": "npx prettier --check \"{src,test}/**/*.{ts,tsx,js,jsx,html,css,sass,less,yml,md,graphql}\"",
20
- "preinstall": "npm run checkNodeVersion -s",
21
+ "preinstall": "npm run nodeVersionMessage",
21
22
  "prepare": "git rev-parse --git-dir && git config core.hooksPath ./.git-hooks || true"
22
23
  },
23
24
  "testServerTypes": "viya,sas9,sasjs",
@@ -48,10 +49,10 @@
48
49
  "access": "public"
49
50
  },
50
51
  "dependencies": {
51
- "@sasjs/adapter": "3.10.16",
52
- "@sasjs/core": "4.35.3",
52
+ "@sasjs/adapter": "3.10.18",
53
+ "@sasjs/core": "4.40.0",
53
54
  "@sasjs/lint": "1.12.0",
54
- "@sasjs/utils": "2.47.1",
55
+ "@sasjs/utils": "2.48.2",
55
56
  "adm-zip": "0.5.9",
56
57
  "chalk": "4.1.2",
57
58
  "csv-stringify": "5.6.5",
@@ -97,5 +98,5 @@
97
98
  "typescript": "4.5.4",
98
99
  "util": "0.12.4"
99
100
  },
100
- "version": "3.19.4"
101
+ "version": "3.19.6"
101
102
  }