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.1.3 to 1.2.0

12

dist/src/index.js
"use strict";
var __assign = (this && this.__assign) || Object.assign || function(t) {
for (var s, i = 1, n = arguments.length; i < n; i++) {
s = arguments[i];
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
t[p] = s[p];
}
return t;
};
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {

@@ -80,7 +88,7 @@ return new (P || (P = Promise))(function (resolve, reject) {

result = _a.sent();
if (response.ok && !result.errors) {
if (response.ok && !result.errors && result.data) {
return [2 /*return*/, result.data];
}
else {
throw new types_1.ClientError({ data: result.data, errors: result.errors, status: response.status }, { query: query, variables: variables });
throw new types_1.ClientError(__assign({}, result, { status: response.status }), { query: query, variables: variables });
}

@@ -87,0 +95,0 @@ return [2 /*return*/];

2

dist/src/types.d.ts

@@ -19,3 +19,3 @@ export declare type Variables = {

data?: any;
errors: GraphQLError[];
errors?: GraphQLError[];
status: number;

@@ -22,0 +22,0 @@ [key: string]: any;

{
"name": "graphql-request",
"version": "1.1.3",
"version": "1.2.0",
"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

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