graphql-ruby-client
Advanced tools
Comparing version 1.10.2 to 1.10.3
# graphql-ruby-client | ||
# 1.10.3 (18 Nov 2021) | ||
- Sync: Remove any fields with `@client` before sending operations to the server #3712 | ||
# 1.10.2 (25 Oct 2021) | ||
- Pusher Link: Properly forward network errors to subscribers #3638 | ||
# 1.10.1 (22 Sept 2021) | ||
@@ -4,0 +12,0 @@ |
{ | ||
"name": "graphql-ruby-client", | ||
"version": "1.10.2", | ||
"version": "1.10.3", | ||
"description": "JavaScript client for graphql-ruby", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
@@ -10,2 +10,3 @@ "use strict"; | ||
var fs_1 = __importDefault(require("fs")); | ||
var removeClientFields_1 = require("./removeClientFields"); | ||
/** | ||
@@ -74,4 +75,5 @@ * Find `.graphql` files in `path`, | ||
operationData = apolloAndroidOutput[operationId]; | ||
var bodyWithoutClientFields = removeClientFields_1.removeClientFieldsFromString(operationData.source); | ||
payload.operations.push({ | ||
body: operationData.source, | ||
body: bodyWithoutClientFields, | ||
alias: operationId, | ||
@@ -86,6 +88,7 @@ }); | ||
jsonData.operations.map(function (operation) { | ||
var bodyWithoutClientFields = removeClientFields_1.removeClientFieldsFromString(operation.sourceWithFragments); | ||
payload.operations.push({ | ||
alias: operation.operationId, | ||
name: operation.operationName, | ||
body: operation.sourceWithFragments, | ||
body: bodyWithoutClientFields, | ||
}); | ||
@@ -92,0 +95,0 @@ }); |
@@ -9,2 +9,3 @@ "use strict"; | ||
var addTypenameToSelectionSet_1 = require("./addTypenameToSelectionSet"); | ||
var removeClientFields_1 = require("./removeClientFields"); | ||
/** | ||
@@ -40,2 +41,3 @@ * Read a bunch of GraphQL files and treat them as islands. | ||
ast = graphql_1.visit(ast, visitor); | ||
ast = removeClientFields_1.removeClientFields(ast); | ||
return { | ||
@@ -42,0 +44,0 @@ // populate alias later, when hashFunc is available |
@@ -9,2 +9,3 @@ "use strict"; | ||
var graphql_1 = require("graphql"); | ||
var removeClientFields_1 = require("./removeClientFields"); | ||
/** | ||
@@ -73,2 +74,3 @@ * Take a whole bunch of GraphQL in one big string | ||
ast = graphql_1.visit(ast, visitor); | ||
ast = removeClientFields_1.removeClientFields(ast); | ||
// For each operation, build a separate document of that operation and its deps | ||
@@ -75,0 +77,0 @@ // then print the new document to a string |
115180
56
2398