🚀 Big News: Socket Acquires Coana to Bring Reachability Analysis to Every Appsec Team.Learn more
Socket
Book a DemoInstallSign in
Socket

@apollo/query-graphs

Package Overview
Dependencies
Maintainers
0
Versions
144
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@apollo/query-graphs - npm Package Compare versions

Comparing version

to
2.9.2

22

dist/querygraph.js

@@ -418,11 +418,2 @@ "use strict";

}
for (const [subgraphName, args] of subgraphToArgs) {
args.sort();
const argToIndex = new Map();
for (let idx = 0; idx < args.length; idx++) {
argToIndex.set(args[idx], `contextualArgument_${i}_${idx}`);
}
subgraphToArgIndices.set(subgraphName, argToIndex);
}
builder.setContextMaps(subgraphToArgs, subgraphToArgIndices);
simpleTraversal(subgraph, _v => { return undefined; }, e => {

@@ -442,2 +433,15 @@ if (e.head.type.kind === 'ObjectType' && e.transition.kind === 'FieldCollection') {

}
for (const [i, subgraph] of subgraphs.entries()) {
const subgraphName = subgraph.name;
const args = subgraphToArgs.get(subgraph.name);
if (args) {
args.sort();
const argToIndex = new Map();
for (let idx = 0; idx < args.length; idx++) {
argToIndex.set(args[idx], `contextualArgument_${i + 1}_${idx}`);
}
subgraphToArgIndices.set(subgraphName, argToIndex);
}
}
builder.setContextMaps(subgraphToArgs, subgraphToArgIndices);
let provideId = 0;

@@ -444,0 +448,0 @@ for (const [i, subgraph] of subgraphs.entries()) {

{
"name": "@apollo/query-graphs",
"version": "2.9.1",
"version": "2.9.2",
"description": "Apollo Federation library to work with 'query graphs'",

@@ -26,3 +26,3 @@ "main": "dist/index.js",

"dependencies": {
"@apollo/federation-internals": "2.9.1",
"@apollo/federation-internals": "2.9.2",
"deep-equal": "^2.0.5",

@@ -29,0 +29,0 @@ "ts-graphviz": "^1.5.4",

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is too big to display