@8base/apollo-client
Advanced tools
Comparing version 2.1.0 to 2.2.0
@@ -6,2 +6,13 @@ # Change Log | ||
# [2.2.0](https://github.com/8base/sdk/compare/v2.1.0...v2.2.0) (2021-04-30) | ||
### Features | ||
* move subscription check to the helper ([5b1bab9](https://github.com/8base/sdk/commit/5b1bab9a8ae752a1f8c08723ddbd0d09d18a6ec8)) | ||
# [2.1.0](https://github.com/8base/sdk/compare/v2.0.2...v2.1.0) (2021-04-14) | ||
@@ -8,0 +19,0 @@ |
@@ -24,3 +24,2 @@ "use strict"; | ||
const error_1 = require("@apollo/client/link/error"); | ||
const utilities_1 = require("@apollo/client/utilities"); | ||
const graphql_tag_1 = __importDefault(require("graphql-tag")); | ||
@@ -55,6 +54,3 @@ exports.gql = graphql_tag_1.default; | ||
links = [ | ||
client_1.ApolloLink.split(({ query }) => { | ||
const definition = utilities_1.getMainDefinition(query); | ||
return definition.kind === 'OperationDefinition' && definition.operation === 'subscription'; | ||
}, new apollo_links_1.SubscriptionLink({ | ||
client_1.ApolloLink.split(apollo_links_1.isSubscriptionRequest, new apollo_links_1.SubscriptionLink({ | ||
uri: 'wss://ws.8base.com', | ||
@@ -61,0 +57,0 @@ getAuthState, |
{ | ||
"name": "@8base/apollo-client", | ||
"version": "2.1.0", | ||
"version": "2.2.0", | ||
"repository": "https://github.com/8base/sdk", | ||
@@ -18,4 +18,4 @@ "homepage": "https://github.com/8base/sdk/tree/master/packages-core/apollo-client#readme", | ||
"dependencies": { | ||
"@8base/apollo-links": "^2.1.0", | ||
"@8base/utils": "^2.1.0" | ||
"@8base/apollo-links": "^2.2.0", | ||
"@8base/utils": "^2.2.0" | ||
}, | ||
@@ -22,0 +22,0 @@ "devDependencies": { |
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
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
15443
155
Updated@8base/apollo-links@^2.2.0
Updated@8base/utils@^2.2.0