Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@apollo/gateway

Package Overview
Dependencies
Maintainers
1
Versions
345
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@apollo/gateway - npm Package Compare versions

Comparing version 2.7.3-testing.0 to 2.7.3

2

dist/index.d.ts

@@ -68,3 +68,3 @@ import { GraphQLSchema } from 'graphql';

private initQueryPlanStore;
private issueConfigurationWarningsIfApplicable;
private validateConfigAndEmitWarnings;
load(options?: {

@@ -71,0 +71,0 @@ apollo?: ApolloConfigFromAS2Or3;

@@ -168,3 +168,3 @@ "use strict";

}
this.issueConfigurationWarningsIfApplicable();
this.validateConfigAndEmitWarnings();
this.logger.debug('Gateway successfully initialized (but not yet loaded)');

@@ -187,3 +187,5 @@ this.state = { phase: 'initialized' };

}
issueConfigurationWarningsIfApplicable() {
validateConfigAndEmitWarnings() {
var _a;
(0, federation_internals_1.assert)(!((_a = this.config.queryPlannerConfig) === null || _a === void 0 ? void 0 : _a.typeConditionedFetching), "Type conditions are not supported in the gateway");
if (this.pollIntervalInMs && (0, config_1.isServiceListConfig)(this.config)) {

@@ -190,0 +192,0 @@ this.logger.warn('Polling running services is dangerous and not recommended in production. ' +

{
"name": "@apollo/gateway",
"version": "2.7.3-testing.0",
"version": "2.7.3",
"description": "Apollo Gateway",

@@ -28,5 +28,5 @@ "author": "Apollo <packages@apollographql.com>",

"dependencies": {
"@apollo/composition": "2.7.3-testing.0",
"@apollo/federation-internals": "2.7.3-testing.0",
"@apollo/query-planner": "2.7.3-testing.0",
"@apollo/composition": "2.7.3",
"@apollo/federation-internals": "2.7.3",
"@apollo/query-planner": "2.7.3",
"@apollo/server-gateway-interface": "^1.1.0",

@@ -33,0 +33,0 @@ "@apollo/usage-reporting-protobuf": "^4.1.0",

@@ -60,2 +60,3 @@ import { deprecate } from 'util';

import {
assert,
operationFromDocument,

@@ -190,3 +191,3 @@ Schema,

this.issueConfigurationWarningsIfApplicable();
this.validateConfigAndEmitWarnings();

@@ -218,3 +219,5 @@ this.logger.debug('Gateway successfully initialized (but not yet loaded)');

private issueConfigurationWarningsIfApplicable() {
private validateConfigAndEmitWarnings() {
assert(!this.config.queryPlannerConfig?.typeConditionedFetching, "Type conditions are not supported in the gateway");
// Warn against using the pollInterval and a serviceList simultaneously

@@ -574,2 +577,3 @@ // TODO(trevor:removeServiceList)

this.schema = addExtensions(this.apiSchema.toGraphQLJSSchema());
this.queryPlanner = new QueryPlanner(supergraph, this.config.queryPlannerConfig);

@@ -576,0 +580,0 @@

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

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