@sasjs/cli 4.20.1 → 4.20.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 (230) hide show
  1. package/build/cli.js +4 -5
  2. package/build/cli.spec.js +19 -9
  3. package/build/commands/add/addCommand.js +2 -2
  4. package/build/commands/add/addCredential.js +2 -2
  5. package/build/commands/add/addTarget.js +13 -14
  6. package/build/commands/add/internal/input.js +14 -14
  7. package/build/commands/add/internal/saveConfig.js +3 -4
  8. package/build/commands/add/spec/addCommand.spec.js +19 -9
  9. package/build/commands/add/spec/addCredential.spec.js +19 -9
  10. package/build/commands/add/spec/addTarget.spec.js +19 -9
  11. package/build/commands/auth/authCommand.js +8 -8
  12. package/build/commands/auth/login.js +40 -14
  13. package/build/commands/auth/spec/authCommand.spec.js +19 -9
  14. package/build/commands/auth/spec/login.spec.js +19 -9
  15. package/build/commands/build/build.js +25 -26
  16. package/build/commands/build/buildCommand.js +2 -2
  17. package/build/commands/build/compileBuildCommand.js +3 -3
  18. package/build/commands/build/internal/config.js +2 -2
  19. package/build/commands/build/spec/build.spec.js +2 -2
  20. package/build/commands/build/spec/buildCommand.spec.js +19 -9
  21. package/build/commands/build/spec/cb.spec.server.viya.js +2 -2
  22. package/build/commands/build/spec/compileBuildCommand.spec.js +19 -9
  23. package/build/commands/compile/compile.js +29 -20
  24. package/build/commands/compile/compileCommand.js +2 -2
  25. package/build/commands/compile/compileSingleFile.js +15 -15
  26. package/build/commands/compile/internal/checkCompileStatus.js +3 -4
  27. package/build/commands/compile/internal/compareFolders.js +2 -2
  28. package/build/commands/compile/internal/compileFile.js +6 -7
  29. package/build/commands/compile/internal/compileTestFile.js +17 -13
  30. package/build/commands/compile/internal/copySyncFolder.js +2 -2
  31. package/build/commands/compile/internal/getAllFolders.js +3 -3
  32. package/build/commands/compile/internal/identifySasFile.js +2 -2
  33. package/build/commands/compile/internal/loadDependencies.js +10 -10
  34. package/build/commands/compile/internal/spec/compileTestFile.spec.js +2 -2
  35. package/build/commands/compile/internal/spec/getAllFolders.spec.js +19 -9
  36. package/build/commands/compile/spec/compareFolders.spec.js +3 -3
  37. package/build/commands/compile/spec/compile.spec.js +19 -9
  38. package/build/commands/compile/spec/compileCommand.spec.js +19 -9
  39. package/build/commands/compile/spec/compileFile.spec.js +19 -9
  40. package/build/commands/compile/spec/compileSingleFile.spec.js +19 -9
  41. package/build/commands/compile/spec/copyFilesToBuildFolder.spec.js +20 -10
  42. package/build/commands/compile/spec/loadDependencies.spec.js +19 -9
  43. package/build/commands/context/contextCommand.js +3 -3
  44. package/build/commands/context/create.js +4 -5
  45. package/build/commands/context/delete.js +4 -5
  46. package/build/commands/context/edit.js +4 -5
  47. package/build/commands/context/export.js +4 -5
  48. package/build/commands/context/internal/parseConfig.js +1 -2
  49. package/build/commands/context/internal/validateConfigPath.js +3 -4
  50. package/build/commands/context/list.js +4 -5
  51. package/build/commands/context/spec/contextCommand.spec.js +19 -9
  52. package/build/commands/context/spec/create.spec.js +2 -2
  53. package/build/commands/context/spec/delete.spec.js +2 -2
  54. package/build/commands/context/spec/edit.spec.js +2 -2
  55. package/build/commands/context/spec/export.spec.js +19 -9
  56. package/build/commands/context/spec/list.spec.js +2 -2
  57. package/build/commands/create/create.js +4 -5
  58. package/build/commands/create/createCommand.js +2 -2
  59. package/build/commands/create/createTemplate.js +1 -1
  60. package/build/commands/create/internal/createReadme.js +3 -4
  61. package/build/commands/create/spec/create.spec.js +2 -2
  62. package/build/commands/create/spec/createCommand.spec.js +19 -9
  63. package/build/commands/db/db.js +8 -9
  64. package/build/commands/db/dbCommand.js +2 -2
  65. package/build/commands/db/spec/db.spec.js +2 -2
  66. package/build/commands/db/spec/dbCommand.spec.js +19 -9
  67. package/build/commands/deploy/compileBuildDeployCommand.js +8 -8
  68. package/build/commands/deploy/deploy.js +4 -5
  69. package/build/commands/deploy/deployCommand.js +2 -2
  70. package/build/commands/deploy/internal/deployToSASJSWithServicePack.js +11 -12
  71. package/build/commands/deploy/internal/executeDeployScript.js +3 -4
  72. package/build/commands/deploy/internal/executeDeployScriptSas9.js +10 -11
  73. package/build/commands/deploy/internal/executeDeployScriptSasViya.js +11 -12
  74. package/build/commands/deploy/internal/executeDeployScriptSasjs.js +12 -13
  75. package/build/commands/deploy/internal/executeNonSasScript.js +4 -5
  76. package/build/commands/deploy/internal/executeSasScript.js +5 -6
  77. package/build/commands/deploy/internal/getDeployScripts.js +4 -5
  78. package/build/commands/deploy/spec/cbd.spec.js +19 -9
  79. package/build/commands/deploy/spec/cbd.spec.server.viya.js +19 -9
  80. package/build/commands/deploy/spec/compileBuildDeployCommand.spec.js +19 -9
  81. package/build/commands/deploy/spec/deploy.spec.js +19 -9
  82. package/build/commands/deploy/spec/deployCommand.spec.js +19 -9
  83. package/build/commands/deploy/spec/getDeployScripts.spec.js +2 -2
  84. package/build/commands/deploy/spec/utils.js +41 -8
  85. package/build/commands/docs/docsCommand.js +2 -2
  86. package/build/commands/docs/generateDocs.js +11 -12
  87. package/build/commands/docs/generateDot.js +3 -4
  88. package/build/commands/docs/initDocs.js +3 -4
  89. package/build/commands/docs/internal/createDotFiles.js +4 -5
  90. package/build/commands/docs/internal/getDocConfig.d.ts +8 -8
  91. package/build/commands/docs/internal/getDocConfig.js +1 -2
  92. package/build/commands/docs/internal/getDotFileContent.js +3 -4
  93. package/build/commands/docs/internal/getFileInputs.js +1 -2
  94. package/build/commands/docs/internal/getFileOutputs.js +1 -2
  95. package/build/commands/docs/internal/getFoldersForDocs.js +1 -2
  96. package/build/commands/docs/internal/populateNodeDictionary.js +1 -2
  97. package/build/commands/docs/internal/populateParamNodeTypes.js +21 -22
  98. package/build/commands/docs/spec/docsCommand.spec.js +19 -9
  99. package/build/commands/docs/spec/generateDocs.spec.js +2 -2
  100. package/build/commands/docs/spec/generateDot.spec.js +2 -2
  101. package/build/commands/docs/spec/getDocConfig.spec.js +2 -2
  102. package/build/commands/docs/spec/initDocs.spec.js +2 -2
  103. package/build/commands/flow/execute.js +6 -7
  104. package/build/commands/flow/flowCommand.js +2 -2
  105. package/build/commands/flow/internal/executeFlow.js +2 -2
  106. package/build/commands/flow/internal/saveLog.js +34 -5
  107. package/build/commands/flow/internal/saveToCsv.js +2 -2
  108. package/build/commands/flow/internal/spec/executeFlow.spec.js +19 -9
  109. package/build/commands/flow/internal/spec/saveToCsv.spec.js +2 -2
  110. package/build/commands/flow/internal/spec/validateParams.spec.js +19 -9
  111. package/build/commands/flow/internal/validateParams.d.ts +4 -4
  112. package/build/commands/flow/internal/validateParams.js +2 -2
  113. package/build/commands/flow/spec/flow.spec.js +19 -9
  114. package/build/commands/flow/spec/flow.spec.server.viya.js +2 -2
  115. package/build/commands/flow/spec/flowCommand.spec.js +19 -9
  116. package/build/commands/folder/create.js +2 -2
  117. package/build/commands/folder/delete.js +2 -2
  118. package/build/commands/folder/folderCommand.js +13 -13
  119. package/build/commands/folder/list.js +2 -2
  120. package/build/commands/folder/move.js +2 -2
  121. package/build/commands/folder/spec/folder.spec.server.viya.js +2 -2
  122. package/build/commands/folder/spec/folderCommand.spec.js +19 -9
  123. package/build/commands/fs/fsCommand.js +34 -36
  124. package/build/commands/fs/internal/executeCode.js +2 -2
  125. package/build/commands/fs/spec/executeCode.spec.js +19 -9
  126. package/build/commands/fs/spec/fsCommand.spec.js +19 -9
  127. package/build/commands/help/help.js +3 -4
  128. package/build/commands/help/helpCommand.js +2 -2
  129. package/build/commands/help/spec/help.spec.js +2 -2
  130. package/build/commands/help/spec/helpCommand.spec.js +19 -9
  131. package/build/commands/index.js +1 -1
  132. package/build/commands/init/init.js +5 -5
  133. package/build/commands/init/initCommand.js +2 -2
  134. package/build/commands/init/spec/init.spec.js +2 -2
  135. package/build/commands/init/spec/initCommand.spec.js +19 -9
  136. package/build/commands/job/internal/execute/sas9.js +3 -4
  137. package/build/commands/job/internal/execute/sasjs.js +4 -5
  138. package/build/commands/job/internal/execute/viya.js +9 -10
  139. package/build/commands/job/internal/utils.js +2 -2
  140. package/build/commands/job/jobCommand.js +19 -19
  141. package/build/commands/job/spec/execute.spec.js +19 -9
  142. package/build/commands/job/spec/getContextName.spec.js +2 -2
  143. package/build/commands/job/spec/job.spec.server.viya.js +24 -16
  144. package/build/commands/job/spec/jobCommand.spec.js +19 -9
  145. package/build/commands/lint/initLint.js +3 -4
  146. package/build/commands/lint/lintCommand.js +2 -2
  147. package/build/commands/lint/processLint.js +13 -14
  148. package/build/commands/lint/spec/lintCommand.spec.js +19 -9
  149. package/build/commands/request/request.js +3 -4
  150. package/build/commands/request/requestCommand.js +2 -2
  151. package/build/commands/request/spec/request.spec.server.sas9.js +19 -9
  152. package/build/commands/request/spec/request.spec.server.viya.js +19 -9
  153. package/build/commands/request/spec/requestCommand.spec.js +19 -9
  154. package/build/commands/request/spec/utils.js +2 -2
  155. package/build/commands/run/run.js +29 -30
  156. package/build/commands/run/runCommand.js +2 -2
  157. package/build/commands/run/spec/run.spec.js +19 -9
  158. package/build/commands/run/spec/run.spec.server.sas9.js +2 -2
  159. package/build/commands/run/spec/run.spec.server.sasjs.js +2 -2
  160. package/build/commands/run/spec/run.spec.server.viya.js +4 -4
  161. package/build/commands/run/spec/runCommand.spec.js +19 -9
  162. package/build/commands/servicepack/deploy.js +7 -8
  163. package/build/commands/servicepack/servicePackCommand.js +7 -7
  164. package/build/commands/servicepack/spec/servicepack.spec.server.viya.js +2 -2
  165. package/build/commands/servicepack/spec/servicepackCommand.spec.js +19 -9
  166. package/build/commands/shared/createConfigFile.js +2 -2
  167. package/build/commands/shared/createFileStructure.js +2 -2
  168. package/build/commands/shared/createLintConfigFile.js +2 -2
  169. package/build/commands/shared/deployToSasViyaWithServicePack.js +6 -7
  170. package/build/commands/shared/fetchLogFileContent.js +2 -2
  171. package/build/commands/shared/spec/deployToSasViyaWithServicePack.spec.js +19 -9
  172. package/build/commands/snippets/snippets.js +3 -4
  173. package/build/commands/snippets/snippetsCommand.js +2 -2
  174. package/build/commands/snippets/spec/snippets.spec.js +2 -2
  175. package/build/commands/snippets/spec/snippetsCommand.spec.js +19 -9
  176. package/build/commands/testing/internal/saveOutput.js +23 -15
  177. package/build/commands/testing/spec/testCommand.spec.js +19 -9
  178. package/build/commands/testing/spec/testing.spec.js +19 -9
  179. package/build/commands/testing/test.js +14 -14
  180. package/build/commands/testing/testCommand.js +2 -2
  181. package/build/commands/version/spec/version.spec.js +2 -2
  182. package/build/commands/version/spec/versionCommand.spec.js +19 -9
  183. package/build/commands/version/version.js +4 -5
  184. package/build/commands/version/versionCommand.js +2 -2
  185. package/build/commands/web/internal/createAssetServices.js +39 -41
  186. package/build/commands/web/internal/sas9/createClickMeService.js +2 -2
  187. package/build/commands/web/internal/sas9/generateAssetService.js +2 -2
  188. package/build/commands/web/internal/sas9/getWebServiceContent.js +34 -5
  189. package/build/commands/web/internal/sasViya/createClickMeFile.js +2 -2
  190. package/build/commands/web/internal/spec/updateSasjstag.spec.js +2 -2
  191. package/build/commands/web/internal/spec/updateScriptTag.spec.js +2 -2
  192. package/build/commands/web/internal/spec/updateStyleTag.spec.js +2 -2
  193. package/build/commands/web/internal/updateAllTags.js +86 -88
  194. package/build/commands/web/internal/updateLinkTag.d.ts +1 -1
  195. package/build/commands/web/internal/updateScriptTag.js +2 -2
  196. package/build/commands/web/internal/updateStyleTag.js +2 -2
  197. package/build/commands/web/spec/web.spec.js +2 -2
  198. package/build/commands/web/spec/webCommand.spec.js +19 -9
  199. package/build/commands/web/web.js +10 -11
  200. package/build/commands/web/webCommand.js +2 -2
  201. package/build/types/command/commandAliases.d.ts +1 -1
  202. package/build/types/command/commandBase.js +2 -2
  203. package/build/types/command/commandFactory.d.ts +1 -1
  204. package/build/types/command/returnCode.js +1 -1
  205. package/build/types/command/spec/commandBase.spec.js +2 -2
  206. package/build/types/command/spec/targetCommand.spec.js +19 -9
  207. package/build/types/command/targetCommand.js +2 -2
  208. package/build/types/flow.js +1 -1
  209. package/build/types/targetScope.js +1 -1
  210. package/build/types/testing.js +3 -3
  211. package/build/utils/auth.js +8 -8
  212. package/build/utils/compressAndSave.js +2 -2
  213. package/build/utils/config.js +82 -84
  214. package/build/utils/displayResult.js +2 -3
  215. package/build/utils/file.js +13 -13
  216. package/build/utils/loadEnvVariables.js +4 -5
  217. package/build/utils/parseSourceFile.js +3 -4
  218. package/build/utils/saveLog.js +34 -5
  219. package/build/utils/setConstants.js +34 -5
  220. package/build/utils/setProjectDir.js +2 -2
  221. package/build/utils/spec/auth.spec.js +2 -2
  222. package/build/utils/spec/config.spec.js +19 -9
  223. package/build/utils/spec/file.spec.js +2 -2
  224. package/build/utils/spec/saveLog.spec.js +2 -2
  225. package/build/utils/spec/setConstants.spec.js +20 -10
  226. package/build/utils/spec/utils.spec.js +2 -2
  227. package/build/utils/test.d.ts +2 -3
  228. package/build/utils/test.js +103 -40
  229. package/build/utils/utils.js +22 -22
  230. package/package.json +32 -32
@@ -20,8 +20,8 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
20
20
  });
21
21
  };
22
22
  var __generator = (this && this.__generator) || function (thisArg, body) {
23
- var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g;
24
- return g = { next: verb(0), "throw": verb(1), "return": verb(2) }, typeof Symbol === "function" && (g[Symbol.iterator] = function() { return this; }), g;
23
+ var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g = Object.create((typeof Iterator === "function" ? Iterator : Object).prototype);
24
+ return g.next = verb(0), g["throw"] = verb(1), g["return"] = verb(2), typeof Symbol === "function" && (g[Symbol.iterator] = function() { return this; }), g;
25
25
  function verb(n) { return function (v) { return step([n, v]); }; }
26
26
  function step(op) {
27
27
  if (f) throw new TypeError("Generator is already executing.");
@@ -16,12 +16,12 @@ describe('getDocConfig', function () {
16
16
  var target = {
17
17
  docConfig: { doxyContent: { path: '//server1/unc/path' } }
18
18
  };
19
- expect(function () { return (0, getDocConfig_1.getDocConfig)(target); }).toThrowError(UNCErrorMessage);
19
+ expect(function () { return (0, getDocConfig_1.getDocConfig)(target); }).toThrow(UNCErrorMessage);
20
20
  });
21
21
  it('should throw for having UNC path picked up from config', function () {
22
22
  var config = {
23
23
  docConfig: { doxyContent: { path: '//server1/unc/path' } }
24
24
  };
25
- expect(function () { return (0, getDocConfig_1.getDocConfig)(undefined, config); }).toThrowError(UNCErrorMessage);
25
+ expect(function () { return (0, getDocConfig_1.getDocConfig)(undefined, config); }).toThrow(UNCErrorMessage);
26
26
  });
27
27
  });
@@ -9,8 +9,8 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
9
9
  });
10
10
  };
11
11
  var __generator = (this && this.__generator) || function (thisArg, body) {
12
- var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g;
13
- return g = { next: verb(0), "throw": verb(1), "return": verb(2) }, typeof Symbol === "function" && (g[Symbol.iterator] = function() { return this; }), g;
12
+ var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g = Object.create((typeof Iterator === "function" ? Iterator : Object).prototype);
13
+ return g.next = verb(0), g["throw"] = verb(1), g["return"] = verb(2), typeof Symbol === "function" && (g[Symbol.iterator] = function() { return this; }), g;
14
14
  function verb(n) { return function (v) { return step([n, v]); }; }
15
15
  function step(op) {
16
16
  if (f) throw new TypeError("Generator is already executing.");
@@ -9,8 +9,8 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
9
9
  });
10
10
  };
11
11
  var __generator = (this && this.__generator) || function (thisArg, body) {
12
- var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g;
13
- return g = { next: verb(0), "throw": verb(1), "return": verb(2) }, typeof Symbol === "function" && (g[Symbol.iterator] = function() { return this; }), g;
12
+ var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g = Object.create((typeof Iterator === "function" ? Iterator : Object).prototype);
13
+ return g.next = verb(0), g["throw"] = verb(1), g["return"] = verb(2), typeof Symbol === "function" && (g[Symbol.iterator] = function() { return this; }), g;
14
14
  function verb(n) { return function (v) { return step([n, v]); }; }
15
15
  function step(op) {
16
16
  if (f) throw new TypeError("Generator is already executing.");
@@ -50,14 +50,14 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
50
50
  return (mod && mod.__esModule) ? mod : { "default": mod };
51
51
  };
52
52
  Object.defineProperty(exports, "__esModule", { value: true });
53
- exports.execute = void 0;
53
+ exports.execute = execute;
54
54
  var displayResult_1 = require("../../utils/displayResult");
55
55
  var examples_1 = __importDefault(require("./internal/examples"));
56
56
  var internal_1 = require("./internal");
57
- function execute(target, sasjs, authConfig, source, logFolder, csvFile, streamLog) {
58
- if (streamLog === void 0) { streamLog = false; }
59
- return __awaiter(this, void 0, void 0, function () {
57
+ function execute(target_1, sasjs_1, authConfig_1, source_1, logFolder_1, csvFile_1) {
58
+ return __awaiter(this, arguments, void 0, function (target, sasjs, authConfig, source, logFolder, csvFile, streamLog) {
60
59
  var _this = this;
60
+ if (streamLog === void 0) { streamLog = false; }
61
61
  return __generator(this, function (_a) {
62
62
  return [2 /*return*/, new Promise(function (resolve, reject) { return __awaiter(_this, void 0, void 0, function () {
63
63
  var _a, terminate, message, flows, csvFileRealPath, logFolderRealPath, _b, predecessorDeadlock, deadlockChain, pollOptions, preExecuteFlow, _c, _d, _e, _i, flowName;
@@ -180,4 +180,3 @@ function execute(target, sasjs, authConfig, source, logFolder, csvFile, streamLo
180
180
  });
181
181
  });
182
182
  }
183
- exports.execute = execute;
@@ -24,8 +24,8 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
24
24
  });
25
25
  };
26
26
  var __generator = (this && this.__generator) || function (thisArg, body) {
27
- var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g;
28
- return g = { next: verb(0), "throw": verb(1), "return": verb(2) }, typeof Symbol === "function" && (g[Symbol.iterator] = function() { return this; }), g;
27
+ var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g = Object.create((typeof Iterator === "function" ? Iterator : Object).prototype);
28
+ return g.next = verb(0), g["throw"] = verb(1), g["return"] = verb(2), typeof Symbol === "function" && (g[Symbol.iterator] = function() { return this; }), g;
29
29
  function verb(n) { return function (v) { return step([n, v]); }; }
30
30
  function step(op) {
31
31
  if (f) throw new TypeError("Generator is already executing.");
@@ -9,8 +9,8 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
9
9
  });
10
10
  };
11
11
  var __generator = (this && this.__generator) || function (thisArg, body) {
12
- var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g;
13
- return g = { next: verb(0), "throw": verb(1), "return": verb(2) }, typeof Symbol === "function" && (g[Symbol.iterator] = function() { return this; }), g;
12
+ var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g = Object.create((typeof Iterator === "function" ? Iterator : Object).prototype);
13
+ return g.next = verb(0), g["throw"] = verb(1), g["return"] = verb(2), typeof Symbol === "function" && (g[Symbol.iterator] = function() { return this; }), g;
14
14
  function verb(n) { return function (v) { return step([n, v]); }; }
15
15
  function step(op) {
16
16
  if (f) throw new TypeError("Generator is already executing.");
@@ -9,8 +9,8 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
9
9
  });
10
10
  };
11
11
  var __generator = (this && this.__generator) || function (thisArg, body) {
12
- var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g;
13
- return g = { next: verb(0), "throw": verb(1), "return": verb(2) }, typeof Symbol === "function" && (g[Symbol.iterator] = function() { return this; }), g;
12
+ var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g = Object.create((typeof Iterator === "function" ? Iterator : Object).prototype);
13
+ return g.next = verb(0), g["throw"] = verb(1), g["return"] = verb(2), typeof Symbol === "function" && (g[Symbol.iterator] = function() { return this; }), g;
14
14
  function verb(n) { return function (v) { return step([n, v]); }; }
15
15
  function step(op) {
16
16
  if (f) throw new TypeError("Generator is already executing.");
@@ -35,6 +35,31 @@ var __generator = (this && this.__generator) || function (thisArg, body) {
35
35
  if (op[0] & 5) throw op[1]; return { value: op[0] ? op[1] : void 0, done: true };
36
36
  }
37
37
  };
38
+ var __read = (this && this.__read) || function (o, n) {
39
+ var m = typeof Symbol === "function" && o[Symbol.iterator];
40
+ if (!m) return o;
41
+ var i = m.call(o), r, ar = [], e;
42
+ try {
43
+ while ((n === void 0 || n-- > 0) && !(r = i.next()).done) ar.push(r.value);
44
+ }
45
+ catch (error) { e = { error: error }; }
46
+ finally {
47
+ try {
48
+ if (r && !r.done && (m = i["return"])) m.call(i);
49
+ }
50
+ finally { if (e) throw e.error; }
51
+ }
52
+ return ar;
53
+ };
54
+ var __spreadArray = (this && this.__spreadArray) || function (to, from, pack) {
55
+ if (pack || arguments.length === 2) for (var i = 0, l = from.length, ar; i < l; i++) {
56
+ if (ar || !(i in from)) {
57
+ if (!ar) ar = Array.prototype.slice.call(from, 0, i);
58
+ ar[i] = from[i];
59
+ }
60
+ }
61
+ return to.concat(ar || Array.prototype.slice.call(from));
62
+ };
38
63
  var __importDefault = (this && this.__importDefault) || function (mod) {
39
64
  return (mod && mod.__esModule) ? mod : { "default": mod };
40
65
  };
@@ -47,10 +72,14 @@ var utils_2 = require("../../../utils/utils");
47
72
  var fetchLogFileContent_1 = require("../../shared/fetchLogFileContent");
48
73
  var generateFileName_1 = require("./generateFileName");
49
74
  // REFACTOR: move to utility
50
- var saveLog = function (links, flowName, jobLocation, logFolder, sasjs, serverUrl, access_token, lineCount) {
51
- if (lineCount === void 0) { lineCount = 1000000; }
52
- return __awaiter(void 0, void 0, void 0, function () {
75
+ var saveLog = function (links_1, flowName_1, jobLocation_1, logFolder_1, sasjs_1, serverUrl_1, access_token_1) {
76
+ var args_1 = [];
77
+ for (var _i = 7; _i < arguments.length; _i++) {
78
+ args_1[_i - 7] = arguments[_i];
79
+ }
80
+ return __awaiter(void 0, __spreadArray([links_1, flowName_1, jobLocation_1, logFolder_1, sasjs_1, serverUrl_1, access_token_1], __read(args_1), false), void 0, function (links, flowName, jobLocation, logFolder, sasjs, serverUrl, access_token, lineCount) {
53
81
  var logObj, logUrl, logJson, logParsed, logName;
82
+ if (lineCount === void 0) { lineCount = 1000000; }
54
83
  return __generator(this, function (_a) {
55
84
  switch (_a.label) {
56
85
  case 0:
@@ -9,8 +9,8 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
9
9
  });
10
10
  };
11
11
  var __generator = (this && this.__generator) || function (thisArg, body) {
12
- var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g;
13
- return g = { next: verb(0), "throw": verb(1), "return": verb(2) }, typeof Symbol === "function" && (g[Symbol.iterator] = function() { return this; }), g;
12
+ var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g = Object.create((typeof Iterator === "function" ? Iterator : Object).prototype);
13
+ return g.next = verb(0), g["throw"] = verb(1), g["return"] = verb(2), typeof Symbol === "function" && (g[Symbol.iterator] = function() { return this; }), g;
14
14
  function verb(n) { return function (v) { return step([n, v]); }; }
15
15
  function step(op) {
16
16
  if (f) throw new TypeError("Generator is already executing.");
@@ -15,13 +15,23 @@ var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (
15
15
  }) : function(o, v) {
16
16
  o["default"] = v;
17
17
  });
18
- var __importStar = (this && this.__importStar) || function (mod) {
19
- if (mod && mod.__esModule) return mod;
20
- var result = {};
21
- if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
22
- __setModuleDefault(result, mod);
23
- return result;
24
- };
18
+ var __importStar = (this && this.__importStar) || (function () {
19
+ var ownKeys = function(o) {
20
+ ownKeys = Object.getOwnPropertyNames || function (o) {
21
+ var ar = [];
22
+ for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
23
+ return ar;
24
+ };
25
+ return ownKeys(o);
26
+ };
27
+ return function (mod) {
28
+ if (mod && mod.__esModule) return mod;
29
+ var result = {};
30
+ if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
31
+ __setModuleDefault(result, mod);
32
+ return result;
33
+ };
34
+ })();
25
35
  var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
26
36
  function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
27
37
  return new (P || (P = Promise))(function (resolve, reject) {
@@ -32,8 +42,8 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
32
42
  });
33
43
  };
34
44
  var __generator = (this && this.__generator) || function (thisArg, body) {
35
- var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g;
36
- return g = { next: verb(0), "throw": verb(1), "return": verb(2) }, typeof Symbol === "function" && (g[Symbol.iterator] = function() { return this; }), g;
45
+ var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g = Object.create((typeof Iterator === "function" ? Iterator : Object).prototype);
46
+ return g.next = verb(0), g["throw"] = verb(1), g["return"] = verb(2), typeof Symbol === "function" && (g[Symbol.iterator] = function() { return this; }), g;
37
47
  function verb(n) { return function (v) { return step([n, v]); }; }
38
48
  function step(op) {
39
49
  if (f) throw new TypeError("Generator is already executing.");
@@ -9,8 +9,8 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
9
9
  });
10
10
  };
11
11
  var __generator = (this && this.__generator) || function (thisArg, body) {
12
- var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g;
13
- return g = { next: verb(0), "throw": verb(1), "return": verb(2) }, typeof Symbol === "function" && (g[Symbol.iterator] = function() { return this; }), g;
12
+ var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g = Object.create((typeof Iterator === "function" ? Iterator : Object).prototype);
13
+ return g.next = verb(0), g["throw"] = verb(1), g["return"] = verb(2), typeof Symbol === "function" && (g[Symbol.iterator] = function() { return this; }), g;
14
14
  function verb(n) { return function (v) { return step([n, v]); }; }
15
15
  function step(op) {
16
16
  if (f) throw new TypeError("Generator is already executing.");
@@ -15,13 +15,23 @@ var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (
15
15
  }) : function(o, v) {
16
16
  o["default"] = v;
17
17
  });
18
- var __importStar = (this && this.__importStar) || function (mod) {
19
- if (mod && mod.__esModule) return mod;
20
- var result = {};
21
- if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
22
- __setModuleDefault(result, mod);
23
- return result;
24
- };
18
+ var __importStar = (this && this.__importStar) || (function () {
19
+ var ownKeys = function(o) {
20
+ ownKeys = Object.getOwnPropertyNames || function (o) {
21
+ var ar = [];
22
+ for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
23
+ return ar;
24
+ };
25
+ return ownKeys(o);
26
+ };
27
+ return function (mod) {
28
+ if (mod && mod.__esModule) return mod;
29
+ var result = {};
30
+ if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
31
+ __setModuleDefault(result, mod);
32
+ return result;
33
+ };
34
+ })();
25
35
  var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
26
36
  function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
27
37
  return new (P || (P = Promise))(function (resolve, reject) {
@@ -32,8 +42,8 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
32
42
  });
33
43
  };
34
44
  var __generator = (this && this.__generator) || function (thisArg, body) {
35
- var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g;
36
- return g = { next: verb(0), "throw": verb(1), "return": verb(2) }, typeof Symbol === "function" && (g[Symbol.iterator] = function() { return this; }), g;
45
+ var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g = Object.create((typeof Iterator === "function" ? Iterator : Object).prototype);
46
+ return g.next = verb(0), g["throw"] = verb(1), g["return"] = verb(2), typeof Symbol === "function" && (g[Symbol.iterator] = function() { return this; }), g;
37
47
  function verb(n) { return function (v) { return step([n, v]); }; }
38
48
  function step(op) {
39
49
  if (f) throw new TypeError("Generator is already executing.");
@@ -2,10 +2,10 @@ import { Target } from '@sasjs/utils';
2
2
  import { FlowWave } from '../../../types';
3
3
  export declare const validateParams: (target: Target, source: string, csvFile?: string, logFolder?: string) => Promise<{
4
4
  terminate: boolean;
5
- message?: string | undefined;
5
+ message?: string;
6
6
  flows?: {
7
7
  [key: string]: FlowWave;
8
- } | undefined;
9
- csvFile?: string | undefined;
10
- logFolder?: string | undefined;
8
+ };
9
+ csvFile?: string;
10
+ logFolder?: string;
11
11
  }>;
@@ -9,8 +9,8 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
9
9
  });
10
10
  };
11
11
  var __generator = (this && this.__generator) || function (thisArg, body) {
12
- var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g;
13
- return g = { next: verb(0), "throw": verb(1), "return": verb(2) }, typeof Symbol === "function" && (g[Symbol.iterator] = function() { return this; }), g;
12
+ var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g = Object.create((typeof Iterator === "function" ? Iterator : Object).prototype);
13
+ return g.next = verb(0), g["throw"] = verb(1), g["return"] = verb(2), typeof Symbol === "function" && (g[Symbol.iterator] = function() { return this; }), g;
14
14
  function verb(n) { return function (v) { return step([n, v]); }; }
15
15
  function step(op) {
16
16
  if (f) throw new TypeError("Generator is already executing.");
@@ -15,13 +15,23 @@ var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (
15
15
  }) : function(o, v) {
16
16
  o["default"] = v;
17
17
  });
18
- var __importStar = (this && this.__importStar) || function (mod) {
19
- if (mod && mod.__esModule) return mod;
20
- var result = {};
21
- if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
22
- __setModuleDefault(result, mod);
23
- return result;
24
- };
18
+ var __importStar = (this && this.__importStar) || (function () {
19
+ var ownKeys = function(o) {
20
+ ownKeys = Object.getOwnPropertyNames || function (o) {
21
+ var ar = [];
22
+ for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
23
+ return ar;
24
+ };
25
+ return ownKeys(o);
26
+ };
27
+ return function (mod) {
28
+ if (mod && mod.__esModule) return mod;
29
+ var result = {};
30
+ if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
31
+ __setModuleDefault(result, mod);
32
+ return result;
33
+ };
34
+ })();
25
35
  var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
26
36
  function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
27
37
  return new (P || (P = Promise))(function (resolve, reject) {
@@ -32,8 +42,8 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
32
42
  });
33
43
  };
34
44
  var __generator = (this && this.__generator) || function (thisArg, body) {
35
- var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g;
36
- return g = { next: verb(0), "throw": verb(1), "return": verb(2) }, typeof Symbol === "function" && (g[Symbol.iterator] = function() { return this; }), g;
45
+ var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g = Object.create((typeof Iterator === "function" ? Iterator : Object).prototype);
46
+ return g.next = verb(0), g["throw"] = verb(1), g["return"] = verb(2), typeof Symbol === "function" && (g[Symbol.iterator] = function() { return this; }), g;
37
47
  function verb(n) { return function (v) { return step([n, v]); }; }
38
48
  function step(op) {
39
49
  if (f) throw new TypeError("Generator is already executing.");
@@ -9,8 +9,8 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
9
9
  });
10
10
  };
11
11
  var __generator = (this && this.__generator) || function (thisArg, body) {
12
- var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g;
13
- return g = { next: verb(0), "throw": verb(1), "return": verb(2) }, typeof Symbol === "function" && (g[Symbol.iterator] = function() { return this; }), g;
12
+ var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g = Object.create((typeof Iterator === "function" ? Iterator : Object).prototype);
13
+ return g.next = verb(0), g["throw"] = verb(1), g["return"] = verb(2), typeof Symbol === "function" && (g[Symbol.iterator] = function() { return this; }), g;
14
14
  function verb(n) { return function (v) { return step([n, v]); }; }
15
15
  function step(op) {
16
16
  if (f) throw new TypeError("Generator is already executing.");
@@ -15,13 +15,23 @@ var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (
15
15
  }) : function(o, v) {
16
16
  o["default"] = v;
17
17
  });
18
- var __importStar = (this && this.__importStar) || function (mod) {
19
- if (mod && mod.__esModule) return mod;
20
- var result = {};
21
- if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
22
- __setModuleDefault(result, mod);
23
- return result;
24
- };
18
+ var __importStar = (this && this.__importStar) || (function () {
19
+ var ownKeys = function(o) {
20
+ ownKeys = Object.getOwnPropertyNames || function (o) {
21
+ var ar = [];
22
+ for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
23
+ return ar;
24
+ };
25
+ return ownKeys(o);
26
+ };
27
+ return function (mod) {
28
+ if (mod && mod.__esModule) return mod;
29
+ var result = {};
30
+ if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
31
+ __setModuleDefault(result, mod);
32
+ return result;
33
+ };
34
+ })();
25
35
  var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
26
36
  function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
27
37
  return new (P || (P = Promise))(function (resolve, reject) {
@@ -32,8 +42,8 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
32
42
  });
33
43
  };
34
44
  var __generator = (this && this.__generator) || function (thisArg, body) {
35
- var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g;
36
- return g = { next: verb(0), "throw": verb(1), "return": verb(2) }, typeof Symbol === "function" && (g[Symbol.iterator] = function() { return this; }), g;
45
+ var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g = Object.create((typeof Iterator === "function" ? Iterator : Object).prototype);
46
+ return g.next = verb(0), g["throw"] = verb(1), g["return"] = verb(2), typeof Symbol === "function" && (g[Symbol.iterator] = function() { return this; }), g;
37
47
  function verb(n) { return function (v) { return step([n, v]); }; }
38
48
  function step(op) {
39
49
  if (f) throw new TypeError("Generator is already executing.");
@@ -9,8 +9,8 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
9
9
  });
10
10
  };
11
11
  var __generator = (this && this.__generator) || function (thisArg, body) {
12
- var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g;
13
- return g = { next: verb(0), "throw": verb(1), "return": verb(2) }, typeof Symbol === "function" && (g[Symbol.iterator] = function() { return this; }), g;
12
+ var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g = Object.create((typeof Iterator === "function" ? Iterator : Object).prototype);
13
+ return g.next = verb(0), g["throw"] = verb(1), g["return"] = verb(2), typeof Symbol === "function" && (g[Symbol.iterator] = function() { return this; }), g;
14
14
  function verb(n) { return function (v) { return step([n, v]); }; }
15
15
  function step(op) {
16
16
  if (f) throw new TypeError("Generator is already executing.");
@@ -9,8 +9,8 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
9
9
  });
10
10
  };
11
11
  var __generator = (this && this.__generator) || function (thisArg, body) {
12
- var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g;
13
- return g = { next: verb(0), "throw": verb(1), "return": verb(2) }, typeof Symbol === "function" && (g[Symbol.iterator] = function() { return this; }), g;
12
+ var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g = Object.create((typeof Iterator === "function" ? Iterator : Object).prototype);
13
+ return g.next = verb(0), g["throw"] = verb(1), g["return"] = verb(2), typeof Symbol === "function" && (g[Symbol.iterator] = function() { return this; }), g;
14
14
  function verb(n) { return function (v) { return step([n, v]); }; }
15
15
  function step(op) {
16
16
  if (f) throw new TypeError("Generator is already executing.");
@@ -24,8 +24,8 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
24
24
  });
25
25
  };
26
26
  var __generator = (this && this.__generator) || function (thisArg, body) {
27
- var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g;
28
- return g = { next: verb(0), "throw": verb(1), "return": verb(2) }, typeof Symbol === "function" && (g[Symbol.iterator] = function() { return this; }), g;
27
+ var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g = Object.create((typeof Iterator === "function" ? Iterator : Object).prototype);
28
+ return g.next = verb(0), g["throw"] = verb(1), g["return"] = verb(2), typeof Symbol === "function" && (g[Symbol.iterator] = function() { return this; }), g;
29
29
  function verb(n) { return function (v) { return step([n, v]); }; }
30
30
  function step(op) {
31
31
  if (f) throw new TypeError("Generator is already executing.");
@@ -112,16 +112,16 @@ var FolderCommand = /** @class */ (function (_super) {
112
112
  }) || this;
113
113
  }
114
114
  FolderCommand.prototype.execute = function () {
115
- var _a;
116
115
  return __awaiter(this, void 0, void 0, function () {
117
- var target, sasjs, authConfig, _b, _c, _d;
116
+ var target, sasjs, authConfig, _a, _b, _c;
117
+ var _d;
118
118
  return __generator(this, function (_e) {
119
119
  switch (_e.label) {
120
120
  case 0: return [4 /*yield*/, this.getTargetInfo()];
121
121
  case 1:
122
122
  target = (_e.sent()).target;
123
123
  if (target.serverType !== utils_1.ServerType.SasViya) {
124
- (_a = process.logger) === null || _a === void 0 ? void 0 : _a.error("This command is only supported for SAS Viya targets.\nPlease try again with a different target.");
124
+ (_d = process.logger) === null || _d === void 0 ? void 0 : _d.error("This command is only supported for SAS Viya targets.\nPlease try again with a different target.");
125
125
  return [2 /*return*/, command_1.ReturnCode.InternalError];
126
126
  }
127
127
  sasjs = (0, utils_2.getSASjs)(target);
@@ -138,30 +138,30 @@ var FolderCommand = /** @class */ (function (_super) {
138
138
  if (!(this.parsed.subCommand === FolderSubCommand.Create)) return [3 /*break*/, 4];
139
139
  return [4 /*yield*/, this.executeCreateFolder(target, sasjs, authConfig)];
140
140
  case 3:
141
- _b = _e.sent();
141
+ _a = _e.sent();
142
142
  return [3 /*break*/, 11];
143
143
  case 4:
144
144
  if (!(this.parsed.subCommand === FolderSubCommand.Delete)) return [3 /*break*/, 6];
145
145
  return [4 /*yield*/, this.executeDeleteFolder(target, sasjs, authConfig)];
146
146
  case 5:
147
- _c = _e.sent();
147
+ _b = _e.sent();
148
148
  return [3 /*break*/, 10];
149
149
  case 6:
150
150
  if (!(this.parsed.subCommand === FolderSubCommand.List)) return [3 /*break*/, 8];
151
151
  return [4 /*yield*/, this.executeListFolder(target, sasjs, authConfig)];
152
152
  case 7:
153
- _d = _e.sent();
153
+ _c = _e.sent();
154
154
  return [3 /*break*/, 9];
155
155
  case 8:
156
- _d = command_1.ReturnCode.InvalidCommand;
156
+ _c = command_1.ReturnCode.InvalidCommand;
157
157
  _e.label = 9;
158
158
  case 9:
159
- _c = _d;
159
+ _b = _c;
160
160
  _e.label = 10;
161
161
  case 10:
162
- _b = _c;
162
+ _a = _b;
163
163
  _e.label = 11;
164
- case 11: return [2 /*return*/, _b];
164
+ case 11: return [2 /*return*/, _a];
165
165
  }
166
166
  });
167
167
  });
@@ -234,9 +234,9 @@ var FolderCommand = /** @class */ (function (_super) {
234
234
  });
235
235
  };
236
236
  FolderCommand.prototype.executeMoveFolder = function () {
237
- var _a;
238
237
  return __awaiter(this, void 0, void 0, function () {
239
238
  var target, sasjs, authConfig, sourceFolderPath, targetFolderPath, returnCode;
239
+ var _a;
240
240
  return __generator(this, function (_b) {
241
241
  switch (_b.label) {
242
242
  case 0: return [4 /*yield*/, this.getTargetInfo()];
@@ -9,8 +9,8 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
9
9
  });
10
10
  };
11
11
  var __generator = (this && this.__generator) || function (thisArg, body) {
12
- var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g;
13
- return g = { next: verb(0), "throw": verb(1), "return": verb(2) }, typeof Symbol === "function" && (g[Symbol.iterator] = function() { return this; }), g;
12
+ var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g = Object.create((typeof Iterator === "function" ? Iterator : Object).prototype);
13
+ return g.next = verb(0), g["throw"] = verb(1), g["return"] = verb(2), typeof Symbol === "function" && (g[Symbol.iterator] = function() { return this; }), g;
14
14
  function verb(n) { return function (v) { return step([n, v]); }; }
15
15
  function step(op) {
16
16
  if (f) throw new TypeError("Generator is already executing.");
@@ -9,8 +9,8 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
9
9
  });
10
10
  };
11
11
  var __generator = (this && this.__generator) || function (thisArg, body) {
12
- var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g;
13
- return g = { next: verb(0), "throw": verb(1), "return": verb(2) }, typeof Symbol === "function" && (g[Symbol.iterator] = function() { return this; }), g;
12
+ var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g = Object.create((typeof Iterator === "function" ? Iterator : Object).prototype);
13
+ return g.next = verb(0), g["throw"] = verb(1), g["return"] = verb(2), typeof Symbol === "function" && (g[Symbol.iterator] = function() { return this; }), g;
14
14
  function verb(n) { return function (v) { return step([n, v]); }; }
15
15
  function step(op) {
16
16
  if (f) throw new TypeError("Generator is already executing.");
@@ -9,8 +9,8 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
9
9
  });
10
10
  };
11
11
  var __generator = (this && this.__generator) || function (thisArg, body) {
12
- var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g;
13
- return g = { next: verb(0), "throw": verb(1), "return": verb(2) }, typeof Symbol === "function" && (g[Symbol.iterator] = function() { return this; }), g;
12
+ var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g = Object.create((typeof Iterator === "function" ? Iterator : Object).prototype);
13
+ return g.next = verb(0), g["throw"] = verb(1), g["return"] = verb(2), typeof Symbol === "function" && (g[Symbol.iterator] = function() { return this; }), g;
14
14
  function verb(n) { return function (v) { return step([n, v]); }; }
15
15
  function step(op) {
16
16
  if (f) throw new TypeError("Generator is already executing.");
@@ -15,13 +15,23 @@ var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (
15
15
  }) : function(o, v) {
16
16
  o["default"] = v;
17
17
  });
18
- var __importStar = (this && this.__importStar) || function (mod) {
19
- if (mod && mod.__esModule) return mod;
20
- var result = {};
21
- if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
22
- __setModuleDefault(result, mod);
23
- return result;
24
- };
18
+ var __importStar = (this && this.__importStar) || (function () {
19
+ var ownKeys = function(o) {
20
+ ownKeys = Object.getOwnPropertyNames || function (o) {
21
+ var ar = [];
22
+ for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
23
+ return ar;
24
+ };
25
+ return ownKeys(o);
26
+ };
27
+ return function (mod) {
28
+ if (mod && mod.__esModule) return mod;
29
+ var result = {};
30
+ if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
31
+ __setModuleDefault(result, mod);
32
+ return result;
33
+ };
34
+ })();
25
35
  var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
26
36
  function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
27
37
  return new (P || (P = Promise))(function (resolve, reject) {
@@ -32,8 +42,8 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
32
42
  });
33
43
  };
34
44
  var __generator = (this && this.__generator) || function (thisArg, body) {
35
- var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g;
36
- return g = { next: verb(0), "throw": verb(1), "return": verb(2) }, typeof Symbol === "function" && (g[Symbol.iterator] = function() { return this; }), g;
45
+ var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g = Object.create((typeof Iterator === "function" ? Iterator : Object).prototype);
46
+ return g.next = verb(0), g["throw"] = verb(1), g["return"] = verb(2), typeof Symbol === "function" && (g[Symbol.iterator] = function() { return this; }), g;
37
47
  function verb(n) { return function (v) { return step([n, v]); }; }
38
48
  function step(op) {
39
49
  if (f) throw new TypeError("Generator is already executing.");