@graphql-toolkit/url-loader
Advanced tools
Comparing version 0.10.3-alpha-0a56f31.6 to 0.10.3-alpha-0c0c742.6
@@ -28,3 +28,3 @@ 'use strict'; | ||
const crossFetch = require('cross-fetch'); | ||
const schema = require('@graphql-toolkit/schema'); | ||
const graphqlToolsFork = require('graphql-tools-fork'); | ||
@@ -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,2 +84,3 @@ } | ||
operationName: 'IntrospectionQuery', | ||
context: {}, | ||
}); | ||
@@ -100,3 +101,3 @@ let errorMessage; | ||
const clientSchema = graphql.buildClientSchema(body.data, options); | ||
const remoteExecutableSchema = schema.makeRemoteExecutableSchema({ | ||
const remoteExecutableSchema = graphqlToolsFork.makeRemoteExecutableSchema({ | ||
schema: common.printSchemaWithDirectives(clientSchema, options), | ||
@@ -103,0 +104,0 @@ fetcher, |
@@ -5,3 +5,3 @@ import { parse, getIntrospectionQuery, buildClientSchema, print } from 'graphql'; | ||
import { fetch } from 'cross-fetch'; | ||
import { makeRemoteExecutableSchema } from '@graphql-toolkit/schema'; | ||
import { makeRemoteExecutableSchema } from 'graphql-tools-fork'; | ||
@@ -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,2 +61,3 @@ } | ||
operationName: 'IntrospectionQuery', | ||
context: {}, | ||
}); | ||
@@ -63,0 +64,0 @@ let errorMessage; |
{ | ||
"name": "@graphql-toolkit/url-loader", | ||
"version": "0.10.3-alpha-0a56f31.6+0a56f31", | ||
"version": "0.10.3-alpha-0c0c742.6+0c0c742", | ||
"description": "A set of utils for faster development of GraphQL tools", | ||
@@ -18,6 +18,6 @@ "peerDependencies": { | ||
"dependencies": { | ||
"@graphql-toolkit/common": "0.10.3-alpha-0a56f31.6+0a56f31", | ||
"@graphql-toolkit/schema": "0.10.3-alpha-0a56f31.6+0a56f31", | ||
"@graphql-toolkit/common": "0.10.3-alpha-0c0c742.6+0c0c742", | ||
"cross-fetch": "3.0.4", | ||
"tslib": "^1.11.1", | ||
"graphql-tools-fork": "9.0.1", | ||
"tslib": "1.11.1", | ||
"valid-url": "1.0.9" | ||
@@ -24,0 +24,0 @@ }, |
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
Manifest confusion
Supply chain riskThis package has inconsistent metadata. This could be malicious or caused by an error when publishing the package.
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
Manifest confusion
Supply chain riskThis package has inconsistent metadata. This could be malicious or caused by an error when publishing the package.
Found 1 instance in 1 package
9893
211
+ Addedgraphql-tools-fork@9.0.1
+ Added@wry/equality@0.1.11(transitive)
+ Addedapollo-link@1.2.14(transitive)
+ Addedapollo-link-http-common@0.2.16(transitive)
+ Addedapollo-utilities@1.3.4(transitive)
+ Addedasynckit@0.4.0(transitive)
+ Addedcombined-stream@1.0.8(transitive)
+ Addeddelayed-stream@1.0.0(transitive)
+ Addeddeprecated-decorator@0.1.6(transitive)
+ Addedextract-files@7.0.0(transitive)
+ Addedfast-json-stable-stringify@2.1.0(transitive)
+ Addedform-data@3.0.1(transitive)
+ Addedgraphql-tools-fork@9.0.1(transitive)
+ Addediterall@1.3.0(transitive)
+ Addedmime-db@1.52.0(transitive)
+ Addedmime-types@2.1.35(transitive)
+ Addedts-invariant@0.4.4(transitive)
+ Addedtslib@1.11.1(transitive)
+ Addeduuid@7.0.3(transitive)
+ Addedzen-observable@0.8.15(transitive)
+ Addedzen-observable-ts@0.8.21(transitive)
- Removed@graphql-toolkit/schema@0.10.3-alpha-0a56f31.6+0a56f31
- Removedtslib@1.14.1(transitive)
Updated@graphql-toolkit/common@0.10.3-alpha-0c0c742.6+0c0c742
Updatedtslib@1.11.1