@vladimirdev635/gql-client 0.0.78 → 0.0.80

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@vladimirdev635/gql-client",
3
- "version": "0.0.78",
3
+ "version": "0.0.80",
4
4
  "type": "module",
5
5
  "main": "./index.js",
6
6
  "types": "./index.d.ts",
@@ -4,7 +4,6 @@ export function createJSONSerializer() {
4
4
  serializeRequest: ({ operation, requestContext, variables }) => {
5
5
  const headers = {
6
6
  'Content-Type': 'application/json',
7
- 'GQL-Operation-Hash': operation.hash
8
7
  };
9
8
  if (operation.type === 'SUBSCRIPTION') {
10
9
  headers.Accept = 'text/event-stream';
@@ -56,9 +56,7 @@ function buildFormData(operation, variables, shouldTreatAsObject) {
56
56
  export function createMultipartSerializer() {
57
57
  return {
58
58
  serializeRequest: ({ operation, requestContext, variables }) => {
59
- const headers = {
60
- 'GQL-Operation-Hash': operation.hash
61
- };
59
+ const headers = {};
62
60
  if (operation.type === 'SUBSCRIPTION') {
63
61
  headers.Accept = 'text/event-stream';
64
62
  }
@@ -13,7 +13,6 @@ describe('Json serializer', () => {
13
13
  file: z.file(),
14
14
  }),
15
15
  resultSchema: z.void(),
16
- hash: ''
17
16
  };
18
17
  const variables = {
19
18
  name: 'test-name',
@@ -35,7 +34,6 @@ describe('Json serializer', () => {
35
34
  name: z.string(),
36
35
  }),
37
36
  resultSchema: z.void(),
38
- hash: ''
39
37
  };
40
38
  const variables = {
41
39
  name: 'test-name',
@@ -13,7 +13,6 @@ describe('Multipart serializer', () => {
13
13
  name: z.string()
14
14
  }),
15
15
  resultSchema: z.void(),
16
- hash: ''
17
16
  };
18
17
  const variables = {
19
18
  name: 'test-name'
@@ -35,7 +34,6 @@ describe('Multipart serializer', () => {
35
34
  file: z.file()
36
35
  }),
37
36
  resultSchema: z.void(),
38
- hash: ''
39
37
  };
40
38
  const variables = {
41
39
  name: 'test-name',
package/types/base.d.ts CHANGED
@@ -6,7 +6,6 @@ interface BaseOperation<V, R> {
6
6
  document: string;
7
7
  variablesSchema: SchemaForInput<V>;
8
8
  resultSchema: SchemaForOutput<R>;
9
- hash: string;
10
9
  }
11
10
  export interface SyncOperation<V, R> extends BaseOperation<V, R> {
12
11
  type: 'QUERY' | 'MUTATION';