cynx-lib 1.3.94 → 1.3.95

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": "cynx-lib",
3
- "version": "1.3.94",
3
+ "version": "1.3.95",
4
4
  "type": "module",
5
5
  "main": "./index.cjs",
6
6
  "module": "./index.js",
@@ -111,10 +111,10 @@ function printServerBanner({
111
111
  commit,
112
112
  shouldSyncDb = false,
113
113
  isSynced = false,
114
- networkIp = null
114
+ networkIp = void 0
115
115
  }) {
116
116
  const commitTag = commit ? " \x1B[32m" + commit + "\x1B[0m" : "";
117
- const resolvedIp = networkIp !== void 0 ? networkIp : getNetworkIp();
117
+ const resolvedIp = networkIp !== void 0 && networkIp !== null ? networkIp : getNetworkIp();
118
118
  console.log("\n \x1B[32m\x1B[1mSERVER\x1B[0m" + commitTag + " \x1B[90mready in " + elapsed + " ms\x1B[0m\n");
119
119
  console.log(" \x1B[32m\u279C\x1B[0m \x1B[1mLocal:\x1B[0m \x1B[36mhttp://localhost:" + port + "/\x1B[0m");
120
120
  if (resolvedIp) {
@@ -125,10 +125,10 @@ export function printServerBanner({
125
125
  commit,
126
126
  shouldSyncDb = false,
127
127
  isSynced = false,
128
- networkIp = null,
128
+ networkIp = undefined,
129
129
  }) {
130
130
  const commitTag = commit ? ' \x1b[32m' + commit + '\x1b[0m' : '';
131
- const resolvedIp = networkIp !== undefined ? networkIp : getNetworkIp();
131
+ const resolvedIp = (networkIp !== undefined && networkIp !== null) ? networkIp : getNetworkIp();
132
132
 
133
133
  console.log('\n \x1b[32m\x1b[1mSERVER\x1b[0m' + commitTag + ' \x1b[90mready in ' + elapsed + ' ms\x1b[0m\n');
134
134
  console.log(' \x1b[32m➜\x1b[0m \x1b[1mLocal:\x1b[0m \x1b[36mhttp://localhost:' + port + '/\x1b[0m');