navi-hey 1.3.1 → 1.3.2
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.
|
@@ -74,11 +74,13 @@ class ConfigParser {
|
|
|
74
74
|
}
|
|
75
75
|
|
|
76
76
|
/**
|
|
77
|
-
* Creates a WebConfig from the parsed YAML web section, or null if absent.
|
|
77
|
+
* Creates a WebConfig from the parsed YAML web section, or null if absent or port is falsy.
|
|
78
78
|
* @returns {WebConfig|null} The web configuration instance or null.
|
|
79
79
|
*/
|
|
80
80
|
#webConfig() {
|
|
81
81
|
if (!this.config.web) return null;
|
|
82
|
+
const { port } = this.config.web;
|
|
83
|
+
if (!port || port === 'false') return null;
|
|
82
84
|
return new WebConfig(this.config.web);
|
|
83
85
|
}
|
|
84
86
|
|