@hatk/hatk 0.0.1-alpha.27 → 0.0.1-alpha.28
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/dist/main.js +5 -1
- package/package.json +1 -1
package/dist/main.js
CHANGED
|
@@ -18,7 +18,7 @@ import { createAdapter } from "./database/adapter-factory.js";
|
|
|
18
18
|
import { getDialect } from "./database/dialect.js";
|
|
19
19
|
import { setSearchPort } from "./database/fts.js";
|
|
20
20
|
import { initFeeds, listFeeds } from "./feeds.js";
|
|
21
|
-
import { initXrpc, listXrpc, configureRelay } from "./xrpc.js";
|
|
21
|
+
import { initXrpc, listXrpc, configureRelay, callXrpc } from "./xrpc.js";
|
|
22
22
|
import { initOpengraph } from "./opengraph.js";
|
|
23
23
|
import { initLabels, getLabelDefinitions } from "./labels.js";
|
|
24
24
|
import { startIndexer } from "./indexer.js";
|
|
@@ -29,6 +29,7 @@ import { validateLexicons } from '@bigmoves/lexicon';
|
|
|
29
29
|
import { relayHttpUrl } from "./config.js";
|
|
30
30
|
import { runBackfill } from "./backfill.js";
|
|
31
31
|
import { initOAuth } from "./oauth/server.js";
|
|
32
|
+
import { parseSessionCookie, getSessionCookieName } from "./oauth/session.js";
|
|
32
33
|
import { loadOnLoginHook } from "./hooks.js";
|
|
33
34
|
import { initSetup } from "./setup.js";
|
|
34
35
|
import { initServer } from "./server-init.js";
|
|
@@ -166,6 +167,9 @@ const handler = createHandler({
|
|
|
166
167
|
admins: config.admins,
|
|
167
168
|
onResync: runBackfillAndRestart,
|
|
168
169
|
});
|
|
170
|
+
globalThis.__hatk_callXrpc = callXrpc;
|
|
171
|
+
globalThis.__hatk_parseSessionCookie = parseSessionCookie;
|
|
172
|
+
globalThis.__hatk_sessionCookieName = getSessionCookieName();
|
|
169
173
|
// Detect SvelteKit build output and use it as fallback handler
|
|
170
174
|
let fallback = undefined;
|
|
171
175
|
const sveltekitHandler = resolve(configDir, 'build', 'handler.js');
|