@pronto-tools-and-more/pronto 14.0.0 → 14.2.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": "14.0.0",
3
+ "version": "14.2.0",
4
4
  "description": "",
5
5
  "main": "src/main.js",
6
6
  "type": "module",
@@ -17,17 +17,17 @@
17
17
  "@lvce-editor/ipc": "^13.7.0",
18
18
  "@lvce-editor/json-rpc": "^5.4.0",
19
19
  "@lvce-editor/verror": "^1.6.0",
20
- "@pronto-tools-and-more/api": "14.0.0",
21
- "@pronto-tools-and-more/components-renderer": "14.0.0",
22
- "@pronto-tools-and-more/components": "14.0.0",
23
- "@pronto-tools-and-more/custom-js-functions": "14.0.0",
24
- "@pronto-tools-and-more/diff-process": "14.0.0",
25
- "@pronto-tools-and-more/file-watcher": "14.0.0",
26
- "@pronto-tools-and-more/files": "14.0.0",
27
- "@pronto-tools-and-more/network-process": "14.0.0",
28
- "@pronto-tools-and-more/sass-compiler": "14.0.0",
29
- "@pronto-tools-and-more/schema-process": "14.0.0",
30
- "@pronto-tools-and-more/type-checker": "14.0.0",
20
+ "@pronto-tools-and-more/api": "14.2.0",
21
+ "@pronto-tools-and-more/components-renderer": "14.2.0",
22
+ "@pronto-tools-and-more/components": "14.2.0",
23
+ "@pronto-tools-and-more/custom-js-functions": "14.2.0",
24
+ "@pronto-tools-and-more/diff-process": "14.2.0",
25
+ "@pronto-tools-and-more/file-watcher": "14.2.0",
26
+ "@pronto-tools-and-more/files": "14.2.0",
27
+ "@pronto-tools-and-more/network-process": "14.2.0",
28
+ "@pronto-tools-and-more/sass-compiler": "14.2.0",
29
+ "@pronto-tools-and-more/schema-process": "14.2.0",
30
+ "@pronto-tools-and-more/type-checker": "14.2.0",
31
31
  "execa": "^9.5.2",
32
32
  "express": "^4.21.2"
33
33
  },
@@ -3,9 +3,16 @@ import * as CreateServer from "../CreateServer/CreateServer.js";
3
3
  import * as ErrorHandling from "../ErrorHandling/ErrorHandling.js";
4
4
  import * as Promises from "../Promises/Promises.js";
5
5
 
6
+ const getPort = () => {
7
+ if (process.env.PORT) {
8
+ return process.env.PORT;
9
+ }
10
+ return 3000;
11
+ };
12
+
6
13
  export const start = async (
7
14
  root = process.cwd(),
8
- port = 3000,
15
+ port = getPort(),
9
16
  errorColor = Config.errorColor
10
17
  ) => {
11
18
  if (process.env.NODE_ENV !== "test") {
@@ -1 +1 @@
1
- export const version = '14.0.0'
1
+ export const version = '14.2.0'