graphql-client
Advanced tools
Comparing version 1.0.0 to 1.0.1
12
index.js
@@ -1,18 +0,18 @@ | ||
module.exports = function(url) { | ||
module.exports = function(params) { | ||
return { | ||
query: function(query, params) { | ||
query: function(query, variables) { | ||
var headers = new Headers(); | ||
headers.append("Content-Type", "application/json"); | ||
fetch(url, { | ||
return fetch(params.url, { | ||
method: "POST", | ||
body: JSON.stringify({ | ||
query: bedQuery | ||
query: query | ||
}), | ||
headers: myHeaders | ||
headers: headers | ||
}).then(function(res) { | ||
return res.json() | ||
}).then(searchActions.receive) | ||
}) | ||
} | ||
} | ||
} |
{ | ||
"name": "graphql-client", | ||
"version": "1.0.0", | ||
"version": "1.0.1", | ||
"description": "", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
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
1163