fetch-graphql
Advanced tools
Comparing version 0.1.1 to 0.2.0
@@ -1,2 +0,2 @@ | ||
function fetchGraphQL(url, headers, query, variables) { | ||
function fetchGraphQL(url, query, variables, headers) { | ||
return new Promise((resolve, reject) => { | ||
@@ -3,0 +3,0 @@ fetch(url, { |
{ | ||
"name": "fetch-graphql", | ||
"version": "0.1.1", | ||
"version": "0.2.0", | ||
"description": "GraphQL fetch client", | ||
"main": "index.js", | ||
"types": "index.d.ts", | ||
"repository": "https://github.com/safaiyeh/fetch-graphql", | ||
"author": "Jason Safaiyeh <safaiyeh@protonmail.com>", | ||
"license": "MIT", | ||
"private": false | ||
"private": false, | ||
"dependencies": {} | ||
} |
@@ -29,5 +29,5 @@ # fetch-graphql | ||
'https://yourAPI.com/graphql', | ||
{ 'header1': 'headerValue1', ...headers }, | ||
query, | ||
variables | ||
variables, | ||
{ 'header1': 'headerValue1', ...headers } | ||
); | ||
@@ -34,0 +34,0 @@ |
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
1597
4
23