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

@apollo/federation-internals

Package Overview
Dependencies
Maintainers
1
Versions
131
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@apollo/federation-internals - npm Package Compare versions

Comparing version 2.8.0-connectors.3 to 2.8.0-connectors.4

6

dist/wasm.js

@@ -8,3 +8,2 @@ "use strict";

const error_1 = require("./error");
const node_1 = require("../wasm/node");
function validateSubgraphSchema(schema, ast) {

@@ -50,2 +49,3 @@ const errors = [];

var _a, _b, _c;
const { SourceArgument } = require('../wasm/node');
const schema = ast.definitions.find(isSchemaExtension);

@@ -58,3 +58,3 @@ const sourceDirectives = (_a = schema === null || schema === void 0 ? void 0 : schema.directives) === null || _a === void 0 ? void 0 : _a.filter(directive => directive.name.value === "source");

});
if (sourceDirective.arg === node_1.SourceArgument.Url) {
if (sourceDirective.arg === SourceArgument.Url) {
const arg = (_b = matchingSource === null || matchingSource === void 0 ? void 0 : matchingSource.arguments) === null || _b === void 0 ? void 0 : _b.find(arg => arg.name.value === "http");

@@ -69,3 +69,3 @@ const value = arg === null || arg === void 0 ? void 0 : arg.value;

}
else if (sourceDirective.arg === node_1.SourceArgument.Name) {
else if (sourceDirective.arg === SourceArgument.Name) {
const arg = (_c = matchingSource === null || matchingSource === void 0 ? void 0 : matchingSource.arguments) === null || _c === void 0 ? void 0 : _c.find(arg => arg.name.value === "name");

@@ -72,0 +72,0 @@ if (arg) {

{
"name": "@apollo/federation-internals",
"version": "2.8.0-connectors.3",
"version": "2.8.0-connectors.4",
"description": "Apollo Federation internal utilities",

@@ -5,0 +5,0 @@ "main": "dist/index.js",

@@ -0,1 +1,2 @@

/* eslint-disable @typescript-eslint/no-var-requires */
/**

@@ -17,3 +18,3 @@ * The TypeScript interface to the `wasm` module (implemented in Rust) with all the helpers needed to convert between

import {aggregateError} from "./error";
import {ErrorLocation, SourceArgument, SourceDirective} from "../wasm/node";
import type {ErrorLocation, SourceDirective} from "../wasm/node";
import {ASTNode, ConstValueNode, SchemaExtensionNode, StringValueNode} from "graphql";

@@ -74,2 +75,4 @@

function findSourceDirective(ast: DocumentNode, sourceDirective: SourceDirective): ASTNode | undefined {
const {SourceArgument} =
require('../wasm/node') as typeof import('../wasm/node');
const schema = ast.definitions.find(isSchemaExtension);

@@ -76,0 +79,0 @@ const sourceDirectives = schema?.directives?.

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