@graphql-toolkit/url-loader
Advanced tools
Comparing version 0.10.2 to 0.10.3-alpha-0a56f31.6
@@ -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 @@ }, |
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
9866
209
3
+ Added@graphql-toolkit/schema@0.10.3-alpha-0a56f31.6+0a56f31
+ Addedtslib@1.14.1(transitive)
- Removedgraphql-tools-fork@9.0.1
- Removed@graphql-toolkit/common@0.10.2(transitive)
- Removed@wry/equality@0.1.11(transitive)
- Removedaggregate-error@3.0.1(transitive)
- Removedapollo-link@1.2.14(transitive)
- Removedapollo-link-http-common@0.2.16(transitive)
- Removedapollo-utilities@1.3.4(transitive)
- Removedasynckit@0.4.0(transitive)
- Removedcamel-case@4.1.1(transitive)
- Removedclean-stack@2.2.0(transitive)
- Removedcombined-stream@1.0.8(transitive)
- Removeddelayed-stream@1.0.0(transitive)
- Removeddeprecated-decorator@0.1.6(transitive)
- Removedextract-files@7.0.0(transitive)
- Removedfast-json-stable-stringify@2.1.0(transitive)
- Removedform-data@3.0.2(transitive)
- Removedgraphql-tools-fork@9.0.1(transitive)
- Removedindent-string@4.0.0(transitive)
- Removediterall@1.3.0(transitive)
- Removedlodash@4.17.15(transitive)
- Removedlower-case@2.0.2(transitive)
- Removedmime-db@1.52.0(transitive)
- Removedmime-types@2.1.35(transitive)
- Removedno-case@3.0.4(transitive)
- Removedpascal-case@3.1.2(transitive)
- Removedts-invariant@0.4.4(transitive)
- Removedtslib@1.11.12.8.1(transitive)
- Removeduuid@7.0.3(transitive)
- Removedzen-observable@0.8.15(transitive)
- Removedzen-observable-ts@0.8.21(transitive)
Updated@graphql-toolkit/common@0.10.3-alpha-0a56f31.6+0a56f31
Updatedtslib@^1.11.1