@pronto-tools-and-more/pronto 6.0.0 → 6.1.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": "6.0.0",
3
+ "version": "6.1.0",
4
4
  "description": "",
5
5
  "main": "src/main.js",
6
6
  "type": "module",
@@ -17,13 +17,13 @@
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": "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",
20
+ "@pronto-tools-and-more/file-watcher": "6.1.0",
21
+ "@pronto-tools-and-more/files": "6.1.0",
22
+ "@pronto-tools-and-more/network-process": "6.1.0",
23
+ "@pronto-tools-and-more/sass-compiler": "6.1.0",
24
+ "@pronto-tools-and-more/components-renderer": "6.1.0",
25
+ "@pronto-tools-and-more/components": "6.1.0",
26
+ "@pronto-tools-and-more/schema-process": "6.1.0",
27
27
  "execa": "^9.3.1",
28
28
  "express": "^4.20.0"
29
29
  },
@@ -46,6 +46,7 @@ export const pushCode = async () => {
46
46
  inDir: src,
47
47
  outFile,
48
48
  });
49
+
49
50
  const response = await UploadZip.uploadZip({
50
51
  file: outFile,
51
52
  uploadBaseUrl,
@@ -54,6 +55,8 @@ export const pushCode = async () => {
54
55
  sessionId,
55
56
  uploadTimeout,
56
57
  message,
58
+ maxRetries: 10,
59
+ waitBetweenRetries: 60_000,
57
60
  });
58
61
 
59
62
  console.log({ response });
@@ -1,6 +1,6 @@
1
1
  import * as NetworkProcess from "../NetworkProcess/NetworkProcess.js";
2
2
 
3
- export const uploadZip = ({
3
+ export const uploadZip = async ({
4
4
  file,
5
5
  uploadBaseUrl,
6
6
  preview,
@@ -8,7 +8,14 @@ export const uploadZip = ({
8
8
  sessionId,
9
9
  uploadTimeout,
10
10
  message,
11
+ maxRetries,
12
+ waitBetweenRetries,
11
13
  }) => {
14
+ if (!waitBetweenRetries) {
15
+ waitBetweenRetries = parseInt(
16
+ process.env.PRONTO_WAIT_BETWEEN_RETRIES || "60000"
17
+ );
18
+ }
12
19
  return NetworkProcess.invoke("Network.uploadZip", {
13
20
  file,
14
21
  uploadBaseUrl,
@@ -17,5 +24,7 @@ export const uploadZip = ({
17
24
  sessionId,
18
25
  uploadTimeout,
19
26
  message,
27
+ maxRetries,
28
+ waitBetweenRetries,
20
29
  });
21
30
  };