New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

graphql-ruby-client

Package Overview
Dependencies
Maintainers
1
Versions
72
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

graphql-ruby-client - npm Package Compare versions

Comparing version 1.10.2 to 1.10.3

sync/removeClientFields.d.ts

8

CHANGELOG.md
# 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 @@

2

package.json
{
"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

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc