@kitql/client
Advanced tools
Comparing version 0.0.13 to 0.0.14
@@ -33,2 +33,3 @@ 'use strict'; | ||
this.credentials = credentials; | ||
this.astMode = options.astMode || false; | ||
} | ||
@@ -59,3 +60,6 @@ async request({ skFetch, document, variables, cacheKey, cacheMs }) { | ||
headers: { 'Content-Type': 'application/json' }, | ||
body: JSON.stringify({ query: graphql.print(document), variables }) | ||
body: JSON.stringify({ | ||
query: this.astMode ? document : graphql.print(document), | ||
variables | ||
}) | ||
}); | ||
@@ -62,0 +66,0 @@ if (res.status !== 200) { |
@@ -5,2 +5,3 @@ export declare type ClientSettings = { | ||
credentials?: 'include' | string; | ||
astMode?: boolean; | ||
}; | ||
@@ -47,2 +48,3 @@ export declare type RequestSettings = { | ||
private credentials; | ||
private astMode; | ||
private cache; | ||
@@ -49,0 +51,0 @@ constructor(options: ClientSettings); |
{ | ||
"name": "@kitql/client", | ||
"version": "0.0.13", | ||
"version": "0.0.14", | ||
"dependencies": { | ||
@@ -5,0 +5,0 @@ "graphql": "16.2.0" |
Sorry, the diff of this file is not supported yet
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
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
Found 1 instance in 1 package
11109
329
2