toiljs 0.0.119 → 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.
- package/CHANGELOG.md +10 -0
- package/README.md +1 -0
- package/build/cli/.tsbuildinfo +1 -1
- package/build/cli/index.js +1106 -91
- package/build/client/.tsbuildinfo +1 -1
- package/build/client/head/head.js +1 -1
- package/build/client/routing/error-boundary.js +2 -0
- package/build/client/routing/loader.js +2 -2
- package/build/compiler/.tsbuildinfo +1 -1
- package/build/compiler/index.js +4 -2
- package/build/compiler/toil-docs.generated.js +10 -10
- package/build/devserver/.tsbuildinfo +1 -1
- package/build/devserver/daemon/index.js +3 -2
- package/build/devserver/db/database.d.ts +5 -0
- package/build/devserver/db/database.js +107 -23
- package/build/devserver/db/types.d.ts +1 -0
- package/build/devserver/db/types.js +1 -1
- package/build/devserver/email/caps.js +0 -0
- package/build/devserver/http/cache.js +0 -0
- package/build/devserver/runtime/module.js +8 -1
- package/package.json +4 -3
- package/server/auth/AuthController.ts +4 -5
- package/server/auth/AuthReads.ts +15 -0
- package/server/auth/AuthStateDb.ts +51 -0
- package/server/auth/FactorSettings.ts +6 -27
- package/server/auth/SessionEpochs.ts +6 -24
- package/server/globals/auth.ts +30 -4
- package/server/runtime/request.ts +6 -0
- package/server/auth/SessionRevocations.ts +0 -13
package/build/compiler/index.js
CHANGED
|
@@ -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']), '
|
|
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 === '
|
|
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';
|