toiljs 0.0.120 → 0.0.121

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.
@@ -79,7 +79,7 @@ function serverEntryFiles(root) {
79
79
  return [...result].sort();
80
80
  }
81
81
  function authEntryFiles(root, appHasUser) {
82
- const names = [...(appHasUser ? ['AuthController.ts'] : ['AuthUser.ts', 'AuthController.ts']), 'SessionRevocations.ts', 'SessionEpochs.ts', 'FactorSettings.ts'];
82
+ const names = [...(appHasUser ? ['AuthController.ts'] : ['AuthUser.ts', 'AuthController.ts']), 'AuthStateDb.ts', 'SessionEpochs.ts', 'FactorSettings.ts'];
83
83
  const primary = names.map((n) => path.posix.join('node_modules/toiljs/server/auth', n));
84
84
  if (primary.every((rel) => fs.existsSync(path.join(root, rel))))
85
85
  return primary;
@@ -568,7 +568,9 @@ async function collectDevCss(server) {
568
568
  return css;
569
569
  }
570
570
  function displayHost(host) {
571
- return host === '0.0.0.0' || host === '::' || host === '' ? 'localhost' : host;
571
+ return host === '127.0.0.1' || host === '0.0.0.0' || host === '::' || host === ''
572
+ ? 'localhost'
573
+ : host;
572
574
  }
573
575
  function isExposedHost(host) {
574
576
  return host !== '127.0.0.1' && host !== 'localhost' && host !== '::1';