refactor: keep pure logic importable in tests on any OS
- netinfo_helper imports the Linux-only fcntl inside ipv4_of(), so detect() can be unit-tested on Windows/macOS - SUPPORTED_API_VERSIONS moves to src/native/apiVersion.js (no Vite-only imports), so rediscovery.js runs under plain Node Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
@@ -13,8 +13,9 @@
|
||||
import { deliveryMode, saveVenue } from '../config/server'
|
||||
import { syncTrustedKeys, tlsBaseUrl } from './tls'
|
||||
|
||||
// api_version values (from /api/system/identity) this build can talk to.
|
||||
export const SUPPORTED_API_VERSIONS = [1]
|
||||
import { SUPPORTED_API_VERSIONS } from './apiVersion'
|
||||
|
||||
export { SUPPORTED_API_VERSIONS }
|
||||
|
||||
const PROBE_TIMEOUT_MS = 5000
|
||||
|
||||
|
||||
Reference in New Issue
Block a user