@pellux/goodvibes-sdk 0.18.34 → 0.18.35

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.
@@ -1 +1 @@
1
- {"version":3,"file":"host-resolver.d.ts","sourceRoot":"","sources":["../../../../src/_internal/platform/daemon/host-resolver.ts"],"names":[],"mappings":"AAAA,MAAM,WAAW,mBAAmB;IAClC,QAAQ,CAAC,IAAI,EAAE,MAAM,CAAC;IACtB,QAAQ,CAAC,IAAI,EAAE,MAAM,CAAC;CACvB;AAQD,wBAAgB,kBAAkB,CAChC,QAAQ,EAAE,OAAO,GAAG,SAAS,GAAG,QAAQ,EACxC,UAAU,EAAE,MAAM,EAClB,UAAU,EAAE,MAAM,EAClB,UAAU,EAAE,cAAc,GAAG,cAAc,GAAG,KAAK,GAClD,mBAAmB,CASrB"}
1
+ {"version":3,"file":"host-resolver.d.ts","sourceRoot":"","sources":["../../../../src/_internal/platform/daemon/host-resolver.ts"],"names":[],"mappings":"AAAA,MAAM,WAAW,mBAAmB;IAClC,QAAQ,CAAC,IAAI,EAAE,MAAM,CAAC;IACtB,QAAQ,CAAC,IAAI,EAAE,MAAM,CAAC;CACvB;AAQD,wBAAgB,kBAAkB,CAChC,QAAQ,EAAE,OAAO,GAAG,SAAS,GAAG,QAAQ,EACxC,UAAU,EAAE,MAAM,EAClB,UAAU,EAAE,MAAM,EAClB,UAAU,EAAE,cAAc,GAAG,cAAc,GAAG,KAAK,GAClD,mBAAmB,CAcrB"}
@@ -4,12 +4,17 @@ const DEFAULT_PORTS = {
4
4
  web: 3423,
5
5
  };
6
6
  export function resolveHostBinding(hostMode, customHost, customPort, serverType) {
7
+ // hostMode decides the bind address. Port is always caller-controlled — a
8
+ // configured customPort takes precedence, and only falls back to the
9
+ // server-type default when unset/zero. Reverting this rule would force every
10
+ // localhost-bound test/dev setup into 'custom' mode.
11
+ const port = customPort || DEFAULT_PORTS[serverType];
7
12
  switch (hostMode) {
8
13
  case 'local':
9
- return { host: '127.0.0.1', port: DEFAULT_PORTS[serverType] };
14
+ return { host: '127.0.0.1', port };
10
15
  case 'network':
11
- return { host: '0.0.0.0', port: DEFAULT_PORTS[serverType] };
16
+ return { host: '0.0.0.0', port };
12
17
  case 'custom':
13
- return { host: customHost || '127.0.0.1', port: customPort || DEFAULT_PORTS[serverType] };
18
+ return { host: customHost || '127.0.0.1', port };
14
19
  }
15
20
  }
@@ -1,6 +1,6 @@
1
1
  import { readFileSync } from 'node:fs';
2
2
  import { join } from 'node:path';
3
- let version = '0.18.34';
3
+ let version = '0.18.35';
4
4
  try {
5
5
  const pkg = JSON.parse(readFileSync(join(import.meta.dir, '..', '..', 'package.json'), 'utf-8'));
6
6
  version = pkg.version ?? version;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@pellux/goodvibes-sdk",
3
- "version": "0.18.34",
3
+ "version": "0.18.35",
4
4
  "repository": {
5
5
  "type": "git",
6
6
  "url": "git+https://github.com/mgd34msu/goodvibes-sdk.git"