@vrplatform/graphql 1.0.5 → 1.0.6

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,6 +1,5 @@
1
1
  import { type GeneratedSchema } from './gqty';
2
2
  import type { GqlAuthParam } from './types';
3
- export type HasuraClient = ReturnType<typeof useHasuraClientInner>;
4
3
  export declare function useHasuraClientInner(args?: Omit<GqlAuthParam, 'retries'>): {
5
4
  subscriptionsClient: import("graphql-ws").Client;
6
5
  client: import("gqty").GQtyClient<GeneratedSchema>;
@@ -1,10 +1,11 @@
1
- export { type HasuraClient, useHasuraClientInner } from './create-client';
1
+ export { useHasuraClientInner } from './create-client';
2
2
  export * from './gqty';
3
3
  export { GQtyError } from 'gqty';
4
4
  import type { LegacyResolveOptions } from 'gqty';
5
5
  import type { Mutation, Query, Subscription } from './gqty';
6
6
  import type { GqlAuthParam } from './types';
7
7
  export type ResolveOptionsWithSession<T> = LegacyResolveOptions<T>;
8
+ export type HasuraClient = ReturnType<typeof useHasuraClient>;
8
9
  export declare function useHasuraClient(args?: GqlAuthParam): {
9
10
  client: import("gqty").GQtyClient<import("./gqty").GeneratedSchema>;
10
11
  subscriptionsClient: import("graphql-ws").Client;
@@ -1,6 +1,5 @@
1
1
  import { type GeneratedSchema } from './gqty';
2
2
  import type { GqlAuthParam } from './types';
3
- export type HasuraClient = ReturnType<typeof useHasuraClientInner>;
4
3
  export declare function useHasuraClientInner(args?: Omit<GqlAuthParam, 'retries'>): {
5
4
  subscriptionsClient: import("graphql-ws").Client;
6
5
  client: import("gqty").GQtyClient<GeneratedSchema>;
@@ -1,10 +1,11 @@
1
- export { type HasuraClient, useHasuraClientInner } from './create-client';
1
+ export { useHasuraClientInner } from './create-client';
2
2
  export * from './gqty';
3
3
  export { GQtyError } from 'gqty';
4
4
  import type { LegacyResolveOptions } from 'gqty';
5
5
  import type { Mutation, Query, Subscription } from './gqty';
6
6
  import type { GqlAuthParam } from './types';
7
7
  export type ResolveOptionsWithSession<T> = LegacyResolveOptions<T>;
8
+ export type HasuraClient = ReturnType<typeof useHasuraClient>;
8
9
  export declare function useHasuraClient(args?: GqlAuthParam): {
9
10
  client: import("gqty").GQtyClient<import("./gqty").GeneratedSchema>;
10
11
  subscriptionsClient: import("graphql-ws").Client;
package/package.json CHANGED
@@ -10,7 +10,7 @@
10
10
  "!**/*.spec.*",
11
11
  "LICENSE"
12
12
  ],
13
- "version": "1.0.5",
13
+ "version": "1.0.6",
14
14
  "description": "Finalytic graphql",
15
15
  "main": "build/main/index.js",
16
16
  "module": "build/module/index.js",
@@ -14,8 +14,6 @@ import {
14
14
  } from './gqty';
15
15
  import type { GqlAuthParam, Headers } from './types';
16
16
 
17
- export type HasuraClient = ReturnType<typeof useHasuraClientInner>;
18
-
19
17
  export function useHasuraClientInner(args?: Omit<GqlAuthParam, 'retries'>) {
20
18
  const $headers = args && 'headers' in args ? args.headers : undefined;
21
19
  const $fetch = (args && 'fetch' in args ? args.fetch : undefined) || fetch;
package/src/index.ts CHANGED
@@ -1,6 +1,6 @@
1
1
  import { useHasuraClientInner } from './create-client';
2
2
 
3
- export { type HasuraClient, useHasuraClientInner } from './create-client';
3
+ export { useHasuraClientInner } from './create-client';
4
4
  export * from './gqty';
5
5
  export { GQtyError } from 'gqty';
6
6
 
@@ -10,6 +10,8 @@ import type { GqlAuthParam } from './types';
10
10
 
11
11
  export type ResolveOptionsWithSession<T> = LegacyResolveOptions<T>;
12
12
 
13
+ export type HasuraClient = ReturnType<typeof useHasuraClient>;
14
+
13
15
  export function useHasuraClient(args?: GqlAuthParam) {
14
16
  const { client, subscriptionsClient } = useHasuraClientInner(args);
15
17
  const retries = args.retries || 3;