@graphql-mesh/graphql
Advanced tools
Comparing version 0.0.15-alpha-f54cf17.4 to 0.0.15-alpha-f832cb8.11
import { MeshHandlerLibrary, YamlConfig } from '@graphql-mesh/types'; | ||
declare const handler: MeshHandlerLibrary<YamlConfig.GraphQLHandlerConfig>; | ||
declare const handler: MeshHandlerLibrary<YamlConfig.GraphQLHandler>; | ||
export default handler; |
@@ -10,7 +10,7 @@ "use strict"; | ||
const handler = { | ||
async getMeshSource({ filePathOrUrl, config, hooks }) { | ||
async getMeshSource({ config, hooks }) { | ||
const link = new apollo_link_http_1.HttpLink({ | ||
uri: filePathOrUrl, | ||
uri: config.endpoint, | ||
fetch: cross_fetch_1.default, | ||
headers: (config === null || config === void 0 ? void 0 : config.headers) || {} | ||
headers: config.headers || {} | ||
}); | ||
@@ -20,3 +20,3 @@ const introspection = await graphql_tools_fork_1.introspectSchema(link); | ||
schema: introspection, | ||
link, | ||
link | ||
}); | ||
@@ -31,3 +31,3 @@ hooks.on('buildSdkFn', ({ fieldName, typeName, replaceFn, schema }) => { | ||
info, | ||
context, | ||
context | ||
}; | ||
@@ -34,0 +34,0 @@ return graphql_tools_fork_1.delegateToSchema(delegationOptions); |
{ | ||
"name": "@graphql-mesh/graphql", | ||
"version": "0.0.15-alpha-f54cf17.4+f54cf17", | ||
"version": "0.0.15-alpha-f832cb8.11+f832cb8", | ||
"main": "dist/index.js", | ||
@@ -15,3 +15,3 @@ "license": "MIT", | ||
"@types/jest": "25.1.4", | ||
"@types/node": "13.9.1", | ||
"@types/node": "13.9.2", | ||
"graphql": "14.6.0", | ||
@@ -23,3 +23,3 @@ "jest": "25.1.0", | ||
"dependencies": { | ||
"@graphql-mesh/types": "0.0.15-alpha-f54cf17.4+f54cf17", | ||
"@graphql-mesh/types": "0.0.15-alpha-f832cb8.11+f832cb8", | ||
"apollo-link-http": "1.5.16", | ||
@@ -32,3 +32,3 @@ "cross-fetch": "3.0.4", | ||
}, | ||
"gitHead": "f54cf175983a71deb3e2e06caa60fde0a1aa6c65" | ||
"gitHead": "f832cb8c81c9469f15a0bd7ed41770832a2601d1" | ||
} |
@@ -5,3 +5,2 @@ import { MeshHandlerLibrary, YamlConfig } from '@graphql-mesh/types'; | ||
makeRemoteExecutableSchema, | ||
defaultCreateRemoteResolver, | ||
delegateToSchema | ||
@@ -11,10 +10,10 @@ } from 'graphql-tools-fork'; | ||
import { HttpLink } from 'apollo-link-http'; | ||
import { SelectionSetNode, GraphQLResolveInfo, execute } from 'graphql'; | ||
import { GraphQLResolveInfo } from 'graphql'; | ||
const handler: MeshHandlerLibrary<YamlConfig.GraphQLHandlerConfig> = { | ||
async getMeshSource({ filePathOrUrl, config, hooks }) { | ||
const handler: MeshHandlerLibrary<YamlConfig.GraphQLHandler> = { | ||
async getMeshSource({ config, hooks }) { | ||
const link = new HttpLink({ | ||
uri: filePathOrUrl, | ||
uri: config.endpoint, | ||
fetch, | ||
headers: config?.headers || {} | ||
headers: config.headers || {} | ||
}); | ||
@@ -25,3 +24,3 @@ const introspection = await introspectSchema(link); | ||
schema: introspection, | ||
link, | ||
link | ||
}); | ||
@@ -37,8 +36,8 @@ | ||
info, | ||
context, | ||
context | ||
}; | ||
return delegateToSchema(delegationOptions); | ||
}) | ||
}) | ||
}); | ||
}); | ||
@@ -45,0 +44,0 @@ return { |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
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
5042
93