graphql-request
Advanced tools
Comparing version 2.0.0 to 2.1.0-next.1
{ | ||
"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> |
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
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
Found 1 instance in 1 package
New author
Supply chain riskA new npm collaborator published a version of the package for the first time. New collaborators are usually benign additions to a project, but do indicate a change to the security surface area of a package.
Found 1 instance in 1 package
No v1
QualityPackage is not semver >=1. This means it is not stable and does not support ^ ranges.
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
Network access
Supply chain riskThis module accesses the network.
Found 1 instance in 1 package
42022
1
16
12
641
1
295
+ Addedcross-fetch@^3.0.4
+ Addedcross-fetch@3.1.8(transitive)
+ Addednode-fetch@2.7.0(transitive)
+ Addedtr46@0.0.3(transitive)
+ Addedwebidl-conversions@3.0.1(transitive)
+ Addedwhatwg-url@5.0.0(transitive)