@pronto-tools-and-more/pronto 5.9.0 → 6.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@pronto-tools-and-more/pronto",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "6.0.0",
|
|
4
4
|
"description": "",
|
|
5
5
|
"main": "src/main.js",
|
|
6
6
|
"type": "module",
|
|
@@ -17,15 +17,15 @@
|
|
|
17
17
|
"@lvce-editor/ipc": "^10.2.1",
|
|
18
18
|
"@lvce-editor/json-rpc": "^3.0.0",
|
|
19
19
|
"@lvce-editor/verror": "^1.4.0",
|
|
20
|
-
"@pronto-tools-and-more/file-watcher": "
|
|
21
|
-
"@pronto-tools-and-more/files": "
|
|
22
|
-
"@pronto-tools-and-more/network-process": "
|
|
23
|
-
"@pronto-tools-and-more/sass-compiler": "
|
|
24
|
-
"@pronto-tools-and-more/components-renderer": "
|
|
25
|
-
"@pronto-tools-and-more/components": "
|
|
26
|
-
"@pronto-tools-and-more/schema-process": "
|
|
20
|
+
"@pronto-tools-and-more/file-watcher": "6.0.0",
|
|
21
|
+
"@pronto-tools-and-more/files": "6.0.0",
|
|
22
|
+
"@pronto-tools-and-more/network-process": "6.0.0",
|
|
23
|
+
"@pronto-tools-and-more/sass-compiler": "6.0.0",
|
|
24
|
+
"@pronto-tools-and-more/components-renderer": "6.0.0",
|
|
25
|
+
"@pronto-tools-and-more/components": "6.0.0",
|
|
26
|
+
"@pronto-tools-and-more/schema-process": "6.0.0",
|
|
27
27
|
"execa": "^9.3.1",
|
|
28
|
-
"express": "^4.
|
|
28
|
+
"express": "^4.20.0"
|
|
29
29
|
},
|
|
30
30
|
"devDependencies": {
|
|
31
31
|
"@types/express": "^4.17.21",
|
|
@@ -9,6 +9,7 @@ import * as Split from "../Split/Split.js";
|
|
|
9
9
|
import * as Upgrade from "../Upgrade/Upgrade.js";
|
|
10
10
|
import * as UploadZip from "../UploadZip/UploadZip.js";
|
|
11
11
|
import * as ValidateAllSchemas from "../ValidateAllSchemas/ValidateAllSchemas.js";
|
|
12
|
+
import * as ListExperienceVersionsAndPrint from "../ListExperienceVersionsAndPrint/ListExperienceVersionsAndPrint.js";
|
|
12
13
|
|
|
13
14
|
export const commandMap = {
|
|
14
15
|
"Build.build": Build.build,
|
|
@@ -20,6 +21,8 @@ export const commandMap = {
|
|
|
20
21
|
"Server.start": Server.start,
|
|
21
22
|
"Split.split": Split.split,
|
|
22
23
|
"Upgrade.upgrade": Upgrade.upgrade,
|
|
24
|
+
"ListExperienceVersionsAndPrint.listExperienceVersionsAndPrint":
|
|
25
|
+
ListExperienceVersionsAndPrint.listExperienceVersionsAndPrint,
|
|
23
26
|
"UploadZip.uploadZip": UploadZip.uploadZip,
|
|
24
27
|
"ValidateAllSchema.validateAllSchemas": ValidateAllSchemas.validateAllSchemas,
|
|
25
28
|
};
|
|
@@ -14,6 +14,9 @@ export const getCommandFromCliArgs = (argv) => {
|
|
|
14
14
|
if (argv.includes("upgrade")) {
|
|
15
15
|
return "Upgrade.upgrade";
|
|
16
16
|
}
|
|
17
|
+
if (argv.includes("list-experience-versions")) {
|
|
18
|
+
return "ListExperienceVersionsAndPrint.listExperienceVersionsAndPrint";
|
|
19
|
+
}
|
|
17
20
|
if (argv.includes("help")) {
|
|
18
21
|
return "Help.help";
|
|
19
22
|
}
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
import { VError } from "@lvce-editor/verror";
|
|
2
|
+
import * as Config from "../Config/Config.js";
|
|
3
|
+
import * as GetSessionId from "../GetSessionId/GetSessionId.js";
|
|
4
|
+
import * as ListExperienceVersions from "../ListExperienceVersions/ListExperienceVersions.js";
|
|
5
|
+
import * as NetworkProcess from "../NetworkProcess/NetworkProcess.js";
|
|
6
|
+
import * as PullWorkingCopy from "../PullWorkingCopy/PullWorkingCopy.js";
|
|
7
|
+
|
|
8
|
+
export const listExperienceVersionsAndPrint = async () => {
|
|
9
|
+
try {
|
|
10
|
+
const {
|
|
11
|
+
userEmail,
|
|
12
|
+
userPassword,
|
|
13
|
+
loginUrl,
|
|
14
|
+
appId,
|
|
15
|
+
listVersionsUrl,
|
|
16
|
+
pullWorkingCopyUrl,
|
|
17
|
+
} = Config;
|
|
18
|
+
const sessionId = await GetSessionId.getSessionId({
|
|
19
|
+
loginUrl,
|
|
20
|
+
userEmail,
|
|
21
|
+
userPassword,
|
|
22
|
+
});
|
|
23
|
+
await PullWorkingCopy.pullWorkingCopy({
|
|
24
|
+
appId,
|
|
25
|
+
sessionId,
|
|
26
|
+
pullWorkingCopyUrl,
|
|
27
|
+
});
|
|
28
|
+
const versions = await ListExperienceVersions.listExperienceVersions({
|
|
29
|
+
listVersionsUrl,
|
|
30
|
+
sessionId,
|
|
31
|
+
appId,
|
|
32
|
+
});
|
|
33
|
+
console.info(versions);
|
|
34
|
+
} catch (error) {
|
|
35
|
+
throw new VError(error, `Failed to list experience versions`);
|
|
36
|
+
} finally {
|
|
37
|
+
NetworkProcess.dispose();
|
|
38
|
+
}
|
|
39
|
+
};
|