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

graphql-request

Package Overview
Dependencies
Maintainers
2
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 2.0.0 to 2.1.0-next.1

dist/index.d.ts

50

package.json
{
"name": "graphql-request",
"version": "2.0.0",
"main": "dist/src/index.js",
"typings": "./dist/src/index.d.ts",
"version": "2.1.0-next.1",
"main": "dist/index.js",
"files": [

@@ -11,3 +10,3 @@ "dist"

{
"path": "./dist/src/index.js",
"path": "./dist/index.js",
"maxSize": "15 kB"

@@ -18,3 +17,3 @@ }

"type": "git",
"url": "git+https://github.com/prisma/graphql-request.git"
"url": "https://github.com/prisma/graphql-request.git"
},

@@ -28,3 +27,3 @@ "keywords": [

],
"author": "Johannes Schickling <johannes@graph.cool>",
"author": "Prisma Labs Team",
"license": "MIT",

@@ -35,28 +34,41 @@ "bugs": {

"engines": {
"node": ">=10"
"node": "10.x || 12.x || 14.x"
},
"homepage": "https://github.com/prisma/graphql-request",
"scripts": {
"dev": "rm -rf dist && tsc --watch",
"dev:test": "jest --watch",
"format": "prettier --write .",
"prepublish": "npm run build",
"prepublishOnly": "yarn build",
"build": "rm -rf dist && tsc -d",
"lint": "tslint --project . {examples,src,test}/**/*.ts",
"test": "yarn lint && yarn build && ava --serial",
"test:ci": "yarn test && bundlesize"
"test": "jest",
"release:stable": "dripip stable",
"release:preview": "dripip preview",
"release:pr": "dripip pr"
},
"dependencies": {},
"dependencies": {
"cross-fetch": "^3.0.4"
},
"devDependencies": {
"@prisma-labs/prettier-config": "^0.1.0",
"@types/body-parser": "^1.19.0",
"@types/express": "^4.17.6",
"@types/fetch-mock": "5.12.2",
"@types/node": "8.5.5",
"ava": "^3.8.2",
"@types/jest": "^25.2.3",
"@types/node": "10.17.24",
"body-parser": "^1.19.0",
"bundlesize": "^0.18.0",
"dripip": "^0.9.0",
"express": "^4.17.1",
"fetch-cookie": "0.7.2",
"fetch-mock": "5.13.1",
"jest": "^26.0.1",
"prettier": "^2.0.5",
"tslint": "5.11.0",
"tslint-config-standard": "8.0.1",
"typescript": "3.0.3"
"ts-jest": "^26.0.0",
"type-fest": "^0.15.0",
"typescript": "^3.9.3"
},
"prettier": "@prisma-labs/prettier-config"
"prettier": "@prisma-labs/prettier-config",
"jest": {
"preset": "ts-jest"
}
}
# graphql-request
[![CircleCI](https://circleci.com/gh/prisma/graphql-request.svg?style=shield)](https://circleci.com/gh/prisma/graphql-request) [![npm version](https://badge.fury.io/js/graphql-request.svg)](https://badge.fury.io/js/graphql-request)
Minimal GraphQL client supporting Node and browsers for scripts or simple apps
📡 Minimal GraphQL client supporting Node and browsers for scripts or simple apps
![GitHub Action](https://github.com/prisma-labs/graphql-request/workflows/trunk/badge.svg) [![npm version](https://badge.fury.io/js/graphql-request.svg)](https://badge.fury.io/js/graphql-request)
## Features
- Most **simple and lightweight** GraphQL client
- Most **simple & lightweight** GraphQL client
- Promise-based API (works with `async` / `await`)
- Typescript support (Flow coming soon)
- Typescript support
- Isomorphic (works with Node / browsers)

@@ -16,3 +17,3 @@ ## Install

```sh
npm install graphql-request
npm add graphql-request
```

@@ -295,11 +296,1 @@

Compared to GraphQL clients like Apollo or Relay, `graphql-request` doesn't have a built-in cache and has no integrations for frontend frameworks. The goal is to keep the package and API as minimal as possible.
### So what about Lokka?
Lokka is great but it still requires [a lot of setup code](https://github.com/kadirahq/lokka-transport-http) to be able to send a simple GraphQL query. `graphql-request` does less work compared to Lokka but is a lot simpler to use.
## Help & Community [![Slack Status](https://slack.prisma.io/badge.svg)](https://slack.prisma.io)
Join our [Slack community](http://slack.prisma.io/) if you run into issues or have questions. We love talking to you!
<p align="center"><a href="https://oss.prisma.io"><img src="https://imgur.com/IMU2ERq.png" alt="Prisma" height="170px"></a></p>
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