@cloud-cli/px 4.1.2 → 4.1.3

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.
@@ -69,10 +69,13 @@ export class ProxyManager {
69
69
  }
70
70
  async updateProxy(options) {
71
71
  readDomain(options);
72
- const host = options.domain;
73
- let proxy = get(host);
72
+ const domain = options.domain;
73
+ let proxy = get(domain);
74
+ if (!domain) {
75
+ throw domainNotSpecifiedError;
76
+ }
74
77
  if (!proxy) {
75
- proxy = { ...emptyProxy, domain: host };
78
+ proxy = { ...emptyProxy, domain };
76
79
  }
77
80
  applyProperties(proxy, options);
78
81
  set(proxy.domain, proxy);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@cloud-cli/px",
3
- "version": "4.1.2",
3
+ "version": "4.1.3",
4
4
  "description": "Reverse Proxy",
5
5
  "main": "./dist/index.js",
6
6
  "type": "module",