@supatype/solid 0.3.6 → 0.8.0

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.
@@ -1,4 +1,4 @@
1
1
 
2
- > @supatype/solid@0.3.6 build /home/runner/work/supatype/supatype/packages/solid
2
+ > @supatype/solid@0.8.0 build /home/runner/work/supatype/supatype/packages/solid
3
3
  > tsc --project tsconfig.json
4
4
 
@@ -0,0 +1,16 @@
1
+
2
+ > @supatype/solid@0.8.0 test /home/runner/work/supatype/supatype/packages/solid
3
+ > vitest run
4
+
5
+
6
+  RUN  v4.0.18 /home/runner/work/supatype/supatype/packages/solid
7
+
8
+ ✓ tests/createAuth-oauth.test.ts (3 tests) 53ms
9
+ ✓ tests/createAuth-signup.test.ts (2 tests) 36ms
10
+ ✓ tests/createSubscription-status.test.ts (2 tests) 118ms
11
+
12
+  Test Files  3 passed (3)
13
+  Tests  7 passed (7)
14
+  Start at  21:33:47
15
+  Duration  3.86s (transform 4.40s, setup 0ms, import 5.78s, tests 207ms, environment 1ms)
16
+
@@ -1,4 +1,4 @@
1
1
 
2
- > @supatype/solid@0.3.6 typecheck /home/runner/work/supatype/supatype/packages/solid
3
- > tsc --project tsconfig.json --noEmit
2
+ > @supatype/solid@0.8.0 typecheck /home/runner/work/supatype/supatype/packages/solid
3
+ > tsc --project tests/tsconfig.json --noEmit
4
4
 
package/LICENSE CHANGED
@@ -1,6 +1,6 @@
1
1
  MIT License
2
2
 
3
- Copyright (c) 2026 Supatype
3
+ Copyright (c) 2026 Supatype Ltd
4
4
 
5
5
  Permission is hereby granted, free of charge, to any person obtaining a copy
6
6
  of this software and associated documentation files (the "Software"), to deal
@@ -1 +1 @@
1
- {"version":3,"file":"context.d.ts","sourceRoot":"","sources":["../src/context.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,iBAAiB,EAAE,SAAS,EAAE,WAAW,EAAE,cAAc,EAAE,MAAM,kBAAkB,CAAA;AAEjG,uGAAuG;AACvG,eAAO,MAAM,eAAe,mDAA6B,CAAA;AAEzD,wBAAgB,WAAW,CAAC,SAAS,SAAS,WAAW,GAAG,iBAAiB,KAAK,cAAc,CAAC,SAAS,CAAC,CAM1G"}
1
+ {"version":3,"file":"context.d.ts","sourceRoot":"","sources":["../src/context.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,iBAAiB,EAAE,SAAS,EAAE,WAAW,EAAE,cAAc,EAAE,MAAM,kBAAkB,CAAA;AAGjG,uGAAuG;AACvG,eAAO,MAAM,eAAe,mDAA6B,CAAA;AAEzD,wBAAgB,WAAW,CAAC,SAAS,SAAS,WAAW,GAAG,iBAAiB,KAAK,cAAc,CAAC,SAAS,CAAC,CAM1G"}
package/dist/context.js CHANGED
@@ -1,9 +1,10 @@
1
1
  import { createContext, useContext } from "solid-js";
2
+ import { isClientFor } from "@supatype/client/bindings";
2
3
  /** Typed at `AnyClient`, narrowed on read. See `AnyClient` for why it is neither generic nor `any`. */
3
4
  export const SupatypeContext = createContext();
4
5
  export function useSupatype() {
5
6
  const client = useContext(SupatypeContext);
6
- if (!client) {
7
+ if (!client || !isClientFor(client)) {
7
8
  throw new Error("useSupatype() requires a <SupatypeContext.Provider> ancestor.");
8
9
  }
9
10
  return client;
@@ -1 +1 @@
1
- {"version":3,"file":"context.js","sourceRoot":"","sources":["../src/context.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAE,UAAU,EAAE,MAAM,UAAU,CAAA;AAGpD,uGAAuG;AACvG,MAAM,CAAC,MAAM,eAAe,GAAG,aAAa,EAAa,CAAA;AAEzD,MAAM,UAAU,WAAW;IACzB,MAAM,MAAM,GAAG,UAAU,CAAC,eAAe,CAAC,CAAA;IAC1C,IAAI,CAAC,MAAM,EAAE,CAAC;QACZ,MAAM,IAAI,KAAK,CAAC,+DAA+D,CAAC,CAAA;IAClF,CAAC;IACD,OAAO,MAAmC,CAAA;AAC5C,CAAC"}
1
+ {"version":3,"file":"context.js","sourceRoot":"","sources":["../src/context.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAE,UAAU,EAAE,MAAM,UAAU,CAAA;AAEpD,OAAO,EAAE,WAAW,EAAE,MAAM,2BAA2B,CAAA;AAEvD,uGAAuG;AACvG,MAAM,CAAC,MAAM,eAAe,GAAG,aAAa,EAAa,CAAA;AAEzD,MAAM,UAAU,WAAW;IACzB,MAAM,MAAM,GAAG,UAAU,CAAC,eAAe,CAAC,CAAA;IAC1C,IAAI,CAAC,MAAM,IAAI,CAAC,WAAW,CAAY,MAAM,CAAC,EAAE,CAAC;QAC/C,MAAM,IAAI,KAAK,CAAC,+DAA+D,CAAC,CAAA;IAClF,CAAC;IACD,OAAO,MAAM,CAAA;AACf,CAAC"}
@@ -1,18 +1,26 @@
1
1
  import type { Accessor } from "solid-js";
2
- import type { AugmentedDatabase, AnyDatabase, SupatypeError, User, Session } from "@supatype/client";
2
+ import type { AugmentedDatabase, AnyDatabase, AuthRedirectError, SupatypeError, User, Session } from "@supatype/client";
3
3
  export interface AuthResult {
4
4
  user: Accessor<User | null>;
5
5
  session: Accessor<Session | null>;
6
6
  loading: Accessor<boolean>;
7
+ /** The sign-in the auth server refused and reported in the page's URL, or null. */
8
+ error: Accessor<AuthRedirectError | null>;
7
9
  signIn: (email: string, password: string) => Promise<{
8
10
  error: SupatypeError | null;
9
11
  }>;
12
+ /** A null `data.session` with a user means the project wants the email confirmed first. */
10
13
  signUp: (email: string, password: string) => Promise<{
14
+ data: {
15
+ session: Session | null;
16
+ user: User | null;
17
+ };
11
18
  error: SupatypeError | null;
12
19
  }>;
13
20
  signOut: () => Promise<{
14
21
  error: SupatypeError | null;
15
22
  }>;
23
+ /** Send the browser to the provider; a refusal (provider not enabled) is returned instead. */
16
24
  signInWithOAuth: (provider: string) => Promise<{
17
25
  error: SupatypeError | null;
18
26
  }>;
@@ -1 +1 @@
1
- {"version":3,"file":"createAuth.d.ts","sourceRoot":"","sources":["../src/createAuth.ts"],"names":[],"mappings":"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D1F"}
@@ -1,13 +1,18 @@
1
1
  import { createSignal, onMount, onCleanup } from "solid-js";
2
+ import { startOAuthRedirect } from "@supatype/client/bindings";
2
3
  import { useSupatype } from "./context.js";
3
4
  export function createAuth() {
4
5
  const client = useSupatype();
5
6
  const [user, setUser] = createSignal(null);
6
7
  const [session, setSession] = createSignal(null);
7
8
  const [loading, setLoading] = createSignal(true);
9
+ const [error, setError] = createSignal(null);
8
10
  let unsubscribe = null;
9
11
  onMount(async () => {
10
12
  try {
13
+ // The initial session, once the client has finished any sign-in the page's URL carries
14
+ const { error: redirectError } = await client.auth.initialize();
15
+ setError(() => redirectError);
11
16
  const { data } = await client.auth.getSession();
12
17
  if (data.session) {
13
18
  setSession(() => data.session);
@@ -31,22 +36,16 @@ export function createAuth() {
31
36
  const { error } = await client.auth.signInWithPassword({ email, password });
32
37
  return { error };
33
38
  };
34
- const signUp = async (email, password) => {
35
- const { error } = await client.auth.signUp({ email, password });
36
- return { error };
37
- };
39
+ const signUp = (email, password) => client.auth.signUp({ email, password });
38
40
  const signOut = async () => {
39
41
  const { error } = await client.auth.signOut();
40
42
  return { error };
41
43
  };
42
- const signInWithOAuth = async (provider) => {
43
- const { error } = await client.auth.signInWithOAuth({ provider });
44
- return { error };
45
- };
44
+ const signInWithOAuth = (provider) => startOAuthRedirect(client.auth, provider);
46
45
  const resetPassword = async (email) => {
47
46
  const { error } = await client.auth.resetPasswordForEmail(email);
48
47
  return { error };
49
48
  };
50
- return { user, session, loading, signIn, signUp, signOut, signInWithOAuth, resetPassword };
49
+ return { user, session, loading, error, signIn, signUp, signOut, signInWithOAuth, resetPassword };
51
50
  }
52
51
  //# sourceMappingURL=createAuth.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"createAuth.js","sourceRoot":"","sources":["../src/createAuth.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAAE,OAAO,EAAE,SAAS,EAAE,MAAM,UAAU,CAAA;AAG3D,OAAO,EAAE,WAAW,EAAE,MAA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GAAG,KAAK,EAAE,KAAa,EAAE,EAAE;QAC5C,MAAM,EAAE,KAAK,EAAE,GAAG,MAAM,MAAM,CAAC,IAAI,CAAC,qBAAqB,CAAC,KAAK,CAAC,CAAA;QAChE,OAAO,EAAE,KAAK,EAAE,CAAA;IAClB,CAAC,CAAA;IAED,OAAO,EAAE,IAAI,EAAE,OAAO,EAAE,OAAO,EAAE,KAAK,EAAE,MAAM,EAAE,MAAM,EAAE,OAAO,EAAE,eAAe,EAAE,aAAa,EAAE,CAAA;AACnG,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"createFunction.d.ts","sourceRoot":"","sources":["../src/createFunction.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,UAAU,CAAA;AACxC,OAAO,KAAK,EAAE,iBAAiB,EAAE,WAAW,EAAE,aAAa,EAAE,MAAM,kBAAkB,CAAA;AAGrF,MAAM,WAAW,cAAc,CAAC,SAAS;IACvC,MAAM,EAAE,CAAC,IAAI,CAAC,EAAE,OAAO,KAAK,OAAO,CAAC;QAAE,IAAI,EAAE,SAAS,GAAG,IAAI,CAAC;QAAC,KAAK,EAAE,aAAa,GAAG,IAAI,CAAA;KAAE,CAAC,CAAA;IAC5F,IAAI,EAAE,QAAQ,CAAC,SAAS,GAAG,IAAI,CAAC,CAAA;IAChC,KAAK,EAAE,QAAQ,CAAC,aAAa,GAAG,IAAI,CAAC,CAAA;IACrC,OAAO,EAAE,QAAQ,CAAC,OAAO,CAAC,CAAA;CAC3B;AAED,wBAAgB,cAAc,CAC5B,SAAS,GAAG,OAAO,EACnB,SAAS,SAAS,WAAW,GAAG,iBAAiB,EAEjD,YAAY,EAAE,MAAM,GACnB,cAAc,CAAC,SAAS,CAAC,CAqB3B"}
1
+ {"version":3,"file":"createFunction.d.ts","sourceRoot":"","sources":["../src/createFunction.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,UAAU,CAAA;AACxC,OAAO,KAAK,EAAE,iBAAiB,EAAE,WAAW,EAAE,aAAa,EAAE,MAAM,kBAAkB,CAAA;AAIrF,MAAM,WAAW,cAAc,CAAC,SAAS;IACvC,MAAM,EAAE,CAAC,IAAI,CAAC,EAAE,OAAO,KAAK,OAAO,CAAC;QAAE,IAAI,EAAE,SAAS,GAAG,IAAI,CAAC;QAAC,KAAK,EAAE,aAAa,GAAG,IAAI,CAAA;KAAE,CAAC,CAAA;IAC5F,IAAI,EAAE,QAAQ,CAAC,SAAS,GAAG,IAAI,CAAC,CAAA;IAChC,KAAK,EAAE,QAAQ,CAAC,aAAa,GAAG,IAAI,CAAC,CAAA;IACrC,OAAO,EAAE,QAAQ,CAAC,OAAO,CAAC,CAAA;CAC3B;AAED,wBAAgB,cAAc,CAC5B,SAAS,GAAG,OAAO,EACnB,SAAS,SAAS,WAAW,GAAG,iBAAiB,EAEjD,YAAY,EAAE,MAAM,GACnB,cAAc,CAAC,SAAS,CAAC,CAwB3B"}
@@ -1,5 +1,6 @@
1
1
  import { createSignal } from "solid-js";
2
2
  import { useSupatype } from "./context.js";
3
+ import { isCallerValue } from "@supatype/client/bindings";
3
4
  export function createFunction(functionName) {
4
5
  const client = useSupatype();
5
6
  const [data, setData] = createSignal(null);
@@ -8,14 +9,19 @@ export function createFunction(functionName) {
8
9
  const invoke = async (body) => {
9
10
  setLoading(true);
10
11
  setError(null);
11
- const result = await client.functions.invoke(functionName, {
12
- ...(body !== undefined ? { body } : {}),
13
- });
14
- setLoading(false);
15
- setData(() => result.data);
16
- if (result.error)
17
- setError(result.error);
18
- return result;
12
+ try {
13
+ const result = await client.functions.invoke(functionName, {
14
+ ...(body !== undefined ? { body } : {}),
15
+ });
16
+ const answer = { data: isCallerValue(result.data) ? result.data : null, error: result.error };
17
+ setData(() => answer.data);
18
+ if (answer.error)
19
+ setError(answer.error);
20
+ return answer;
21
+ }
22
+ finally {
23
+ setLoading(false);
24
+ }
19
25
  };
20
26
  return { invoke, data, error, loading };
21
27
  }
@@ -1 +1 @@
1
- {"version":3,"file":"createFunction.js","sourceRoot":"","sources":["../src/createFunction.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAAE,MAAM,UAAU,CAAA;AAGvC,OAAO,EAAE,WAAW,EAAE,MAAM,cAAc,CAAA;AAS1C,MAAM,UAAU,cAAc,CAI5B,YAAoB;IAEpB,MAAM,MAAM,GAAG,WAAW,EAAa,CAAA;IACvC,MAAM,CAAC,IAAI,EAAE,OAAO,CAAC,GAAG,YAAY,CAAmB,IAAI,CAAC,CAAA;IAC5D,MAAM,CAAC,KAAK,EAAE,QAAQ,CAAC,GAAG,YAAY,CAAuB,IAAI,CAAC,CAAA;IAClE,MAAM,CAAC,OAAO,EAAE,UAAU,CAAC,GAAG,YAAY,CAAC,KAAK,CAAC,CAAA;IAEjD,MAAM,MAAM,GAAG,KAAK,EAAE,IAAc,EAAE,EAAE;QACtC,UAAU,CAAC,IAAI,CAAC,CAAA;QAChB,QAAQ,CAAC,IAAI,CAAC,CAAA;QAEd,MAAM,MAAM,GAAG,MAAM,MAAM,CAAC,SAAS,CAAC,MAAM,CAAC,YAAY,EAAE;YACzD,GAAG,CAAC,IAAI,KAAK,SAAS,CAAC,CAAC,CAAC,EAAE,IAAI,EAAE,CAAC,CAAC,CAAC,EAAE,CAAC;SACxC,CAAC,CAAA;QAEF,UAAU,CAAC,KAAK,CAAC,CAAA;QACjB,OAAO,CAAC,GAAG,EAAE,CAAC,MAAM,CAAC,IAAwB,CAAC,CAAA;QAC9C,IAAI,MAAM,CAAC,KAAK;YAAE,QAAQ,CAAC,MAAM,CAAC,KAAK,CAAC,CAAA;QACxC,OAAO,MAAiE,CAAA;IAC1E,CAAC,CAAA;IAED,OAAO,EAAE,MAAM,EAAE,IAAI,EAAE,KAAK,EAAE,OAAO,EAAE,CAAA;AACzC,CAAC"}
1
+ {"version":3,"file":"createFunction.js","sourceRoot":"","sources":["../src/createFunction.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAA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,CAAA;IAED,OAAO,EAAE,MAAM,EAAE,IAAI,EAAE,KAAK,EAAE,OAAO,EAAE,CAAA;AACzC,CAAC"}
@@ -1,6 +1,7 @@
1
1
  import type { Accessor } from "solid-js";
2
2
  import type { AugmentedDatabase, AnyDatabase, SupatypeError } from "@supatype/client";
3
- export type MutationOperation = "insert" | "update" | "delete" | "upsert";
3
+ import { type MutationOperation } from "@supatype/client/bindings";
4
+ export type { MutationOperation };
4
5
  export interface MutationOptions {
5
6
  filter?: Record<string, unknown> | undefined;
6
7
  }
@@ -1 +1 @@
1
- {"version":3,"file":"createMutation.d.ts","sourceRoot":"","sources":["../src/createMutation.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,UAAU,CAAA;AACxC,OAAO,KAAK,EAAE,iBAAiB,EAAE,WAAW,EAAE,aAAa,EAAE,MAAM,kBAAkB,CAAA;AAGrF,MAAM,MAAM,iBAAiB,GAAG,QAAQ,GAAG,QAAQ,GAAG,QAAQ,GAAG,QAAQ,CAAA;AAEzE,MAAM,WAAW,eAAe;IAC9B,MAAM,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,GAAG,SAAS,CAAA;CAC7C;AAED,MAAM,WAAW,cAAc,CAAC,IAAI;IAClC,MAAM,EAAE,CACN,IAAI,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,GAAG,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,EAAE,GAAG,SAAS,EACtE,OAAO,CAAC,EAAE,eAAe,GAAG,SAAS,KAClC,OAAO,CAAC;QAAE,IAAI,EAAE,IAAI,EAAE,GAAG,IAAI,CAAC;QAAC,KAAK,EAAE,aAAa,GAAG,IAAI,CAAA;KAAE,CAAC,CAAA;IAClE,OAAO,EAAE,QAAQ,CAAC,OAAO,CAAC,CAAA;IAC1B,KAAK,EAAE,QAAQ,CAAC,aAAa,GAAG,IAAI,CAAC,CAAA;CACtC;AAED,wBAAgB,cAA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,GAAG,IAAI,CAAC,CAAA;CACtC;AAED,wBAAgB,cAAc,CAC5B,SAAS,SAAS,WAAW,GAAG,iBAAiB,EACjD,MAAM,SAAS,MAAM,SAAS,CAAC,QAAQ,CAAC,CAAC,QAAQ,CAAC,GAAG,MAAM,GAAG,MAAM,SAAS,CAAC,QAAQ,CAAC,CAAC,QAAQ,CAAC,GAAG,MAAM,EAC1G,IAAI,GAAG,SAAS,CAAC,QAAQ,CAAC,CAAC,QAAQ,CAAC,CAAC,MAAM,CAAC,CAAC,KAAK,CAAC,EAEnD,KAAK,EAAE,MAAM,EACb,SAAS,EAAE,iBAAiB,GAC3B,cAAc,CAAC,IAAI,CAAC,CA4BtB"}
@@ -1,5 +1,6 @@
1
1
  import { createSignal } from "solid-js";
2
2
  import { useSupatype } from "./context.js";
3
+ import { runMutation } from "@supatype/client/bindings";
3
4
  export function createMutation(table, operation) {
4
5
  const client = useSupatype();
5
6
  const [loading, setLoading] = createSignal(false);
@@ -8,33 +9,8 @@ export function createMutation(table, operation) {
8
9
  setLoading(true);
9
10
  setError(null);
10
11
  try {
11
- // eslint-disable-next-line @typescript-eslint/no-explicit-any
12
- const tableClient = client.from(table);
13
- let result;
14
- if (operation === "insert") {
15
- result = await tableClient.insert(data);
16
- }
17
- else if (operation === "upsert") {
18
- result = await tableClient.upsert(data);
19
- }
20
- else if (operation === "update") {
21
- let q = tableClient.update(data);
22
- if (options?.filter) {
23
- for (const [col, val] of Object.entries(options.filter)) {
24
- q = q.eq(col, val);
25
- }
26
- }
27
- result = await q;
28
- }
29
- else {
30
- let q = tableClient.delete();
31
- if (options?.filter) {
32
- for (const [col, val] of Object.entries(options.filter)) {
33
- q = q.eq(col, val);
34
- }
35
- }
36
- result = await q;
37
- }
12
+ const outcome = await runMutation(client, table, operation, data, options?.filter);
13
+ const result = { data: outcome.data, error: outcome.error };
38
14
  if (result.error)
39
15
  setError(result.error);
40
16
  return result;
@@ -1 +1 @@
1
- {"version":3,"file":"createMutation.js","sourceRo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QAAQ,CAAC,CAAC,MAAM,CAAC,CAAC,KAAK,CAAC,EAEnD,KAAK,EAAE,MAAM,EACb,OAAO,CAAC,EAAE,YAAY,GAAG,SAAS,GACjC,WAAW,CAAC,IAAI,CAAC,CA0DnB"}
@@ -1,6 +1,7 @@
1
1
  import { createSignal, onCleanup, onMount } from "solid-js";
2
2
  import { onIdentityChange } from "@supatype/client";
3
3
  import { useSupatype } from "./context.js";
4
+ import { isRowsOf } from "@supatype/client/bindings";
4
5
  export function createQuery(table, options) {
5
6
  const client = useSupatype();
6
7
  const [data, setData] = createSignal(null);
@@ -12,7 +13,8 @@ export function createQuery(table, options) {
12
13
  setLoading(true);
13
14
  setError(null);
14
15
  try {
15
- // eslint-disable-next-line @typescript-eslint/no-explicit-any
16
+ // Through the untyped client: the generated row types do not survive a table name known
17
+ // only at run time, so the rows are typed as `TRow` once they arrive.
16
18
  let query = client.from(table).select(options?.columns);
17
19
  if (options?.filter) {
18
20
  for (const [col, val] of Object.entries(options.filter)) {
@@ -31,7 +33,7 @@ export function createQuery(table, options) {
31
33
  query = query.range(options.offset, options.offset + (options.limit ?? 100) - 1);
32
34
  }
33
35
  const result = await query;
34
- setData(() => result.data);
36
+ setData(() => (isRowsOf(result.data) ? result.data : null));
35
37
  if (result.error) {
36
38
  setError(result.error);
37
39
  }
@@ -1 +1 @@
1
- {"version":3,"file":"createQuery.js","sourceRoot":"","sources":["../src/createQuery.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAAE,SAAS,EAAE,OAAO,EAAE,MAAM,UAAU,CAAA;AAG3D,OAAO,EAAE,gBAAgB,EAAE,MAAM,kBAAkB,CAAA;AACnD,OAAO,EAAE,WAAW,EAAE,MAAM,cAAc,CAAA;AAkB1C,MAAM,UAAU,WAAW,CAKzB,KAAa,EACb,OAAkC;IAElC,MAAM,MAAM,GAAG,WAAW,EAAa,CAAA;IACvC,MAAM,CAAC,IAAI,EAAE,OAAO,CAAC,GAAG,YAAY,CAAgB,IAA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EAAE,MAAM,KAAK,SAAS,EAAE,CAAC;gBAClC,KAAK,GAAG,KAAK,CAAC,KAAK,CAAC,OAAO,CAAC,MAAM,EAAE,OAAO,CAAC,MAAM,GAAG,CAAC,OAAO,CAAC,KAAK,IAAI,GAAG,CAAC,GAAG,CAAC,CAAC,CAAA;YAClF,CAAC;YAED,MAAM,MAAM,GAAG,MAAM,KAAK,CAAA;YAC1B,OAAO,CAAC,GAAG,EAAE,CAAC,CAAC,QAAQ,CAAO,MAAM,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC,MAAM,CAAC,IAAI,CAAC,CAAC,CAAC,IAAI,CAAC,CAAC,CAAA;YACjE,IAAI,MAAM,CAAC,KAAK,EAAE,CAAC;gBACjB,QAAQ,CAAC,MAAM,CAAC,KAAK,CAAC,CAAA;YACxB,CAAC;QACH,CAAC;QAAC,OAAO,CAAC,EAAE,CAAC;YACX,QAAQ,CAAC,EAAE,OAAO,EAAE,CAAC,YAAY,KAAK,CAAC,CAAC,CAAC,CAAC,CAAC,OAAO,CAAC,CAAC,CAAC,eAAe,EAAE,CAAC,CAAA;QACzE,CAAC;gBAAS,CAAC;YACT,UAAU,CAAC,KAAK,CAAC,CAAA;QACnB,CAAC;IACH,CAAC,CAAA;IAED,OAAO,CAAC,GAAG,EAAE;QACX,SAAS,EAAE,CAAA;IACb,CAAC,CAAC,CAAA;IAEF,8FAA8F;IAC9F,oDAAoD;IACpD,SAAS,CAAC,gBAAgB,CAAC,MAAM,CAAC,IAAI,EAAE,GAAG,EAAE,CAAC,KAAK,SAAS,EAAE,CAAC,CAAC,CAAA;IAEhE,OAAO,EAAE,IAAI,EAAE,KAAK,EAAE,OAAO,EAAE,OAAO,EAAE,SAAS,EAAE,CAAA;AACrD,CAAC"}
@@ -1,13 +1,18 @@
1
1
  import type { Accessor } from "solid-js";
2
- import type { AugmentedDatabase, AnyDatabase, SupatypeError, RealtimeEvent } from "@supatype/client";
3
- export interface SubscriptionOptions {
4
- event?: RealtimeEvent | undefined;
5
- filter?: string | undefined;
6
- }
2
+ import type { AugmentedDatabase, AnyDatabase, SupatypeError } from "@supatype/client";
3
+ import { type SubscriptionState, type TableWatchOptions } from "@supatype/client/bindings";
4
+ /** Which changes to receive. The same options `watchTable` takes, since they go straight to it. */
5
+ export type SubscriptionOptions = TableWatchOptions;
7
6
  export interface SubscriptionResult<TRow> {
8
7
  data: Accessor<TRow[] | null>;
9
8
  error: Accessor<SupatypeError | null>;
10
- status: Accessor<"connecting" | "connected" | "disconnected" | "error">;
9
+ status: Accessor<SubscriptionState>;
11
10
  }
11
+ /**
12
+ * Real-time subscription signals.
13
+ *
14
+ * The channel, the status and the row merge are `watchTable`'s, shared with the Vue and Svelte
15
+ * bindings; this only puts what it reports into signals.
16
+ */
12
17
  export declare function createSubscription<TDatabase extends AnyDatabase = AugmentedDatabase, TTable extends keyof TDatabase["public"]["Tables"] & string = keyof TDatabase["public"]["Tables"] & string, TRow = TDatabase["public"]["Tables"][TTable]["Row"]>(table: TTable, options?: SubscriptionOptions | undefined): SubscriptionResult<TRow>;
13
18
  //# sourceMappingURL=createSubscription.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"createSubscription.d.ts","sourceRoot":"","sources":["../src/createSubscription.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,UAAU,CAAA;AACxC,OAAO,KAAK,EAAE,iBAAiB,EAAE,WAAW,EAAE,aAAa,EAAmB,aAAa,EAAiB,MAAM,kBAAkB,CAAA;AAGpI,MAAM,WAAW,mBAAmB;IAClC,KAAK,CAAC,EAAE,aAAa,GAAG,SAAS,CAAA;IACjC,MAAM,CAAC,EAAE,MAAM,GAAG,SAAS,CAAA;CAC5B;AAED,MAAM,WAAW,kBAAkB,CAAC,IAAI;IACtC,IAAI,EAAE,QAAQ,CAAC,IAAI,EAAE,GAAG,IAAI,CAAC,CAAA;IAC7B,KAAK,EAAE,QAAQ,CAAC,aAAa,GAAG,IAAI,CAAC,CAAA;IAC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AC,GAAG,MAAM,GAAG,MAAM,SAAS,CAAC,QAAQ,CAAC,CAAC,QAAQ,CAAC,GAAG,MAAM,EAC1G,IAAI,GAAG,SAAS,CAAC,QAAQ,CAAC,CAAC,QAAQ,CAAC,CAAC,MAAM,CAAC,CAAC,KAAK,CAAC,EAEnD,KAAK,EAAE,MAAM,EACb,OAAO,CAAC,EAAE,mBAAmB,GAAG,SAAS,GACxC,kBAAkB,CAAC,IAAI,CAAC,CAkB1B"}
@@ -1,57 +1,26 @@
1
1
  import { createSignal, onMount, onCleanup } from "solid-js";
2
+ import { watchTable } from "@supatype/client/bindings";
2
3
  import { useSupatype } from "./context.js";
4
+ /**
5
+ * Real-time subscription signals.
6
+ *
7
+ * The channel, the status and the row merge are `watchTable`'s, shared with the Vue and Svelte
8
+ * bindings; this only puts what it reports into signals.
9
+ */
3
10
  export function createSubscription(table, options) {
4
11
  const client = useSupatype();
5
12
  const [data, setData] = createSignal(null);
6
13
  const [error, setError] = createSignal(null);
7
14
  const [status, setStatus] = createSignal("connecting");
8
- let channel = null;
9
15
  onMount(() => {
10
- const event = options?.event ?? "*";
11
- const channelOpts = {
12
- event,
13
- schema: "public",
14
- table,
15
- };
16
- if (options?.filter) {
17
- channelOpts.filter = options.filter;
18
- }
19
- channel = client.realtime.channel(`public:${table}`);
20
- channel.on("postgres_changes", channelOpts, (payload) => {
21
- setData((current) => {
22
- const rows = current ?? [];
23
- if (payload.eventType === "INSERT") {
24
- return [...rows, payload.new];
25
- }
26
- else if (payload.eventType === "UPDATE") {
27
- return rows.map((row) => {
28
- const r = row;
29
- const n = payload.new;
30
- return r["id"] === n["id"] ? payload.new : row;
31
- });
32
- }
33
- else if (payload.eventType === "DELETE") {
34
- const old = payload.old;
35
- return rows.filter((row) => row["id"] !== old["id"]);
36
- }
37
- return rows;
38
- });
16
+ const unsubscribe = watchTable(client.realtime, table, options, {
17
+ rows: (rows) => setData(() => rows),
18
+ status: (view) => {
19
+ setStatus(view.status);
20
+ setError(view.error);
21
+ },
39
22
  });
40
- channel.subscribe((newStatus) => {
41
- if (newStatus === "SUBSCRIBED") {
42
- setStatus("connected");
43
- }
44
- else if (newStatus === "CHANNEL_ERROR") {
45
- setStatus("error");
46
- setError({ message: "Subscription error" });
47
- }
48
- else if (newStatus === "CLOSED") {
49
- setStatus("disconnected");
50
- }
51
- });
52
- });
53
- onCleanup(() => {
54
- channel?.unsubscribe();
23
+ onCleanup(unsubscribe);
55
24
  });
56
25
  return { data, error, status };
57
26
  }
@@ -1 +1 @@
1
- {"version":3,"file":"createSubscription.js","sourceRoot":"","sources":["../src/createSubscription.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAAE,OAAO,EAAE,SAAS,EAAE,MAAM,UAAU,CAAA;AAG3D,OAAO,EAAE,WAAW,EAAE,MAAM,cAAc,CAAA;AAa1C,MAAM,UAAU,kBAAkB,CAKhC,KAAa,EACb,OAAyC;IAEzC,MAAM,MAAM,GAAG,WAAW,EAAa,CAAA;IACvC,MAAM,CAAC,IAAI,EAAE,OAAO,CAAC,GAAG,YAAY,CAAgB,IAAI,CAAC,CAAA;IACzD,MAAM,CAAC,KAAK,EAAE,QAAQ,CAAC,GAAG,YAAY,CAAuB,IAAI,CAAC,CAAA;IAClE,MAAM,CAAC,MAAM,EAAE,SAAS,CAAC,GAAG,YAAY,CAAwD,YAAY,CAAC,CAAA;IAE7G,IAAI,OAAO,GAA4D,IAAI,CAAA;IAE3E,OAAO,CAAC,GAAG,EAAE;QACX,MAAM,KAAK,GAAmB,OAAO,EAAE,KAAuB,IAAI,GAAG,CAAA;QACrE,MAAM,WAAW,GAKb;YACF,KAAK;YACL,MAAM,EAAE,QAAQ;YAChB,KAAK;SACN,CAAA;QACD,IAAI,OAAO,EAAE,MAAM,EAAE,CAAC;YACpB,WAAW,CAAC,MAAM,GAAG,OAAO,CAAC,MAAM,CAAA;QACrC,CAAC;QAED,OAAO,GAAG,MAAM,CAAC,QAAQ,CAAC,OAAO,CAAO,UAAU,KA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,MAAM,EAAE,CAAC,IAAI,EAAE,EAAE;gBACf,SAAS,CAAC,IAAI,CAAC,MAAM,CAAC,CAAA;gBACtB,QAAQ,CAAC,IAAI,CAAC,KAAK,CAAC,CAAA;YACtB,CAAC;SACF,CAAC,CAAA;QACF,SAAS,CAAC,WAAW,CAAC,CAAA;IACxB,CAAC,CAAC,CAAA;IAEF,OAAO,EAAE,IAAI,EAAE,KAAK,EAAE,MAAM,EAAE,CAAA;AAChC,CAAC"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@supatype/solid",
3
- "version": "0.3.6",
3
+ "version": "0.8.0",
4
4
  "license": "MIT",
5
5
  "description": "Solid.js primitives for Supatype, createQuery, createMutation, createAuth, createSubscription",
6
6
  "type": "module",
@@ -14,16 +14,19 @@
14
14
  },
15
15
  "peerDependencies": {
16
16
  "solid-js": "^1.8.0",
17
- "@supatype/client": "0.3.6"
17
+ "@supatype/client": "0.8.0"
18
18
  },
19
19
  "devDependencies": {
20
- "typescript": "^5",
20
+ "@types/node": "^22",
21
21
  "solid-js": "^1.9.0",
22
- "@supatype/client": "0.3.6"
22
+ "typescript": "^5",
23
+ "vitest": "^4.0.18",
24
+ "@supatype/client": "0.8.0"
23
25
  },
24
26
  "scripts": {
25
27
  "build": "tsc --project tsconfig.json",
26
- "typecheck": "tsc --project tsconfig.json --noEmit",
28
+ "typecheck": "tsc --project tests/tsconfig.json --noEmit",
29
+ "test": "vitest run",
27
30
  "clean": "rm -rf dist *.tsbuildinfo"
28
31
  }
29
32
  }
package/src/context.ts CHANGED
@@ -1,13 +1,14 @@
1
1
  import { createContext, useContext } from "solid-js"
2
2
  import type { AugmentedDatabase, AnyClient, AnyDatabase, SupatypeClient } from "@supatype/client"
3
+ import { isClientFor } from "@supatype/client/bindings"
3
4
 
4
5
  /** Typed at `AnyClient`, narrowed on read. See `AnyClient` for why it is neither generic nor `any`. */
5
6
  export const SupatypeContext = createContext<AnyClient>()
6
7
 
7
8
  export function useSupatype<TDatabase extends AnyDatabase = AugmentedDatabase>(): SupatypeClient<TDatabase> {
8
9
  const client = useContext(SupatypeContext)
9
- if (!client) {
10
+ if (!client || !isClientFor<TDatabase>(client)) {
10
11
  throw new Error("useSupatype() requires a <SupatypeContext.Provider> ancestor.")
11
12
  }
12
- return client as SupatypeClient<TDatabase>
13
+ return client
13
14
  }
package/src/createAuth.ts CHANGED
@@ -1,15 +1,23 @@
1
1
  import { createSignal, onMount, onCleanup } from "solid-js"
2
2
  import type { Accessor } from "solid-js"
3
- import type { AugmentedDatabase, AnyDatabase, SupatypeError, User, Session, AuthChangeEvent } from "@supatype/client"
3
+ import type { AugmentedDatabase, AnyDatabase, AuthRedirectError, SupatypeError, User, Session, AuthChangeEvent } from "@supatype/client"
4
+ import { startOAuthRedirect } from "@supatype/client/bindings"
4
5
  import { useSupatype } from "./context.js"
5
6
 
6
7
  export interface AuthResult {
7
8
  user: Accessor<User | null>
8
9
  session: Accessor<Session | null>
9
10
  loading: Accessor<boolean>
11
+ /** The sign-in the auth server refused and reported in the page's URL, or null. */
12
+ error: Accessor<AuthRedirectError | null>
10
13
  signIn: (email: string, password: string) => Promise<{ error: SupatypeError | null }>
11
- signUp: (email: string, password: string) => Promise<{ error: SupatypeError | null }>
14
+ /** A null `data.session` with a user means the project wants the email confirmed first. */
15
+ signUp: (email: string, password: string) => Promise<{
16
+ data: { session: Session | null; user: User | null }
17
+ error: SupatypeError | null
18
+ }>
12
19
  signOut: () => Promise<{ error: SupatypeError | null }>
20
+ /** Send the browser to the provider; a refusal (provider not enabled) is returned instead. */
13
21
  signInWithOAuth: (provider: string) => Promise<{ error: SupatypeError | null }>
14
22
  resetPassword: (email: string) => Promise<{ error: SupatypeError | null }>
15
23
  }
@@ -19,11 +27,15 @@ export function createAuth<TDatabase extends AnyDatabase = AugmentedDatabase>():
19
27
  const [user, setUser] = createSignal<User | null>(null)
20
28
  const [session, setSession] = createSignal<Session | null>(null)
21
29
  const [loading, setLoading] = createSignal(true)
30
+ const [error, setError] = createSignal<AuthRedirectError | null>(null)
22
31
 
23
32
  let unsubscribe: (() => void) | null = null
24
33
 
25
34
  onMount(async () => {
26
35
  try {
36
+ // The initial session, once the client has finished any sign-in the page's URL carries
37
+ const { error: redirectError } = await client.auth.initialize()
38
+ setError(() => redirectError)
27
39
  const { data } = await client.auth.getSession()
28
40
  if (data.session) {
29
41
  setSession(() => data.session)
@@ -50,25 +62,19 @@ export function createAuth<TDatabase extends AnyDatabase = AugmentedDatabase>():
50
62
  return { error }
51
63
  }
52
64
 
53
- const signUp = async (email: string, password: string) => {
54
- const { error } = await client.auth.signUp({ email, password })
55
- return { error }
56
- }
65
+ const signUp = (email: string, password: string) => client.auth.signUp({ email, password })
57
66
 
58
67
  const signOut = async () => {
59
68
  const { error } = await client.auth.signOut()
60
69
  return { error }
61
70
  }
62
71
 
63
- const signInWithOAuth = async (provider: string) => {
64
- const { error } = await client.auth.signInWithOAuth({ provider })
65
- return { error }
66
- }
72
+ const signInWithOAuth = (provider: string) => startOAuthRedirect(client.auth, provider)
67
73
 
68
74
  const resetPassword = async (email: string) => {
69
75
  const { error } = await client.auth.resetPasswordForEmail(email)
70
76
  return { error }
71
77
  }
72
78
 
73
- return { user, session, loading, signIn, signUp, signOut, signInWithOAuth, resetPassword }
79
+ return { user, session, loading, error, signIn, signUp, signOut, signInWithOAuth, resetPassword }
74
80
  }
@@ -2,6 +2,7 @@ import { createSignal } from "solid-js"
2
2
  import type { Accessor } from "solid-js"
3
3
  import type { AugmentedDatabase, AnyDatabase, SupatypeError } from "@supatype/client"
4
4
  import { useSupatype } from "./context.js"
5
+ import { isCallerValue } from "@supatype/client/bindings"
5
6
 
6
7
  export interface FunctionResult<TResponse> {
7
8
  invoke: (body?: unknown) => Promise<{ data: TResponse | null; error: SupatypeError | null }>
@@ -25,14 +26,17 @@ export function createFunction<
25
26
  setLoading(true)
26
27
  setError(null)
27
28
 
28
- const result = await client.functions.invoke(functionName, {
29
- ...(body !== undefined ? { body } : {}),
30
- })
31
-
32
- setLoading(false)
33
- setData(() => result.data as TResponse | null)
34
- if (result.error) setError(result.error)
35
- return result as { data: TResponse | null; error: SupatypeError | null }
29
+ try {
30
+ const result = await client.functions.invoke(functionName, {
31
+ ...(body !== undefined ? { body } : {}),
32
+ })
33
+ const answer = { data: isCallerValue<TResponse>(result.data) ? result.data : null, error: result.error }
34
+ setData(() => answer.data)
35
+ if (answer.error) setError(answer.error)
36
+ return answer
37
+ } finally {
38
+ setLoading(false)
39
+ }
36
40
  }
37
41
 
38
42
  return { invoke, data, error, loading }
@@ -1,9 +1,10 @@
1
1
  import { createSignal } from "solid-js"
2
2
  import type { Accessor } from "solid-js"
3
- import type { AugmentedDatabase, AnyDatabase, SupatypeError } from "@supatype/client"
3
+ import type { AugmentedDatabase, AnyClient, AnyDatabase, SupatypeError } from "@supatype/client"
4
4
  import { useSupatype } from "./context.js"
5
+ import { runMutation, type MutationOperation } from "@supatype/client/bindings"
5
6
 
6
- export type MutationOperation = "insert" | "update" | "delete" | "upsert"
7
+ export type { MutationOperation }
7
8
 
8
9
  export interface MutationOptions {
9
10
  filter?: Record<string, unknown> | undefined
@@ -38,31 +39,8 @@ export function createMutation<
38
39
  setError(null)
39
40
 
40
41
  try {
41
- // eslint-disable-next-line @typescript-eslint/no-explicit-any
42
- const tableClient = client.from(table) as any
43
- let result: { data: TRow[] | null; error: SupatypeError | null }
44
-
45
- if (operation === "insert") {
46
- result = await tableClient.insert(data)
47
- } else if (operation === "upsert") {
48
- result = await tableClient.upsert(data)
49
- } else if (operation === "update") {
50
- let q = tableClient.update(data)
51
- if (options?.filter) {
52
- for (const [col, val] of Object.entries(options.filter)) {
53
- q = q.eq(col, val)
54
- }
55
- }
56
- result = await q
57
- } else {
58
- let q = tableClient.delete()
59
- if (options?.filter) {
60
- for (const [col, val] of Object.entries(options.filter)) {
61
- q = q.eq(col, val)
62
- }
63
- }
64
- result = await q
65
- }
42
+ const outcome = await runMutation<TRow>(client as AnyClient, table, operation, data, options?.filter)
43
+ const result = { data: outcome.data, error: outcome.error }
66
44
 
67
45
  if (result.error) setError(result.error)
68
46
  return result
@@ -1,8 +1,9 @@
1
1
  import { createSignal, onCleanup, onMount } from "solid-js"
2
2
  import type { Accessor } from "solid-js"
3
- import type { AugmentedDatabase, AnyDatabase, SupatypeError } from "@supatype/client"
3
+ import type { AugmentedDatabase, AnyClient, AnyDatabase, SupatypeError } from "@supatype/client"
4
4
  import { onIdentityChange } from "@supatype/client"
5
5
  import { useSupatype } from "./context.js"
6
+ import { isRowsOf } from "@supatype/client/bindings"
6
7
 
7
8
  export interface QueryOptions {
8
9
  columns?: string | undefined
@@ -40,8 +41,9 @@ export function createQuery<
40
41
  setError(null)
41
42
 
42
43
  try {
43
- // eslint-disable-next-line @typescript-eslint/no-explicit-any
44
- let query = (client.from(table) as any).select(options?.columns)
44
+ // Through the untyped client: the generated row types do not survive a table name known
45
+ // only at run time, so the rows are typed as `TRow` once they arrive.
46
+ let query = (client as AnyClient).from(table).select(options?.columns)
45
47
 
46
48
  if (options?.filter) {
47
49
  for (const [col, val] of Object.entries(options.filter)) {
@@ -64,7 +66,7 @@ export function createQuery<
64
66
  }
65
67
 
66
68
  const result = await query
67
- setData(() => result.data as TRow[] | null)
69
+ setData(() => (isRowsOf<TRow>(result.data) ? result.data : null))
68
70
  if (result.error) {
69
71
  setError(result.error)
70
72
  }
@@ -1,19 +1,24 @@
1
1
  import { createSignal, onMount, onCleanup } from "solid-js"
2
2
  import type { Accessor } from "solid-js"
3
- import type { AugmentedDatabase, AnyDatabase, SupatypeError, RealtimePayload, RealtimeEvent, ChannelStatus } from "@supatype/client"
3
+ import type { AugmentedDatabase, AnyDatabase, SupatypeError } from "@supatype/client"
4
+ import { watchTable, type SubscriptionState, type TableWatchOptions } from "@supatype/client/bindings"
4
5
  import { useSupatype } from "./context.js"
5
6
 
6
- export interface SubscriptionOptions {
7
- event?: RealtimeEvent | undefined
8
- filter?: string | undefined
9
- }
7
+ /** Which changes to receive. The same options `watchTable` takes, since they go straight to it. */
8
+ export type SubscriptionOptions = TableWatchOptions
10
9
 
11
10
  export interface SubscriptionResult<TRow> {
12
11
  data: Accessor<TRow[] | null>
13
12
  error: Accessor<SupatypeError | null>
14
- status: Accessor<"connecting" | "connected" | "disconnected" | "error">
13
+ status: Accessor<SubscriptionState>
15
14
  }
16
15
 
16
+ /**
17
+ * Real-time subscription signals.
18
+ *
19
+ * The channel, the status and the row merge are `watchTable`'s, shared with the Vue and Svelte
20
+ * bindings; this only puts what it reports into signals.
21
+ */
17
22
  export function createSubscription<
18
23
  TDatabase extends AnyDatabase = AugmentedDatabase,
19
24
  TTable extends keyof TDatabase["public"]["Tables"] & string = keyof TDatabase["public"]["Tables"] & string,
@@ -25,62 +30,17 @@ export function createSubscription<
25
30
  const client = useSupatype<TDatabase>()
26
31
  const [data, setData] = createSignal<TRow[] | null>(null)
27
32
  const [error, setError] = createSignal<SupatypeError | null>(null)
28
- const [status, setStatus] = createSignal<"connecting" | "connected" | "disconnected" | "error">("connecting")
29
-
30
- let channel: ReturnType<typeof client.realtime.channel<TRow>> | null = null
33
+ const [status, setStatus] = createSignal<SubscriptionState>("connecting")
31
34
 
32
35
  onMount(() => {
33
- const event: RealtimeEvent = (options?.event as RealtimeEvent) ?? "*"
34
- const channelOpts: {
35
- event: RealtimeEvent
36
- schema: string
37
- table: string
38
- filter?: string | undefined
39
- } = {
40
- event,
41
- schema: "public",
42
- table,
43
- }
44
- if (options?.filter) {
45
- channelOpts.filter = options.filter
46
- }
47
-
48
- channel = client.realtime.channel<TRow>(`public:${table}`)
49
-
50
- channel.on("postgres_changes", channelOpts, (payload: RealtimePayload<TRow>) => {
51
- setData((current) => {
52
- const rows = current ?? []
53
-
54
- if (payload.eventType === "INSERT") {
55
- return [...rows, payload.new as TRow]
56
- } else if (payload.eventType === "UPDATE") {
57
- return rows.map((row) => {
58
- const r = row as Record<string, unknown>
59
- const n = payload.new as Record<string, unknown>
60
- return r["id"] === n["id"] ? (payload.new as TRow) : row
61
- })
62
- } else if (payload.eventType === "DELETE") {
63
- const old = payload.old as Record<string, unknown>
64
- return rows.filter((row) => (row as Record<string, unknown>)["id"] !== old["id"])
65
- }
66
- return rows
67
- })
36
+ const unsubscribe = watchTable<TRow>(client.realtime, table, options, {
37
+ rows: (rows) => setData(() => rows),
38
+ status: (view) => {
39
+ setStatus(view.status)
40
+ setError(view.error)
41
+ },
68
42
  })
69
-
70
- channel.subscribe((newStatus: ChannelStatus) => {
71
- if (newStatus === "SUBSCRIBED") {
72
- setStatus("connected")
73
- } else if (newStatus === "CHANNEL_ERROR") {
74
- setStatus("error")
75
- setError({ message: "Subscription error" })
76
- } else if (newStatus === "CLOSED") {
77
- setStatus("disconnected")
78
- }
79
- })
80
- })
81
-
82
- onCleanup(() => {
83
- channel?.unsubscribe()
43
+ onCleanup(unsubscribe)
84
44
  })
85
45
 
86
46
  return { data, error, status }
@@ -0,0 +1,36 @@
1
+ /**
2
+ * `createAuth` starts an OAuth sign-in and shows the server's refusal, as every binding must.
3
+ *
4
+ * `signInWithOAuth` used to drop the URL the client returned, so the browser never left the page,
5
+ * and a refusal sent back in the redirect URL had nowhere to show. `onMount` runs directly and
6
+ * `onCleanup` is collected: under Node, solid-js resolves to its server build.
7
+ */
8
+
9
+ import { vi } from "vitest"
10
+ import { describeOAuthBinding, type OAuthBindingHarness } from "../../client/tests/helpers/oauth-binding.js"
11
+
12
+ const lifecycle = vi.hoisted(() => ({ cleanup: [] as Array<() => void>, harness: null as OAuthBindingHarness | null }))
13
+
14
+ vi.mock("solid-js", async (importOriginal) => ({
15
+ ...(await importOriginal<typeof import("solid-js")>()),
16
+ onMount: (fn: () => void) => fn(),
17
+ onCleanup: (fn: () => void) => lifecycle.cleanup.push(fn),
18
+ }))
19
+
20
+ vi.mock("../src/context.js", () => ({
21
+ useSupatype: () => ({ auth: lifecycle.harness?.auth }),
22
+ }))
23
+
24
+ import { createAuth } from "../src/createAuth.js"
25
+
26
+ describeOAuthBinding(
27
+ "createAuth",
28
+ (harness) => {
29
+ lifecycle.harness = harness
30
+ const auth = createAuth()
31
+ return { error: () => auth.error?.(), signInWithOAuth: auth.signInWithOAuth }
32
+ },
33
+ () => {
34
+ for (const fn of lifecycle.cleanup.splice(0)) fn()
35
+ },
36
+ )
@@ -0,0 +1,35 @@
1
+ /**
2
+ * `createAuth` stays signed out after a sign-up that waits for email confirmation, and returns
3
+ * what the app needs to say so. `onMount` runs directly and `onCleanup` is collected: under Node,
4
+ * solid-js resolves to its server build.
5
+ */
6
+
7
+ import { vi } from "vitest"
8
+ import type { AuthClient } from "../../client/src/auth.js"
9
+ import { describeSignUpBinding } from "../../client/tests/helpers/signup-binding.js"
10
+
11
+ const lifecycle = vi.hoisted(() => ({ cleanup: [] as Array<() => void>, auth: null as AuthClient | null }))
12
+
13
+ vi.mock("solid-js", async (importOriginal) => ({
14
+ ...(await importOriginal<typeof import("solid-js")>()),
15
+ onMount: (fn: () => void) => fn(),
16
+ onCleanup: (fn: () => void) => lifecycle.cleanup.push(fn),
17
+ }))
18
+
19
+ vi.mock("../src/context.js", () => ({
20
+ useSupatype: () => ({ auth: lifecycle.auth }),
21
+ }))
22
+
23
+ import { createAuth } from "../src/createAuth.js"
24
+
25
+ describeSignUpBinding(
26
+ "createAuth",
27
+ (auth) => {
28
+ lifecycle.auth = auth
29
+ const state = createAuth()
30
+ return { user: state.user, signUp: state.signUp }
31
+ },
32
+ () => {
33
+ for (const fn of lifecycle.cleanup.splice(0)) fn()
34
+ },
35
+ )
@@ -0,0 +1,39 @@
1
+ /**
2
+ * `createSubscription`'s status signal follows the realtime socket swap that signing in causes.
3
+ *
4
+ * It read "connected" from the moment the anon socket joined, through the swap, until well after
5
+ * the signed-in socket had joined, because the swap reported nothing and the primitive ignored the
6
+ * SUBSCRIBING it would have reported. An insert made in that window never arrived.
7
+ *
8
+ * `onMount` runs directly and `onCleanup` is collected: under Node, solid-js resolves to its server
9
+ * build, where `onMount` never runs. What is under test is how the primitive wires the channel.
10
+ */
11
+
12
+ import { vi } from "vitest"
13
+ import { describeStatusAcrossSignIn, type SocketSwapHarness } from "../../client/tests/helpers/socket-swap.js"
14
+
15
+ const lifecycle = vi.hoisted(() => ({ cleanup: [] as Array<() => void>, harness: null as SocketSwapHarness | null }))
16
+
17
+ vi.mock("solid-js", async (importOriginal) => ({
18
+ ...(await importOriginal<typeof import("solid-js")>()),
19
+ onMount: (fn: () => void) => fn(),
20
+ onCleanup: (fn: () => void) => lifecycle.cleanup.push(fn),
21
+ }))
22
+
23
+ vi.mock("../src/context.js", () => ({
24
+ useSupatype: () => ({ realtime: lifecycle.harness?.realtime }),
25
+ }))
26
+
27
+ import { createSubscription } from "../src/createSubscription.js"
28
+
29
+ describeStatusAcrossSignIn(
30
+ "createSubscription",
31
+ (harness) => {
32
+ lifecycle.harness = harness
33
+ const { status, error } = createSubscription("task")
34
+ return { status, error }
35
+ },
36
+ () => {
37
+ for (const fn of lifecycle.cleanup.splice(0)) fn()
38
+ },
39
+ )
@@ -0,0 +1,9 @@
1
+ {
2
+ "extends": "../tsconfig.json",
3
+ "compilerOptions": {
4
+ "noEmit": true,
5
+ "composite": false,
6
+ "rootDir": "../.."
7
+ },
8
+ "include": ["../../../ts-reset.d.ts", "./**/*.ts", "../src/**/*.ts", "../../client/tests/helpers/*.ts"]
9
+ }
package/tsconfig.json CHANGED
@@ -8,7 +8,7 @@
8
8
  "jsxImportSource": "solid-js",
9
9
  "lib": ["ES2022", "DOM"]
10
10
  },
11
- "include": ["src"],
11
+ "include": ["../../ts-reset.d.ts", "src"],
12
12
  "references": [
13
13
  { "path": "../client" }
14
14
  ]
@@ -1 +1 @@
1
- {"fileNames":["../../node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/lib/lib.es5.d.ts","../../node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/lib/lib.es2015.d.ts","../../node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/lib/lib.es2016.d.ts","../../node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/lib/lib.es2017.d.ts","../../node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/lib/lib.es2018.d.ts","../../node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/lib/lib.es2019.d.ts","../../node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/lib/lib.es2020.d.ts","../../node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/lib/lib.es2021.d.ts","../../node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/lib/lib.es2022.d.ts","../../node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/lib/lib.dom.d.ts","../../node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/lib/lib.es2015.core.d.ts","../../node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/lib/lib.es2015.collection.d.ts","../../node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/lib/lib.es2015.generator.d.ts","../../node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/lib/lib.es2015.iterable.d.ts","../../node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/lib/lib.es2015.promise.d.ts","../../node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/lib/lib.es2015.proxy.d.ts","../../node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/lib/lib.es2015.reflect.d.ts","../../node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/lib/lib.es2015.symbol.d.ts","../../node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/lib/lib.es2015.symbol.wellknown.d.ts","../../node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/lib/lib.es2016.array.include.d.ts","../../node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/lib/lib.es2016.intl.d.ts","../../node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/lib/lib.es2017.arraybuffer.d.ts","../../node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/lib/lib.es2017.date.d.ts","../../node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/lib/lib.es2017.object.d.ts","../../node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/lib/lib.es2017.sharedmemory.d.ts","../../node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/lib/lib.es2017.string.d.ts","../../node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/lib/lib.es2017.intl.d.ts","../../node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/lib/lib.es2017.typedarrays.d.ts","../../node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/lib/lib.es2018.asyncgenerator.d.ts","../../node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/lib/lib.es2018.asynciterable.d.ts","../../node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/lib/lib.es2018.intl.d.ts","../../node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/lib/lib.es2018.promise.d.ts","../../node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/lib/lib.es2018.regexp.d.ts","../../node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/lib/lib.es2019.array.d.ts","../../node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/lib/lib.es2019.object.d.ts","../../node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/lib/lib.es2019.string.d.ts","../../node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/lib/lib.es2019.symbol.d.ts","../../node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/lib/lib.es2019.intl.d.ts","../../node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/lib/lib.es2020.bigint.d.ts","../../node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/lib/lib.es2020.date.d.ts","../../node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/lib/lib.es2020.promise.d.ts","../../node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/lib/lib.es2020.sharedmemory.d.ts","../../node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/lib/lib.es2020.string.d.ts","../../node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/lib/lib.es2020.symbol.wellknown.d.ts","../../node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/lib/lib.es2020.intl.d.ts","../../node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/lib/lib.es2020.number.d.ts","../../node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/lib/lib.es2021.promise.d.ts","../../node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/lib/lib.es2021.string.d.ts","../../node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/lib/lib.es2021.weakref.d.ts","../../node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/lib/lib.es2021.intl.d.ts","../../node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/lib/lib.es2022.array.d.ts","../../node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/lib/lib.es2022.error.d.ts","../../node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/lib/lib.es2022.intl.d.ts","../../node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/lib/lib.es2022.object.d.ts","../../node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/lib/lib.es2022.string.d.ts","../../node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/lib/lib.es2022.regexp.d.ts","../../node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/lib/lib.decorators.d.ts","../../node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/lib/lib.decorators.legacy.d.ts","../../node_modules/.pnpm/csstype@3.2.3/node_modules/csstype/index.d.ts","../../node_modules/.pnpm/solid-js@1.9.11/node_modules/solid-js/types/jsx.d.ts","../../node_modules/.pnpm/solid-js@1.9.11/node_modules/solid-js/types/reactive/scheduler.d.ts","../../node_modules/.pnpm/solid-js@1.9.11/node_modules/solid-js/types/render/component.d.ts","../../node_modules/.pnpm/solid-js@1.9.11/node_modules/solid-js/types/render/flow.d.ts","../../node_modules/.pnpm/solid-js@1.9.11/node_modules/solid-js/types/render/Suspense.d.ts","../../node_modules/.pnpm/solid-js@1.9.11/node_modules/solid-js/types/render/hydration.d.ts","../../node_modules/.pnpm/solid-js@1.9.11/node_modules/solid-js/types/render/index.d.ts","../../node_modules/.pnpm/solid-js@1.9.11/node_modules/solid-js/types/reactive/signal.d.ts","../../node_modules/.pnpm/solid-js@1.9.11/node_modules/solid-js/types/reactive/observable.d.ts","../../node_modules/.pnpm/solid-js@1.9.11/node_modules/solid-js/types/reactive/array.d.ts","../../node_modules/.pnpm/solid-js@1.9.11/node_modules/solid-js/types/index.d.ts","../client/dist/query-cache.d.ts","../client/dist/types.d.ts","../client/dist/auth.d.ts","../client/dist/query.d.ts","../client/dist/storage.d.ts","../client/dist/realtime.d.ts","../client/dist/pkce.d.ts","../client/dist/identity.d.ts","../client/dist/errors.d.ts","../client/dist/exact-values.d.ts","../client/dist/field-kinds-registry.d.ts","../client/dist/fetch-with-retry.d.ts","../client/dist/retry.d.ts","../client/dist/error-codes-doc.d.ts","../client/dist/serverless-docs.d.ts","../client/dist/preview.d.ts","../client/dist/index.d.ts","./src/context.ts","./src/createAuth.ts","./src/createFunction.ts","./src/createMutation.ts","./src/createQuery.ts","./src/createSubscription.ts","./src/index.ts"],"fileIdsList":[[60,61,66,67,68,69],[59],[67],[60,61,66],[60],[60,67],[62,63,64,65],[72],[80],[73],[71,72,73,74,75,76,77,78,79,81,82,83,84,85,86],[71,72],[74],[82],[71],[60,70,87],[60,70,87,88],[60,88,89,90,91,92,93]],"fileInfos":[{"version":"c430d44666289dae81f30fa7b2edebf186ecc91a2d4c71266ea6ae76388792e1","affectsGlobalScope":true,"impliedFormat":1},{"version":"45b7ab580deca34ae9729e97c13cfd999df04416a79116c3bfb483804f85ded4","impliedFormat":1},{"version":"3facaf05f0c5fc569c5649dd359892c98a85557e3e0c847964caeb67076f4d75","impliedFormat":1},{"version":"e44bb8bbac7f10ecc786703fe0a6a4b952189f908707980ba8f3c8975a760962","impliedFormat":1},{"version":"5e1c4c362065a6b95ff952c0eab010f04dcd2c3494e813b493ecfd4fcb9fc0d8","impliedFormat":1},{"version":"68d73b4a11549f9c0b7d352d10e91e5dca8faa3322bfb77b661839c42b1ddec7","impliedFormat":1},{"version":"5efce4fc3c29ea84e8928f97adec086e3dc876365e0982cc8479a07954a3efd4","impliedFormat":1},{"version":"feecb1be483ed332fad555aff858affd90a48ab19ba7272ee084704eb7167569","impliedFormat":1},{"version":"ee7bad0c15b58988daa84371e0b89d313b762ab83cb5b31b8a2d1162e8eb41c2","impliedFormat":1},{"version":"080941d9f9ff9307f7e27a83bcd888b7c8270716c39af943532438932ec1d0b9","affectsGlobalScope":true,"impliedFormat":1},{"version":"c57796738e7f83dbc4b8e65132f11a377649c00dd3eee333f672b8f0a6bea671","affectsGlobalScope":true,"impliedFormat":1},{"version":"dc2df20b1bcdc8c2d34af4926e2c3ab15ffe1160a63e58b7e09833f616efff44","affectsGlobalScope":true,"impliedFormat":1},{"version":"515d0b7b9bea2e31ea4ec968e9edd2c39d3eebf4a2d5cbd04e88639819ae3b71","affectsGlobalScope":true,"impliedFormat":1},{"version":"0559b1f683ac7505ae451f9a96ce4c3c92bdc71411651ca6ddb0e88baaaad6a3","affectsGlobalScope":true,"impliedFormat":1},{"version":"0dc1e7ceda9b8b9b455c3a2d67b0412feab00bd2f66656cd8850e8831b08b537","affectsGlobalScope":true,"impliedFormat":1},{"version":"ce691fb9e5c64efb9547083e4a34091bcbe5bdb41027e310ebba8f7d96a98671","affectsGlobalScope":true,"impliedFormat":1},{"version":"8d697a2a929a5fcb38b7a65594020fcef05ec1630804a33748829c5ff53640d0","affectsGlobalScope":true,"impliedFormat":1},{"version":"4ff2a353abf8a80ee399af572debb8faab2d33ad38c4b4474cff7f26e7653b8d","affectsGlobalScope":true,"impliedFormat":1},{"version":"fb0f136d372979348d59b3f5020b4cdb81b5504192b1cacff5d1fbba29378aa1","affectsGlobalScope":true,"impliedFormat":1},{"version":"d15bea3d62cbbdb9797079416b8ac375ae99162a7fba5de2c6c505446486ac0a","affectsGlobalScope":true,"impliedFormat":1},{"version":"68d18b664c9d32a7336a70235958b8997ebc1c3b8505f4f1ae2b7e7753b87618","affectsGlobalScope":true,"impliedFormat":1},{"version":"eb3d66c8327153d8fa7dd03f9c58d351107fe824c79e9b56b462935176cdf12a","affectsGlobalScope":true,"impliedFormat":1},{"version":"38f0219c9e23c915ef9790ab1d680440d95419ad264816fa15009a8851e79119","affectsGlobalScope":true,"impliedFormat":1},{"version":"69ab18c3b76cd9b1be3d188eaf8bba06112ebbe2f47f6c322b5105a6fbc45a2e","affectsGlobalScope":true,"impliedFormat":1},{"version":"a680117f487a4d2f30ea46f1b4b7f58bef1480456e18ba53ee85c2746eeca012","affectsGlobalScope":true,"impliedFormat":1},{"version":"2f11ff796926e0832f9ae148008138ad583bd181899ab7dd768a2666700b1893","affectsGlobalScope":true,"impliedFormat":1},{"version":"4de680d5bb41c17f7f68e0419412ca23c98d5749dcaaea1896172f06435891fc","affectsGlobalScope":true,"impliedFormat":1},{"version":"954296b30da6d508a104a3a0b5d96b76495c709785c1d11610908e63481ee667","affectsGlobalScope":true,"impliedFormat":1},{"version":"ac9538681b19688c8eae65811b329d3744af679e0bdfa5d842d0e32524c73e1c","affectsGlobalScope":true,"impliedFormat":1},{"version":"0a969edff4bd52585473d24995c5ef223f6652d6ef46193309b3921d65dd4376","affectsGlobalScope":true,"impliedFormat":1},{"version":"9e9fbd7030c440b33d021da145d3232984c8bb7916f277e8ffd3dc2e3eae2bdb","affectsGlobalScope":true,"impliedFormat":1},{"version":"811ec78f7fefcabbda4bfa93b3eb67d9ae166ef95f9bff989d964061cbf81a0c","affectsGlobalScope":true,"impliedFormat":1},{"version":"717937616a17072082152a2ef351cb51f98802fb4b2fdabd32399843875974ca","affectsGlobalScope":true,"impliedFormat":1},{"version":"d7e7d9b7b50e5f22c915b525acc5a49a7a6584cf8f62d0569e557c5cfc4b2ac2","affectsGlobalScope":true,"impliedFormat":1},{"version":"71c37f4c9543f31dfced6c7840e068c5a5aacb7b89111a4364b1d5276b852557","affectsGlobalScope":true,"impliedFormat":1},{"version":"576711e016cf4f1804676043e6a0a5414252560eb57de9faceee34d79798c850","affectsGlobalScope":true,"impliedFormat":1},{"version":"89c1b1281ba7b8a96efc676b11b264de7a8374c5ea1e6617f11880a13fc56dc6","affectsGlobalScope":true,"impliedFormat":1},{"version":"74f7fa2d027d5b33eb0471c8e82a6c87216223181ec31247c357a3e8e2fddc5b","affectsGlobalScope":true,"impliedFormat":1},{"version":"d6d7ae4d1f1f3772e2a3cde568ed08991a8ae34a080ff1151af28b7f798e22ca","affectsGlobalScope":true,"impliedFormat":1},{"version":"063600664504610fe3e99b717a1223f8b1900087fab0b4cad1496a114744f8df","affectsGlobalScope":true,"impliedFormat":1},{"version":"934019d7e3c81950f9a8426d093458b65d5aff2c7c1511233c0fd5b941e608ab","affectsGlobalScope":true,"impliedFormat":1},{"version":"52ada8e0b6e0482b728070b7639ee42e83a9b1c22d205992756fe020fd9f4a47","affectsGlobalScope":true,"impliedFormat":1},{"version":"3bdefe1bfd4d6dee0e26f928f93ccc128f1b64d5d501ff4a8cf3c6371200e5e6","affectsGlobalScope":true,"impliedFormat":1},{"version":"59fb2c069260b4ba00b5643b907ef5d5341b167e7d1dbf58dfd895658bda2867","affectsGlobalScope":true,"impliedFormat":1},{"version":"639e512c0dfc3fad96a84caad71b8834d66329a1f28dc95e3946c9b58176c73a","affectsGlobalScope":true,"impliedFormat":1},{"version":"368af93f74c9c932edd84c58883e736c9e3d53cec1fe24c0b0ff451f529ceab1","affectsGlobalScope":true,"impliedFormat":1},{"version":"af3dd424cf267428f30ccfc376f47a2c0114546b55c44d8c0f1d57d841e28d74","affectsGlobalScope":true,"impliedFormat":1},{"version":"995c005ab91a498455ea8dfb63aa9f83fa2ea793c3d8aa344be4a1678d06d399","affectsGlobalScope":true,"impliedFormat":1},{"version":"959d36cddf5e7d572a65045b876f2956c973a586da58e5d26cde519184fd9b8a","affectsGlobalScope":true,"impliedFormat":1},{"version":"965f36eae237dd74e6cca203a43e9ca801ce38824ead814728a2807b1910117d","affectsGlobalScope":true,"impliedFormat":1},{"version":"3925a6c820dcb1a06506c90b1577db1fdbf7705d65b62b99dce4be75c637e26b","affectsGlobalScope":true,"impliedFormat":1},{"version":"0a3d63ef2b853447ec4f749d3f368ce642264246e02911fcb1590d8c161b8005","affectsGlobalScope":true,"impliedFormat":1},{"version":"8cdf8847677ac7d20486e54dd3fcf09eda95812ac8ace44b4418da1bbbab6eb8","affectsGlobalScope":true,"impliedFormat":1},{"version":"8444af78980e3b20b49324f4a16ba35024fef3ee069a0eb67616ea6ca821c47a","affectsGlobalScope":true,"impliedFormat":1},{"version":"3287d9d085fbd618c3971944b65b4be57859f5415f495b33a6adc994edd2f004","affectsGlobalScope":true,"impliedFormat":1},{"version":"b4b67b1a91182421f5df999988c690f14d813b9850b40acd06ed44691f6727ad","affectsGlobalScope":true,"impliedFormat":1},{"version":"8e7f8264d0fb4c5339605a15daadb037bf238c10b654bb3eee14208f860a32ea","affectsGlobalScope":true,"impliedFormat":1},{"version":"782dec38049b92d4e85c1585fbea5474a219c6984a35b004963b00beb1aab538","affectsGlobalScope":true,"impliedFormat":1},{"version":"ac51dd7d31333793807a6abaa5ae168512b6131bd41d9c5b98477fc3b7800f9f","impliedFormat":1},{"version":"5ad3e58181b335ff8794bcc3161a1506dbe8cebbce71a15b3dc7bfe56f076679","impliedFormat":99},{"version":"a6d2eb77f390448a229ca63b4adadbcc549d203b8c038f1f7627a118f732969d","impliedFormat":99},{"version":"b886cc0d907b31ae7484a85da375bc8ac42f9986ec1e49c9c7c854956b0a928b","impliedFormat":99},{"version":"46b432f55912daaf98d11b81c5d06f8b78231c9ef101306ca5b3ef2cc7b6e9f0","impliedFormat":99},{"version":"8ab288ca80e5f2a9dab19955fcd9e81a244432cd7d256fdb5ea198ed5a44f0a4","impliedFormat":99},{"version":"0caadd121b8965f24d5c647a2ed01f5fc352772e4cea4bbca2ab78adedfdd921","impliedFormat":99},{"version":"b642b6a4b9b670338bc50281a6dd192fb7cc0b2f9d63d38c250bb1f02e828bbc","impliedFormat":99},{"version":"8e6b36766cbd3eed84e874fa9d1205f7b5e987fdf90d2574436be65040b2db91","impliedFormat":99},{"version":"c2e65a549ac9d227a9002d077af67bb1c77557a72bf39a85c4354831879078ed","affectsGlobalScope":true,"impliedFormat":99},{"version":"38f11ad59dfc38750b789f9f250742d0ce0da44e28f790a032cd15665b70f239","impliedFormat":99},{"version":"6e70da1429948b2ca8201ccc248bd2cb77cd6bbc4cf33f639c4b0f8f6a35cbd1","affectsGlobalScope":true,"impliedFormat":99},{"version":"6d811b90bfadc04ebeec6bb19fc2166f54bd527e5857893b9715546f27a7598f","impliedFormat":99},{"version":"6950a997ae1e2f8fecd954ee0ab79a18a38812fd09006ab2967b64aeb5effa0b","impliedFormat":99},{"version":"a7d21a74613ecd461885c8cf29ee6b3eb47aeeb0d807b56067ad93bf6239c108","impliedFormat":99},{"version":"04df4cf619cbff7652bec40ff8d23cb1834b40430c1e14353db27bcf6fb55658","impliedFormat":99},{"version":"4356ae6f3922d70d3f57614e5367a44131bb1cb4521b951ff5bc07724377c384","impliedFormat":99},{"version":"f5b2a5bb9373954132b0e4d5a53d34f8e079f5f17b203fb0fb5e28231bb2fe31","impliedFormat":99},{"version":"5e42b1db10cc88f088e5e4749e97e57bad97d0e1bb963110f6dc2ea0b8c954ca","impliedFormat":99},{"version":"545f86d2cfc0dd394875274312e038bacc2c6ae32c9b4c51b3fb80deea3ef987","impliedFormat":99},{"version":"2590a1c2be99e2e3767588ce4ccc76bcc229cfe95d2132685cc22a5c4253206e","impliedFormat":99},{"version":"917a6221a45e3ce278e2e968e90a0da7926aa7334e91a43d737cb3209f88ccda","impliedFormat":99},{"version":"5fde5727aa1a9fc43005eb2a9c37c21c9f7608e99346fae2d29957ed2c3f5b27","impliedFormat":99},{"version":"ccbb4f957666793ea28e67b0748ba838841e641330b661bae31a5974612c73fd","impliedFormat":99},{"version":"9143a4409f10ae9f6362706e00e3b7ed082d4b2af0125aab31ecd30a6fefab13","impliedFormat":99},{"version":"0a1cc7a231379fab5652cc44ccc109a1efec0f92b68273b306d259f228d52fe9","impliedFormat":99},{"version":"2d177f86bfbb9344d4545d4db67f3c55f8c2d4d669a2be4e32eeb439aae7b1b8","impliedFormat":99},{"version":"4cb0a2644a82e5603500af9888ebcc963abf982c86ab614baf94dbf4ccade688","impliedFormat":99},{"version":"9e6e5a36c24910d75f1c7787e3bfceb705739f956d62ad0e8d57ddc68a7e60bc","impliedFormat":99},{"version":"9e4d13734c2c7e7b29794b1e4a306ec3009daf6c05d43e088593358ecaff5f22","signature":"c73ee2e9c1b6f3a736cb71c886263aabcbe47d53b1b54a3e3d6d3dd7a98a4228","impliedFormat":99},{"version":"0204de1e33525e6f2879ab15fe5cc51145815154b09efab9720d328e9bd9af55","signature":"e0d40be6da361314241eec16f3d9b50b6ff3d0cb7a8da7eaabc153d8e1f3589c","impliedFormat":99},{"version":"f51bcd1771a0dafbde2e824a10d270175838d2bcf0e7b583f154f531215b38bc","signature":"e51b1f726d7614a122e712038879401fe638d7db6d4981b5f9b2f1c33661e213","impliedFormat":99},{"version":"da183c2872ae99bd27758129752cf0f5ae4066755246e396358c8cbe8cff43ff","signature":"c9bd82d64b7f7bb66720ddc35a52330288e2a3a9871c7bea0b98d3cd9a8c8234","impliedFormat":99},{"version":"f3b35605a8344fb6e6cae9a00e09f6b98d4f374640fc8289c84a1a588510b0d1","signature":"289538402e22e02a2660eac7becc216c0e2cfd8907b05e342fee56933b93a27a","impliedFormat":99},{"version":"a71a837fdeb42fab3559aced5176333f51675dcbc0c379c2ddec19603358571f","signature":"7b5ef61dca59c0724a038c3ff52d83d4b1109485ac6fb4d4636be71ecab5ef8e","impliedFormat":99},{"version":"4539669c0ee08ce2cfd9ff8722def5b33563635f1f1b3f824ea1d33eefb54311","signature":"a99a8244faf6420af9e811d4a5c57493e071d391d7ec9b8b288cbc6184327652","impliedFormat":99}],"root":[[88,94]],"options":{"composite":true,"declaration":true,"declarationMap":true,"esModuleInterop":true,"exactOptionalPropertyTypes":true,"jsx":1,"jsxImportSource":"solid-js","module":199,"noUncheckedIndexedAccess":true,"outDir":"./dist","rootDir":"./src","skipLibCheck":true,"sourceMap":true,"strict":true,"target":9},"referencedMap":[[70,1],[60,2],[69,3],[68,3],[67,4],[64,5],[62,5],[63,6],[65,3],[66,7],[73,8],[81,9],[78,10],[87,11],[71,8],[74,12],[76,13],[83,14],[75,8],[72,15],[88,16],[89,17],[90,17],[91,17],[92,17],[93,17],[94,18]],"latestChangedDtsFile":"./dist/index.d.ts","version":"5.9.3"}
1
+ {"fileNames":["../../node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/lib/lib.es5.d.ts","../../node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/lib/lib.es2015.d.ts","../../node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/lib/lib.es2016.d.ts","../../node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/lib/lib.es2017.d.ts","../../node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/lib/lib.es2018.d.ts","../../node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/lib/lib.es2019.d.ts","../../node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/lib/lib.es2020.d.ts","../../node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/lib/lib.es2021.d.ts","../../node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/lib/lib.es2022.d.ts","../../node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/lib/lib.dom.d.ts","../../node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/lib/lib.es2015.core.d.ts","../../node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/lib/lib.es2015.collection.d.ts","../../node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/lib/lib.es2015.generator.d.ts","../../node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/lib/lib.es2015.iterable.d.ts","../../node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/lib/lib.es2015.promise.d.ts","../../node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/lib/lib.es2015.proxy.d.ts","../../node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/lib/lib.es2015.reflect.d.ts","../../node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/lib/lib.es2015.symbol.d.ts","../../node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/lib/lib.es2015.symbol.wellknown.d.ts","../../node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/lib/lib.es2016.array.include.d.ts","../../node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/lib/lib.es2016.intl.d.ts","../../node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/lib/lib.es2017.arraybuffer.d.ts","../../node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/lib/lib.es2017.date.d.ts","../../node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/lib/lib.es2017.object.d.ts","../../node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/lib/lib.es2017.sharedmemory.d.ts","../../node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/lib/lib.es2017.string.d.ts","../../node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/lib/lib.es2017.intl.d.ts","../../node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/lib/lib.es2017.typedarrays.d.ts","../../node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/lib/lib.es2018.asyncgenerator.d.ts","../../node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/lib/lib.es2018.asynciterable.d.ts","../../node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/lib/lib.es2018.intl.d.ts","../../node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/lib/lib.es2018.promise.d.ts","../../node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/lib/lib.es2018.regexp.d.ts","../../node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/lib/lib.es2019.array.d.ts","../../node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/lib/lib.es2019.object.d.ts","../../node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/lib/lib.es2019.string.d.ts","../../node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/lib/lib.es2019.symbol.d.ts","../../node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/lib/lib.es2019.intl.d.ts","../../node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/lib/lib.es2020.bigint.d.ts","../../node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/lib/lib.es2020.date.d.ts","../../node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/lib/lib.es2020.promise.d.ts","../../node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/lib/lib.es2020.sharedmemory.d.ts","../../node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/lib/lib.es2020.string.d.ts","../../node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/lib/lib.es2020.symbol.wellknown.d.ts","../../node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/lib/lib.es2020.intl.d.ts","../../node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/lib/lib.es2020.number.d.ts","../../node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/lib/lib.es2021.promise.d.ts","../../node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/lib/lib.es2021.string.d.ts","../../node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/lib/lib.es2021.weakref.d.ts","../../node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/lib/lib.es2021.intl.d.ts","../../node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/lib/lib.es2022.array.d.ts","../../node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/lib/lib.es2022.error.d.ts","../../node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/lib/lib.es2022.intl.d.ts","../../node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/lib/lib.es2022.object.d.ts","../../node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/lib/lib.es2022.string.d.ts","../../node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/lib/lib.es2022.regexp.d.ts","../../node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/lib/lib.decorators.d.ts","../../node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/lib/lib.decorators.legacy.d.ts","../../ts-reset.d.ts","../../node_modules/.pnpm/csstype@3.2.3/node_modules/csstype/index.d.ts","../../node_modules/.pnpm/solid-js@1.9.11/node_modules/solid-js/types/jsx.d.ts","../../node_modules/.pnpm/solid-js@1.9.11/node_modules/solid-js/types/reactive/scheduler.d.ts","../../node_modules/.pnpm/solid-js@1.9.11/node_modules/solid-js/types/render/component.d.ts","../../node_modules/.pnpm/solid-js@1.9.11/node_modules/solid-js/types/render/flow.d.ts","../../node_modules/.pnpm/solid-js@1.9.11/node_modules/solid-js/types/render/Suspense.d.ts","../../node_modules/.pnpm/solid-js@1.9.11/node_modules/solid-js/types/render/hydration.d.ts","../../node_modules/.pnpm/solid-js@1.9.11/node_modules/solid-js/types/render/index.d.ts","../../node_modules/.pnpm/solid-js@1.9.11/node_modules/solid-js/types/reactive/signal.d.ts","../../node_modules/.pnpm/solid-js@1.9.11/node_modules/solid-js/types/reactive/observable.d.ts","../../node_modules/.pnpm/solid-js@1.9.11/node_modules/solid-js/types/reactive/array.d.ts","../../node_modules/.pnpm/solid-js@1.9.11/node_modules/solid-js/types/index.d.ts","../client/dist/select-types.d.ts","../client/dist/query-cache.d.ts","../client/dist/types.d.ts","../client/dist/fetch-with-retry.d.ts","../client/dist/auth.d.ts","../client/dist/filters.d.ts","../client/dist/query.d.ts","../client/dist/storage.d.ts","../client/dist/realtime.d.ts","../client/dist/table-subscription.d.ts","../client/dist/pkce.d.ts","../client/dist/identity.d.ts","../client/dist/errors.d.ts","../client/dist/exact-values.d.ts","../client/dist/field-kinds-registry.d.ts","../client/dist/draft-models-registry.d.ts","../client/dist/retry.d.ts","../client/dist/error-codes-doc.d.ts","../client/dist/serverless-docs.d.ts","../client/dist/preview.d.ts","../client/dist/graphql-document.d.ts","../client/dist/graphql-json.d.ts","../client/dist/graphql-transport.d.ts","../client/dist/index.d.ts","../client/dist/auth-redirect.d.ts","../client/dist/caller-types.d.ts","../client/dist/mutation-request.d.ts","../client/dist/live-preview.d.ts","../client/dist/bindings.d.ts","./src/context.ts","./src/createAuth.ts","./src/createFunction.ts","./src/createMutation.ts","./src/createQuery.ts","./src/createSubscription.ts","./src/index.ts","../../node_modules/.pnpm/@types+node@22.19.13/node_modules/@types/node/compatibility/disposable.d.ts","../../node_modules/.pnpm/@types+node@22.19.13/node_modules/@types/node/compatibility/indexable.d.ts","../../node_modules/.pnpm/@types+node@22.19.13/node_modules/@types/node/compatibility/iterators.d.ts","../../node_modules/.pnpm/@types+node@22.19.13/node_modules/@types/node/compatibility/index.d.ts","../../node_modules/.pnpm/@types+node@22.19.13/node_modules/@types/node/globals.typedarray.d.ts","../../node_modules/.pnpm/@types+node@22.19.13/node_modules/@types/node/buffer.buffer.d.ts","../../node_modules/.pnpm/@types+node@22.19.13/node_modules/@types/node/globals.d.ts","../../node_modules/.pnpm/@types+node@22.19.13/node_modules/@types/node/web-globals/abortcontroller.d.ts","../../node_modules/.pnpm/@types+node@22.19.13/node_modules/@types/node/web-globals/domexception.d.ts","../../node_modules/.pnpm/@types+node@22.19.13/node_modules/@types/node/web-globals/events.d.ts","../../node_modules/.pnpm/buffer@5.7.1/node_modules/buffer/index.d.ts","../../node_modules/.pnpm/undici-types@6.21.0/node_modules/undici-types/header.d.ts","../../node_modules/.pnpm/undici-types@6.21.0/node_modules/undici-types/readable.d.ts","../../node_modules/.pnpm/undici-types@6.21.0/node_modules/undici-types/file.d.ts","../../node_modules/.pnpm/undici-types@6.21.0/node_modules/undici-types/fetch.d.ts","../../node_modules/.pnpm/undici-types@6.21.0/node_modules/undici-types/formdata.d.ts","../../node_modules/.pnpm/undici-types@6.21.0/node_modules/undici-types/connector.d.ts","../../node_modules/.pnpm/undici-types@6.21.0/node_modules/undici-types/client.d.ts","../../node_modules/.pnpm/undici-types@6.21.0/node_modules/undici-types/errors.d.ts","../../node_modules/.pnpm/undici-types@6.21.0/node_modules/undici-types/dispatcher.d.ts","../../node_modules/.pnpm/undici-types@6.21.0/node_modules/undici-types/global-dispatcher.d.ts","../../node_modules/.pnpm/undici-types@6.21.0/node_modules/undici-types/global-origin.d.ts","../../node_modules/.pnpm/undici-types@6.21.0/node_modules/undici-types/pool-stats.d.ts","../../node_modules/.pnpm/undici-types@6.21.0/node_modules/undici-types/pool.d.ts","../../node_modules/.pnpm/undici-types@6.21.0/node_modules/undici-types/handlers.d.ts","../../node_modules/.pnpm/undici-types@6.21.0/node_modules/undici-types/balanced-pool.d.ts","../../node_modules/.pnpm/undici-types@6.21.0/node_modules/undici-types/agent.d.ts","../../node_modules/.pnpm/undici-types@6.21.0/node_modules/undici-types/mock-interceptor.d.ts","../../node_modules/.pnpm/undici-types@6.21.0/node_modules/undici-types/mock-agent.d.ts","../../node_modules/.pnpm/undici-types@6.21.0/node_modules/undici-types/mock-client.d.ts","../../node_modules/.pnpm/undici-types@6.21.0/node_modules/undici-types/mock-pool.d.ts","../../node_modules/.pnpm/undici-types@6.21.0/node_modules/undici-types/mock-errors.d.ts","../../node_modules/.pnpm/undici-types@6.21.0/node_modules/undici-types/proxy-agent.d.ts","../../node_modules/.pnpm/undici-types@6.21.0/node_modules/undici-types/env-http-proxy-agent.d.ts","../../node_modules/.pnpm/undici-types@6.21.0/node_modules/undici-types/retry-handler.d.ts","../../node_modules/.pnpm/undici-types@6.21.0/node_modules/undici-types/retry-agent.d.ts","../../node_modules/.pnpm/undici-types@6.21.0/node_modules/undici-types/api.d.ts","../../node_modules/.pnpm/undici-types@6.21.0/node_modules/undici-types/interceptors.d.ts","../../node_modules/.pnpm/undici-types@6.21.0/node_modules/undici-types/util.d.ts","../../node_modules/.pnpm/undici-types@6.21.0/node_modules/undici-types/cookies.d.ts","../../node_modules/.pnpm/undici-types@6.21.0/node_modules/undici-types/patch.d.ts","../../node_modules/.pnpm/undici-types@6.21.0/node_modules/undici-types/websocket.d.ts","../../node_modules/.pnpm/undici-types@6.21.0/node_modules/undici-types/eventsource.d.ts","../../node_modules/.pnpm/undici-types@6.21.0/node_modules/undici-types/filereader.d.ts","../../node_modules/.pnpm/undici-types@6.21.0/node_modules/undici-types/diagnostics-channel.d.ts","../../node_modules/.pnpm/undici-types@6.21.0/node_modules/undici-types/content-type.d.ts","../../node_modules/.pnpm/undici-types@6.21.0/node_modules/undici-types/cache.d.ts","../../node_modules/.pnpm/undici-types@6.21.0/node_modules/undici-types/index.d.ts","../../node_modules/.pnpm/@types+node@22.19.13/node_modules/@types/node/web-globals/fetch.d.ts","../../node_modules/.pnpm/@types+node@22.19.13/node_modules/@types/node/web-globals/navigator.d.ts","../../node_modules/.pnpm/@types+node@22.19.13/node_modules/@types/node/web-globals/storage.d.ts","../../node_modules/.pnpm/@types+node@22.19.13/node_modules/@types/node/assert.d.ts","../../node_modules/.pnpm/@types+node@22.19.13/node_modules/@types/node/assert/strict.d.ts","../../node_modules/.pnpm/@types+node@22.19.13/node_modules/@types/node/async_hooks.d.ts","../../node_modules/.pnpm/@types+node@22.19.13/node_modules/@types/node/buffer.d.ts","../../node_modules/.pnpm/@types+node@22.19.13/node_modules/@types/node/child_process.d.ts","../../node_modules/.pnpm/@types+node@22.19.13/node_modules/@types/node/cluster.d.ts","../../node_modules/.pnpm/@types+node@22.19.13/node_modules/@types/node/console.d.ts","../../node_modules/.pnpm/@types+node@22.19.13/node_modules/@types/node/constants.d.ts","../../node_modules/.pnpm/@types+node@22.19.13/node_modules/@types/node/crypto.d.ts","../../node_modules/.pnpm/@types+node@22.19.13/node_modules/@types/node/dgram.d.ts","../../node_modules/.pnpm/@types+node@22.19.13/node_modules/@types/node/diagnostics_channel.d.ts","../../node_modules/.pnpm/@types+node@22.19.13/node_modules/@types/node/dns.d.ts","../../node_modules/.pnpm/@types+node@22.19.13/node_modules/@types/node/dns/promises.d.ts","../../node_modules/.pnpm/@types+node@22.19.13/node_modules/@types/node/domain.d.ts","../../node_modules/.pnpm/@types+node@22.19.13/node_modules/@types/node/events.d.ts","../../node_modules/.pnpm/@types+node@22.19.13/node_modules/@types/node/fs.d.ts","../../node_modules/.pnpm/@types+node@22.19.13/node_modules/@types/node/fs/promises.d.ts","../../node_modules/.pnpm/@types+node@22.19.13/node_modules/@types/node/http.d.ts","../../node_modules/.pnpm/@types+node@22.19.13/node_modules/@types/node/http2.d.ts","../../node_modules/.pnpm/@types+node@22.19.13/node_modules/@types/node/https.d.ts","../../node_modules/.pnpm/@types+node@22.19.13/node_modules/@types/node/inspector.d.ts","../../node_modules/.pnpm/@types+node@22.19.13/node_modules/@types/node/inspector.generated.d.ts","../../node_modules/.pnpm/@types+node@22.19.13/node_modules/@types/node/module.d.ts","../../node_modules/.pnpm/@types+node@22.19.13/node_modules/@types/node/net.d.ts","../../node_modules/.pnpm/@types+node@22.19.13/node_modules/@types/node/os.d.ts","../../node_modules/.pnpm/@types+node@22.19.13/node_modules/@types/node/path.d.ts","../../node_modules/.pnpm/@types+node@22.19.13/node_modules/@types/node/perf_hooks.d.ts","../../node_modules/.pnpm/@types+node@22.19.13/node_modules/@types/node/process.d.ts","../../node_modules/.pnpm/@types+node@22.19.13/node_modules/@types/node/punycode.d.ts","../../node_modules/.pnpm/@types+node@22.19.13/node_modules/@types/node/querystring.d.ts","../../node_modules/.pnpm/@types+node@22.19.13/node_modules/@types/node/readline.d.ts","../../node_modules/.pnpm/@types+node@22.19.13/node_modules/@types/node/readline/promises.d.ts","../../node_modules/.pnpm/@types+node@22.19.13/node_modules/@types/node/repl.d.ts","../../node_modules/.pnpm/@types+node@22.19.13/node_modules/@types/node/sea.d.ts","../../node_modules/.pnpm/@types+node@22.19.13/node_modules/@types/node/sqlite.d.ts","../../node_modules/.pnpm/@types+node@22.19.13/node_modules/@types/node/stream.d.ts","../../node_modules/.pnpm/@types+node@22.19.13/node_modules/@types/node/stream/promises.d.ts","../../node_modules/.pnpm/@types+node@22.19.13/node_modules/@types/node/stream/consumers.d.ts","../../node_modules/.pnpm/@types+node@22.19.13/node_modules/@types/node/stream/web.d.ts","../../node_modules/.pnpm/@types+node@22.19.13/node_modules/@types/node/string_decoder.d.ts","../../node_modules/.pnpm/@types+node@22.19.13/node_modules/@types/node/test.d.ts","../../node_modules/.pnpm/@types+node@22.19.13/node_modules/@types/node/timers.d.ts","../../node_modules/.pnpm/@types+node@22.19.13/node_modules/@types/node/timers/promises.d.ts","../../node_modules/.pnpm/@types+node@22.19.13/node_modules/@types/node/tls.d.ts","../../node_modules/.pnpm/@types+node@22.19.13/node_modules/@types/node/trace_events.d.ts","../../node_modules/.pnpm/@types+node@22.19.13/node_modules/@types/node/tty.d.ts","../../node_modules/.pnpm/@types+node@22.19.13/node_modules/@types/node/url.d.ts","../../node_modules/.pnpm/@types+node@22.19.13/node_modules/@types/node/util.d.ts","../../node_modules/.pnpm/@types+node@22.19.13/node_modules/@types/node/v8.d.ts","../../node_modules/.pnpm/@types+node@22.19.13/node_modules/@types/node/vm.d.ts","../../node_modules/.pnpm/@types+node@22.19.13/node_modules/@types/node/wasi.d.ts","../../node_modules/.pnpm/@types+node@22.19.13/node_modules/@types/node/worker_threads.d.ts","../../node_modules/.pnpm/@types+node@22.19.13/node_modules/@types/node/zlib.d.ts","../../node_modules/.pnpm/@types+node@22.19.13/node_modules/@types/node/index.d.ts"],"fileIdsList":[[113,159,160,162,179,180],[113,161,162,179,180],[162,179,180],[113,162,167,179,180,197],[113,162,163,168,173,179,180,182,194,205],[113,162,163,164,173,179,180,182],[113,162,179,180],[108,109,110,113,162,179,180],[113,162,165,179,180,206],[113,162,166,167,174,179,180,183],[113,162,167,179,180,194,202],[113,162,168,170,173,179,180,182],[113,161,162,169,179,180],[113,162,170,171,179,180],[113,162,172,173,179,180],[113,161,162,173,179,180],[113,162,173,174,175,179,180,194,205],[113,162,173,174,175,179,180,189,194,197],[113,155,162,170,173,176,179,180,182,194,205],[113,162,173,174,176,177,179,180,182,194,202,205],[113,162,176,178,179,180,194,202,205],[111,112,113,114,115,116,117,156,157,158,159,160,161,162,163,164,165,166,167,168,169,170,171,172,173,174,175,176,177,178,179,180,181,182,183,184,185,186,187,188,189,190,191,192,193,194,195,196,197,198,199,200,201,202,203,204,205,206,207,208,209,210,211],[113,162,173,179,180],[113,162,179,180,181,205],[113,162,170,173,179,180,182,194],[113,162,179,180,183],[113,162,179,180,184],[113,161,162,179,180,185],[113,159,160,161,162,163,164,165,166,167,168,169,170,171,172,173,174,175,176,177,178,179,180,181,182,183,184,185,186,187,188,189,190,191,192,193,194,195,196,197,198,199,200,201,202,203,204,205,206,207,208,209,210,211],[113,162,179,180,187],[113,162,179,180,188],[113,162,173,179,180,189,190],[113,162,179,180,189,191,206,208],[113,162,174,179,180],[113,162,173,179,180,194,195,197],[113,162,179,180,196,197],[113,162,179,180,194,195],[113,162,179,180,197],[113,162,179,180,198],[113,159,162,179,180,194,199,205],[113,162,173,179,180,200,201],[113,162,179,180,200,201],[113,162,167,179,180,182,194,202],[113,162,179,180,203],[113,162,179,180,182,204],[113,162,176,179,180,188,205],[113,162,167,179,180,206],[113,162,179,180,194,207],[113,162,179,180,181,208],[113,162,179,180,209],[113,155,162,179,180],[113,155,162,173,175,179,180,185,194,197,205,207,208,210],[113,162,179,180,194,211],[61,62,67,68,69,70,113,162,179,180],[60,113,162,179,180],[68,113,162,179,180],[61,62,67,113,162,179,180],[61,113,162,179,180],[61,68,113,162,179,180],[63,64,65,66,113,162,179,180],[113,127,131,162,179,180,205],[113,127,162,179,180,194,205],[113,122,162,179,180],[113,124,127,162,179,180,202,205],[113,162,179,180,182,202],[113,162,179,180,212],[113,122,162,179,180,212],[113,124,127,162,179,180,182,205],[113,119,120,123,126,162,173,179,180,194,205],[113,127,134,162,179,180],[113,119,125,162,179,180],[113,127,148,149,162,179,180],[113,123,127,162,179,180,197,205,212],[113,148,162,179,180,212],[113,121,122,162,179,180,212],[113,127,162,179,180],[113,121,122,123,124,125,126,127,128,129,131,132,133,134,135,136,137,138,139,140,141,142,143,144,145,146,147,149,150,151,152,153,154,162,179,180],[113,127,142,162,179,180],[113,127,134,135,162,179,180],[113,125,127,135,136,162,179,180],[113,126,162,179,180],[113,119,122,127,162,179,180],[113,127,131,135,136,162,179,180],[113,131,162,179,180],[113,125,127,130,162,179,180,205],[113,119,124,127,134,162,179,180],[113,162,179,180,194],[113,122,127,148,162,179,180,210,212],[74,113,162,179,180],[74,75,113,162,179,180],[81,96,97,98,99,113,162,179,180],[74,95,113,162,179,180],[85,113,162,179,180],[92,113,162,179,180],[74,75,78,93,113,162,179,180],[76,113,162,179,180],[72,73,74,75,76,78,79,80,81,82,83,84,86,87,88,89,90,91,93,94,113,162,179,180],[72,73,74,75,77,113,162,179,180],[78,113,162,179,180],[75,113,162,179,180],[74,80,113,162,179,180],[72,73,113,162,179,180],[61,71,95,100,113,162,179,180],[61,71,95,100,101,113,162,179,180],[61,101,102,103,104,105,106,113,162,179,180]],"fileInfos":[{"version":"c430d44666289dae81f30fa7b2edebf186ecc91a2d4c71266ea6ae76388792e1","affectsGlobalScope":true,"impliedFormat":1},{"version":"45b7ab580deca34ae9729e97c13cfd999df04416a79116c3bfb483804f85ded4","impliedFormat":1},{"version":"3facaf05f0c5fc569c5649dd359892c98a85557e3e0c847964caeb67076f4d75","impliedFormat":1},{"version":"e44bb8bbac7f10ecc786703fe0a6a4b952189f908707980ba8f3c8975a760962","impliedFormat":1},{"version":"5e1c4c362065a6b95ff952c0eab010f04dcd2c3494e813b493ecfd4fcb9fc0d8","impliedFormat":1},{"version":"68d73b4a11549f9c0b7d352d10e91e5dca8faa3322bfb77b661839c42b1ddec7","impliedFormat":1},{"version":"5efce4fc3c29ea84e8928f97adec086e3dc876365e0982cc8479a07954a3efd4","impliedFormat":1},{"version":"feecb1be483ed332fad555aff858affd90a48ab19ba7272ee084704eb7167569","impliedFormat":1},{"version":"ee7bad0c15b58988daa84371e0b89d313b762ab83cb5b31b8a2d1162e8eb41c2","impliedFormat":1},{"version":"080941d9f9ff9307f7e27a83bcd888b7c8270716c39af943532438932ec1d0b9","affectsGlobalScope":true,"impliedFormat":1},{"version":"c57796738e7f83dbc4b8e65132f11a377649c00dd3eee333f672b8f0a6bea671","affectsGlobalScope":true,"impliedFormat":1},{"version":"dc2df20b1bcdc8c2d34af4926e2c3ab15ffe1160a63e58b7e09833f616efff44","affectsGlobalScope":true,"impliedFormat":1},{"version":"515d0b7b9bea2e31ea4ec968e9edd2c39d3eebf4a2d5cbd04e88639819ae3b71","affectsGlobalScope":true,"impliedFormat":1},{"version":"0559b1f683ac7505ae451f9a96ce4c3c92bdc71411651ca6ddb0e88baaaad6a3","affectsGlobalScope":true,"impliedFormat":1},{"version":"0dc1e7ceda9b8b9b455c3a2d67b0412feab00bd2f66656cd8850e8831b08b537","affectsGlobalScope":true,"impliedFormat":1},{"version":"ce691fb9e5c64efb9547083e4a34091bcbe5bdb41027e310ebba8f7d96a98671","affectsGlobalScope":true,"impliedFormat":1},{"version":"8d697a2a929a5fcb38b7a65594020fcef05ec1630804a33748829c5ff53640d0","affectsGlobalScope":true,"impliedFormat":1},{"version":"4ff2a353abf8a80ee399af572debb8faab2d33ad38c4b4474cff7f26e7653b8d","affectsGlobalScope":true,"impliedFormat":1},{"version":"fb0f136d372979348d59b3f5020b4cdb81b5504192b1cacff5d1fbba29378aa1","affectsGlobalScope":true,"impliedFormat":1},{"version":"d15bea3d62cbbdb9797079416b8ac375ae99162a7fba5de2c6c505446486ac0a","affectsGlobalScope":true,"impliedFormat":1},{"version":"68d18b664c9d32a7336a70235958b8997ebc1c3b8505f4f1ae2b7e7753b87618","affectsGlobalScope":true,"impliedFormat":1},{"version":"eb3d66c8327153d8fa7dd03f9c58d351107fe824c79e9b56b462935176cdf12a","affectsGlobalScope":true,"impliedFormat":1},{"version":"38f0219c9e23c915ef9790ab1d680440d95419ad264816fa15009a8851e79119","affectsGlobalScope":true,"impliedFormat":1},{"version":"69ab18c3b76cd9b1be3d188eaf8bba06112ebbe2f47f6c322b5105a6fbc45a2e","affectsGlobalScope":true,"impliedFormat":1},{"version":"a680117f487a4d2f30ea46f1b4b7f58bef1480456e18ba53ee85c2746eeca012","affectsGlobalScope":true,"impliedFormat":1},{"version":"2f11ff796926e0832f9ae148008138ad583bd181899ab7dd768a2666700b1893","affectsGlobalScope":true,"impliedFormat":1},{"version":"4de680d5bb41c17f7f68e0419412ca23c98d5749dcaaea1896172f06435891fc","affectsGlobalScope":true,"impliedFormat":1},{"version":"954296b30da6d508a104a3a0b5d96b76495c709785c1d11610908e63481ee667","affectsGlobalScope":true,"impliedFormat":1},{"version":"ac9538681b19688c8eae65811b329d3744af679e0bdfa5d842d0e32524c73e1c","affectsGlobalScope":true,"impliedFormat":1},{"version":"0a969edff4bd52585473d24995c5ef223f6652d6ef46193309b3921d65dd4376","affectsGlobalScope":true,"impliedFormat":1},{"version":"9e9fbd7030c440b33d021da145d3232984c8bb7916f277e8ffd3dc2e3eae2bdb","affectsGlobalScope":true,"impliedFormat":1},{"version":"811ec78f7fefcabbda4bfa93b3eb67d9ae166ef95f9bff989d964061cbf81a0c","affectsGlobalScope":true,"impliedFormat":1},{"version":"717937616a17072082152a2ef351cb51f98802fb4b2fdabd32399843875974ca","affectsGlobalScope":true,"impliedFormat":1},{"version":"d7e7d9b7b50e5f22c915b525acc5a49a7a6584cf8f62d0569e557c5cfc4b2ac2","affectsGlobalScope":true,"impliedFormat":1},{"version":"71c37f4c9543f31dfced6c7840e068c5a5aacb7b89111a4364b1d5276b852557","affectsGlobalScope":true,"impliedFormat":1},{"version":"576711e016cf4f1804676043e6a0a5414252560eb57de9faceee34d79798c850","affectsGlobalScope":true,"impliedFormat":1},{"version":"89c1b1281ba7b8a96efc676b11b264de7a8374c5ea1e6617f11880a13fc56dc6","affectsGlobalScope":true,"impliedFormat":1},{"version":"74f7fa2d027d5b33eb0471c8e82a6c87216223181ec31247c357a3e8e2fddc5b","affectsGlobalScope":true,"impliedFormat":1},{"version":"d6d7ae4d1f1f3772e2a3cde568ed08991a8ae34a080ff1151af28b7f798e22ca","affectsGlobalScope":true,"impliedFormat":1},{"version":"063600664504610fe3e99b717a1223f8b1900087fab0b4cad1496a114744f8df","affectsGlobalScope":true,"impliedFormat":1},{"version":"934019d7e3c81950f9a8426d093458b65d5aff2c7c1511233c0fd5b941e608ab","affectsGlobalScope":true,"impliedFormat":1},{"version":"52ada8e0b6e0482b728070b7639ee42e83a9b1c22d205992756fe020fd9f4a47","affectsGlobalScope":true,"impliedFormat":1},{"version":"3bdefe1bfd4d6dee0e26f928f93ccc128f1b64d5d501ff4a8cf3c6371200e5e6","affectsGlobalScope":true,"impliedFormat":1},{"version":"59fb2c069260b4ba00b5643b907ef5d5341b167e7d1dbf58dfd895658bda2867","affectsGlobalScope":true,"impliedFormat":1},{"version":"639e512c0dfc3fad96a84caad71b8834d66329a1f28dc95e3946c9b58176c73a","affectsGlobalScope":true,"impliedFormat":1},{"version":"368af93f74c9c932edd84c58883e736c9e3d53cec1fe24c0b0ff451f529ceab1","affectsGlobalScope":true,"impliedFormat":1},{"version":"af3dd424cf267428f30ccfc376f47a2c0114546b55c44d8c0f1d57d841e28d74","affectsGlobalScope":true,"impliedFormat":1},{"version":"995c005ab91a498455ea8dfb63aa9f83fa2ea793c3d8aa344be4a1678d06d399","affectsGlobalScope":true,"impliedFormat":1},{"version":"959d36cddf5e7d572a65045b876f2956c973a586da58e5d26cde519184fd9b8a","affectsGlobalScope":true,"impliedFormat":1},{"version":"965f36eae237dd74e6cca203a43e9ca801ce38824ead814728a2807b1910117d","affectsGlobalScope":true,"impliedFormat":1},{"version":"3925a6c820dcb1a06506c90b1577db1fdbf7705d65b62b99dce4be75c637e26b","affectsGlobalScope":true,"impliedFormat":1},{"version":"0a3d63ef2b853447ec4f749d3f368ce642264246e02911fcb1590d8c161b8005","affectsGlobalScope":true,"impliedFormat":1},{"version":"8cdf8847677ac7d20486e54dd3fcf09eda95812ac8ace44b4418da1bbbab6eb8","affectsGlobalScope":true,"impliedFormat":1},{"version":"8444af78980e3b20b49324f4a16ba35024fef3ee069a0eb67616ea6ca821c47a","affectsGlobalScope":true,"impliedFormat":1},{"version":"3287d9d085fbd618c3971944b65b4be57859f5415f495b33a6adc994edd2f004","affectsGlobalScope":true,"impliedFormat":1},{"version":"b4b67b1a91182421f5df999988c690f14d813b9850b40acd06ed44691f6727ad","affectsGlobalScope":true,"impliedFormat":1},{"version":"8e7f8264d0fb4c5339605a15daadb037bf238c10b654bb3eee14208f860a32ea","affectsGlobalScope":true,"impliedFormat":1},{"version":"782dec38049b92d4e85c1585fbea5474a219c6984a35b004963b00beb1aab538","affectsGlobalScope":true,"impliedFormat":1},{"version":"15bab0fff998f77b6e108e361807ef924179b6123aaad7c94646879074e3b1eb","affectsGlobalScope":true,"impliedFormat":1},{"version":"ac51dd7d31333793807a6abaa5ae168512b6131bd41d9c5b98477fc3b7800f9f","impliedFormat":1},{"version":"5ad3e58181b335ff8794bcc3161a1506dbe8cebbce71a15b3dc7bfe56f076679","impliedFormat":99},{"version":"a6d2eb77f390448a229ca63b4adadbcc549d203b8c038f1f7627a118f732969d","impliedFormat":99},{"version":"b886cc0d907b31ae7484a85da375bc8ac42f9986ec1e49c9c7c854956b0a928b","impliedFormat":99},{"version":"46b432f55912daaf98d11b81c5d06f8b78231c9ef101306ca5b3ef2cc7b6e9f0","impliedFormat":99},{"version":"8ab288ca80e5f2a9dab19955fcd9e81a244432cd7d256fdb5ea198ed5a44f0a4","impliedFormat":99},{"version":"0caadd121b8965f24d5c647a2ed01f5fc352772e4cea4bbca2ab78adedfdd921","impliedFormat":99},{"version":"b642b6a4b9b670338bc50281a6dd192fb7cc0b2f9d63d38c250bb1f02e828bbc","impliedFormat":99},{"version":"8e6b36766cbd3eed84e874fa9d1205f7b5e987fdf90d2574436be65040b2db91","impliedFormat":99},{"version":"c2e65a549ac9d227a9002d077af67bb1c77557a72bf39a85c4354831879078ed","affectsGlobalScope":true,"impliedFormat":99},{"version":"38f11ad59dfc38750b789f9f250742d0ce0da44e28f790a032cd15665b70f239","impliedFormat":99},{"version":"6e70da1429948b2ca8201ccc248bd2cb77cd6bbc4cf33f639c4b0f8f6a35cbd1","affectsGlobalScope":true,"impliedFormat":99},{"version":"6d7e2e5bbb8d950ac95afc421abf303862d31efbc1b96f7666ce1894b301ea15","impliedFormat":99},{"version":"6d811b90bfadc04ebeec6bb19fc2166f54bd527e5857893b9715546f27a7598f","impliedFormat":99},{"version":"78ab8003a5d6902c2ec1a710d19960f8d40761881458e6024714282f3f4c41dd","impliedFormat":99},{"version":"28683f6633f7a4a4175b0f5fe9d368af8e904a4b58e4fbeab71456f871705a18","impliedFormat":99},{"version":"7c971b1afedf099ede70d8da5f0ced1f1a7f92085a73ecaf65cb7327e463c3ee","impliedFormat":99},{"version":"01b7367b12aaf639bb876eefb9bae25d441a6ead1d2e4cb4f6dee6c8e17557cc","impliedFormat":99},{"version":"2e80e4660990382c6e3355c544627487c8548104eb5aa383dded7870a41443db","impliedFormat":99},{"version":"97f7607bc3483613d9d6b464b5b876d973eac1f2ec7eb65115ab1320903ae0cf","impliedFormat":99},{"version":"9e0df4b9675ea7d65448a78bb2818f4a2d982fb9cfda8963230db8d2d6bdf20f","impliedFormat":99},{"version":"607f7d1bdac5950af9b04233e45a3ec4443d5f5ed1d89f96c35088b0f57a7e83","impliedFormat":99},{"version":"5e42b1db10cc88f088e5e4749e97e57bad97d0e1bb963110f6dc2ea0b8c954ca","impliedFormat":99},{"version":"545f86d2cfc0dd394875274312e038bacc2c6ae32c9b4c51b3fb80deea3ef987","impliedFormat":99},{"version":"c875342f3a7a25f8efa15c8898af7d26c50be90c10dc44967ba9496f68638891","impliedFormat":99},{"version":"d0c12e47bd10372f73f67f078213327dcc65515773b4bd7be184b5ee68f17b09","impliedFormat":99},{"version":"fbabe42cd78d8c77ff2f2b959c50a6f9db42e9c4edc4e408ddc5634cdb6c6b81","impliedFormat":99},{"version":"6ffcb78f82098b708e68c1a3fde1e82505b1d9c4d4edd6136b6937151c6db8aa","impliedFormat":99},{"version":"9143a4409f10ae9f6362706e00e3b7ed082d4b2af0125aab31ecd30a6fefab13","impliedFormat":99},{"version":"28a54a7112bf676145d5489b10aab4b5329994e418d78da0aeb29387b0bbf366","impliedFormat":99},{"version":"2d177f86bfbb9344d4545d4db67f3c55f8c2d4d669a2be4e32eeb439aae7b1b8","impliedFormat":99},{"version":"4cb0a2644a82e5603500af9888ebcc963abf982c86ab614baf94dbf4ccade688","impliedFormat":99},{"version":"30291a2d1621b206d2ce27f2377dcaaf93d883e1f07a439eb196acbeb9a77488","impliedFormat":99},{"version":"e298b59cb235761a73d9ca3bb726db56bc6afed829a7f1e814680462ac3fd7bb","impliedFormat":99},{"version":"da9f23fd70b051d05322870461cb690446b148a8136a861077a091865c4dfd35","impliedFormat":99},{"version":"26c40c40b270da167285fdb837801d0411ce86e213e097f9533b78e9c12e2164","impliedFormat":99},{"version":"2cded70360a52a37d6f29e767f970eb55e411d361f942c7b5679710b6ae8455a","impliedFormat":99},{"version":"1c902e696a01758fca67e7749898b6edeaf1e7eaf531d54aa862ec33dadc491d","impliedFormat":99},{"version":"d6f3f690a78ebede1cd428931303dcf92514829b59e7855106e024feb7a2b233","impliedFormat":99},{"version":"7be060dfdf4a9765e1a8d57fbae92b3f9cdcd2fccc63cf92a120464ed3de162d","impliedFormat":99},{"version":"8338ea8cec009c320c9213244b8f2ce5af93a0f020f4919144bfa80006c5f6ce","impliedFormat":99},{"version":"aee2f020bc579e6c36fc79de915fa2952ab8cc51c4f02a18978a2e2955b6580d","signature":"c73ee2e9c1b6f3a736cb71c886263aabcbe47d53b1b54a3e3d6d3dd7a98a4228","impliedFormat":99},{"version":"6dacced03f359100ce0775be08cf28bef192918428cfa4a0ec4f48b9f8cbcee9","signature":"d72a8311e1da097006b330bfa3d050983e1c49a6cacad18439cd84f405f02e64","impliedFormat":99},{"version":"2d5d54b9a6a55484e71a335ea38f9a3e8f1a9f3926ec4f27a352ec2bab654a7f","signature":"e51b1f726d7614a122e712038879401fe638d7db6d4981b5f9b2f1c33661e213","impliedFormat":99},{"version":"bfb2322ca3d5a0abfcdc038fef040f0efe18170de325fad73cd83c1b840226b1","signature":"5e399bc6ac8b15c9094a99183cb1e78df8847608762436a5303216f2f0b9c0e9","impliedFormat":99},{"version":"e103a04fbeceb6c3f49605ad3b9ff97c5e118dbab6f92b4acfa49623f44444cb","signature":"289538402e22e02a2660eac7becc216c0e2cfd8907b05e342fee56933b93a27a","impliedFormat":99},{"version":"0db78379baf513390aa929fd6d87c3d495309bc657b96c0a081098b4fd3f37b8","signature":"bdc9278bb103244770df80a93cb51ac2d15253802e25190194e37d3bfb5bcd9b","impliedFormat":99},{"version":"4539669c0ee08ce2cfd9ff8722def5b33563635f1f1b3f824ea1d33eefb54311","signature":"a99a8244faf6420af9e811d4a5c57493e071d391d7ec9b8b288cbc6184327652","impliedFormat":99},{"version":"6c7176368037af28cb72f2392010fa1cef295d6d6744bca8cfb54985f3a18c3e","affectsGlobalScope":true,"impliedFormat":1},{"version":"ab41ef1f2cdafb8df48be20cd969d875602483859dc194e9c97c8a576892c052","affectsGlobalScope":true,"impliedFormat":1},{"version":"437e20f2ba32abaeb7985e0afe0002de1917bc74e949ba585e49feba65da6ca1","affectsGlobalScope":true,"impliedFormat":1},{"version":"21d819c173c0cf7cc3ce57c3276e77fd9a8a01d35a06ad87158781515c9a438a","impliedFormat":1},{"version":"98cffbf06d6bab333473c70a893770dbe990783904002c4f1a960447b4b53dca","affectsGlobalScope":true,"impliedFormat":1},{"version":"3af97acf03cc97de58a3a4bc91f8f616408099bc4233f6d0852e72a8ffb91ac9","affectsGlobalScope":true,"impliedFormat":1},{"version":"808069bba06b6768b62fd22429b53362e7af342da4a236ed2d2e1c89fcca3b4a","affectsGlobalScope":true,"impliedFormat":1},{"version":"1db0b7dca579049ca4193d034d835f6bfe73096c73663e5ef9a0b5779939f3d0","affectsGlobalScope":true,"impliedFormat":1},{"version":"9798340ffb0d067d69b1ae5b32faa17ab31b82466a3fc00d8f2f2df0c8554aaa","affectsGlobalScope":true,"impliedFormat":1},{"version":"f26b11d8d8e4b8028f1c7d618b22274c892e4b0ef5b3678a8ccbad85419aef43","affectsGlobalScope":true,"impliedFormat":1},{"version":"8e9c23ba78aabc2e0a27033f18737a6df754067731e69dc5f52823957d60a4b6","impliedFormat":1},{"version":"5929864ce17fba74232584d90cb721a89b7ad277220627cc97054ba15a98ea8f","impliedFormat":1},{"version":"763fe0f42b3d79b440a9b6e51e9ba3f3f91352469c1e4b3b67bfa4ff6352f3f4","impliedFormat":1},{"version":"25c8056edf4314820382a5fdb4bb7816999acdcb929c8f75e3f39473b87e85bc","impliedFormat":1},{"version":"c464d66b20788266e5353b48dc4aa6bc0dc4a707276df1e7152ab0c9ae21fad8","impliedFormat":1},{"version":"78d0d27c130d35c60b5e5566c9f1e5be77caf39804636bc1a40133919a949f21","impliedFormat":1},{"version":"c6fd2c5a395f2432786c9cb8deb870b9b0e8ff7e22c029954fabdd692bff6195","impliedFormat":1},{"version":"1d6e127068ea8e104a912e42fc0a110e2aa5a66a356a917a163e8cf9a65e4a75","impliedFormat":1},{"version":"5ded6427296cdf3b9542de4471d2aa8d3983671d4cac0f4bf9c637208d1ced43","impliedFormat":1},{"version":"7f182617db458e98fc18dfb272d40aa2fff3a353c44a89b2c0ccb3937709bfb5","impliedFormat":1},{"version":"cadc8aced301244057c4e7e73fbcae534b0f5b12a37b150d80e5a45aa4bebcbd","impliedFormat":1},{"version":"385aab901643aa54e1c36f5ef3107913b10d1b5bb8cbcd933d4263b80a0d7f20","impliedFormat":1},{"version":"9670d44354bab9d9982eca21945686b5c24a3f893db73c0dae0fd74217a4c219","impliedFormat":1},{"version":"0b8a9268adaf4da35e7fa830c8981cfa22adbbe5b3f6f5ab91f6658899e657a7","impliedFormat":1},{"version":"11396ed8a44c02ab9798b7dca436009f866e8dae3c9c25e8c1fbc396880bf1bb","impliedFormat":1},{"version":"ba7bc87d01492633cb5a0e5da8a4a42a1c86270e7b3d2dea5d156828a84e4882","impliedFormat":1},{"version":"4893a895ea92c85345017a04ed427cbd6a1710453338df26881a6019432febdd","impliedFormat":1},{"version":"c21dc52e277bcfc75fac0436ccb75c204f9e1b3fa5e12729670910639f27343e","impliedFormat":1},{"version":"13f6f39e12b1518c6650bbb220c8985999020fe0f21d818e28f512b7771d00f9","impliedFormat":1},{"version":"9b5369969f6e7175740bf51223112ff209f94ba43ecd3bb09eefff9fd675624a","impliedFormat":1},{"version":"4fe9e626e7164748e8769bbf74b538e09607f07ed17c2f20af8d680ee49fc1da","impliedFormat":1},{"version":"24515859bc0b836719105bb6cc3d68255042a9f02a6022b3187948b204946bd2","impliedFormat":1},{"version":"ea0148f897b45a76544ae179784c95af1bd6721b8610af9ffa467a518a086a43","impliedFormat":1},{"version":"24c6a117721e606c9984335f71711877293a9651e44f59f3d21c1ea0856f9cc9","impliedFormat":1},{"version":"dd3273ead9fbde62a72949c97dbec2247ea08e0c6952e701a483d74ef92d6a17","impliedFormat":1},{"version":"405822be75ad3e4d162e07439bac80c6bcc6dbae1929e179cf467ec0b9ee4e2e","impliedFormat":1},{"version":"0db18c6e78ea846316c012478888f33c11ffadab9efd1cc8bcc12daded7a60b6","impliedFormat":1},{"version":"e61be3f894b41b7baa1fbd6a66893f2579bfad01d208b4ff61daef21493ef0a8","impliedFormat":1},{"version":"bd0532fd6556073727d28da0edfd1736417a3f9f394877b6d5ef6ad88fba1d1a","impliedFormat":1},{"version":"89167d696a849fce5ca508032aabfe901c0868f833a8625d5a9c6e861ef935d2","impliedFormat":1},{"version":"615ba88d0128ed16bf83ef8ccbb6aff05c3ee2db1cc0f89ab50a4939bfc1943f","impliedFormat":1},{"version":"a4d551dbf8746780194d550c88f26cf937caf8d56f102969a110cfaed4b06656","impliedFormat":1},{"version":"8bd86b8e8f6a6aa6c49b71e14c4ffe1211a0e97c80f08d2c8cc98838006e4b88","impliedFormat":1},{"version":"317e63deeb21ac07f3992f5b50cdca8338f10acd4fbb7257ebf56735bf52ab00","impliedFormat":1},{"version":"4732aec92b20fb28c5fe9ad99521fb59974289ed1e45aecb282616202184064f","impliedFormat":1},{"version":"2e85db9e6fd73cfa3d7f28e0ab6b55417ea18931423bd47b409a96e4a169e8e6","impliedFormat":1},{"version":"c46e079fe54c76f95c67fb89081b3e399da2c7d109e7dca8e4b58d83e332e605","impliedFormat":1},{"version":"bf67d53d168abc1298888693338cb82854bdb2e69ef83f8a0092093c2d562107","impliedFormat":1},{"version":"b52476feb4a0cbcb25e5931b930fc73cb6643fb1a5060bf8a3dda0eeae5b4b68","affectsGlobalScope":true,"impliedFormat":1},{"version":"f9501cc13ce624c72b61f12b3963e84fad210fbdf0ffbc4590e08460a3f04eba","affectsGlobalScope":true,"impliedFormat":1},{"version":"e7721c4f69f93c91360c26a0a84ee885997d748237ef78ef665b153e622b36c1","affectsGlobalScope":true,"impliedFormat":1},{"version":"0fa06ada475b910e2106c98c68b10483dc8811d0c14a8a8dd36efb2672485b29","impliedFormat":1},{"version":"33e5e9aba62c3193d10d1d33ae1fa75c46a1171cf76fef750777377d53b0303f","impliedFormat":1},{"version":"2b06b93fd01bcd49d1a6bd1f9b65ddcae6480b9a86e9061634d6f8e354c1468f","impliedFormat":1},{"version":"6a0cd27e5dc2cfbe039e731cf879d12b0e2dded06d1b1dedad07f7712de0d7f4","affectsGlobalScope":true,"impliedFormat":1},{"version":"13f5c844119c43e51ce777c509267f14d6aaf31eafb2c2b002ca35584cd13b29","impliedFormat":1},{"version":"e60477649d6ad21542bd2dc7e3d9ff6853d0797ba9f689ba2f6653818999c264","impliedFormat":1},{"version":"c2510f124c0293ab80b1777c44d80f812b75612f297b9857406468c0f4dafe29","affectsGlobalScope":true,"impliedFormat":1},{"version":"5524481e56c48ff486f42926778c0a3cce1cc85dc46683b92b1271865bcf015a","impliedFormat":1},{"version":"4c829ab315f57c5442c6667b53769975acbf92003a66aef19bce151987675bd1","affectsGlobalScope":true,"impliedFormat":1},{"version":"b2ade7657e2db96d18315694789eff2ddd3d8aea7215b181f8a0b303277cc579","impliedFormat":1},{"version":"9855e02d837744303391e5623a531734443a5f8e6e8755e018c41d63ad797db2","impliedFormat":1},{"version":"4d631b81fa2f07a0e63a9a143d6a82c25c5f051298651a9b69176ba28930756d","impliedFormat":1},{"version":"836a356aae992ff3c28a0212e3eabcb76dd4b0cc06bcb9607aeef560661b860d","impliedFormat":1},{"version":"1e0d1f8b0adfa0b0330e028c7941b5a98c08b600efe7f14d2d2a00854fb2f393","impliedFormat":1},{"version":"41670ee38943d9cbb4924e436f56fc19ee94232bc96108562de1a734af20dc2c","affectsGlobalScope":true,"impliedFormat":1},{"version":"c906fb15bd2aabc9ed1e3f44eb6a8661199d6c320b3aa196b826121552cb3695","impliedFormat":1},{"version":"22295e8103f1d6d8ea4b5d6211e43421fe4564e34d0dd8e09e520e452d89e659","impliedFormat":1},{"version":"f949f7f6c7802a338039cfc2156d1fe285cdd1e092c64437ebe15ae8edc854e0","impliedFormat":1},{"version":"6b4e081d55ac24fc8a4631d5dd77fe249fa25900abd7d046abb87d90e3b45645","impliedFormat":1},{"version":"a10f0e1854f3316d7ee437b79649e5a6ae3ae14ffe6322b02d4987071a95362e","impliedFormat":1},{"version":"e208f73ef6a980104304b0d2ca5f6bf1b85de6009d2c7e404028b875020fa8f2","impliedFormat":1},{"version":"d163b6bc2372b4f07260747cbc6c0a6405ab3fbcea3852305e98ac43ca59f5bc","impliedFormat":1},{"version":"e6fa9ad47c5f71ff733744a029d1dc472c618de53804eae08ffc243b936f87ff","affectsGlobalScope":true,"impliedFormat":1},{"version":"83e63d6ccf8ec004a3bb6d58b9bb0104f60e002754b1e968024b320730cc5311","impliedFormat":1},{"version":"24826ed94a78d5c64bd857570fdbd96229ad41b5cb654c08d75a9845e3ab7dde","impliedFormat":1},{"version":"8b479a130ccb62e98f11f136d3ac80f2984fdc07616516d29881f3061f2dd472","impliedFormat":1},{"version":"928af3d90454bf656a52a48679f199f64c1435247d6189d1caf4c68f2eaf921f","affectsGlobalScope":true,"impliedFormat":1},{"version":"bceb58df66ab8fb00170df20cd813978c5ab84be1d285710c4eb005d8e9d8efb","affectsGlobalScope":true,"impliedFormat":1},{"version":"3f16a7e4deafa527ed9995a772bb380eb7d3c2c0fd4ae178c5263ed18394db2c","impliedFormat":1},{"version":"933921f0bb0ec12ef45d1062a1fc0f27635318f4d294e4d99de9a5493e618ca2","impliedFormat":1},{"version":"71a0f3ad612c123b57239a7749770017ecfe6b66411488000aba83e4546fde25","impliedFormat":1},{"version":"77fbe5eecb6fac4b6242bbf6eebfc43e98ce5ccba8fa44e0ef6a95c945ff4d98","impliedFormat":1},{"version":"4f9d8ca0c417b67b69eeb54c7ca1bedd7b56034bb9bfd27c5d4f3bc4692daca7","impliedFormat":1},{"version":"814118df420c4e38fe5ae1b9a3bafb6e9c2aa40838e528cde908381867be6466","impliedFormat":1},{"version":"a3fc63c0d7b031693f665f5494412ba4b551fe644ededccc0ab5922401079c95","impliedFormat":1},{"version":"f27524f4bef4b6519c604bdb23bf4465bddcccbf3f003abb901acbd0d7404d99","impliedFormat":1},{"version":"37ba7b45141a45ce6e80e66f2a96c8a5ab1bcef0fc2d0f56bb58df96ec67e972","impliedFormat":1},{"version":"45650f47bfb376c8a8ed39d4bcda5902ab899a3150029684ee4c10676d9fbaee","impliedFormat":1},{"version":"6b039f55681caaf111d5eb84d292b9bee9e0131d0db1ad0871eef0964f533c73","affectsGlobalScope":true,"impliedFormat":1},{"version":"18fd40412d102c5564136f29735e5d1c3b455b8a37f920da79561f1fde068208","impliedFormat":1},{"version":"c8d3e5a18ba35629954e48c4cc8f11dc88224650067a172685c736b27a34a4dc","impliedFormat":1},{"version":"f0be1b8078cd549d91f37c30c222c2a187ac1cf981d994fb476a1adc61387b14","affectsGlobalScope":true,"impliedFormat":1},{"version":"0aaed1d72199b01234152f7a60046bc947f1f37d78d182e9ae09c4289e06a592","impliedFormat":1},{"version":"2b55d426ff2b9087485e52ac4bc7cfafe1dc420fc76dad926cd46526567c501a","impliedFormat":1},{"version":"66ba1b2c3e3a3644a1011cd530fb444a96b1b2dfe2f5e837a002d41a1a799e60","impliedFormat":1},{"version":"7e514f5b852fdbc166b539fdd1f4e9114f29911592a5eb10a94bb3a13ccac3c4","impliedFormat":1},{"version":"5b7aa3c4c1a5d81b411e8cb302b45507fea9358d3569196b27eb1a27ae3a90ef","affectsGlobalScope":true,"impliedFormat":1},{"version":"5987a903da92c7462e0b35704ce7da94d7fdc4b89a984871c0e2b87a8aae9e69","affectsGlobalScope":true,"impliedFormat":1},{"version":"ea08a0345023ade2b47fbff5a76d0d0ed8bff10bc9d22b83f40858a8e941501c","impliedFormat":1},{"version":"47613031a5a31510831304405af561b0ffaedb734437c595256bb61a90f9311b","impliedFormat":1},{"version":"ae062ce7d9510060c5d7e7952ae379224fb3f8f2dd74e88959878af2057c143b","impliedFormat":1},{"version":"8a1a0d0a4a06a8d278947fcb66bf684f117bf147f89b06e50662d79a53be3e9f","affectsGlobalScope":true,"impliedFormat":1},{"version":"9f663c2f91127ef7024e8ca4b3b4383ff2770e5f826696005de382282794b127","impliedFormat":1},{"version":"9f55299850d4f0921e79b6bf344b47c420ce0f507b9dcf593e532b09ea7eeea1","impliedFormat":1}],"root":[59,[101,107]],"options":{"composite":true,"declaration":true,"declarationMap":true,"esModuleInterop":true,"exactOptionalPropertyTypes":true,"jsx":1,"jsxImportSource":"solid-js","module":199,"noUncheckedIndexedAccess":true,"outDir":"./dist","rootDir":"./src","skipLibCheck":true,"sourceMap":true,"strict":true,"target":9},"referencedMap":[[159,1],[160,1],[161,2],[113,3],[162,4],[163,5],[164,6],[108,7],[111,8],[109,7],[110,7],[165,9],[166,10],[167,11],[168,12],[169,13],[170,14],[171,14],[172,15],[173,16],[174,17],[175,18],[114,7],[112,7],[176,19],[177,20],[178,21],[212,22],[179,23],[180,7],[181,24],[182,25],[183,26],[184,27],[185,28],[186,29],[187,30],[188,31],[189,32],[190,32],[191,33],[192,7],[193,34],[194,35],[196,36],[195,37],[197,38],[198,39],[199,40],[200,41],[201,42],[202,43],[203,44],[204,45],[205,46],[206,47],[207,48],[208,49],[209,50],[115,7],[116,7],[117,7],[156,51],[157,7],[158,7],[210,52],[211,53],[118,7],[60,7],[71,54],[61,55],[70,56],[69,56],[62,7],[68,57],[65,58],[63,58],[64,59],[66,56],[67,60],[57,7],[58,7],[10,7],[12,7],[11,7],[2,7],[13,7],[14,7],[15,7],[16,7],[17,7],[18,7],[19,7],[20,7],[3,7],[21,7],[22,7],[4,7],[23,7],[27,7],[24,7],[25,7],[26,7],[28,7],[29,7],[30,7],[5,7],[31,7],[32,7],[33,7],[34,7],[6,7],[38,7],[35,7],[36,7],[37,7],[39,7],[7,7],[40,7],[45,7],[46,7],[41,7],[42,7],[43,7],[44,7],[8,7],[50,7],[47,7],[48,7],[49,7],[51,7],[9,7],[52,7],[53,7],[54,7],[56,7],[55,7],[1,7],[134,61],[144,62],[133,61],[154,63],[125,64],[124,65],[153,66],[147,67],[152,68],[127,69],[141,70],[126,71],[150,72],[122,73],[121,66],[151,74],[123,75],[128,76],[129,7],[132,76],[119,7],[155,77],[145,78],[136,79],[137,80],[139,81],[135,82],[138,83],[148,66],[130,84],[131,85],[140,86],[120,87],[143,78],[142,76],[146,7],[149,88],[96,89],[76,90],[100,91],[97,92],[87,7],[89,7],[84,89],[85,7],[75,7],[86,93],[77,7],[92,7],[93,94],[94,95],[83,96],[95,97],[99,7],[98,92],[82,7],[91,7],[73,89],[78,98],[80,99],[88,100],[72,89],[90,7],[79,90],[81,101],[74,102],[101,103],[102,104],[103,104],[104,104],[105,104],[106,104],[107,105],[59,7]],"latestChangedDtsFile":"./dist/index.d.ts","version":"5.9.3"}