@sasjs/cli 3.28.0 → 4.0.1
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/build/cli.js +1 -1
- package/build/cli.spec.js +6 -2
- package/build/commands/add/addCommand.js +2 -4
- package/build/commands/add/addCredential.d.ts +1 -1
- package/build/commands/add/addCredential.js +6 -2
- package/build/commands/add/addTarget.js +1 -1
- package/build/commands/add/internal/input.d.ts +1 -1
- package/build/commands/add/internal/input.js +1 -1
- package/build/commands/add/internal/saveConfig.js +1 -1
- package/build/commands/add/spec/addCommand.spec.js +6 -2
- package/build/commands/add/spec/addCredential.spec.js +6 -2
- package/build/commands/add/spec/addTarget.spec.js +6 -2
- package/build/commands/build/build.js +1 -1
- package/build/commands/build/buildCommand.js +1 -1
- package/build/commands/build/compileBuildCommand.js +1 -1
- package/build/commands/build/internal/config.js +1 -1
- package/build/commands/build/spec/build.spec.js +1 -1
- package/build/commands/build/spec/buildCommand.spec.js +6 -2
- package/build/commands/build/spec/cb.spec.server.viya.js +1 -1
- package/build/commands/build/spec/compileBuildCommand.spec.js +6 -2
- package/build/commands/compile/compile.js +6 -2
- package/build/commands/compile/compileCommand.js +2 -4
- package/build/commands/compile/compileSingleFile.js +1 -1
- package/build/commands/compile/internal/checkCompileStatus.js +1 -1
- package/build/commands/compile/internal/compareFolders.d.ts +1 -1
- package/build/commands/compile/internal/compareFolders.js +1 -1
- package/build/commands/compile/internal/compileFile.js +1 -1
- package/build/commands/compile/internal/compileTestFile.d.ts +1 -1
- package/build/commands/compile/internal/compileTestFile.js +1 -1
- package/build/commands/compile/internal/copySyncFolder.js +1 -1
- package/build/commands/compile/internal/getAllFolders.d.ts +1 -1
- package/build/commands/compile/internal/getAllFolders.js +1 -1
- package/build/commands/compile/internal/getServerType.js +1 -1
- package/build/commands/compile/internal/identifySasFile.js +1 -1
- package/build/commands/compile/internal/loadDependencies.js +1 -1
- package/build/commands/compile/internal/spec/compileTestFile.spec.js +1 -1
- package/build/commands/compile/internal/spec/getAllFolders.spec.js +6 -2
- package/build/commands/compile/spec/compareFolders.spec.js +1 -1
- package/build/commands/compile/spec/compile.spec.js +10 -5
- package/build/commands/compile/spec/compileCommand.spec.js +6 -2
- package/build/commands/compile/spec/compileFile.spec.js +6 -2
- package/build/commands/compile/spec/copyFilesToBuildFolder.spec.js +6 -2
- package/build/commands/compile/spec/loadDependencies.spec.js +6 -2
- package/build/commands/context/contextCommand.js +2 -4
- package/build/commands/context/create.js +1 -1
- package/build/commands/context/delete.js +1 -1
- package/build/commands/context/edit.js +1 -1
- package/build/commands/context/export.js +1 -1
- package/build/commands/context/internal/validateConfigPath.js +1 -1
- package/build/commands/context/list.js +1 -1
- package/build/commands/context/spec/contextCommand.spec.js +6 -2
- package/build/commands/context/spec/create.spec.js +1 -1
- package/build/commands/context/spec/delete.spec.js +1 -1
- package/build/commands/context/spec/edit.spec.js +1 -1
- package/build/commands/context/spec/export.spec.js +6 -2
- package/build/commands/context/spec/list.spec.js +1 -1
- package/build/commands/create/create.js +1 -1
- package/build/commands/create/createCommand.js +2 -4
- package/build/commands/create/internal/createReadme.js +1 -1
- package/build/commands/create/spec/create.spec.js +1 -1
- package/build/commands/create/spec/createCommand.spec.js +6 -2
- package/build/commands/db/db.js +1 -1
- package/build/commands/db/dbCommand.js +1 -1
- package/build/commands/db/spec/db.spec.js +1 -1
- package/build/commands/db/spec/dbCommand.spec.js +6 -2
- package/build/commands/deploy/compileBuildDeployCommand.js +1 -1
- package/build/commands/deploy/deploy.js +1 -1
- package/build/commands/deploy/deployCommand.js +1 -1
- package/build/commands/deploy/internal/deployToSASJSWithServicePack.js +1 -1
- package/build/commands/deploy/internal/executeDeployScript.js +1 -1
- package/build/commands/deploy/internal/executeDeployScriptSas9.js +1 -1
- package/build/commands/deploy/internal/executeDeployScriptSasViya.js +1 -1
- package/build/commands/deploy/internal/executeDeployScriptSasjs.js +1 -1
- package/build/commands/deploy/internal/executeNonSasScript.js +1 -1
- package/build/commands/deploy/internal/executeSasScript.js +1 -1
- package/build/commands/deploy/internal/getDeployScripts.js +1 -1
- package/build/commands/deploy/internal/index.js +5 -1
- package/build/commands/deploy/spec/cbd.spec.js +6 -2
- package/build/commands/deploy/spec/cbd.spec.server.viya.js +6 -2
- package/build/commands/deploy/spec/compileBuildDeployCommand.spec.js +6 -2
- package/build/commands/deploy/spec/deploy.spec.js +6 -2
- package/build/commands/deploy/spec/deployCommand.spec.js +6 -2
- package/build/commands/deploy/spec/getDeployScripts.spec.js +1 -1
- package/build/commands/deploy/spec/utils.js +1 -1
- package/build/commands/docs/docsCommand.js +2 -4
- package/build/commands/docs/generateDocs.js +1 -1
- package/build/commands/docs/generateDot.js +1 -1
- package/build/commands/docs/initDocs.js +1 -1
- package/build/commands/docs/internal/createDotFiles.js +1 -1
- package/build/commands/docs/internal/getDotFileContent.js +1 -1
- package/build/commands/docs/spec/docsCommand.spec.js +6 -2
- package/build/commands/docs/spec/generateDocs.spec.js +1 -1
- package/build/commands/docs/spec/generateDot.spec.js +1 -1
- package/build/commands/docs/spec/initDocs.spec.js +1 -1
- package/build/commands/flow/execute.js +18 -15
- package/build/commands/flow/flowCommand.js +2 -4
- package/build/commands/flow/internal/executeFlow.js +1 -1
- package/build/commands/flow/internal/saveLog.js +1 -1
- package/build/commands/flow/internal/saveToCsv.d.ts +1 -1
- package/build/commands/flow/internal/saveToCsv.js +1 -1
- package/build/commands/flow/internal/spec/executeFlow.spec.js +15 -9
- package/build/commands/flow/internal/spec/saveToCsv.spec.js +1 -1
- package/build/commands/flow/internal/spec/validateParams.spec.js +6 -2
- package/build/commands/flow/internal/validateParams.d.ts +1 -1
- package/build/commands/flow/internal/validateParams.js +1 -1
- package/build/commands/flow/spec/flow.spec.js +14 -8
- package/build/commands/flow/spec/flow.spec.server.viya.js +1 -1
- package/build/commands/flow/spec/flowCommand.spec.js +6 -2
- package/build/commands/folder/create.js +1 -1
- package/build/commands/folder/delete.js +1 -1
- package/build/commands/folder/folderCommand.js +2 -4
- package/build/commands/folder/list.js +1 -1
- package/build/commands/folder/move.js +1 -1
- package/build/commands/folder/spec/folder.spec.server.viya.js +1 -1
- package/build/commands/folder/spec/folderCommand.spec.js +6 -2
- package/build/commands/fs/fsCommand.js +11 -8
- package/build/commands/fs/internal/executeCode.js +1 -1
- package/build/commands/fs/spec/executeCode.spec.js +6 -2
- package/build/commands/fs/spec/fsCommand.spec.js +6 -2
- package/build/commands/help/help.js +1 -1
- package/build/commands/help/helpCommand.js +1 -1
- package/build/commands/help/spec/help.spec.js +1 -1
- package/build/commands/help/spec/helpCommand.spec.js +6 -2
- package/build/commands/init/init.js +1 -1
- package/build/commands/init/initCommand.js +1 -1
- package/build/commands/init/spec/init.spec.js +1 -1
- package/build/commands/init/spec/initCommand.spec.js +6 -2
- package/build/commands/job/internal/execute/index.js +5 -1
- package/build/commands/job/internal/execute/sas9.js +1 -1
- package/build/commands/job/internal/execute/sasjs.js +1 -1
- package/build/commands/job/internal/execute/viya.js +1 -1
- package/build/commands/job/internal/utils.js +1 -1
- package/build/commands/job/jobCommand.js +1 -1
- package/build/commands/job/spec/execute.spec.js +6 -2
- package/build/commands/job/spec/getContextName.spec.js +1 -1
- package/build/commands/job/spec/job.spec.server.viya.js +6 -2
- package/build/commands/job/spec/jobCommand.spec.js +6 -2
- package/build/commands/lint/initLint.js +1 -1
- package/build/commands/lint/lintCommand.js +2 -4
- package/build/commands/lint/processLint.js +1 -1
- package/build/commands/lint/spec/lintCommand.spec.js +6 -2
- package/build/commands/request/request.js +1 -1
- package/build/commands/request/requestCommand.js +1 -1
- package/build/commands/request/spec/request.spec.server.sas9.js +6 -2
- package/build/commands/request/spec/request.spec.server.viya.js +6 -2
- package/build/commands/request/spec/requestCommand.spec.js +6 -2
- package/build/commands/request/spec/utils.js +1 -1
- package/build/commands/run/run.js +1 -1
- package/build/commands/run/runCommand.js +1 -1
- package/build/commands/run/spec/run.spec.server.sas9.js +1 -1
- package/build/commands/run/spec/run.spec.server.sasjs.js +1 -1
- package/build/commands/run/spec/run.spec.server.viya.js +1 -1
- package/build/commands/run/spec/runCommand.spec.js +6 -2
- package/build/commands/servicepack/deploy.js +1 -1
- package/build/commands/servicepack/servicePackCommand.js +1 -1
- package/build/commands/servicepack/spec/servicepack.spec.server.viya.js +1 -1
- package/build/commands/servicepack/spec/servicepackCommand.spec.js +6 -2
- package/build/commands/shared/createConfigFile.js +1 -1
- package/build/commands/shared/createFileStructure.js +1 -1
- package/build/commands/shared/createLintConfigFile.js +1 -1
- package/build/commands/shared/deployToSasViyaWithServicePack.js +1 -1
- package/build/commands/shared/fetchLogFileContent.js +1 -1
- package/build/commands/testing/internal/saveOutput.js +1 -1
- package/build/commands/testing/spec/testCommand.spec.js +6 -2
- package/build/commands/testing/spec/testing.spec.js +6 -2
- package/build/commands/testing/test.js +1 -1
- package/build/commands/testing/testCommand.js +1 -1
- package/build/commands/version/spec/version.spec.js +1 -1
- package/build/commands/version/spec/versionCommand.spec.js +6 -2
- package/build/commands/version/version.js +1 -1
- package/build/commands/version/versionCommand.js +1 -1
- package/build/commands/web/internal/createAssetServices.js +1 -1
- package/build/commands/web/internal/sas9/createClickMeService.js +1 -1
- package/build/commands/web/internal/sas9/generateAssetService.js +1 -1
- package/build/commands/web/internal/sas9/getWebServiceContent.js +1 -1
- package/build/commands/web/internal/sas9/index.js +5 -1
- package/build/commands/web/internal/sasViya/createClickMeFile.js +1 -1
- package/build/commands/web/internal/sasViya/index.js +5 -1
- package/build/commands/web/internal/spec/updateSasjstag.spec.js +1 -1
- package/build/commands/web/internal/spec/updateScriptTag.spec.js +1 -1
- package/build/commands/web/internal/spec/updateStyleTag.spec.js +1 -1
- package/build/commands/web/internal/updateAllTags.js +1 -1
- package/build/commands/web/internal/updateScriptTag.js +1 -1
- package/build/commands/web/internal/updateStyleTag.js +1 -1
- package/build/commands/web/spec/web.spec.js +1 -1
- package/build/commands/web/spec/webCommand.spec.js +6 -2
- package/build/commands/web/web.js +1 -1
- package/build/commands/web/webCommand.js +1 -1
- package/build/types/command/commandBase.js +3 -2
- package/build/types/command/spec/commandBase.spec.js +1 -1
- package/build/types/command/targetCommand.js +3 -4
- package/build/utils/auth.js +1 -1
- package/build/utils/compressAndSave.js +1 -1
- package/build/utils/config.js +1 -1
- package/build/utils/file.d.ts +1 -1
- package/build/utils/file.js +1 -1
- package/build/utils/index.js +5 -1
- package/build/utils/loadEnvVariables.js +1 -1
- package/build/utils/parseSourceFile.js +1 -1
- package/build/utils/saveLog.js +1 -1
- package/build/utils/setConstants.d.ts +2 -0
- package/build/utils/setConstants.js +29 -9
- package/build/utils/setProjectDir.js +1 -1
- package/build/utils/spec/config.spec.js +6 -2
- package/build/utils/spec/file.spec.js +1 -1
- package/build/utils/spec/setConstants.spec.js +6 -2
- package/build/utils/spec/utils.spec.js +2 -3
- package/build/utils/test.d.ts +1 -1
- package/build/utils/test.js +1 -1
- package/build/utils/utils.js +1 -1
- package/package.json +16 -14
|
@@ -1,7 +1,11 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
3
|
if (k2 === undefined) k2 = k;
|
|
4
|
-
Object.
|
|
4
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
+
}
|
|
8
|
+
Object.defineProperty(o, k2, desc);
|
|
5
9
|
}) : (function(o, m, k, k2) {
|
|
6
10
|
if (k2 === undefined) k2 = k;
|
|
7
11
|
o[k2] = m[k];
|
|
@@ -33,7 +37,7 @@ var __generator = (this && this.__generator) || function (thisArg, body) {
|
|
|
33
37
|
function verb(n) { return function (v) { return step([n, v]); }; }
|
|
34
38
|
function step(op) {
|
|
35
39
|
if (f) throw new TypeError("Generator is already executing.");
|
|
36
|
-
while (_) try {
|
|
40
|
+
while (g && (g = 0, op[0] && (_ = 0)), _) try {
|
|
37
41
|
if (f = 1, y && (t = op[0] & 2 ? y["return"] : op[0] ? y["throw"] || ((t = y["return"]) && t.call(y), 0) : y.next) && !(t = t.call(y, op[1])).done) return t;
|
|
38
42
|
if (y = 0, t) op = [op[0] & 2, t.value];
|
|
39
43
|
switch (op[0]) {
|
|
@@ -14,7 +14,7 @@ var __generator = (this && this.__generator) || function (thisArg, body) {
|
|
|
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.");
|
|
17
|
-
while (_) try {
|
|
17
|
+
while (g && (g = 0, op[0] && (_ = 0)), _) try {
|
|
18
18
|
if (f = 1, y && (t = op[0] & 2 ? y["return"] : op[0] ? y["throw"] || ((t = y["return"]) && t.call(y), 0) : y.next) && !(t = t.call(y, op[1])).done) return t;
|
|
19
19
|
if (y = 0, t) op = [op[0] & 2, t.value];
|
|
20
20
|
switch (op[0]) {
|
|
@@ -25,7 +25,7 @@ var __generator = (this && this.__generator) || function (thisArg, body) {
|
|
|
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.");
|
|
28
|
-
while (_) try {
|
|
28
|
+
while (g && (g = 0, op[0] && (_ = 0)), _) try {
|
|
29
29
|
if (f = 1, y && (t = op[0] & 2 ? y["return"] : op[0] ? y["throw"] || ((t = y["return"]) && t.call(y), 0) : y.next) && !(t = t.call(y, op[1])).done) return t;
|
|
30
30
|
if (y = 0, t) op = [op[0] & 2, t.value];
|
|
31
31
|
switch (op[0]) {
|
|
@@ -29,7 +29,7 @@ var __generator = (this && this.__generator) || function (thisArg, body) {
|
|
|
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.");
|
|
32
|
-
while (_) try {
|
|
32
|
+
while (g && (g = 0, op[0] && (_ = 0)), _) try {
|
|
33
33
|
if (f = 1, y && (t = op[0] & 2 ? y["return"] : op[0] ? y["throw"] || ((t = y["return"]) && t.call(y), 0) : y.next) && !(t = t.call(y, op[1])).done) return t;
|
|
34
34
|
if (y = 0, t) op = [op[0] & 2, t.value];
|
|
35
35
|
switch (op[0]) {
|
|
@@ -89,10 +89,9 @@ var commandParseOptions = {
|
|
|
89
89
|
var DocsCommand = /** @class */ (function (_super) {
|
|
90
90
|
__extends(DocsCommand, _super);
|
|
91
91
|
function DocsCommand(args) {
|
|
92
|
-
var _this = this;
|
|
93
92
|
var subCommand = args[3];
|
|
94
93
|
var parseOptions = subCommand === DocSubCommand.Init ? {} : commandParseOptions;
|
|
95
|
-
|
|
94
|
+
return _super.call(this, args, {
|
|
96
95
|
parseOptions: parseOptions,
|
|
97
96
|
usage: usage,
|
|
98
97
|
description: description,
|
|
@@ -100,7 +99,6 @@ var DocsCommand = /** @class */ (function (_super) {
|
|
|
100
99
|
syntax: syntax,
|
|
101
100
|
aliases: aliases
|
|
102
101
|
}) || this;
|
|
103
|
-
return _this;
|
|
104
102
|
}
|
|
105
103
|
DocsCommand.prototype.execute = function () {
|
|
106
104
|
return __awaiter(this, void 0, void 0, function () {
|
|
@@ -25,7 +25,7 @@ var __generator = (this && this.__generator) || function (thisArg, body) {
|
|
|
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.");
|
|
28
|
-
while (_) try {
|
|
28
|
+
while (g && (g = 0, op[0] && (_ = 0)), _) try {
|
|
29
29
|
if (f = 1, y && (t = op[0] & 2 ? y["return"] : op[0] ? y["throw"] || ((t = y["return"]) && t.call(y), 0) : y.next) && !(t = t.call(y, op[1])).done) return t;
|
|
30
30
|
if (y = 0, t) op = [op[0] & 2, t.value];
|
|
31
31
|
switch (op[0]) {
|
|
@@ -14,7 +14,7 @@ var __generator = (this && this.__generator) || function (thisArg, body) {
|
|
|
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.");
|
|
17
|
-
while (_) try {
|
|
17
|
+
while (g && (g = 0, op[0] && (_ = 0)), _) try {
|
|
18
18
|
if (f = 1, y && (t = op[0] & 2 ? y["return"] : op[0] ? y["throw"] || ((t = y["return"]) && t.call(y), 0) : y.next) && !(t = t.call(y, op[1])).done) return t;
|
|
19
19
|
if (y = 0, t) op = [op[0] & 2, t.value];
|
|
20
20
|
switch (op[0]) {
|
|
@@ -14,7 +14,7 @@ var __generator = (this && this.__generator) || function (thisArg, body) {
|
|
|
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.");
|
|
17
|
-
while (_) try {
|
|
17
|
+
while (g && (g = 0, op[0] && (_ = 0)), _) try {
|
|
18
18
|
if (f = 1, y && (t = op[0] & 2 ? y["return"] : op[0] ? y["throw"] || ((t = y["return"]) && t.call(y), 0) : y.next) && !(t = t.call(y, op[1])).done) return t;
|
|
19
19
|
if (y = 0, t) op = [op[0] & 2, t.value];
|
|
20
20
|
switch (op[0]) {
|
|
@@ -14,7 +14,7 @@ var __generator = (this && this.__generator) || function (thisArg, body) {
|
|
|
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.");
|
|
17
|
-
while (_) try {
|
|
17
|
+
while (g && (g = 0, op[0] && (_ = 0)), _) try {
|
|
18
18
|
if (f = 1, y && (t = op[0] & 2 ? y["return"] : op[0] ? y["throw"] || ((t = y["return"]) && t.call(y), 0) : y.next) && !(t = t.call(y, op[1])).done) return t;
|
|
19
19
|
if (y = 0, t) op = [op[0] & 2, t.value];
|
|
20
20
|
switch (op[0]) {
|
|
@@ -14,7 +14,7 @@ var __generator = (this && this.__generator) || function (thisArg, body) {
|
|
|
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.");
|
|
17
|
-
while (_) try {
|
|
17
|
+
while (g && (g = 0, op[0] && (_ = 0)), _) try {
|
|
18
18
|
if (f = 1, y && (t = op[0] & 2 ? y["return"] : op[0] ? y["throw"] || ((t = y["return"]) && t.call(y), 0) : y.next) && !(t = t.call(y, op[1])).done) return t;
|
|
19
19
|
if (y = 0, t) op = [op[0] & 2, t.value];
|
|
20
20
|
switch (op[0]) {
|
|
@@ -1,7 +1,11 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
3
|
if (k2 === undefined) k2 = k;
|
|
4
|
-
Object.
|
|
4
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
+
}
|
|
8
|
+
Object.defineProperty(o, k2, desc);
|
|
5
9
|
}) : (function(o, m, k, k2) {
|
|
6
10
|
if (k2 === undefined) k2 = k;
|
|
7
11
|
o[k2] = m[k];
|
|
@@ -33,7 +37,7 @@ var __generator = (this && this.__generator) || function (thisArg, body) {
|
|
|
33
37
|
function verb(n) { return function (v) { return step([n, v]); }; }
|
|
34
38
|
function step(op) {
|
|
35
39
|
if (f) throw new TypeError("Generator is already executing.");
|
|
36
|
-
while (_) try {
|
|
40
|
+
while (g && (g = 0, op[0] && (_ = 0)), _) try {
|
|
37
41
|
if (f = 1, y && (t = op[0] & 2 ? y["return"] : op[0] ? y["throw"] || ((t = y["return"]) && t.call(y), 0) : y.next) && !(t = t.call(y, op[1])).done) return t;
|
|
38
42
|
if (y = 0, t) op = [op[0] & 2, t.value];
|
|
39
43
|
switch (op[0]) {
|
|
@@ -25,7 +25,7 @@ var __generator = (this && this.__generator) || function (thisArg, body) {
|
|
|
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.");
|
|
28
|
-
while (_) try {
|
|
28
|
+
while (g && (g = 0, op[0] && (_ = 0)), _) try {
|
|
29
29
|
if (f = 1, y && (t = op[0] & 2 ? y["return"] : op[0] ? y["throw"] || ((t = y["return"]) && t.call(y), 0) : y.next) && !(t = t.call(y, op[1])).done) return t;
|
|
30
30
|
if (y = 0, t) op = [op[0] & 2, t.value];
|
|
31
31
|
switch (op[0]) {
|
|
@@ -25,7 +25,7 @@ var __generator = (this && this.__generator) || function (thisArg, body) {
|
|
|
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.");
|
|
28
|
-
while (_) try {
|
|
28
|
+
while (g && (g = 0, op[0] && (_ = 0)), _) try {
|
|
29
29
|
if (f = 1, y && (t = op[0] & 2 ? y["return"] : op[0] ? y["throw"] || ((t = y["return"]) && t.call(y), 0) : y.next) && !(t = t.call(y, op[1])).done) return t;
|
|
30
30
|
if (y = 0, t) op = [op[0] & 2, t.value];
|
|
31
31
|
switch (op[0]) {
|
|
@@ -14,7 +14,7 @@ var __generator = (this && this.__generator) || function (thisArg, body) {
|
|
|
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.");
|
|
17
|
-
while (_) try {
|
|
17
|
+
while (g && (g = 0, op[0] && (_ = 0)), _) try {
|
|
18
18
|
if (f = 1, y && (t = op[0] & 2 ? y["return"] : op[0] ? y["throw"] || ((t = y["return"]) && t.call(y), 0) : y.next) && !(t = t.call(y, op[1])).done) return t;
|
|
19
19
|
if (y = 0, t) op = [op[0] & 2, t.value];
|
|
20
20
|
switch (op[0]) {
|
|
@@ -14,7 +14,7 @@ var __generator = (this && this.__generator) || function (thisArg, body) {
|
|
|
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.");
|
|
17
|
-
while (_) try {
|
|
17
|
+
while (g && (g = 0, op[0] && (_ = 0)), _) try {
|
|
18
18
|
if (f = 1, y && (t = op[0] & 2 ? y["return"] : op[0] ? y["throw"] || ((t = y["return"]) && t.call(y), 0) : y.next) && !(t = t.call(y, op[1])).done) return t;
|
|
19
19
|
if (y = 0, t) op = [op[0] & 2, t.value];
|
|
20
20
|
switch (op[0]) {
|
|
@@ -60,14 +60,14 @@ function execute(target, sasjs, authConfig, source, logFolder, csvFile, streamLo
|
|
|
60
60
|
var _this = this;
|
|
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
|
-
var _a, terminate, message, flows, csvFileRealPath, logFolderRealPath, _b, predecessorDeadlock, deadlockChain, pollOptions, preExecuteFlow, _c, _d, _i, flowName;
|
|
63
|
+
var _a, terminate, message, flows, csvFileRealPath, logFolderRealPath, _b, predecessorDeadlock, deadlockChain, pollOptions, preExecuteFlow, _c, _d, _e, _i, flowName;
|
|
64
64
|
var _this = this;
|
|
65
|
-
var
|
|
66
|
-
return __generator(this, function (
|
|
67
|
-
switch (
|
|
65
|
+
var _f;
|
|
66
|
+
return __generator(this, function (_g) {
|
|
67
|
+
switch (_g.label) {
|
|
68
68
|
case 0: return [4 /*yield*/, (0, internal_1.validateParams)(target, source, csvFile, logFolder)];
|
|
69
69
|
case 1:
|
|
70
|
-
_a =
|
|
70
|
+
_a = _g.sent(), terminate = _a.terminate, message = _a.message, flows = _a.flows, csvFileRealPath = _a.csvFile, logFolderRealPath = _a.logFolder;
|
|
71
71
|
if (terminate)
|
|
72
72
|
return [2 /*return*/, reject(message)];
|
|
73
73
|
_b = (0, internal_1.checkPredecessorDeadlock)(flows), predecessorDeadlock = _b.present, deadlockChain = _b.chain;
|
|
@@ -80,7 +80,7 @@ function execute(target, sasjs, authConfig, source, logFolder, csvFile, streamLo
|
|
|
80
80
|
streamLog: streamLog,
|
|
81
81
|
logFolderPath: logFolderRealPath
|
|
82
82
|
};
|
|
83
|
-
(
|
|
83
|
+
(_f = process.logger) === null || _f === void 0 ? void 0 : _f.info("Executing flow for '".concat(target.name, "' target with app location '").concat(target.appLoc, "':"));
|
|
84
84
|
preExecuteFlow = function (flowName) { return __awaiter(_this, void 0, void 0, function () {
|
|
85
85
|
var flow, predecessors, predecessors_1, predecessors_1_1, predecessorName, e_1_1, _a, jobStatus, flowStatus, _b, completed, completedWithAllSuccess;
|
|
86
86
|
var e_1, _c;
|
|
@@ -151,18 +151,21 @@ function execute(target, sasjs, authConfig, source, logFolder, csvFile, streamLo
|
|
|
151
151
|
}
|
|
152
152
|
});
|
|
153
153
|
}); };
|
|
154
|
-
_c =
|
|
155
|
-
|
|
156
|
-
|
|
154
|
+
_c = flows;
|
|
155
|
+
_d = [];
|
|
156
|
+
for (_e in _c)
|
|
157
|
+
_d.push(_e);
|
|
157
158
|
_i = 0;
|
|
158
|
-
|
|
159
|
+
_g.label = 2;
|
|
159
160
|
case 2:
|
|
160
|
-
if (!(_i <
|
|
161
|
-
|
|
161
|
+
if (!(_i < _d.length)) return [3 /*break*/, 5];
|
|
162
|
+
_e = _d[_i];
|
|
163
|
+
if (!(_e in _c)) return [3 /*break*/, 4];
|
|
164
|
+
flowName = _e;
|
|
162
165
|
return [4 /*yield*/, preExecuteFlow(flowName)];
|
|
163
166
|
case 3:
|
|
164
|
-
|
|
165
|
-
|
|
167
|
+
_g.sent();
|
|
168
|
+
_g.label = 4;
|
|
166
169
|
case 4:
|
|
167
170
|
_i++;
|
|
168
171
|
return [3 /*break*/, 2];
|
|
@@ -29,7 +29,7 @@ var __generator = (this && this.__generator) || function (thisArg, body) {
|
|
|
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.");
|
|
32
|
-
while (_) try {
|
|
32
|
+
while (g && (g = 0, op[0] && (_ = 0)), _) try {
|
|
33
33
|
if (f = 1, y && (t = op[0] & 2 ? y["return"] : op[0] ? y["throw"] || ((t = y["return"]) && t.call(y), 0) : y.next) && !(t = t.call(y, op[1])).done) return t;
|
|
34
34
|
if (y = 0, t) op = [op[0] & 2, t.value];
|
|
35
35
|
switch (op[0]) {
|
|
@@ -103,17 +103,15 @@ var executeParseOptions = {
|
|
|
103
103
|
var FlowCommand = /** @class */ (function (_super) {
|
|
104
104
|
__extends(FlowCommand, _super);
|
|
105
105
|
function FlowCommand(args) {
|
|
106
|
-
var _this = this;
|
|
107
106
|
var subCommand = args[3];
|
|
108
107
|
var parseOptions = subCommand === FlowSubCommand.Execute ? executeParseOptions : {};
|
|
109
|
-
|
|
108
|
+
return _super.call(this, args, {
|
|
110
109
|
parseOptions: parseOptions,
|
|
111
110
|
usage: usage,
|
|
112
111
|
description: description,
|
|
113
112
|
examples: examples,
|
|
114
113
|
syntax: syntax
|
|
115
114
|
}) || this;
|
|
116
|
-
return _this;
|
|
117
115
|
}
|
|
118
116
|
FlowCommand.prototype.execute = function () {
|
|
119
117
|
return __awaiter(this, void 0, void 0, function () {
|
|
@@ -14,7 +14,7 @@ var __generator = (this && this.__generator) || function (thisArg, body) {
|
|
|
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.");
|
|
17
|
-
while (_) try {
|
|
17
|
+
while (g && (g = 0, op[0] && (_ = 0)), _) try {
|
|
18
18
|
if (f = 1, y && (t = op[0] & 2 ? y["return"] : op[0] ? y["throw"] || ((t = y["return"]) && t.call(y), 0) : y.next) && !(t = t.call(y, op[1])).done) return t;
|
|
19
19
|
if (y = 0, t) op = [op[0] & 2, t.value];
|
|
20
20
|
switch (op[0]) {
|
|
@@ -14,7 +14,7 @@ var __generator = (this && this.__generator) || function (thisArg, body) {
|
|
|
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.");
|
|
17
|
-
while (_) try {
|
|
17
|
+
while (g && (g = 0, op[0] && (_ = 0)), _) try {
|
|
18
18
|
if (f = 1, y && (t = op[0] & 2 ? y["return"] : op[0] ? y["throw"] || ((t = y["return"]) && t.call(y), 0) : y.next) && !(t = t.call(y, op[1])).done) return t;
|
|
19
19
|
if (y = 0, t) op = [op[0] & 2, t.value];
|
|
20
20
|
switch (op[0]) {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export declare const saveToCsv: (csvFileRealPath: string, data: any[], columns: string[], prependId?: string
|
|
1
|
+
export declare const saveToCsv: (csvFileRealPath: string, data: any[], columns: string[], prependId?: string) => Promise<unknown>;
|
|
@@ -14,7 +14,7 @@ var __generator = (this && this.__generator) || function (thisArg, body) {
|
|
|
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.");
|
|
17
|
-
while (_) try {
|
|
17
|
+
while (g && (g = 0, op[0] && (_ = 0)), _) try {
|
|
18
18
|
if (f = 1, y && (t = op[0] & 2 ? y["return"] : op[0] ? y["throw"] || ((t = y["return"]) && t.call(y), 0) : y.next) && !(t = t.call(y, op[1])).done) return t;
|
|
19
19
|
if (y = 0, t) op = [op[0] & 2, t.value];
|
|
20
20
|
switch (op[0]) {
|
|
@@ -1,7 +1,11 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
3
|
if (k2 === undefined) k2 = k;
|
|
4
|
-
Object.
|
|
4
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
+
}
|
|
8
|
+
Object.defineProperty(o, k2, desc);
|
|
5
9
|
}) : (function(o, m, k, k2) {
|
|
6
10
|
if (k2 === undefined) k2 = k;
|
|
7
11
|
o[k2] = m[k];
|
|
@@ -33,7 +37,7 @@ var __generator = (this && this.__generator) || function (thisArg, body) {
|
|
|
33
37
|
function verb(n) { return function (v) { return step([n, v]); }; }
|
|
34
38
|
function step(op) {
|
|
35
39
|
if (f) throw new TypeError("Generator is already executing.");
|
|
36
|
-
while (_) try {
|
|
40
|
+
while (g && (g = 0, op[0] && (_ = 0)), _) try {
|
|
37
41
|
if (f = 1, y && (t = op[0] & 2 ? y["return"] : op[0] ? y["throw"] || ((t = y["return"]) && t.call(y), 0) : y.next) && !(t = t.call(y, op[1])).done) return t;
|
|
38
42
|
if (y = 0, t) op = [op[0] & 2, t.value];
|
|
39
43
|
switch (op[0]) {
|
|
@@ -61,7 +65,9 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
61
65
|
var node_1 = __importDefault(require("@sasjs/adapter/node"));
|
|
62
66
|
var utils_1 = require("@sasjs/utils");
|
|
63
67
|
var executeFlow_1 = require("../executeFlow");
|
|
64
|
-
var
|
|
68
|
+
var saveLogModule = __importStar(require("../saveLog"));
|
|
69
|
+
var saveToCsvModule = __importStar(require("../saveToCsv"));
|
|
70
|
+
var normalizeFilePath = __importStar(require("../normalizeFilePath"));
|
|
65
71
|
var csvColumns_1 = __importDefault(require("../csvColumns"));
|
|
66
72
|
var pollOptions = {
|
|
67
73
|
maxPollCount: 24 * 60 * 60,
|
|
@@ -86,13 +92,13 @@ describe('executeFlow', function () {
|
|
|
86
92
|
process.logger = new utils_1.Logger(utils_1.LogLevel.Off);
|
|
87
93
|
beforeEach(function () {
|
|
88
94
|
jest
|
|
89
|
-
.spyOn(
|
|
95
|
+
.spyOn(saveLogModule, 'saveLog')
|
|
90
96
|
.mockImplementation(function () { return Promise.resolve(fakeLogFileName); });
|
|
91
97
|
jest
|
|
92
|
-
.spyOn(
|
|
98
|
+
.spyOn(saveToCsvModule, 'saveToCsv')
|
|
93
99
|
.mockImplementation(function () { return Promise.resolve(); });
|
|
94
100
|
jest
|
|
95
|
-
.spyOn(
|
|
101
|
+
.spyOn(normalizeFilePath, 'normalizeFilePath')
|
|
96
102
|
.mockImplementation(function (filePath) { return filePath; });
|
|
97
103
|
});
|
|
98
104
|
it('should execute flow with 2 successful jobs and 1 failing job', function () { return __awaiter(void 0, void 0, void 0, function () {
|
|
@@ -205,7 +211,7 @@ describe('executeFlow', function () {
|
|
|
205
211
|
.spyOn(sasjs, 'startComputeJob')
|
|
206
212
|
.mockImplementation(function () { return Promise.reject('Could not get session state.'); });
|
|
207
213
|
jest
|
|
208
|
-
.spyOn(
|
|
214
|
+
.spyOn(saveToCsvModule, 'saveToCsv')
|
|
209
215
|
.mockImplementation(function () { return Promise.resolve(); });
|
|
210
216
|
return [4 /*yield*/, (0, executeFlow_1.executeFlow)(flow, sasjs, pollOptions, target, {}, 'fake/csv/path')];
|
|
211
217
|
case 1:
|
|
@@ -230,8 +236,8 @@ describe('executeFlow', function () {
|
|
|
230
236
|
}); });
|
|
231
237
|
});
|
|
232
238
|
var validateSaveToCsv = function (jobExecutionInOrder) {
|
|
233
|
-
expect(
|
|
239
|
+
expect(saveToCsvModule.saveToCsv).toHaveBeenCalledTimes(jobExecutionInOrder.length);
|
|
234
240
|
jobExecutionInOrder.forEach(function (expectedCsvData, index) {
|
|
235
|
-
expect(
|
|
241
|
+
expect(saveToCsvModule.saveToCsv).toHaveBeenNthCalledWith(index + 1, expect.anything(), expectedCsvData, Object.values(csvColumns_1.default), 'id');
|
|
236
242
|
});
|
|
237
243
|
};
|
|
@@ -14,7 +14,7 @@ var __generator = (this && this.__generator) || function (thisArg, body) {
|
|
|
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.");
|
|
17
|
-
while (_) try {
|
|
17
|
+
while (g && (g = 0, op[0] && (_ = 0)), _) try {
|
|
18
18
|
if (f = 1, y && (t = op[0] & 2 ? y["return"] : op[0] ? y["throw"] || ((t = y["return"]) && t.call(y), 0) : y.next) && !(t = t.call(y, op[1])).done) return t;
|
|
19
19
|
if (y = 0, t) op = [op[0] & 2, t.value];
|
|
20
20
|
switch (op[0]) {
|
|
@@ -1,7 +1,11 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
3
|
if (k2 === undefined) k2 = k;
|
|
4
|
-
Object.
|
|
4
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
+
}
|
|
8
|
+
Object.defineProperty(o, k2, desc);
|
|
5
9
|
}) : (function(o, m, k, k2) {
|
|
6
10
|
if (k2 === undefined) k2 = k;
|
|
7
11
|
o[k2] = m[k];
|
|
@@ -33,7 +37,7 @@ var __generator = (this && this.__generator) || function (thisArg, body) {
|
|
|
33
37
|
function verb(n) { return function (v) { return step([n, v]); }; }
|
|
34
38
|
function step(op) {
|
|
35
39
|
if (f) throw new TypeError("Generator is already executing.");
|
|
36
|
-
while (_) try {
|
|
40
|
+
while (g && (g = 0, op[0] && (_ = 0)), _) try {
|
|
37
41
|
if (f = 1, y && (t = op[0] & 2 ? y["return"] : op[0] ? y["throw"] || ((t = y["return"]) && t.call(y), 0) : y.next) && !(t = t.call(y, op[1])).done) return t;
|
|
38
42
|
if (y = 0, t) op = [op[0] & 2, t.value];
|
|
39
43
|
switch (op[0]) {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { Target } from '@sasjs/utils';
|
|
2
2
|
import { FlowWave } from '../../../types';
|
|
3
|
-
export declare const validateParams: (target: Target, source: string, csvFile?: string
|
|
3
|
+
export declare const validateParams: (target: Target, source: string, csvFile?: string, logFolder?: string) => Promise<{
|
|
4
4
|
terminate: boolean;
|
|
5
5
|
message?: string | undefined;
|
|
6
6
|
flows?: {
|
|
@@ -14,7 +14,7 @@ var __generator = (this && this.__generator) || function (thisArg, body) {
|
|
|
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.");
|
|
17
|
-
while (_) try {
|
|
17
|
+
while (g && (g = 0, op[0] && (_ = 0)), _) try {
|
|
18
18
|
if (f = 1, y && (t = op[0] & 2 ? y["return"] : op[0] ? y["throw"] || ((t = y["return"]) && t.call(y), 0) : y.next) && !(t = t.call(y, op[1])).done) return t;
|
|
19
19
|
if (y = 0, t) op = [op[0] & 2, t.value];
|
|
20
20
|
switch (op[0]) {
|
|
@@ -1,7 +1,11 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
3
|
if (k2 === undefined) k2 = k;
|
|
4
|
-
Object.
|
|
4
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
+
}
|
|
8
|
+
Object.defineProperty(o, k2, desc);
|
|
5
9
|
}) : (function(o, m, k, k2) {
|
|
6
10
|
if (k2 === undefined) k2 = k;
|
|
7
11
|
o[k2] = m[k];
|
|
@@ -33,7 +37,7 @@ var __generator = (this && this.__generator) || function (thisArg, body) {
|
|
|
33
37
|
function verb(n) { return function (v) { return step([n, v]); }; }
|
|
34
38
|
function step(op) {
|
|
35
39
|
if (f) throw new TypeError("Generator is already executing.");
|
|
36
|
-
while (_) try {
|
|
40
|
+
while (g && (g = 0, op[0] && (_ = 0)), _) try {
|
|
37
41
|
if (f = 1, y && (t = op[0] & 2 ? y["return"] : op[0] ? y["throw"] || ((t = y["return"]) && t.call(y), 0) : y.next) && !(t = t.call(y, op[1])).done) return t;
|
|
38
42
|
if (y = 0, t) op = [op[0] & 2, t.value];
|
|
39
43
|
switch (op[0]) {
|
|
@@ -71,7 +75,8 @@ var __read = (this && this.__read) || function (o, n) {
|
|
|
71
75
|
return ar;
|
|
72
76
|
};
|
|
73
77
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
74
|
-
var
|
|
78
|
+
var validateParamsModule = __importStar(require("../internal/validateParams"));
|
|
79
|
+
var executeFlowModule = __importStar(require("../internal/executeFlow"));
|
|
75
80
|
var execute_1 = require("../execute");
|
|
76
81
|
var flow_1 = require("../../../types/flow");
|
|
77
82
|
describe('sasjs flow', function () {
|
|
@@ -196,15 +201,16 @@ describe('sasjs flow', function () {
|
|
|
196
201
|
});
|
|
197
202
|
var setupMocks = function (flows) {
|
|
198
203
|
jest.restoreAllMocks();
|
|
199
|
-
jest.mock('../internal/');
|
|
200
|
-
jest.
|
|
204
|
+
jest.mock('../internal/validateParams');
|
|
205
|
+
jest.mock('../internal/executeFlow');
|
|
206
|
+
jest.spyOn(validateParamsModule, 'validateParams').mockImplementation(function () {
|
|
201
207
|
return Promise.resolve({
|
|
202
208
|
terminate: false,
|
|
203
209
|
flows: flows,
|
|
204
210
|
authConfig: {}
|
|
205
211
|
});
|
|
206
212
|
});
|
|
207
|
-
jest.spyOn(
|
|
213
|
+
jest.spyOn(executeFlowModule, 'executeFlow').mockImplementation(function (flow) { return __awaiter(void 0, void 0, void 0, function () {
|
|
208
214
|
return __generator(this, function (_a) {
|
|
209
215
|
flow.execution = 'started';
|
|
210
216
|
flow.jobs.forEach(function (job) { return (job.status = flow_1.FlowWaveJobStatus.Success); });
|
|
@@ -216,9 +222,9 @@ var setupMocks = function (flows) {
|
|
|
216
222
|
}); });
|
|
217
223
|
};
|
|
218
224
|
var validateFlowExecution = function (flowsExecutionOrder) {
|
|
219
|
-
expect(
|
|
225
|
+
expect(executeFlowModule.executeFlow).toHaveBeenCalledTimes(flowsExecutionOrder.length);
|
|
220
226
|
flowsExecutionOrder.forEach(function (flow, index) {
|
|
221
|
-
expect(
|
|
227
|
+
expect(executeFlowModule.executeFlow).toHaveBeenNthCalledWith(index + 1, flow, undefined, expect.anything(), undefined, undefined, undefined);
|
|
222
228
|
});
|
|
223
229
|
};
|
|
224
230
|
var executeFlowWrapper = function () { return __awaiter(void 0, void 0, void 0, function () {
|
|
@@ -14,7 +14,7 @@ var __generator = (this && this.__generator) || function (thisArg, body) {
|
|
|
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.");
|
|
17
|
-
while (_) try {
|
|
17
|
+
while (g && (g = 0, op[0] && (_ = 0)), _) try {
|
|
18
18
|
if (f = 1, y && (t = op[0] & 2 ? y["return"] : op[0] ? y["throw"] || ((t = y["return"]) && t.call(y), 0) : y.next) && !(t = t.call(y, op[1])).done) return t;
|
|
19
19
|
if (y = 0, t) op = [op[0] & 2, t.value];
|
|
20
20
|
switch (op[0]) {
|
|
@@ -1,7 +1,11 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
3
|
if (k2 === undefined) k2 = k;
|
|
4
|
-
Object.
|
|
4
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
+
}
|
|
8
|
+
Object.defineProperty(o, k2, desc);
|
|
5
9
|
}) : (function(o, m, k, k2) {
|
|
6
10
|
if (k2 === undefined) k2 = k;
|
|
7
11
|
o[k2] = m[k];
|
|
@@ -33,7 +37,7 @@ var __generator = (this && this.__generator) || function (thisArg, body) {
|
|
|
33
37
|
function verb(n) { return function (v) { return step([n, v]); }; }
|
|
34
38
|
function step(op) {
|
|
35
39
|
if (f) throw new TypeError("Generator is already executing.");
|
|
36
|
-
while (_) try {
|
|
40
|
+
while (g && (g = 0, op[0] && (_ = 0)), _) try {
|
|
37
41
|
if (f = 1, y && (t = op[0] & 2 ? y["return"] : op[0] ? y["throw"] || ((t = y["return"]) && t.call(y), 0) : y.next) && !(t = t.call(y, op[1])).done) return t;
|
|
38
42
|
if (y = 0, t) op = [op[0] & 2, t.value];
|
|
39
43
|
switch (op[0]) {
|
|
@@ -14,7 +14,7 @@ var __generator = (this && this.__generator) || function (thisArg, body) {
|
|
|
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.");
|
|
17
|
-
while (_) try {
|
|
17
|
+
while (g && (g = 0, op[0] && (_ = 0)), _) try {
|
|
18
18
|
if (f = 1, y && (t = op[0] & 2 ? y["return"] : op[0] ? y["throw"] || ((t = y["return"]) && t.call(y), 0) : y.next) && !(t = t.call(y, op[1])).done) return t;
|
|
19
19
|
if (y = 0, t) op = [op[0] & 2, t.value];
|
|
20
20
|
switch (op[0]) {
|
|
@@ -14,7 +14,7 @@ var __generator = (this && this.__generator) || function (thisArg, body) {
|
|
|
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.");
|
|
17
|
-
while (_) try {
|
|
17
|
+
while (g && (g = 0, op[0] && (_ = 0)), _) try {
|
|
18
18
|
if (f = 1, y && (t = op[0] & 2 ? y["return"] : op[0] ? y["throw"] || ((t = y["return"]) && t.call(y), 0) : y.next) && !(t = t.call(y, op[1])).done) return t;
|
|
19
19
|
if (y = 0, t) op = [op[0] & 2, t.value];
|
|
20
20
|
switch (op[0]) {
|
|
@@ -29,7 +29,7 @@ var __generator = (this && this.__generator) || function (thisArg, body) {
|
|
|
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.");
|
|
32
|
-
while (_) try {
|
|
32
|
+
while (g && (g = 0, op[0] && (_ = 0)), _) try {
|
|
33
33
|
if (f = 1, y && (t = op[0] & 2 ? y["return"] : op[0] ? y["throw"] || ((t = y["return"]) && t.call(y), 0) : y.next) && !(t = t.call(y, op[1])).done) return t;
|
|
34
34
|
if (y = 0, t) op = [op[0] & 2, t.value];
|
|
35
35
|
switch (op[0]) {
|
|
@@ -104,18 +104,16 @@ var createParseOptions = {
|
|
|
104
104
|
var FolderCommand = /** @class */ (function (_super) {
|
|
105
105
|
__extends(FolderCommand, _super);
|
|
106
106
|
function FolderCommand(args) {
|
|
107
|
-
var _this = this;
|
|
108
107
|
var subCommand = args[3];
|
|
109
108
|
var parseOptions = subCommand === FolderSubCommand.Create ? createParseOptions : {};
|
|
110
109
|
var syntax = subCommand === FolderSubCommand.Move ? moveSyntax : generalSyntax;
|
|
111
|
-
|
|
110
|
+
return _super.call(this, args, {
|
|
112
111
|
parseOptions: parseOptions,
|
|
113
112
|
usage: usage,
|
|
114
113
|
description: description,
|
|
115
114
|
examples: examples,
|
|
116
115
|
syntax: syntax
|
|
117
116
|
}) || this;
|
|
118
|
-
return _this;
|
|
119
117
|
}
|
|
120
118
|
FolderCommand.prototype.execute = function () {
|
|
121
119
|
var _a;
|
|
@@ -14,7 +14,7 @@ var __generator = (this && this.__generator) || function (thisArg, body) {
|
|
|
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.");
|
|
17
|
-
while (_) try {
|
|
17
|
+
while (g && (g = 0, op[0] && (_ = 0)), _) try {
|
|
18
18
|
if (f = 1, y && (t = op[0] & 2 ? y["return"] : op[0] ? y["throw"] || ((t = y["return"]) && t.call(y), 0) : y.next) && !(t = t.call(y, op[1])).done) return t;
|
|
19
19
|
if (y = 0, t) op = [op[0] & 2, t.value];
|
|
20
20
|
switch (op[0]) {
|
|
@@ -14,7 +14,7 @@ var __generator = (this && this.__generator) || function (thisArg, body) {
|
|
|
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.");
|
|
17
|
-
while (_) try {
|
|
17
|
+
while (g && (g = 0, op[0] && (_ = 0)), _) try {
|
|
18
18
|
if (f = 1, y && (t = op[0] & 2 ? y["return"] : op[0] ? y["throw"] || ((t = y["return"]) && t.call(y), 0) : y.next) && !(t = t.call(y, op[1])).done) return t;
|
|
19
19
|
if (y = 0, t) op = [op[0] & 2, t.value];
|
|
20
20
|
switch (op[0]) {
|
|
@@ -14,7 +14,7 @@ var __generator = (this && this.__generator) || function (thisArg, body) {
|
|
|
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.");
|
|
17
|
-
while (_) try {
|
|
17
|
+
while (g && (g = 0, op[0] && (_ = 0)), _) try {
|
|
18
18
|
if (f = 1, y && (t = op[0] & 2 ? y["return"] : op[0] ? y["throw"] || ((t = y["return"]) && t.call(y), 0) : y.next) && !(t = t.call(y, op[1])).done) return t;
|
|
19
19
|
if (y = 0, t) op = [op[0] & 2, t.value];
|
|
20
20
|
switch (op[0]) {
|