odl-graphql-client
Advanced tools
Comparing version 1.0.0-rc.8 to 1.0.0-rc.9
import ODLGraphqlClient from "./odlGraphqlClient"; | ||
import EntityFetcher from "./entityFetcher"; | ||
@@ -13,13 +12,7 @@ class ClientFactory { | ||
createEntityFetcher( | ||
entityName: string, | ||
defaultSelectFields: string[], | ||
headers?: any | ||
) { | ||
const graphqlClient = new ODLGraphqlClient(this.endpoint, { | ||
createOdlGraphQLClient(headers?: any) { | ||
return new ODLGraphqlClient(this.endpoint, { | ||
authenticationToken: this.authenticationToken, | ||
headers, | ||
}); | ||
return new EntityFetcher(entityName, defaultSelectFields, graphqlClient); | ||
} | ||
@@ -26,0 +19,0 @@ } |
import ODLGraphqlClientFactory from "./factory"; | ||
import ODLGraphqlClient from "./odlGraphqlClient"; | ||
import EntityFetcher from "./entityFetcher"; | ||
import EntityFetcher from "./graphqlFetcher"; | ||
export { ODLGraphqlClientFactory, ODLGraphqlClient, EntityFetcher }; |
@@ -7,3 +7,3 @@ { | ||
}, | ||
"version": "1.0.0-rc.8", | ||
"version": "1.0.0-rc.9", | ||
"dependencies": { | ||
@@ -10,0 +10,0 @@ "graphql-request": "^1.8.2", |
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
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
19635
584