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

@graphql-toolkit/url-loader

Package Overview
Dependencies
Maintainers
3
Versions
698
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@graphql-toolkit/url-loader - npm Package Compare versions

Comparing version 0.10.2 to 0.10.3-alpha-0a56f31.6

7

index.cjs.js

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

const crossFetch = require('cross-fetch');
const graphqlToolsFork = require('graphql-tools-fork');
const schema = require('@graphql-toolkit/schema');

@@ -55,3 +55,3 @@ class UrlLoader {

const [moduleName, fetchFnName] = options.customFetch.split('#');
fetch = await new Promise(function (resolve) { resolve(_interopNamespace(require(moduleName))); }).then(module => (fetchFnName ? module[fetchFnName] : module));
fetch = await new Promise(function (resolve) { resolve(_interopNamespace(require(moduleName))); }).then((module) => (fetchFnName ? module[fetchFnName] : module));
}

@@ -84,3 +84,2 @@ }

operationName: 'IntrospectionQuery',
context: {},
});

@@ -101,3 +100,3 @@ let errorMessage;

const clientSchema = graphql.buildClientSchema(body.data, options);
const remoteExecutableSchema = graphqlToolsFork.makeRemoteExecutableSchema({
const remoteExecutableSchema = schema.makeRemoteExecutableSchema({
schema: common.printSchemaWithDirectives(clientSchema, options),

@@ -104,0 +103,0 @@ fetcher,

@@ -5,3 +5,3 @@ import { parse, getIntrospectionQuery, buildClientSchema, print } from 'graphql';

import { fetch } from 'cross-fetch';
import { makeRemoteExecutableSchema } from 'graphql-tools-fork';
import { makeRemoteExecutableSchema } from '@graphql-toolkit/schema';

@@ -32,3 +32,3 @@ class UrlLoader {

const [moduleName, fetchFnName] = options.customFetch.split('#');
fetch$1 = await import(moduleName).then(module => (fetchFnName ? module[fetchFnName] : module));
fetch$1 = await import(moduleName).then((module) => (fetchFnName ? module[fetchFnName] : module));
}

@@ -61,3 +61,2 @@ }

operationName: 'IntrospectionQuery',
context: {},
});

@@ -64,0 +63,0 @@ let errorMessage;

{
"name": "@graphql-toolkit/url-loader",
"version": "0.10.2",
"version": "0.10.3-alpha-0a56f31.6+0a56f31",
"description": "A set of utils for faster development of GraphQL tools",

@@ -18,6 +18,6 @@ "peerDependencies": {

"dependencies": {
"@graphql-toolkit/common": "0.10.2",
"@graphql-toolkit/common": "0.10.3-alpha-0a56f31.6+0a56f31",
"@graphql-toolkit/schema": "0.10.3-alpha-0a56f31.6+0a56f31",
"cross-fetch": "3.0.4",
"graphql-tools-fork": "9.0.1",
"tslib": "1.11.1",
"tslib": "^1.11.1",
"valid-url": "1.0.9"

@@ -24,0 +24,0 @@ },

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