@somewhatintelligent/guestlist 0.0.3 → 0.0.4
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/package.json +1 -1
- package/src/entrypoint.ts +0 -2
- package/src/index.ts +1 -1
- package/src/version.gen.ts +2 -2
package/package.json
CHANGED
package/src/entrypoint.ts
CHANGED
|
@@ -13,7 +13,6 @@ import { executionContext } from "@somewhatintelligent/kit/execution-context";
|
|
|
13
13
|
import type { PlatformSession } from "@somewhatintelligent/auth";
|
|
14
14
|
|
|
15
15
|
import type { GuestlistEnv } from "./env";
|
|
16
|
-
import type { GuestlistConfig } from "./config";
|
|
17
16
|
import type { GuestlistInstances } from "./instances";
|
|
18
17
|
import { resolveUser, resolveAdmin, unauthorized, isErr, type Authed, type RpcErr } from "./rpc";
|
|
19
18
|
import * as adminOps from "./ops/admin";
|
|
@@ -24,7 +23,6 @@ import * as avatarOps from "./ops/avatar";
|
|
|
24
23
|
type WithCookie<T = Record<never, never>> = T & { cookie: string };
|
|
25
24
|
|
|
26
25
|
export function buildGuestlistEntrypoint<TEnv extends GuestlistEnv>(
|
|
27
|
-
config: GuestlistConfig<TEnv>,
|
|
28
26
|
instances: (env: TEnv) => GuestlistInstances,
|
|
29
27
|
fetchHandler: ExportedHandlerFetchHandler<TEnv>,
|
|
30
28
|
) {
|
package/src/index.ts
CHANGED
|
@@ -35,7 +35,7 @@ export function createGuestlist<TEnv extends GuestlistEnv = GuestlistEnv>(
|
|
|
35
35
|
const fetch = buildFetchHandler(config, instances);
|
|
36
36
|
return {
|
|
37
37
|
fetch,
|
|
38
|
-
Guestlist: buildGuestlistEntrypoint(
|
|
38
|
+
Guestlist: buildGuestlistEntrypoint(instances, fetch),
|
|
39
39
|
};
|
|
40
40
|
}
|
|
41
41
|
|
package/src/version.gen.ts
CHANGED
|
@@ -2,6 +2,6 @@
|
|
|
2
2
|
// values are dev placeholders, identical to the runtime fallbacks.
|
|
3
3
|
export const PKG = {
|
|
4
4
|
name: "@somewhatintelligent/guestlist",
|
|
5
|
-
version: "0.0.
|
|
6
|
-
commit: "
|
|
5
|
+
version: "0.0.4",
|
|
6
|
+
commit: "1347a5d7102ad8fb1702c414f117cff36fd08f6d",
|
|
7
7
|
} as const;
|