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

graphql-request

Package Overview
Dependencies
Maintainers
1
Versions
206
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

graphql-request - npm Package Compare versions

Comparing version 1.3.2 to 1.3.3

12

package.json
{
"name": "graphql-request",
"version": "1.3.2",
"version": "1.3.3",
"main": "dist/src/index.js",

@@ -33,9 +33,9 @@ "typings": "./dist/src/index.d.ts",

"devDependencies": {
"@types/fetch-mock": "^5.8.2",
"@types/node": "^7.0.18",
"ava": "^0.19.1",
"fetch-mock": "^5.11.0",
"@types/fetch-mock": "^5.8.3",
"@types/node": "^8.0.16",
"ava": "^0.21.0",
"fetch-mock": "^5.12.1",
"tslint": "^5.5.0",
"tslint-config-standard": "^6.0.1",
"typescript": "^2.3.2"
"typescript": "^2.4.2"
},

@@ -42,0 +42,0 @@ "dependencies": {

@@ -75,2 +75,24 @@ # graphql-request [![Build Status](https://travis-ci.org/graphcool/graphql-request.svg?branch=master)](https://travis-ci.org/graphcool/graphql-request) [![npm version](https://badge.fury.io/js/graphql-request.svg)](https://badge.fury.io/js/graphql-request)

### Passing more options to fetch
```js
import { GraphQLClient } from 'graphql-request'
const client = new GraphQLClient('my-endpoint', {
credentials: 'include',
mode: 'cors'
})
const query = `{
Movie(title: "Inception") {
releaseDate
actors {
name
}
}
}`
client.request(query).then(data => console.log(data))
```
### Using variables

@@ -77,0 +99,0 @@

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

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