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

gqty

Package Overview
Dependencies
Maintainers
1
Versions
318
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

gqty - npm Package Compare versions

Comparing version 3.2.0-canary-20240718092221.1ee2b21aac68cf350fb9ad7a892605893bb012f0 to 3.2.0-canary-20240718093622.0223e751424adcc008f8d210d01f5d175562fdd2

1

Cache/index.js

@@ -10,3 +10,2 @@ 'use strict';

const deepCopy = require('../Helpers/deepCopy.js');
require('gqty/Error');
require('../Utils/hash.js');

@@ -13,0 +12,0 @@ const select = require('../Helpers/select.js');

@@ -15,3 +15,2 @@ 'use strict';

require('flatted');
require('gqty/Error');
const getFields = require('../Helpers/getFields.js');

@@ -18,0 +17,0 @@ const prepass = require('../Helpers/prepass.js');

12

Helpers/fetcher.js

@@ -5,3 +5,3 @@ 'use strict';

const Error = require('gqty/Error');
const index = require('../Error/index.js');

@@ -17,3 +17,3 @@ const defaultResponseHandler = async (response) => {

if (response.status >= 400) {
throw new Error.GQtyError(
throw new index.GQtyError(
`Received HTTP ${response.status} from GraphQL endpoint${text ? `, body: ${text.length > 50 ? text.slice(0, 50) + "..." : text}` : ""}.`

@@ -23,3 +23,3 @@ );

if (!text) {
throw new Error.GQtyError("Received an empty response from GraphQL endpoint.");
throw new index.GQtyError("Received an empty response from GraphQL endpoint.");
}

@@ -29,3 +29,3 @@ try {

} catch (error) {
throw new Error.GQtyError(
throw new index.GQtyError(
`Received malformed JSON response from GraphQL endpoint: ${text.length > 50 ? text.slice(0, 50) + "..." : text}`

@@ -37,3 +37,3 @@ );

if (!isExecutionResult(input)) {
throw new Error.GQtyError(
throw new index.GQtyError(
`Expected response to be an ExecutionResult, received: ${JSON.stringify(

@@ -53,3 +53,3 @@ input

if ((_a = result.errors) == null ? void 0 : _a.length) {
throw Error.GQtyError.fromGraphQLErrors(result.errors);
throw index.GQtyError.fromGraphQLErrors(result.errors);
}

@@ -56,0 +56,0 @@ };

{
"name": "gqty",
"version": "3.2.0-canary-20240718092221.1ee2b21aac68cf350fb9ad7a892605893bb012f0",
"version": "3.2.0-canary-20240718093622.0223e751424adcc008f8d210d01f5d175562fdd2",
"description": "The No-GraphQL Client for TypeScript",

@@ -5,0 +5,0 @@ "sideEffects": false,

Sorry, the diff of this file is not supported yet

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