@zohodesk/react-cli 0.0.1-beta.178 → 0.0.1-beta.179

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/README.md CHANGED
@@ -44,8 +44,24 @@ Now to run app
44
44
 
45
45
  # Change Logs
46
46
 
47
+ # 0.0.1-beta.179 (11-10-2023)
47
48
 
48
- # 0.0.1-beta.178
49
+ **Feature**
50
+
51
+ - if i set the value of --app:domain to 'kubernets', then my application will generate a URL that only includes --app:host, ignores the --app:port and --app:domain.
52
+
53
+ **For example**
54
+ - our default url template is :
55
+
56
+ `https://{host}.{domain}.zohocorpin.com:{port}`
57
+
58
+ - if we set --app:domain='kubernetes' , then out url changed like this:
59
+
60
+ `https://{host}`
61
+
62
+
63
+
64
+ # 0.0.1-beta.178b
49
65
 
50
66
  **Changes:**
51
67
 
@@ -5,7 +5,8 @@ Object.defineProperty(exports, "__esModule", {
5
5
  });
6
6
  exports.default = void 0;
7
7
 
8
- let getServerURL = (serverInfo, protocol) => {
8
+ const getServerURL = (serverInfo, protocol) => {
9
+ // eslint-disable-next-line prefer-const
9
10
  let {
10
11
  host,
11
12
  domain,
@@ -13,6 +14,10 @@ let getServerURL = (serverInfo, protocol) => {
13
14
  } = serverInfo;
14
15
 
15
16
  if (protocol) {
17
+ if (domain === 'kubernetes') {
18
+ return `${protocol ? `${protocol}:` : ''}//${host}`;
19
+ }
20
+
16
21
  if (protocol === 'ht' + 'tp') {
17
22
  port = Number(port) + 1;
18
23
 
@@ -20,12 +25,16 @@ let getServerURL = (serverInfo, protocol) => {
20
25
  return `${protocol ? `${protocol}:` : ''}//${host}.${domain}.zohocorpin.com:${Number(port) + 1}`;
21
26
  }
22
27
 
23
- return `${protocol ? `${protocol}:` : ''}//${host}:${port}`;
28
+ return `${protocol ? `${protocol}:` : ''}//${host}:${Number(port) + 1}`;
24
29
  }
25
30
  }
26
31
 
32
+ if (domain === 'kubernetes') {
33
+ return `${protocol ? `${protocol}:` : ''}//${host}`;
34
+ }
35
+
27
36
  if (domain) {
28
- return `${protocol ? `${protocol}:` : ''}//${host}.${domain}.zohocorpin.com:${port}`;
37
+ return `${protocol ? `${protocol}:` : ''}//${host}.${domain}.zohocorpin.com: ${port}`;
29
38
  }
30
39
 
31
40
  return `${protocol ? `${protocol}:` : ''}//${host}:${port}`;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@zohodesk/react-cli",
3
- "version": "0.0.1-beta.178",
3
+ "version": "0.0.1-beta.179",
4
4
  "description": "A CLI tool for build modern web application and libraries",
5
5
  "scripts": {
6
6
  "init": "node ./lib/utils/init.js",