graphql-client
Advanced tools
Comparing version 1.0.1 to 1.0.2
module.exports = function(params) { | ||
require('isomorphic-fetch'); | ||
if(!params.url) throw new Error("Missing url parameter") | ||
return { | ||
@@ -10,3 +13,4 @@ query: function(query, variables) { | ||
body: JSON.stringify({ | ||
query: query | ||
query: query, | ||
variables: variables | ||
}), | ||
@@ -13,0 +17,0 @@ headers: headers |
{ | ||
"name": "graphql-client", | ||
"version": "1.0.1", | ||
"version": "1.0.2", | ||
"description": "", | ||
@@ -11,3 +11,6 @@ "main": "index.js", | ||
"author": "", | ||
"license": "ISC" | ||
"license": "ISC", | ||
"dependencies": { | ||
"isomorphic-fetch": "^2.2.1" | ||
} | ||
} |
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
1344
20
1
+ Addedisomorphic-fetch@^2.2.1
+ Addedencoding@0.1.13(transitive)
+ Addediconv-lite@0.6.3(transitive)
+ Addedis-stream@1.1.0(transitive)
+ Addedisomorphic-fetch@2.2.1(transitive)
+ Addednode-fetch@1.7.3(transitive)
+ Addedsafer-buffer@2.1.2(transitive)
+ Addedwhatwg-fetch@3.6.20(transitive)