@amoutonbrady/graphql-client
Advanced tools
Comparing version 0.3.1 to 0.3.2
// src/graphql-client.ts | ||
function GraphQLClient(url, options) { | ||
function GraphQLClient(url, options = {}) { | ||
let authorization = options.auth || ""; | ||
@@ -4,0 +4,0 @@ let headers = {}; |
@@ -21,3 +21,3 @@ import type nodeFetch from 'node-fetch'; | ||
*/ | ||
export declare function GraphQLClient(url: string, options: Options): { | ||
export declare function GraphQLClient(url: string, options?: Options): { | ||
request: <T = any>(query: string, variables?: Record<string, any>) => Promise<T>; | ||
@@ -24,0 +24,0 @@ setAuth: (token: string) => string; |
{ | ||
"version": "0.3.1", | ||
"version": "0.3.2", | ||
"name": "@amoutonbrady/graphql-client", | ||
@@ -4,0 +4,0 @@ "description": "Minimalistic GraphQL client", |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
5335