@vrplatform/graphql 1.0.0 → 1.0.2
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.
|
@@ -2,8 +2,8 @@
|
|
|
2
2
|
* GQty AUTO-GENERATED CODE: PLEASE DO NOT MODIFY MANUALLY
|
|
3
3
|
*/
|
|
4
4
|
|
|
5
|
-
export type Maybe<T> = T
|
|
6
|
-
export type InputMaybe<T> = Maybe<T
|
|
5
|
+
export type Maybe<T> = T;
|
|
6
|
+
export type InputMaybe<T> = Maybe<T> | null;
|
|
7
7
|
export type Exact<T extends { [key: string]: unknown }> = {
|
|
8
8
|
[K in keyof T]: T[K];
|
|
9
9
|
};
|
|
@@ -1,17 +1,14 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
-
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
3
|
-
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
4
|
-
};
|
|
5
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
3
|
exports.useHasuraClientInner = useHasuraClientInner;
|
|
7
4
|
const subscriptions_1 = require("@gqty/subscriptions");
|
|
8
|
-
|
|
5
|
+
// import fetch from 'cross-fetch';
|
|
9
6
|
const gqty_1 = require("gqty");
|
|
10
7
|
const constants_1 = require("./constants");
|
|
11
8
|
const gqty_2 = require("./gqty");
|
|
12
9
|
function useHasuraClientInner(args) {
|
|
13
10
|
const $headers = args && 'headers' in args ? args.headers : undefined;
|
|
14
|
-
const $fetch = (args && 'fetch' in args ? args.fetch : undefined) ||
|
|
11
|
+
const $fetch = (args && 'fetch' in args ? args.fetch : undefined) || fetch;
|
|
15
12
|
const uri = args?.uri || constants_1.hasuraGraphqlUri;
|
|
16
13
|
const getHeaders = async (base) => {
|
|
17
14
|
const headers = ($headers && typeof $headers === 'function'
|
|
@@ -2,8 +2,8 @@
|
|
|
2
2
|
* GQty AUTO-GENERATED CODE: PLEASE DO NOT MODIFY MANUALLY
|
|
3
3
|
*/
|
|
4
4
|
|
|
5
|
-
export type Maybe<T> = T
|
|
6
|
-
export type InputMaybe<T> = Maybe<T
|
|
5
|
+
export type Maybe<T> = T;
|
|
6
|
+
export type InputMaybe<T> = Maybe<T> | null;
|
|
7
7
|
export type Exact<T extends { [key: string]: unknown }> = {
|
|
8
8
|
[K in keyof T]: T[K];
|
|
9
9
|
};
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { createSubscriptionsClient } from '@gqty/subscriptions';
|
|
2
|
-
import fetch from 'cross-fetch';
|
|
2
|
+
// import fetch from 'cross-fetch';
|
|
3
3
|
import { Cache, createClient } from 'gqty';
|
|
4
4
|
import { hasuraGraphqlUri, hasuraQueryTypeHeader } from './constants';
|
|
5
5
|
import { generatedSchema, scalarsEnumsHash, } from './gqty';
|
package/package.json
CHANGED
|
@@ -2,8 +2,8 @@
|
|
|
2
2
|
* GQty AUTO-GENERATED CODE: PLEASE DO NOT MODIFY MANUALLY
|
|
3
3
|
*/
|
|
4
4
|
|
|
5
|
-
export type Maybe<T> = T
|
|
6
|
-
export type InputMaybe<T> = Maybe<T
|
|
5
|
+
export type Maybe<T> = T;
|
|
6
|
+
export type InputMaybe<T> = Maybe<T> | null;
|
|
7
7
|
export type Exact<T extends { [key: string]: unknown }> = {
|
|
8
8
|
[K in keyof T]: T[K];
|
|
9
9
|
};
|