Socket
Socket
Sign inDemoInstall

react-query-gql

Package Overview
Dependencies
Maintainers
1
Versions
8
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

react-query-gql - npm Package Compare versions

Comparing version 0.0.6 to 0.0.7

2

CHANGELOG.md

@@ -5,2 +5,4 @@ # Changelog

### [0.0.7](https://github.com/correttojs/graphql-codegen-apollo-next-ssr/compare/v0.0.6...v0.0.7) (2021-05-03)
### [0.0.6](https://github.com/correttojs/graphql-codegen-apollo-next-ssr/compare/v0.0.5...v0.0.6) (2021-05-03)

@@ -7,0 +9,0 @@

2

dist/index.js

@@ -8,3 +8,3 @@ import { GraphQLClient } from 'graphql-request';

var _a, _b;
return useQuery(`${(_b = (_a = document.definitions[0]) === null || _a === void 0 ? void 0 : _a.name) === null || _b === void 0 ? void 0 : _b.value}${JSON.stringify(variables)}`, () => gqlRequest(document, variables), options);
return useQuery(`${(_b = (_a = document.definitions[0]) === null || _a === void 0 ? void 0 : _a.name) === null || _b === void 0 ? void 0 : _b.value}${JSON.stringify(variables)}`, () => gqlRequest(document, variables, options === null || options === void 0 ? void 0 : options.url), options);
};

@@ -11,0 +11,0 @@ const useReactMutation = (document, options) => {

import { TypedDocumentNode } from "@graphql-typed-document-node/core";
import { UseMutationOptions, UseMutationResult, UseQueryOptions, UseQueryResult } from "react-query";
export declare const useReactQuery: <TData, TVariables, TError = unknown>(document: TypedDocumentNode<TData, TVariables>, variables?: TVariables, options?: UseQueryOptions<TData, any, TData, import("react-query").QueryKey>) => UseQueryResult<TData, any>;
export declare const useReactQuery: <TData, TVariables, TError = unknown>(document: TypedDocumentNode<TData, TVariables>, variables?: TVariables, options?: UseQueryOptions<TData, any, TData, import("react-query").QueryKey> & {
url: string;
}) => UseQueryResult<TData, any>;
export declare const useReactMutation: <TData, TVariables, TError = unknown, TContext = unknown>(document: TypedDocumentNode<TData, TVariables>, options?: UseMutationOptions<TData, TError, TVariables, TContext> & {
url: string;
}) => UseMutationResult<TData, TError, TVariables, TContext>;
{
"name": "react-query-gql",
"version": "0.0.6",
"version": "0.0.7",
"description": "React Query Gql Client",

@@ -5,0 +5,0 @@ "license": "MIT",

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc