@supatype/svelte 0.3.6 → 0.7.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.
- package/.turbo/turbo-build.log +1 -1
- package/.turbo/turbo-test.log +16 -0
- package/.turbo/turbo-typecheck.log +2 -2
- package/LICENSE +1 -1
- package/dist/createAuth.d.ts +9 -1
- package/dist/createAuth.d.ts.map +1 -1
- package/dist/createAuth.js +10 -10
- package/dist/createAuth.js.map +1 -1
- package/dist/createFunction.d.ts.map +1 -1
- package/dist/createFunction.js +14 -8
- package/dist/createFunction.js.map +1 -1
- package/dist/createMutation.d.ts +2 -1
- package/dist/createMutation.d.ts.map +1 -1
- package/dist/createMutation.js +3 -27
- package/dist/createMutation.js.map +1 -1
- package/dist/createQuery.d.ts.map +1 -1
- package/dist/createQuery.js +4 -2
- package/dist/createQuery.js.map +1 -1
- package/dist/createSubscription.d.ts +11 -6
- package/dist/createSubscription.d.ts.map +1 -1
- package/dist/createSubscription.js +14 -44
- package/dist/createSubscription.js.map +1 -1
- package/package.json +8 -5
- package/src/createAuth.ts +19 -12
- package/src/createFunction.ts +12 -8
- package/src/createMutation.ts +5 -27
- package/src/createQuery.ts +6 -4
- package/src/createSubscription.ts +20 -57
- package/tests/createAuth-oauth.test.ts +36 -0
- package/tests/createAuth-signup.test.ts +35 -0
- package/tests/createSubscription-status.test.ts +39 -0
- package/tests/tsconfig.json +9 -0
- package/tsconfig.json +1 -1
- package/tsconfig.tsbuildinfo +1 -1
package/.turbo/turbo-build.log
CHANGED
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
|
|
2
|
+
> @supatype/svelte@0.7.0 test /home/runner/work/supatype/supatype/packages/svelte
|
|
3
|
+
> vitest run
|
|
4
|
+
|
|
5
|
+
|
|
6
|
+
[1m[46m RUN [49m[22m [36mv4.0.18 [39m[90m/home/runner/work/supatype/supatype/packages/svelte[39m
|
|
7
|
+
|
|
8
|
+
[32m✓[39m tests/createAuth-signup.test.ts [2m([22m[2m2 tests[22m[2m)[22m[32m 49[2mms[22m[39m
|
|
9
|
+
[32m✓[39m tests/createAuth-oauth.test.ts [2m([22m[2m3 tests[22m[2m)[22m[32m 56[2mms[22m[39m
|
|
10
|
+
[32m✓[39m tests/createSubscription-status.test.ts [2m([22m[2m2 tests[22m[2m)[22m[32m 232[2mms[22m[39m
|
|
11
|
+
|
|
12
|
+
[2m Test Files [22m [1m[32m3 passed[39m[22m[90m (3)[39m
|
|
13
|
+
[2m Tests [22m [1m[32m7 passed[39m[22m[90m (7)[39m
|
|
14
|
+
[2m Start at [22m 12:11:43
|
|
15
|
+
[2m Duration [22m 4.16s[2m (transform 5.04s, setup 0ms, import 7.39s, tests 337ms, environment 1ms)[22m
|
|
16
|
+
|
package/LICENSE
CHANGED
package/dist/createAuth.d.ts
CHANGED
|
@@ -1,18 +1,26 @@
|
|
|
1
1
|
import { type Readable } from "svelte/store";
|
|
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 AuthStore {
|
|
4
4
|
user: Readable<User | null>;
|
|
5
5
|
session: Readable<Session | null>;
|
|
6
6
|
loading: Readable<boolean>;
|
|
7
|
+
/** The sign-in the auth server refused and reported in the page's URL, or null. */
|
|
8
|
+
error: Readable<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
|
}>;
|
package/dist/createAuth.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"createAuth.d.ts","sourceRoot":"","sources":["../src/createAuth.ts"],"names":[],"mappings":"AAAA,OAAO,EAAY,KAAK,QAAQ,EAAE,MAAM,cAAc,CAAA;AAEtD,OAAO,KAAK,EAAE,iBAAiB,EAAE,WAAW,EAAE,aAAa,EAAE,IAAI,EAAE,OAAO,EAAmB,MAAM,kBAAkB,CAAA;
|
|
1
|
+
{"version":3,"file":"createAuth.d.ts","sourceRoot":"","sources":["../src/createAuth.ts"],"names":[],"mappings":"AAAA,OAAO,EAAY,KAAK,QAAQ,EAAE,MAAM,cAAc,CAAA;AAEtD,OAAO,KAAK,EAAE,iBAAiB,EAAE,WAAW,EAAE,iBAAiB,EAAE,aAAa,EAAE,IAAI,EAAE,OAAO,EAAmB,MAAM,kBAAkB,CAAA;AAIxI,MAAM,WAAW,SAAS;IACxB,IAAI,EAAE,QAAQ,CAAC,IAAI,GAAG,IAAI,CAAC,CAAA;IAC3B,OAAO,EAAE,QAAQ,CAAC,OAAO,GAAG,IAAI,CAAC,CAAA;IACjC,OAAO,EAAE,QAAQ,CAAC,OAAO,CAAC,CAAA;IAC1B,mFAAmF;IACnF,KAAK,EAAE,QAAQ,CAAC,iBAAiB,GAAG,IAAI,CAAC,CAAA;IACzC,MAAM,EAAE,CAAC,KAAK,EAAE,MAAM,EAAE,QAAQ,EAAE,MAAM,KAAK,OAAO,CAAC;QAAE,KAAK,EAAE,aAAa,GAAG,IAAI,CAAA;KAAE,CAAC,CAAA;IACrF,2FAA2F;IAC3F,MAAM,EAAE,CAAC,KAAK,EAAE,MAAM,EAAE,QAAQ,EAAE,MAAM,KAAK,OAAO,CAAC;QACnD,IAAI,EAAE;YAAE,OAAO,EAAE,OAAO,GAAG,IAAI,CAAC;YAAC,IAAI,EAAE,IAAI,GAAG,IAAI,CAAA;SAAE,CAAA;QACpD,KAAK,EAAE,aAAa,GAAG,IAAI,CAAA;KAC5B,CAAC,CAAA;IACF,OAAO,EAAE,MAAM,OAAO,CAAC;QAAE,KAAK,EAAE,aAAa,GAAG,IAAI,CAAA;KAAE,CAAC,CAAA;IACvD,8FAA8F;IAC9F,eAAe,EAAE,CAAC,QAAQ,EAAE,MAAM,KAAK,OAAO,CAAC;QAAE,KAAK,EAAE,aAAa,GAAG,IAAI,CAAA;KAAE,CAAC,CAAA;IAC/E,aAAa,EAAE,CAAC,KAAK,EAAE,MAAM,KAAK,OAAO,CAAC;QAAE,KAAK,EAAE,aAAa,GAAG,IAAI,CAAA;KAAE,CAAC,CAAA;CAC3E;AAED,wBAAgB,UAAU,CAAC,SAAS,SAAS,WAAW,GAAG,iBAAiB,KAAK,SAAS,CA6DzF"}
|
package/dist/createAuth.js
CHANGED
|
@@ -1,13 +1,18 @@
|
|
|
1
1
|
import { writable } from "svelte/store";
|
|
2
2
|
import { onDestroy } from "svelte";
|
|
3
|
+
import { startOAuthRedirect } from "@supatype/client/bindings";
|
|
3
4
|
import { getSupatypeClient } from "./context.js";
|
|
4
5
|
export function createAuth() {
|
|
5
6
|
const client = getSupatypeClient();
|
|
6
7
|
const user = writable(null);
|
|
7
8
|
const session = writable(null);
|
|
8
9
|
const loading = writable(true);
|
|
9
|
-
|
|
10
|
-
client
|
|
10
|
+
const error = writable(null);
|
|
11
|
+
// The initial session, once the client has finished any sign-in the page's URL carries
|
|
12
|
+
client.auth.initialize().then(({ error: redirectError }) => {
|
|
13
|
+
error.set(redirectError);
|
|
14
|
+
return client.auth.getSession();
|
|
15
|
+
}).then(({ data }) => {
|
|
11
16
|
if (data.session) {
|
|
12
17
|
session.set(data.session);
|
|
13
18
|
user.set(data.session.user);
|
|
@@ -28,18 +33,12 @@ export function createAuth() {
|
|
|
28
33
|
const { error } = await client.auth.signInWithPassword({ email, password });
|
|
29
34
|
return { error };
|
|
30
35
|
};
|
|
31
|
-
const signUp =
|
|
32
|
-
const { error } = await client.auth.signUp({ email, password });
|
|
33
|
-
return { error };
|
|
34
|
-
};
|
|
36
|
+
const signUp = (email, password) => client.auth.signUp({ email, password });
|
|
35
37
|
const signOut = async () => {
|
|
36
38
|
const { error } = await client.auth.signOut();
|
|
37
39
|
return { error };
|
|
38
40
|
};
|
|
39
|
-
const signInWithOAuth =
|
|
40
|
-
const { error } = await client.auth.signInWithOAuth({ provider });
|
|
41
|
-
return { error };
|
|
42
|
-
};
|
|
41
|
+
const signInWithOAuth = (provider) => startOAuthRedirect(client.auth, provider);
|
|
43
42
|
const resetPassword = async (email) => {
|
|
44
43
|
const { error } = await client.auth.resetPasswordForEmail(email);
|
|
45
44
|
return { error };
|
|
@@ -48,6 +47,7 @@ export function createAuth() {
|
|
|
48
47
|
user: { subscribe: user.subscribe },
|
|
49
48
|
session: { subscribe: session.subscribe },
|
|
50
49
|
loading: { subscribe: loading.subscribe },
|
|
50
|
+
error: { subscribe: error.subscribe },
|
|
51
51
|
signIn,
|
|
52
52
|
signUp,
|
|
53
53
|
signOut,
|
package/dist/createAuth.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"createAuth.js","sourceRoot":"","sources":["../src/createAuth.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAiB,MAAM,cAAc,CAAA;AACtD,OAAO,EAAE,SAAS,EAAE,MAAM,QAAQ,CAAA;AAElC,OAAO,EAAE,iBAAiB,EAAE,MAAM,cAAc,CAAA;
|
|
1
|
+
{"version":3,"file":"createAuth.js","sourceRoot":"","sources":["../src/createAuth.ts"],"names":[],"mappings":"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"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"createFunction.d.ts","sourceRoot":"","sources":["../src/createFunction.ts"],"names":[],"mappings":"AAAA,OAAO,EAAY,KAAK,QAAQ,EAAE,MAAM,cAAc,CAAA;AACtD,OAAO,KAAK,EAAE,iBAAiB,EAAE,WAAW,EAAE,aAAa,EAAE,MAAM,kBAAkB,CAAA;
|
|
1
|
+
{"version":3,"file":"createFunction.d.ts","sourceRoot":"","sources":["../src/createFunction.ts"],"names":[],"mappings":"AAAA,OAAO,EAAY,KAAK,QAAQ,EAAE,MAAM,cAAc,CAAA;AACtD,OAAO,KAAK,EAAE,iBAAiB,EAAE,WAAW,EAAE,aAAa,EAAE,MAAM,kBAAkB,CAAA;AAIrF,MAAM,WAAW,aAAa,CAAC,SAAS;IACtC,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,aAAa,CAAC,SAAS,CAAC,CA6B1B"}
|
package/dist/createFunction.js
CHANGED
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { writable } from "svelte/store";
|
|
2
2
|
import { getSupatypeClient } from "./context.js";
|
|
3
|
+
import { isCallerValue } from "@supatype/client/bindings";
|
|
3
4
|
export function createFunction(functionName) {
|
|
4
5
|
const client = getSupatypeClient();
|
|
5
6
|
const data = writable(null);
|
|
@@ -8,14 +9,19 @@ export function createFunction(functionName) {
|
|
|
8
9
|
const invoke = async (body) => {
|
|
9
10
|
loading.set(true);
|
|
10
11
|
error.set(null);
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
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
|
+
data.set(answer.data);
|
|
18
|
+
if (answer.error)
|
|
19
|
+
error.set(answer.error);
|
|
20
|
+
return answer;
|
|
21
|
+
}
|
|
22
|
+
finally {
|
|
23
|
+
loading.set(false);
|
|
24
|
+
}
|
|
19
25
|
};
|
|
20
26
|
return {
|
|
21
27
|
invoke,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"createFunction.js","sourceRoot":"","sources":["../src/createFunction.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAiB,MAAM,cAAc,CAAA;AAEtD,OAAO,EAAE,iBAAiB,EAAE,MAAM,cAAc,CAAA;
|
|
1
|
+
{"version":3,"file":"createFunction.js","sourceRoot":"","sources":["../src/createFunction.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAiB,MAAM,cAAc,CAAA;AAEtD,OAAO,EAAE,iBAAiB,EAAE,MAAM,cAAc,CAAA;AAChD,OAAO,EAAE,aAAa,EAAE,MAAM,2BAA2B,CAAA;AASzD,MAAM,UAAU,cAAc,CAI5B,YAAoB;IAEpB,MAAM,MAAM,GAAG,iBAAiB,EAAa,CAAA;IAC7C,MAAM,IAAI,GAAG,QAAQ,CAAmB,IAAI,CAAC,CAAA;IAC7C,MAAM,KAAK,GAAG,QAAQ,CAAuB,IAAI,CAAC,CAAA;IAClD,MAAM,OAAO,GAAG,QAAQ,CAAC,KAAK,CAAC,CAAA;IAE/B,MAAM,MAAM,GAAG,KAAK,EAAE,IAAc,EAAE,EAAE;QACtC,OAAO,CAAC,GAAG,CAAC,IAAI,CAAC,CAAA;QACjB,KAAK,CAAC,GAAG,CAAC,IAAI,CAAC,CAAA;QAEf,IAAI,CAAC;YACH,MAAM,MAAM,GAAG,MAAM,MAAM,CAAC,SAAS,CAAC,MAAM,CAAC,YAAY,EAAE;gBACzD,GAAG,CAAC,IAAI,KAAK,SAAS,CAAC,CAAC,CAAC,EAAE,IAAI,EAAE,CAAC,CAAC,CAAC,EAAE,CAAC;aACxC,CAAC,CAAA;YACF,MAAM,MAAM,GAAG,EAAE,IAAI,EAAE,aAAa,CAAY,MAAM,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC,MAAM,CAAC,IAAI,CAAC,CAAC,CAAC,IAAI,EAAE,KAAK,EAAE,MAAM,CAAC,KAAK,EAAE,CAAA;YACxG,IAAI,CAAC,GAAG,CAAC,MAAM,CAAC,IAAI,CAAC,CAAA;YACrB,IAAI,MAAM,CAAC,KAAK;gBAAE,KAAK,CAAC,GAAG,CAAC,MAAM,CAAC,KAAK,CAAC,CAAA;YACzC,OAAO,MAAM,CAAA;QACf,CAAC;gBAAS,CAAC;YACT,OAAO,CAAC,GAAG,CAAC,KAAK,CAAC,CAAA;QACpB,CAAC;IACH,CAAC,CAAA;IAED,OAAO;QACL,MAAM;QACN,IAAI,EAAE,EAAE,SAAS,EAAE,IAAI,CAAC,SAAS,EAAE;QACnC,KAAK,EAAE,EAAE,SAAS,EAAE,KAAK,CAAC,SAAS,EAAE;QACrC,OAAO,EAAE,EAAE,SAAS,EAAE,OAAO,CAAC,SAAS,EAAE;KAC1C,CAAA;AACH,CAAC"}
|
package/dist/createMutation.d.ts
CHANGED
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import { type Readable } from "svelte/store";
|
|
2
2
|
import type { AugmentedDatabase, AnyDatabase, SupatypeError } from "@supatype/client";
|
|
3
|
-
|
|
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":"AAAA,OAAO,EAAY,KAAK,QAAQ,EAAE,MAAM,cAAc,CAAA;AACtD,OAAO,KAAK,EAAE,iBAAiB,
|
|
1
|
+
{"version":3,"file":"createMutation.d.ts","sourceRoot":"","sources":["../src/createMutation.ts"],"names":[],"mappings":"AAAA,OAAO,EAAY,KAAK,QAAQ,EAAE,MAAM,cAAc,CAAA;AACtD,OAAO,KAAK,EAAE,iBAAiB,EAAa,WAAW,EAAE,aAAa,EAAE,MAAM,kBAAkB,CAAA;AAEhG,OAAO,EAAe,KAAK,iBAAiB,EAAE,MAAM,2BAA2B,CAAA;AAE/E,YAAY,EAAE,iBAAiB,EAAE,CAAA;AAEjC,MAAM,WAAW,eAAe;IAC9B,MAAM,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,GAAG,SAAS,CAAA;CAC7C;AAED,MAAM,WAAW,aAAa,CAAC,IAAI;IACjC,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,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,aAAa,CAAC,IAAI,CAAC,CAgCrB"}
|
package/dist/createMutation.js
CHANGED
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { writable } from "svelte/store";
|
|
2
2
|
import { getSupatypeClient } from "./context.js";
|
|
3
|
+
import { runMutation } from "@supatype/client/bindings";
|
|
3
4
|
export function createMutation(table, operation) {
|
|
4
5
|
const client = getSupatypeClient();
|
|
5
6
|
const loading = writable(false);
|
|
@@ -8,33 +9,8 @@ export function createMutation(table, operation) {
|
|
|
8
9
|
loading.set(true);
|
|
9
10
|
error.set(null);
|
|
10
11
|
try {
|
|
11
|
-
|
|
12
|
-
const
|
|
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
|
error.set(result.error);
|
|
40
16
|
return result;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"createMutation.js","sourceRoot":"","sources":["../src/createMutation.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAiB,MAAM,cAAc,CAAA;AAEtD,OAAO,EAAE,iBAAiB,EAAE,MAAM,cAAc,CAAA;
|
|
1
|
+
{"version":3,"file":"createMutation.js","sourceRoot":"","sources":["../src/createMutation.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAiB,MAAM,cAAc,CAAA;AAEtD,OAAO,EAAE,iBAAiB,EAAE,MAAM,cAAc,CAAA;AAChD,OAAO,EAAE,WAAW,EAA0B,MAAM,2BAA2B,CAAA;AAiB/E,MAAM,UAAU,cAAc,CAK5B,KAAa,EACb,SAA4B;IAE5B,MAAM,MAAM,GAAG,iBAAiB,EAAa,CAAA;IAC7C,MAAM,OAAO,GAAG,QAAQ,CAAC,KAAK,CAAC,CAAA;IAC/B,MAAM,KAAK,GAAG,QAAQ,CAAuB,IAAI,CAAC,CAAA;IAElD,MAAM,MAAM,GAAG,KAAK,EAClB,IAAsE,EACtE,OAAqC,EACrC,EAAE;QACF,OAAO,CAAC,GAAG,CAAC,IAAI,CAAC,CAAA;QACjB,KAAK,CAAC,GAAG,CAAC,IAAI,CAAC,CAAA;QAEf,IAAI,CAAC;YACH,MAAM,OAAO,GAAG,MAAM,WAAW,CAAO,MAAmB,EAAE,KAAK,EAAE,SAAS,EAAE,IAAI,EAAE,OAAO,EAAE,MAAM,CAAC,CAAA;YACrG,MAAM,MAAM,GAAG,EAAE,IAAI,EAAE,OAAO,CAAC,IAAI,EAAE,KAAK,EAAE,OAAO,CAAC,KAAK,EAAE,CAAA;YAE3D,IAAI,MAAM,CAAC,KAAK;gBAAE,KAAK,CAAC,GAAG,CAAC,MAAM,CAAC,KAAK,CAAC,CAAA;YACzC,OAAO,MAAM,CAAA;QACf,CAAC;QAAC,OAAO,CAAC,EAAE,CAAC;YACX,MAAM,GAAG,GAAG,EAAE,OAAO,EAAE,CAAC,YAAY,KAAK,CAAC,CAAC,CAAC,CAAC,CAAC,OAAO,CAAC,CAAC,CAAC,eAAe,EAAE,CAAA;YACzE,KAAK,CAAC,GAAG,CAAC,GAAG,CAAC,CAAA;YACd,OAAO,EAAE,IAAI,EAAE,IAAI,EAAE,KAAK,EAAE,GAAG,EAAE,CAAA;QACnC,CAAC;gBAAS,CAAC;YACT,OAAO,CAAC,GAAG,CAAC,KAAK,CAAC,CAAA;QACpB,CAAC;IACH,CAAC,CAAA;IAED,OAAO;QACL,MAAM;QACN,OAAO,EAAE,EAAE,SAAS,EAAE,OAAO,CAAC,SAAS,EAAE;QACzC,KAAK,EAAE,EAAE,SAAS,EAAE,KAAK,CAAC,SAAS,EAAE;KACtC,CAAA;AACH,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"createQuery.d.ts","sourceRoot":"","sources":["../src/createQuery.ts"],"names":[],"mappings":"AACA,OAAO,EAAY,KAAK,QAAQ,EAAE,MAAM,cAAc,CAAA;AACtD,OAAO,KAAK,EAAE,iBAAiB,
|
|
1
|
+
{"version":3,"file":"createQuery.d.ts","sourceRoot":"","sources":["../src/createQuery.ts"],"names":[],"mappings":"AACA,OAAO,EAAY,KAAK,QAAQ,EAAE,MAAM,cAAc,CAAA;AACtD,OAAO,KAAK,EAAE,iBAAiB,EAAa,WAAW,EAAE,aAAa,EAAE,MAAM,kBAAkB,CAAA;AAKhG,MAAM,WAAW,YAAY;IAC3B,OAAO,CAAC,EAAE,MAAM,GAAG,SAAS,CAAA;IAC5B,MAAM,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,GAAG,SAAS,CAAA;IAC5C,KAAK,CAAC,EAAE;QAAE,MAAM,EAAE,MAAM,CAAC;QAAC,SAAS,CAAC,EAAE,OAAO,CAAA;KAAE,GAAG,SAAS,CAAA;IAC3D,KAAK,CAAC,EAAE,MAAM,GAAG,SAAS,CAAA;IAC1B,MAAM,CAAC,EAAE,MAAM,GAAG,SAAS,CAAA;IAC3B,OAAO,CAAC,EAAE,OAAO,GAAG,SAAS,CAAA;CAC9B;AAED,MAAM,WAAW,UAAU,CAAC,IAAI;IAC9B,IAAI,EAAE,QAAQ,CAAC,IAAI,EAAE,GAAG,IAAI,CAAC,CAAA;IAC7B,KAAK,EAAE,QAAQ,CAAC,aAAa,GAAG,IAAI,CAAC,CAAA;IACrC,OAAO,EAAE,QAAQ,CAAC,OAAO,CAAC,CAAA;IAC1B,OAAO,EAAE,MAAM,OAAO,CAAC,IAAI,CAAC,CAAA;CAC7B;AAED,wBAAgB,WAAW,CACzB,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,OAAO,CAAC,EAAE,YAAY,GAAG,SAAS,GACjC,UAAU,CAAC,IAAI,CAAC,CAiElB"}
|
package/dist/createQuery.js
CHANGED
|
@@ -2,6 +2,7 @@ import { onDestroy } from "svelte";
|
|
|
2
2
|
import { writable } from "svelte/store";
|
|
3
3
|
import { onIdentityChange } from "@supatype/client";
|
|
4
4
|
import { getSupatypeClient } from "./context.js";
|
|
5
|
+
import { isRowsOf } from "@supatype/client/bindings";
|
|
5
6
|
export function createQuery(table, options) {
|
|
6
7
|
const client = getSupatypeClient();
|
|
7
8
|
const data = writable(null);
|
|
@@ -13,7 +14,8 @@ export function createQuery(table, options) {
|
|
|
13
14
|
loading.set(true);
|
|
14
15
|
error.set(null);
|
|
15
16
|
try {
|
|
16
|
-
//
|
|
17
|
+
// Through the untyped client: the generated row types do not survive a table name known
|
|
18
|
+
// only at run time, so the rows are typed as `TRow` once they arrive.
|
|
17
19
|
let query = client.from(table).select(options?.columns);
|
|
18
20
|
if (options?.filter) {
|
|
19
21
|
for (const [col, val] of Object.entries(options.filter)) {
|
|
@@ -32,7 +34,7 @@ export function createQuery(table, options) {
|
|
|
32
34
|
query = query.range(options.offset, options.offset + (options.limit ?? 100) - 1);
|
|
33
35
|
}
|
|
34
36
|
const result = await query;
|
|
35
|
-
data.set(result.data);
|
|
37
|
+
data.set(isRowsOf(result.data) ? result.data : null);
|
|
36
38
|
if (result.error) {
|
|
37
39
|
error.set(result.error);
|
|
38
40
|
}
|
package/dist/createQuery.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"createQuery.js","sourceRoot":"","sources":["../src/createQuery.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,MAAM,QAAQ,CAAA;AAClC,OAAO,EAAE,QAAQ,EAAiB,MAAM,cAAc,CAAA;AAEtD,OAAO,EAAE,gBAAgB,EAAE,MAAM,kBAAkB,CAAA;AACnD,OAAO,EAAE,iBAAiB,EAAE,MAAM,cAAc,CAAA;
|
|
1
|
+
{"version":3,"file":"createQuery.js","sourceRoot":"","sources":["../src/createQuery.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,MAAM,QAAQ,CAAA;AAClC,OAAO,EAAE,QAAQ,EAAiB,MAAM,cAAc,CAAA;AAEtD,OAAO,EAAE,gBAAgB,EAAE,MAAM,kBAAkB,CAAA;AACnD,OAAO,EAAE,iBAAiB,EAAE,MAAM,cAAc,CAAA;AAChD,OAAO,EAAE,QAAQ,EAAE,MAAM,2BAA2B,CAAA;AAkBpD,MAAM,UAAU,WAAW,CAKzB,KAAa,EACb,OAAkC;IAElC,MAAM,MAAM,GAAG,iBAAiB,EAAa,CAAA;IAC7C,MAAM,IAAI,GAAG,QAAQ,CAAgB,IAAI,CAAC,CAAA;IAC1C,MAAM,KAAK,GAAG,QAAQ,CAAuB,IAAI,CAAC,CAAA;IAClD,MAAM,OAAO,GAAG,QAAQ,CAAC,KAAK,CAAC,CAAA;IAE/B,MAAM,SAAS,GAAG,KAAK,IAAI,EAAE;QAC3B,IAAI,OAAO,EAAE,OAAO,KAAK,KAAK;YAAE,OAAM;QAEtC,OAAO,CAAC,GAAG,CAAC,IAAI,CAAC,CAAA;QACjB,KAAK,CAAC,GAAG,CAAC,IAAI,CAAC,CAAA;QAEf,IAAI,CAAC;YACH,wFAAwF;YACxF,sEAAsE;YACtE,IAAI,KAAK,GAAI,MAAoB,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC,MAAM,CAAC,OAAO,EAAE,OAAO,CAAC,CAAA;YAEtE,IAAI,OAAO,EAAE,MAAM,EAAE,CAAC;gBACpB,KAAK,MAAM,CAAC,GAAG,EAAE,GAAG,CAAC,IAAI,MAAM,CAAC,OAAO,CAAC,OAAO,CAAC,MAAM,CAAC,EAAE,CAAC;oBACxD,KAAK,GAAG,KAAK,CAAC,EAAE,CAAC,GAAG,EAAE,GAAG,CAAC,CAAA;gBAC5B,CAAC;YACH,CAAC;YAED,IAAI,OAAO,EAAE,KAAK,EAAE,CAAC;gBACnB,KAAK,GAAG,KAAK,CAAC,KAAK,CAAC,OAAO,CAAC,KAAK,CAAC,MAAM,EAAE;oBACxC,SAAS,EAAE,OAAO,CAAC,KAAK,CAAC,SAAS,IAAI,IAAI;iBAC3C,CAAC,CAAA;YACJ,CAAC;YAED,IAAI,OAAO,EAAE,KAAK,KAAK,SAAS,EAAE,CAAC;gBACjC,KAAK,GAAG,KAAK,CAAC,KAAK,CAAC,OAAO,CAAC,KAAK,CAAC,CAAA;YACpC,CAAC;YAED,IAAI,OAAO,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,IAAI,CAAC,GAAG,CAAC,QAAQ,CAAO,MAAM,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC,MAAM,CAAC,IAAI,CAAC,CAAC,CAAC,IAAI,CAAC,CAAA;YAC1D,IAAI,MAAM,CAAC,KAAK,EAAE,CAAC;gBACjB,KAAK,CAAC,GAAG,CAAC,MAAM,CAAC,KAAK,CAAC,CAAA;YACzB,CAAC;QACH,CAAC;QAAC,OAAO,CAAC,EAAE,CAAC;YACX,KAAK,CAAC,GAAG,CAAC,EAAE,OAAO,EAAE,CAAC,YAAY,KAAK,CAAC,CAAC,CAAC,CAAC,CAAC,OAAO,CAAC,CAAC,CAAC,eAAe,EAAE,CAAC,CAAA;QAC1E,CAAC;gBAAS,CAAC;YACT,OAAO,CAAC,GAAG,CAAC,KAAK,CAAC,CAAA;QACpB,CAAC;IACH,CAAC,CAAA;IAED,yBAAyB;IACzB,SAAS,EAAE,CAAA;IAEX,8FAA8F;IAC9F,oDAAoD;IACpD,EAAE;IACF,2FAA2F;IAC3F,kFAAkF;IAClF,SAAS,CAAC,gBAAgB,CAAC,MAAM,CAAC,IAAI,EAAE,GAAG,EAAE,CAAC,KAAK,SAAS,EAAE,CAAC,CAAC,CAAA;IAEhE,OAAO;QACL,IAAI,EAAE,EAAE,SAAS,EAAE,IAAI,CAAC,SAAS,EAAE;QACnC,KAAK,EAAE,EAAE,SAAS,EAAE,KAAK,CAAC,SAAS,EAAE;QACrC,OAAO,EAAE,EAAE,SAAS,EAAE,OAAO,CAAC,SAAS,EAAE;QACzC,OAAO,EAAE,SAAS;KACnB,CAAA;AACH,CAAC"}
|
|
@@ -1,13 +1,18 @@
|
|
|
1
1
|
import { type Readable } from "svelte/store";
|
|
2
|
-
import type { AugmentedDatabase, AnyDatabase, SupatypeError
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
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 SubscriptionStore<TRow> {
|
|
8
7
|
data: Readable<TRow[] | null>;
|
|
9
8
|
error: Readable<SupatypeError | null>;
|
|
10
|
-
status: Readable<
|
|
9
|
+
status: Readable<SubscriptionState>;
|
|
11
10
|
}
|
|
11
|
+
/**
|
|
12
|
+
* Real-time subscription stores.
|
|
13
|
+
*
|
|
14
|
+
* The channel, the status and the row merge are `watchTable`'s, shared with the Vue and Solid
|
|
15
|
+
* bindings; this only puts what it reports into stores.
|
|
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): SubscriptionStore<TRow>;
|
|
13
18
|
//# sourceMappingURL=createSubscription.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"createSubscription.d.ts","sourceRoot":"","sources":["../src/createSubscription.ts"],"names":[],"mappings":"AAAA,OAAO,EAAY,KAAK,QAAQ,EAAE,MAAM,cAAc,CAAA;AAEtD,OAAO,KAAK,EAAE,iBAAiB,EAAE,WAAW,EAAE,aAAa,
|
|
1
|
+
{"version":3,"file":"createSubscription.d.ts","sourceRoot":"","sources":["../src/createSubscription.ts"],"names":[],"mappings":"AAAA,OAAO,EAAY,KAAK,QAAQ,EAAE,MAAM,cAAc,CAAA;AAEtD,OAAO,KAAK,EAAE,iBAAiB,EAAE,WAAW,EAAE,aAAa,EAAE,MAAM,kBAAkB,CAAA;AACrF,OAAO,EAAc,KAAK,iBAAiB,EAAE,KAAK,iBAAiB,EAAE,MAAM,2BAA2B,CAAA;AAGtG,mGAAmG;AACnG,MAAM,MAAM,mBAAmB,GAAG,iBAAiB,CAAA;AAEnD,MAAM,WAAW,iBAAiB,CAAC,IAAI;IACrC,IAAI,EAAE,QAAQ,CAAC,IAAI,EAAE,GAAG,IAAI,CAAC,CAAA;IAC7B,KAAK,EAAE,QAAQ,CAAC,aAAa,GAAG,IAAI,CAAC,CAAA;IACrC,MAAM,EAAE,QAAQ,CAAC,iBAAiB,CAAC,CAAA;CACpC;AAED;;;;;GAKG;AACH,wBAAgB,kBAAkB,CAChC,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,OAAO,CAAC,EAAE,mBAAmB,GAAG,SAAS,GACxC,iBAAiB,CAAC,IAAI,CAAC,CAqBzB"}
|
|
@@ -1,56 +1,26 @@
|
|
|
1
1
|
import { writable } from "svelte/store";
|
|
2
2
|
import { onDestroy } from "svelte";
|
|
3
|
+
import { watchTable } from "@supatype/client/bindings";
|
|
3
4
|
import { getSupatypeClient } from "./context.js";
|
|
5
|
+
/**
|
|
6
|
+
* Real-time subscription stores.
|
|
7
|
+
*
|
|
8
|
+
* The channel, the status and the row merge are `watchTable`'s, shared with the Vue and Solid
|
|
9
|
+
* bindings; this only puts what it reports into stores.
|
|
10
|
+
*/
|
|
4
11
|
export function createSubscription(table, options) {
|
|
5
12
|
const client = getSupatypeClient();
|
|
6
13
|
const data = writable(null);
|
|
7
14
|
const error = writable(null);
|
|
8
15
|
const status = writable("connecting");
|
|
9
|
-
const
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
if (options?.filter) {
|
|
16
|
-
channelOpts.filter = options.filter;
|
|
17
|
-
}
|
|
18
|
-
const channel = client.realtime.channel(`public:${table}`);
|
|
19
|
-
channel.on("postgres_changes", channelOpts, (payload) => {
|
|
20
|
-
data.update((current) => {
|
|
21
|
-
const rows = current ?? [];
|
|
22
|
-
if (payload.eventType === "INSERT") {
|
|
23
|
-
return [...rows, payload.new];
|
|
24
|
-
}
|
|
25
|
-
else if (payload.eventType === "UPDATE") {
|
|
26
|
-
return rows.map((row) => {
|
|
27
|
-
const r = row;
|
|
28
|
-
const n = payload.new;
|
|
29
|
-
return r["id"] === n["id"] ? payload.new : row;
|
|
30
|
-
});
|
|
31
|
-
}
|
|
32
|
-
else if (payload.eventType === "DELETE") {
|
|
33
|
-
const old = payload.old;
|
|
34
|
-
return rows.filter((row) => row["id"] !== old["id"]);
|
|
35
|
-
}
|
|
36
|
-
return rows;
|
|
37
|
-
});
|
|
38
|
-
});
|
|
39
|
-
channel.subscribe((newStatus) => {
|
|
40
|
-
if (newStatus === "SUBSCRIBED") {
|
|
41
|
-
status.set("connected");
|
|
42
|
-
}
|
|
43
|
-
else if (newStatus === "CHANNEL_ERROR") {
|
|
44
|
-
status.set("error");
|
|
45
|
-
error.set({ message: "Subscription error" });
|
|
46
|
-
}
|
|
47
|
-
else if (newStatus === "CLOSED") {
|
|
48
|
-
status.set("disconnected");
|
|
49
|
-
}
|
|
50
|
-
});
|
|
51
|
-
onDestroy(() => {
|
|
52
|
-
channel.unsubscribe();
|
|
16
|
+
const unsubscribe = watchTable(client.realtime, table, options, {
|
|
17
|
+
rows: (rows) => data.set(rows),
|
|
18
|
+
status: (view) => {
|
|
19
|
+
status.set(view.status);
|
|
20
|
+
error.set(view.error);
|
|
21
|
+
},
|
|
53
22
|
});
|
|
23
|
+
onDestroy(unsubscribe);
|
|
54
24
|
return {
|
|
55
25
|
data: { subscribe: data.subscribe },
|
|
56
26
|
error: { subscribe: error.subscribe },
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"createSubscription.js","sourceRoot":"","sources":["../src/createSubscription.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAiB,MAAM,cAAc,CAAA;AACtD,OAAO,EAAE,SAAS,EAAE,MAAM,QAAQ,CAAA;AAElC,OAAO,EAAE,iBAAiB,EAAE,MAAM,cAAc,CAAA;
|
|
1
|
+
{"version":3,"file":"createSubscription.js","sourceRoot":"","sources":["../src/createSubscription.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAiB,MAAM,cAAc,CAAA;AACtD,OAAO,EAAE,SAAS,EAAE,MAAM,QAAQ,CAAA;AAElC,OAAO,EAAE,UAAU,EAAkD,MAAM,2BAA2B,CAAA;AACtG,OAAO,EAAE,iBAAiB,EAAE,MAAM,cAAc,CAAA;AAWhD;;;;;GAKG;AACH,MAAM,UAAU,kBAAkB,CAKhC,KAAa,EACb,OAAyC;IAEzC,MAAM,MAAM,GAAG,iBAAiB,EAAa,CAAA;IAC7C,MAAM,IAAI,GAAG,QAAQ,CAAgB,IAAI,CAAC,CAAA;IAC1C,MAAM,KAAK,GAAG,QAAQ,CAAuB,IAAI,CAAC,CAAA;IAClD,MAAM,MAAM,GAAG,QAAQ,CAAoB,YAAY,CAAC,CAAA;IAExD,MAAM,WAAW,GAAG,UAAU,CAAO,MAAM,CAAC,QAAQ,EAAE,KAAK,EAAE,OAAO,EAAE;QACpE,IAAI,EAAE,CAAC,IAAI,EAAE,EAAE,CAAC,IAAI,CAAC,GAAG,CAAC,IAAI,CAAC;QAC9B,MAAM,EAAE,CAAC,IAAI,EAAE,EAAE;YACf,MAAM,CAAC,GAAG,CAAC,IAAI,CAAC,MAAM,CAAC,CAAA;YACvB,KAAK,CAAC,GAAG,CAAC,IAAI,CAAC,KAAK,CAAC,CAAA;QACvB,CAAC;KACF,CAAC,CAAA;IAEF,SAAS,CAAC,WAAW,CAAC,CAAA;IAEtB,OAAO;QACL,IAAI,EAAE,EAAE,SAAS,EAAE,IAAI,CAAC,SAAS,EAAE;QACnC,KAAK,EAAE,EAAE,SAAS,EAAE,KAAK,CAAC,SAAS,EAAE;QACrC,MAAM,EAAE,EAAE,SAAS,EAAE,MAAM,CAAC,SAAS,EAAE;KACxC,CAAA;AACH,CAAC"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@supatype/svelte",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.7.0",
|
|
4
4
|
"license": "MIT",
|
|
5
5
|
"description": "Svelte stores for Supatype, createQuery, createMutation, createAuth, createSubscription",
|
|
6
6
|
"type": "module",
|
|
@@ -14,16 +14,19 @@
|
|
|
14
14
|
},
|
|
15
15
|
"peerDependencies": {
|
|
16
16
|
"svelte": "^5.0.0",
|
|
17
|
-
"@supatype/client": "0.
|
|
17
|
+
"@supatype/client": "0.7.0"
|
|
18
18
|
},
|
|
19
19
|
"devDependencies": {
|
|
20
|
-
"
|
|
20
|
+
"@types/node": "^22",
|
|
21
21
|
"svelte": "^5.0.0",
|
|
22
|
-
"
|
|
22
|
+
"typescript": "^5",
|
|
23
|
+
"vitest": "^4.0.18",
|
|
24
|
+
"@supatype/client": "0.7.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/createAuth.ts
CHANGED
|
@@ -1,15 +1,23 @@
|
|
|
1
1
|
import { writable, type Readable } from "svelte/store"
|
|
2
2
|
import { onDestroy } from "svelte"
|
|
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 { getSupatypeClient } from "./context.js"
|
|
5
6
|
|
|
6
7
|
export interface AuthStore {
|
|
7
8
|
user: Readable<User | null>
|
|
8
9
|
session: Readable<Session | null>
|
|
9
10
|
loading: Readable<boolean>
|
|
11
|
+
/** The sign-in the auth server refused and reported in the page's URL, or null. */
|
|
12
|
+
error: Readable<AuthRedirectError | null>
|
|
10
13
|
signIn: (email: string, password: string) => Promise<{ error: SupatypeError | null }>
|
|
11
|
-
|
|
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,9 +27,13 @@ export function createAuth<TDatabase extends AnyDatabase = AugmentedDatabase>():
|
|
|
19
27
|
const user = writable<User | null>(null)
|
|
20
28
|
const session = writable<Session | null>(null)
|
|
21
29
|
const loading = writable(true)
|
|
30
|
+
const error = writable<AuthRedirectError | null>(null)
|
|
22
31
|
|
|
23
|
-
//
|
|
24
|
-
client.auth.
|
|
32
|
+
// The initial session, once the client has finished any sign-in the page's URL carries
|
|
33
|
+
client.auth.initialize().then(({ error: redirectError }) => {
|
|
34
|
+
error.set(redirectError)
|
|
35
|
+
return client.auth.getSession()
|
|
36
|
+
}).then(({ data }) => {
|
|
25
37
|
if (data.session) {
|
|
26
38
|
session.set(data.session)
|
|
27
39
|
user.set(data.session.user)
|
|
@@ -46,20 +58,14 @@ export function createAuth<TDatabase extends AnyDatabase = AugmentedDatabase>():
|
|
|
46
58
|
return { error }
|
|
47
59
|
}
|
|
48
60
|
|
|
49
|
-
const signUp =
|
|
50
|
-
const { error } = await client.auth.signUp({ email, password })
|
|
51
|
-
return { error }
|
|
52
|
-
}
|
|
61
|
+
const signUp = (email: string, password: string) => client.auth.signUp({ email, password })
|
|
53
62
|
|
|
54
63
|
const signOut = async () => {
|
|
55
64
|
const { error } = await client.auth.signOut()
|
|
56
65
|
return { error }
|
|
57
66
|
}
|
|
58
67
|
|
|
59
|
-
const signInWithOAuth =
|
|
60
|
-
const { error } = await client.auth.signInWithOAuth({ provider })
|
|
61
|
-
return { error }
|
|
62
|
-
}
|
|
68
|
+
const signInWithOAuth = (provider: string) => startOAuthRedirect(client.auth, provider)
|
|
63
69
|
|
|
64
70
|
const resetPassword = async (email: string) => {
|
|
65
71
|
const { error } = await client.auth.resetPasswordForEmail(email)
|
|
@@ -70,6 +76,7 @@ export function createAuth<TDatabase extends AnyDatabase = AugmentedDatabase>():
|
|
|
70
76
|
user: { subscribe: user.subscribe },
|
|
71
77
|
session: { subscribe: session.subscribe },
|
|
72
78
|
loading: { subscribe: loading.subscribe },
|
|
79
|
+
error: { subscribe: error.subscribe },
|
|
73
80
|
signIn,
|
|
74
81
|
signUp,
|
|
75
82
|
signOut,
|
package/src/createFunction.ts
CHANGED
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import { writable, type Readable } from "svelte/store"
|
|
2
2
|
import type { AugmentedDatabase, AnyDatabase, SupatypeError } from "@supatype/client"
|
|
3
3
|
import { getSupatypeClient } from "./context.js"
|
|
4
|
+
import { isCallerValue } from "@supatype/client/bindings"
|
|
4
5
|
|
|
5
6
|
export interface FunctionStore<TResponse> {
|
|
6
7
|
invoke: (body?: unknown) => Promise<{ data: TResponse | null; error: SupatypeError | null }>
|
|
@@ -24,14 +25,17 @@ export function createFunction<
|
|
|
24
25
|
loading.set(true)
|
|
25
26
|
error.set(null)
|
|
26
27
|
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
28
|
+
try {
|
|
29
|
+
const result = await client.functions.invoke(functionName, {
|
|
30
|
+
...(body !== undefined ? { body } : {}),
|
|
31
|
+
})
|
|
32
|
+
const answer = { data: isCallerValue<TResponse>(result.data) ? result.data : null, error: result.error }
|
|
33
|
+
data.set(answer.data)
|
|
34
|
+
if (answer.error) error.set(answer.error)
|
|
35
|
+
return answer
|
|
36
|
+
} finally {
|
|
37
|
+
loading.set(false)
|
|
38
|
+
}
|
|
35
39
|
}
|
|
36
40
|
|
|
37
41
|
return {
|
package/src/createMutation.ts
CHANGED
|
@@ -1,8 +1,9 @@
|
|
|
1
1
|
import { writable, type Readable } from "svelte/store"
|
|
2
|
-
import type { AugmentedDatabase, AnyDatabase, SupatypeError } from "@supatype/client"
|
|
2
|
+
import type { AugmentedDatabase, AnyClient, AnyDatabase, SupatypeError } from "@supatype/client"
|
|
3
3
|
import { getSupatypeClient } from "./context.js"
|
|
4
|
+
import { runMutation, type MutationOperation } from "@supatype/client/bindings"
|
|
4
5
|
|
|
5
|
-
export type MutationOperation
|
|
6
|
+
export type { MutationOperation }
|
|
6
7
|
|
|
7
8
|
export interface MutationOptions {
|
|
8
9
|
filter?: Record<string, unknown> | undefined
|
|
@@ -37,31 +38,8 @@ export function createMutation<
|
|
|
37
38
|
error.set(null)
|
|
38
39
|
|
|
39
40
|
try {
|
|
40
|
-
|
|
41
|
-
const
|
|
42
|
-
let result: { data: TRow[] | null; error: SupatypeError | null }
|
|
43
|
-
|
|
44
|
-
if (operation === "insert") {
|
|
45
|
-
result = await tableClient.insert(data)
|
|
46
|
-
} else if (operation === "upsert") {
|
|
47
|
-
result = await tableClient.upsert(data)
|
|
48
|
-
} else if (operation === "update") {
|
|
49
|
-
let q = tableClient.update(data)
|
|
50
|
-
if (options?.filter) {
|
|
51
|
-
for (const [col, val] of Object.entries(options.filter)) {
|
|
52
|
-
q = q.eq(col, val)
|
|
53
|
-
}
|
|
54
|
-
}
|
|
55
|
-
result = await q
|
|
56
|
-
} else {
|
|
57
|
-
let q = tableClient.delete()
|
|
58
|
-
if (options?.filter) {
|
|
59
|
-
for (const [col, val] of Object.entries(options.filter)) {
|
|
60
|
-
q = q.eq(col, val)
|
|
61
|
-
}
|
|
62
|
-
}
|
|
63
|
-
result = await q
|
|
64
|
-
}
|
|
41
|
+
const outcome = await runMutation<TRow>(client as AnyClient, table, operation, data, options?.filter)
|
|
42
|
+
const result = { data: outcome.data, error: outcome.error }
|
|
65
43
|
|
|
66
44
|
if (result.error) error.set(result.error)
|
|
67
45
|
return result
|
package/src/createQuery.ts
CHANGED
|
@@ -1,8 +1,9 @@
|
|
|
1
1
|
import { onDestroy } from "svelte"
|
|
2
2
|
import { writable, type Readable } from "svelte/store"
|
|
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 { getSupatypeClient } 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
|
error.set(null)
|
|
41
42
|
|
|
42
43
|
try {
|
|
43
|
-
//
|
|
44
|
-
|
|
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
|
-
data.set(result.data
|
|
69
|
+
data.set(isRowsOf<TRow>(result.data) ? result.data : null)
|
|
68
70
|
if (result.error) {
|
|
69
71
|
error.set(result.error)
|
|
70
72
|
}
|
|
@@ -1,19 +1,24 @@
|
|
|
1
1
|
import { writable, type Readable } from "svelte/store"
|
|
2
2
|
import { onDestroy } from "svelte"
|
|
3
|
-
import type { AugmentedDatabase, AnyDatabase, SupatypeError
|
|
3
|
+
import type { AugmentedDatabase, AnyDatabase, SupatypeError } from "@supatype/client"
|
|
4
|
+
import { watchTable, type SubscriptionState, type TableWatchOptions } from "@supatype/client/bindings"
|
|
4
5
|
import { getSupatypeClient } from "./context.js"
|
|
5
6
|
|
|
6
|
-
|
|
7
|
-
|
|
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 SubscriptionStore<TRow> {
|
|
12
11
|
data: Readable<TRow[] | null>
|
|
13
12
|
error: Readable<SupatypeError | null>
|
|
14
|
-
status: Readable<
|
|
13
|
+
status: Readable<SubscriptionState>
|
|
15
14
|
}
|
|
16
15
|
|
|
16
|
+
/**
|
|
17
|
+
* Real-time subscription stores.
|
|
18
|
+
*
|
|
19
|
+
* The channel, the status and the row merge are `watchTable`'s, shared with the Vue and Solid
|
|
20
|
+
* bindings; this only puts what it reports into stores.
|
|
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,59 +30,17 @@ export function createSubscription<
|
|
|
25
30
|
const client = getSupatypeClient<TDatabase>()
|
|
26
31
|
const data = writable<TRow[] | null>(null)
|
|
27
32
|
const error = writable<SupatypeError | null>(null)
|
|
28
|
-
const status = writable<
|
|
29
|
-
|
|
30
|
-
const
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
} = {
|
|
37
|
-
event,
|
|
38
|
-
schema: "public",
|
|
39
|
-
table,
|
|
40
|
-
}
|
|
41
|
-
if (options?.filter) {
|
|
42
|
-
channelOpts.filter = options.filter
|
|
43
|
-
}
|
|
44
|
-
|
|
45
|
-
const channel = client.realtime.channel<TRow>(`public:${table}`)
|
|
46
|
-
|
|
47
|
-
channel.on("postgres_changes", channelOpts, (payload: RealtimePayload<TRow>) => {
|
|
48
|
-
data.update((current) => {
|
|
49
|
-
const rows = current ?? []
|
|
50
|
-
|
|
51
|
-
if (payload.eventType === "INSERT") {
|
|
52
|
-
return [...rows, payload.new as TRow]
|
|
53
|
-
} else if (payload.eventType === "UPDATE") {
|
|
54
|
-
return rows.map((row) => {
|
|
55
|
-
const r = row as Record<string, unknown>
|
|
56
|
-
const n = payload.new as Record<string, unknown>
|
|
57
|
-
return r["id"] === n["id"] ? (payload.new as TRow) : row
|
|
58
|
-
})
|
|
59
|
-
} else if (payload.eventType === "DELETE") {
|
|
60
|
-
const old = payload.old as Record<string, unknown>
|
|
61
|
-
return rows.filter((row) => (row as Record<string, unknown>)["id"] !== old["id"])
|
|
62
|
-
}
|
|
63
|
-
return rows
|
|
64
|
-
})
|
|
33
|
+
const status = writable<SubscriptionState>("connecting")
|
|
34
|
+
|
|
35
|
+
const unsubscribe = watchTable<TRow>(client.realtime, table, options, {
|
|
36
|
+
rows: (rows) => data.set(rows),
|
|
37
|
+
status: (view) => {
|
|
38
|
+
status.set(view.status)
|
|
39
|
+
error.set(view.error)
|
|
40
|
+
},
|
|
65
41
|
})
|
|
66
42
|
|
|
67
|
-
|
|
68
|
-
if (newStatus === "SUBSCRIBED") {
|
|
69
|
-
status.set("connected")
|
|
70
|
-
} else if (newStatus === "CHANNEL_ERROR") {
|
|
71
|
-
status.set("error")
|
|
72
|
-
error.set({ message: "Subscription error" })
|
|
73
|
-
} else if (newStatus === "CLOSED") {
|
|
74
|
-
status.set("disconnected")
|
|
75
|
-
}
|
|
76
|
-
})
|
|
77
|
-
|
|
78
|
-
onDestroy(() => {
|
|
79
|
-
channel.unsubscribe()
|
|
80
|
-
})
|
|
43
|
+
onDestroy(unsubscribe)
|
|
81
44
|
|
|
82
45
|
return {
|
|
83
46
|
data: { subscribe: data.subscribe },
|
|
@@ -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. `onDestroy` is collected rather
|
|
6
|
+
* than registered with a component: what is under test is the store's wiring.
|
|
7
|
+
*/
|
|
8
|
+
|
|
9
|
+
import { vi } from "vitest"
|
|
10
|
+
import { get } from "svelte/store"
|
|
11
|
+
import { describeOAuthBinding, type OAuthBindingHarness } from "../../client/tests/helpers/oauth-binding.js"
|
|
12
|
+
|
|
13
|
+
const lifecycle = vi.hoisted(() => ({ destroy: [] as Array<() => void>, harness: null as OAuthBindingHarness | null }))
|
|
14
|
+
|
|
15
|
+
vi.mock("svelte", async (importOriginal) => ({
|
|
16
|
+
...(await importOriginal<typeof import("svelte")>()),
|
|
17
|
+
onDestroy: (fn: () => void) => lifecycle.destroy.push(fn),
|
|
18
|
+
}))
|
|
19
|
+
|
|
20
|
+
vi.mock("../src/context.js", () => ({
|
|
21
|
+
getSupatypeClient: () => ({ 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 === undefined ? undefined : get(auth.error)), signInWithOAuth: auth.signInWithOAuth }
|
|
32
|
+
},
|
|
33
|
+
() => {
|
|
34
|
+
for (const fn of lifecycle.destroy.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. `onDestroy` is collected rather than registered with a component:
|
|
4
|
+
* what is under test is the store's wiring over a real AuthClient.
|
|
5
|
+
*/
|
|
6
|
+
|
|
7
|
+
import { vi } from "vitest"
|
|
8
|
+
import { get } from "svelte/store"
|
|
9
|
+
import type { AuthClient } from "../../client/src/auth.js"
|
|
10
|
+
import { describeSignUpBinding } from "../../client/tests/helpers/signup-binding.js"
|
|
11
|
+
|
|
12
|
+
const lifecycle = vi.hoisted(() => ({ destroy: [] as Array<() => void>, auth: null as AuthClient | null }))
|
|
13
|
+
|
|
14
|
+
vi.mock("svelte", async (importOriginal) => ({
|
|
15
|
+
...(await importOriginal<typeof import("svelte")>()),
|
|
16
|
+
onDestroy: (fn: () => void) => lifecycle.destroy.push(fn),
|
|
17
|
+
}))
|
|
18
|
+
|
|
19
|
+
vi.mock("../src/context.js", () => ({
|
|
20
|
+
getSupatypeClient: () => ({ 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: () => get(state.user), signUp: state.signUp }
|
|
31
|
+
},
|
|
32
|
+
() => {
|
|
33
|
+
for (const fn of lifecycle.destroy.splice(0)) fn()
|
|
34
|
+
},
|
|
35
|
+
)
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* `createSubscription`'s status store 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 store ignored the
|
|
6
|
+
* SUBSCRIBING it would have reported. An insert made in that window never arrived.
|
|
7
|
+
*
|
|
8
|
+
* `onDestroy` is collected rather than registered with a component: what is under test is how the
|
|
9
|
+
* store wires the channel, not Svelte's component lifecycle.
|
|
10
|
+
*/
|
|
11
|
+
|
|
12
|
+
import { vi } from "vitest"
|
|
13
|
+
import { get } from "svelte/store"
|
|
14
|
+
import { describeStatusAcrossSignIn, type SocketSwapHarness } from "../../client/tests/helpers/socket-swap.js"
|
|
15
|
+
|
|
16
|
+
const lifecycle = vi.hoisted(() => ({ destroy: [] as Array<() => void>, harness: null as SocketSwapHarness | null }))
|
|
17
|
+
|
|
18
|
+
vi.mock("svelte", async (importOriginal) => ({
|
|
19
|
+
...(await importOriginal<typeof import("svelte")>()),
|
|
20
|
+
onDestroy: (fn: () => void) => lifecycle.destroy.push(fn),
|
|
21
|
+
}))
|
|
22
|
+
|
|
23
|
+
vi.mock("../src/context.js", () => ({
|
|
24
|
+
getSupatypeClient: () => ({ 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: () => get(status), error: () => get(error) }
|
|
35
|
+
},
|
|
36
|
+
() => {
|
|
37
|
+
for (const fn of lifecycle.destroy.splice(0)) fn()
|
|
38
|
+
},
|
|
39
|
+
)
|
package/tsconfig.json
CHANGED
package/tsconfig.tsbuildinfo
CHANGED
|
@@ -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/typescript@5.9.3/node_modules/typescript/lib/typescript.d.ts","../../node_modules/.pnpm/@typescript-eslint+types@8.57.1/node_modules/@typescript-eslint/types/dist/generated/ast-spec.d.ts","../../node_modules/.pnpm/@typescript-eslint+types@8.57.1/node_modules/@typescript-eslint/types/dist/lib.d.ts","../../node_modules/.pnpm/@typescript-eslint+types@8.57.1/node_modules/@typescript-eslint/types/dist/parser-options.d.ts","../../node_modules/.pnpm/@typescript-eslint+types@8.57.1/node_modules/@typescript-eslint/types/dist/ts-estree.d.ts","../../node_modules/.pnpm/@typescript-eslint+types@8.57.1/node_modules/@typescript-eslint/types/dist/index.d.ts","../../node_modules/.pnpm/esrap@2.2.4/node_modules/esrap/types/index.d.ts","../../node_modules/.pnpm/magic-string@0.30.21/node_modules/magic-string/dist/magic-string.es.d.mts","../../node_modules/.pnpm/@types+estree@1.0.8/node_modules/@types/estree/index.d.ts","../../node_modules/.pnpm/locate-character@3.0.0/node_modules/locate-character/types/index.d.ts","../../node_modules/.pnpm/svelte@5.54.0/node_modules/svelte/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":[[59],[60,61,62,63],[59,61],[60,63],[64,65],[65,66,67,68,69],[71],[79],[72],[70,71,72,73,74,75,76,77,78,80,81,82,83,84,85],[70,71],[73],[81],[70],[69,86],[69,86,87],[87,88,89,90,91,92]],"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":"e134052a6b1ded61693b4037f615dc72f14e2881e79c1ddbff6c514c8a516b05","impliedFormat":1},{"version":"33a1caf57a6f7318c7ce2c8a8a35137bd7c064d140f324e8f47b94cd129305b5","impliedFormat":1},{"version":"cc512139c85c41ba2dc95076b1ce05786c98129bcfe875017946ba2c82607ef1","impliedFormat":1},{"version":"12bffdbf179bfe787334d1aa31393bac5b79a84d2285ad94bcf36c1cce9eed57","impliedFormat":1},{"version":"e81484fc62d5e6add90882339bb2cdba0c87b85ca4002add438d0771ce2fdfa7","impliedFormat":1},{"version":"92ebc3261b20037c4e078cd3d26bccedb719b3eec653925e103b6ced4a936c0d","impliedFormat":1},{"version":"d8f8d36a0350f1b4e25f0d6c8cab7fb484a770cb02c4c92b8215ad421615d248","impliedFormat":99},{"version":"2be2227c3810dfd84e46674fd33b8d09a4a28ad9cb633ed536effd411665ea1e","impliedFormat":99},{"version":"151ff381ef9ff8da2da9b9663ebf657eac35c4c9a19183420c05728f31a6761d","impliedFormat":1},{"version":"ecd7b4429a2b12f50ef619043fca298eb99a9b7f9e8edabd60c9bbb7fa8f036b","impliedFormat":99},{"version":"c5c4280379b7f36801b1419663fe3d4f53cb1400bea8df529b20ae58cbf13ea8","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":"2839affda53bd5ae680f0ac0c89fe73badb7fff7609a8ed2c2849d0070122bbb","signature":"b73a68a2041f80f82a6962b17e6277d615ea3814f872382e766e13c7511aa727","impliedFormat":99},{"version":"52bb36fb0abc9c762033e6e19f16453f779e570c7d4eb8ccde628f2e6e8cc4bc","signature":"31a3c4bb7848ca462292098bb39eeafa9c932e57e9e528eddf5cdbc170e96f33","impliedFormat":99},{"version":"e2b4539bfef02d1115e2039b34c7987a2fd889b0a49583c5f89ce671c4a5ee69","signature":"650484199d93a2ccc5a14caed6f4082934f5bf79061f46a1802b84ed5c4086f5","impliedFormat":99},{"version":"97a4b3116caf91bab5ade41f55708b7d371f4bbfce782e910eba43bf96e84f13","signature":"49160075137a544bfccea491133ab2b24b484c8e2f2e4b03e6417cb95aeb5690","impliedFormat":99},{"version":"e4374cfa73d34f5363b0e2ffc9931ddb2a86d0d38ec8aa929f83100dc90408ee","signature":"40028786bf0fe36a63abff9a3e2d08ae30c00ce3c04f10d82cbbe354ee51839b","impliedFormat":99},{"version":"5dd45de5fc0552e30f663fd31e0fb35647e47b0828bbe2ddc60ada1a3fa2813c","signature":"df88bd242f6015145597fe208ce556da7f10136d07476701645e87daf1df21fb","impliedFormat":99},{"version":"0716a36dffb7905ce91f186c05b6b77f350c5da0bd6cdfc9915270b4ad7d0afc","signature":"2d6dd4853cf329d0b317aff87bc2d76afc219924d0dbaa0587fc03759fc43002","impliedFormat":99}],"root":[[87,93]],"options":{"composite":true,"declaration":true,"declarationMap":true,"esModuleInterop":true,"exactOptionalPropertyTypes":true,"module":199,"noUncheckedIndexedAccess":true,"outDir":"./dist","rootDir":"./src","skipLibCheck":true,"sourceMap":true,"strict":true,"target":9},"referencedMap":[[60,1],[64,2],[62,3],[63,4],[65,5],[69,6],[72,7],[80,8],[77,9],[86,10],[70,7],[73,11],[75,12],[82,13],[74,7],[71,14],[87,15],[88,16],[89,16],[90,16],[91,16],[92,16],[93,17]],"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/typescript@5.9.3/node_modules/typescript/lib/typescript.d.ts","../../node_modules/.pnpm/@typescript-eslint+types@8.71.2/node_modules/@typescript-eslint/types/dist/generated/ast-spec.d.ts","../../node_modules/.pnpm/@typescript-eslint+types@8.71.2/node_modules/@typescript-eslint/types/dist/lib.d.ts","../../node_modules/.pnpm/@typescript-eslint+types@8.71.2/node_modules/@typescript-eslint/types/dist/parser-options.d.ts","../../node_modules/.pnpm/@typescript-eslint+types@8.71.2/node_modules/@typescript-eslint/types/dist/ts-estree.d.ts","../../node_modules/.pnpm/@typescript-eslint+types@8.71.2/node_modules/@typescript-eslint/types/dist/index.d.ts","../../node_modules/.pnpm/esrap@2.2.4/node_modules/esrap/types/index.d.ts","../../node_modules/.pnpm/magic-string@0.30.21/node_modules/magic-string/dist/magic-string.es.d.mts","../../node_modules/.pnpm/@types+estree@1.0.8/node_modules/@types/estree/index.d.ts","../../node_modules/.pnpm/locate-character@3.0.0/node_modules/locate-character/types/index.d.ts","../../node_modules/.pnpm/svelte@5.54.0/node_modules/svelte/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","./src/context.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/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":[[112,161,178,179],[112,158,159,161,178,179],[112,160,161,178,179],[161,178,179],[112,161,166,178,179,196],[112,161,162,167,172,178,179,181,193,204],[112,161,162,163,172,178,179,181],[107,108,109,112,161,178,179],[112,161,164,178,179,205],[112,161,165,166,173,178,179,182],[112,161,166,178,179,193,201],[112,161,167,169,172,178,179,181],[112,160,161,168,178,179],[112,161,169,170,178,179],[112,161,171,172,178,179],[112,160,161,172,178,179],[112,161,172,173,174,178,179,193,204],[112,161,172,173,174,178,179,188,193,196],[112,154,161,169,172,175,178,179,181,193,204],[112,161,172,173,175,176,178,179,181,193,201,204],[112,161,175,177,178,179,193,201,204],[110,111,112,113,114,115,116,155,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],[112,161,172,178,179],[112,161,178,179,180,204],[112,161,169,172,178,179,181,193],[112,161,178,179,182],[112,161,178,179,183],[112,160,161,178,179,184],[112,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],[112,161,178,179,186],[112,161,178,179,187],[112,161,172,178,179,188,189],[112,161,178,179,188,190,205,207],[112,161,173,178,179],[112,161,172,178,179,193,194,196],[112,161,178,179,195,196],[112,161,178,179,193,194],[112,161,178,179,196],[112,161,178,179,197],[112,158,161,178,179,193,198,204],[112,161,172,178,179,199,200],[112,161,178,179,199,200],[112,161,166,178,179,181,193,201],[112,161,178,179,202],[112,161,178,179,181,203],[112,161,175,178,179,187,204],[112,161,166,178,179,205],[112,161,178,179,193,206],[112,161,178,179,180,207],[112,161,178,179,208],[112,154,161,178,179],[112,154,161,172,174,178,179,184,193,196,204,206,207,209],[112,161,178,179,193,210],[60,112,161,178,179],[61,62,63,64,112,161,178,179],[60,62,112,161,178,179],[61,64,112,161,178,179],[65,66,112,161,178,179],[66,67,68,69,70,112,161,178,179],[112,126,130,161,178,179,204],[112,126,161,178,179,193,204],[112,121,161,178,179],[112,123,126,161,178,179,201,204],[112,161,178,179,181,201],[112,161,178,179,211],[112,121,161,178,179,211],[112,123,126,161,178,179,181,204],[112,118,119,122,125,161,172,178,179,193,204],[112,126,133,161,178,179],[112,118,124,161,178,179],[112,126,147,148,161,178,179],[112,122,126,161,178,179,196,204,211],[112,147,161,178,179,211],[112,120,121,161,178,179,211],[112,126,161,178,179],[112,120,121,122,123,124,125,126,127,128,130,131,132,133,134,135,136,137,138,139,140,141,142,143,144,145,146,148,149,150,151,152,153,161,178,179],[112,126,141,161,178,179],[112,126,133,134,161,178,179],[112,124,126,134,135,161,178,179],[112,125,161,178,179],[112,118,121,126,161,178,179],[112,126,130,134,135,161,178,179],[112,130,161,178,179],[112,124,126,129,161,178,179,204],[112,118,123,126,133,161,178,179],[112,161,178,179,193],[112,121,126,147,161,178,179,209,211],[73,112,161,178,179],[73,74,112,161,178,179],[80,96,97,98,99,112,161,178,179],[73,94,112,161,178,179],[84,112,161,178,179],[91,112,161,178,179],[73,74,77,92,112,161,178,179],[75,112,161,178,179],[71,72,73,74,75,77,78,79,80,81,82,83,85,86,87,88,89,90,92,93,112,161,178,179],[71,72,73,74,76,112,161,178,179],[77,112,161,178,179],[74,112,161,178,179],[73,79,112,161,178,179],[71,72,112,161,178,179],[70,94,112,161,178,179],[70,94,95,100,112,161,178,179],[95,101,102,103,104,105,112,161,178,179]],"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":"e134052a6b1ded61693b4037f615dc72f14e2881e79c1ddbff6c514c8a516b05","impliedFormat":1},{"version":"419279e03eed8b86be271845db87116f98d8215b7a74b34736c7eb08745a1212","impliedFormat":1},{"version":"c86a92cecb2e497a418b41a0a76f60e1306797f86db40e5261ef46a35ffa2f23","impliedFormat":1},{"version":"3849a38cf1dd97dce1da953542fd3b87853451e069ed4b581b77d8b3e2eb0336","impliedFormat":1},{"version":"e81484fc62d5e6add90882339bb2cdba0c87b85ca4002add438d0771ce2fdfa7","impliedFormat":1},{"version":"92ebc3261b20037c4e078cd3d26bccedb719b3eec653925e103b6ced4a936c0d","impliedFormat":1},{"version":"d8f8d36a0350f1b4e25f0d6c8cab7fb484a770cb02c4c92b8215ad421615d248","impliedFormat":99},{"version":"2be2227c3810dfd84e46674fd33b8d09a4a28ad9cb633ed536effd411665ea1e","impliedFormat":99},{"version":"151ff381ef9ff8da2da9b9663ebf657eac35c4c9a19183420c05728f31a6761d","impliedFormat":1},{"version":"ecd7b4429a2b12f50ef619043fca298eb99a9b7f9e8edabd60c9bbb7fa8f036b","impliedFormat":99},{"version":"c5c4280379b7f36801b1419663fe3d4f53cb1400bea8df529b20ae58cbf13ea8","affectsGlobalScope":true,"impliedFormat":99},{"version":"6d7e2e5bbb8d950ac95afc421abf303862d31efbc1b96f7666ce1894b301ea15","impliedFormat":99},{"version":"6d811b90bfadc04ebeec6bb19fc2166f54bd527e5857893b9715546f27a7598f","impliedFormat":99},{"version":"076bcaa298067a19524868b10255bd24c5160f21a6f82f78e20ef6d177db38fe","impliedFormat":99},{"version":"28683f6633f7a4a4175b0f5fe9d368af8e904a4b58e4fbeab71456f871705a18","impliedFormat":99},{"version":"9efedc91c0d16354997f9e9d070abd1b90095cca1d06da7fc3e7f657f828acf9","impliedFormat":99},{"version":"01b7367b12aaf639bb876eefb9bae25d441a6ead1d2e4cb4f6dee6c8e17557cc","impliedFormat":99},{"version":"2e80e4660990382c6e3355c544627487c8548104eb5aa383dded7870a41443db","impliedFormat":99},{"version":"97f7607bc3483613d9d6b464b5b876d973eac1f2ec7eb65115ab1320903ae0cf","impliedFormat":99},{"version":"22ea3e51422593e5300966ce275130b75f747d86490c00dfb1304a9cc243e65d","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":"2839affda53bd5ae680f0ac0c89fe73badb7fff7609a8ed2c2849d0070122bbb","signature":"b73a68a2041f80f82a6962b17e6277d615ea3814f872382e766e13c7511aa727","impliedFormat":99},{"version":"2cded70360a52a37d6f29e767f970eb55e411d361f942c7b5679710b6ae8455a","impliedFormat":99},{"version":"1c902e696a01758fca67e7749898b6edeaf1e7eaf531d54aa862ec33dadc491d","impliedFormat":99},{"version":"d6f3f690a78ebede1cd428931303dcf92514829b59e7855106e024feb7a2b233","impliedFormat":99},{"version":"7be060dfdf4a9765e1a8d57fbae92b3f9cdcd2fccc63cf92a120464ed3de162d","impliedFormat":99},{"version":"8338ea8cec009c320c9213244b8f2ce5af93a0f020f4919144bfa80006c5f6ce","impliedFormat":99},{"version":"2d39222824216d3098011b2a5e5e2d78da88455df872d5278c803849081e2132","signature":"bf2353f578eeb9f6ede938430ee48668ffc6400f8002c360c2b9f3b6e464b331","impliedFormat":99},{"version":"979f02c247e9d2152548d198806ce9953f7772cffd02a15877ae77c8578784ce","signature":"650484199d93a2ccc5a14caed6f4082934f5bf79061f46a1802b84ed5c4086f5","impliedFormat":99},{"version":"4818d4c7e11e723d470a3fa24f0e1ad85212c13b44a7fc6155b900141b7775bc","signature":"93883922b4dbf16b7b4b9dd86626cad4929f09af56a09b9addadb9b47d608940","impliedFormat":99},{"version":"fa90cebba2f18d68c520559b47dfd54fe094ac234cbdc3e7ec9e8a6fa4bdd8a7","signature":"40028786bf0fe36a63abff9a3e2d08ae30c00ce3c04f10d82cbbe354ee51839b","impliedFormat":99},{"version":"371d4701383db65c1d46618d1eae16de39487b90d809a7a5eb2c294263d89149","signature":"cdcf753881d25fc306f051dd693a69bd51dbdc305a13115c5a425f52b17c7e0c","impliedFormat":99},{"version":"0716a36dffb7905ce91f186c05b6b77f350c5da0bd6cdfc9915270b4ad7d0afc","signature":"2d6dd4853cf329d0b317aff87bc2d76afc219924d0dbaa0587fc03759fc43002","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,95,[101,106]],"options":{"composite":true,"declaration":true,"declarationMap":true,"esModuleInterop":true,"exactOptionalPropertyTypes":true,"module":199,"noUncheckedIndexedAccess":true,"outDir":"./dist","rootDir":"./src","skipLibCheck":true,"sourceMap":true,"strict":true,"target":9},"referencedMap":[[68,1],[158,2],[159,2],[160,3],[112,4],[161,5],[162,6],[163,7],[107,1],[110,8],[108,1],[109,1],[164,9],[165,10],[166,11],[167,12],[168,13],[169,14],[170,14],[171,15],[172,16],[173,17],[174,18],[113,1],[111,1],[175,19],[176,20],[177,21],[211,22],[178,23],[179,1],[180,24],[181,25],[182,26],[183,27],[184,28],[185,29],[186,30],[187,31],[188,32],[189,32],[190,33],[191,1],[192,34],[193,35],[195,36],[194,37],[196,38],[197,39],[198,40],[199,41],[200,42],[201,43],[202,44],[203,45],[204,46],[205,47],[206,48],[207,49],[208,50],[114,1],[115,1],[116,1],[155,51],[156,1],[157,1],[209,52],[210,53],[61,54],[65,55],[62,1],[63,56],[64,57],[117,1],[66,58],[69,1],[67,1],[70,59],[57,1],[58,1],[10,1],[12,1],[11,1],[2,1],[13,1],[14,1],[15,1],[16,1],[17,1],[18,1],[19,1],[20,1],[3,1],[21,1],[22,1],[4,1],[23,1],[27,1],[24,1],[25,1],[26,1],[28,1],[29,1],[30,1],[5,1],[31,1],[32,1],[33,1],[34,1],[6,1],[38,1],[35,1],[36,1],[37,1],[39,1],[7,1],[40,1],[45,1],[46,1],[41,1],[42,1],[43,1],[44,1],[8,1],[50,1],[47,1],[48,1],[49,1],[51,1],[9,1],[52,1],[53,1],[54,1],[56,1],[55,1],[1,1],[60,1],[133,60],[143,61],[132,60],[153,62],[124,63],[123,64],[152,65],[146,66],[151,67],[126,68],[140,69],[125,70],[149,71],[121,72],[120,65],[150,73],[122,74],[127,75],[128,1],[131,75],[118,1],[154,76],[144,77],[135,78],[136,79],[138,80],[134,81],[137,82],[147,65],[129,83],[130,84],[139,85],[119,86],[142,77],[141,75],[145,1],[148,87],[96,88],[75,89],[100,90],[97,91],[86,1],[88,1],[83,88],[84,1],[74,1],[85,92],[76,1],[91,1],[92,93],[93,94],[82,95],[94,96],[99,1],[98,91],[81,1],[90,1],[72,88],[77,97],[79,98],[87,99],[71,88],[89,1],[78,89],[80,100],[73,101],[95,102],[101,103],[102,103],[103,103],[104,103],[105,103],[106,104],[59,1]],"latestChangedDtsFile":"./dist/index.d.ts","version":"5.9.3"}
|