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 1.3.5-alpha to 1.3.5

20

dist/src/index.js

@@ -68,3 +68,3 @@ "use strict";

return __awaiter(this, void 0, void 0, function () {
var body, response, result;
var body, response, result, errorResult;
return __generator(this, function (_a) {

@@ -87,3 +87,4 @@ switch (_a.label) {

else {
throw new types_1.ClientError(__assign({}, result, { status: response.status }), { query: query, variables: variables });
errorResult = typeof result === 'string' ? { data: result } : result;
throw new types_1.ClientError(__assign({}, errorResult, { status: response.status }), { query: query, variables: variables });
}

@@ -100,5 +101,5 @@ return [2 /*return*/];

return __awaiter(this, void 0, void 0, function () {
var contentType, _a;
return __generator(this, function (_b) {
switch (_b.label) {
var contentType;
return __generator(this, function (_a) {
switch (_a.label) {
case 0:

@@ -108,8 +109,5 @@ contentType = response.headers.get('Content-Type');

return [4 /*yield*/, response.json()];
case 1: return [2 /*return*/, _b.sent()];
case 2:
_a = {};
return [4 /*yield*/, response.text()];
case 3: return [2 /*return*/, (_a.data = _b.sent(),
_a)];
case 1: return [2 /*return*/, _a.sent()];
case 2: return [4 /*yield*/, response.text()];
case 3: return [2 /*return*/, _a.sent()];
}

@@ -116,0 +114,0 @@ });

{
"name": "graphql-request",
"version": "1.3.5-alpha",
"version": "1.3.5",
"main": "dist/src/index.js",

@@ -5,0 +5,0 @@ "typings": "./dist/src/index.d.ts",

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