Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

fetch-graphql

Package Overview
Dependencies
Maintainers
1
Versions
4
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

fetch-graphql - npm Package Compare versions

Comparing version 0.1.1 to 0.2.0

index.d.ts

2

index.js

@@ -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 @@

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc