@apollo/federation-internals
Advanced tools
Comparing version 2.7.3 to 2.7.4-testing.1
@@ -145,2 +145,4 @@ import { ASTNode, GraphQLError, GraphQLErrorOptions, GraphQLFormattedError } from "graphql"; | ||
SOURCE_FIELD_NOT_ON_ROOT_OR_ENTITY_FIELD: ErrorCodeDefinition; | ||
WASM_VALIDATION_ERROR: ErrorCodeDefinition; | ||
WASM_LOAD_ERROR: ErrorCodeDefinition; | ||
}; | ||
@@ -147,0 +149,0 @@ export declare const REMOVED_ERRORS: string[][]; |
@@ -225,2 +225,4 @@ "use strict"; | ||
const SOURCE_FIELD_NOT_ON_ROOT_OR_ENTITY_FIELD = makeCodeDefinition('SOURCE_FIELD_NOT_ON_ROOT_OR_ENTITY_FIELD', 'The `@sourceField` directive must be applied to a field of the `Query` or `Mutation` types, or of an entity type', { addedIn: '2.7.0' }); | ||
const WASM_VALIDATION_ERROR = makeCodeDefinition('WASM_VALIDATION_ERROR', 'Subgraph validation error generated by WASM code', { addedIn: '2.8.0' }); | ||
const WASM_LOAD_ERROR = makeCodeDefinition('WASM_LOAD_ERROR', 'Error loading a WebAssembly module', { addedIn: '2.8.0' }); | ||
exports.ERROR_CATEGORIES = { | ||
@@ -332,2 +334,4 @@ DIRECTIVE_FIELDS_MISSING_EXTERNAL, | ||
SOURCE_FIELD_NOT_ON_ROOT_OR_ENTITY_FIELD, | ||
WASM_VALIDATION_ERROR, | ||
WASM_LOAD_ERROR, | ||
}; | ||
@@ -334,0 +338,0 @@ const codeDefByCode = Object.values(exports.ERRORS).reduce((obj, codeDef) => { obj[codeDef.code] = codeDef; return obj; }, {}); |
@@ -27,2 +27,3 @@ export * from './definitions'; | ||
export * from './specs/sourceSpec'; | ||
export * from './specs/connectSpec'; | ||
//# sourceMappingURL=index.d.ts.map |
@@ -45,2 +45,3 @@ "use strict"; | ||
__exportStar(require("./specs/sourceSpec"), exports); | ||
__exportStar(require("./specs/connectSpec"), exports); | ||
//# sourceMappingURL=index.js.map |
@@ -99,4 +99,3 @@ import { ArgumentNode, DocumentNode, FieldNode, FragmentDefinitionNode, SelectionNode, SelectionSetNode } from "graphql"; | ||
}; | ||
export declare class Operation { | ||
readonly schema: Schema; | ||
export declare class Operation extends DirectiveTargetElement<Operation> { | ||
readonly rootKind: SchemaRootKind; | ||
@@ -107,8 +106,3 @@ readonly selectionSet: SelectionSet; | ||
readonly name?: string | undefined; | ||
readonly directives?: readonly Directive<any, { | ||
[key: string]: any; | ||
}>[] | undefined; | ||
constructor(schema: Schema, rootKind: SchemaRootKind, selectionSet: SelectionSet, variableDefinitions: VariableDefinitions, fragments?: NamedFragments | undefined, name?: string | undefined, directives?: readonly Directive<any, { | ||
[key: string]: any; | ||
}>[] | undefined); | ||
constructor(schema: Schema, rootKind: SchemaRootKind, selectionSet: SelectionSet, variableDefinitions: VariableDefinitions, fragments?: NamedFragments | undefined, name?: string | undefined, directives?: readonly Directive<any>[]); | ||
private withUpdatedSelectionSet; | ||
@@ -115,0 +109,0 @@ private withUpdatedSelectionSetAndFragments; |
{ | ||
"name": "@apollo/federation-internals", | ||
"version": "2.7.3", | ||
"version": "2.7.4-testing.1", | ||
"description": "Apollo Federation internal utilities", | ||
@@ -5,0 +5,0 @@ "main": "dist/index.js", |
@@ -677,2 +677,14 @@ import { ASTNode, GraphQLError, GraphQLErrorOptions, GraphQLFormattedError } from "graphql"; | ||
const WASM_VALIDATION_ERROR = makeCodeDefinition( | ||
'WASM_VALIDATION_ERROR', | ||
'Subgraph validation error generated by WASM code', | ||
{ addedIn: '2.8.0' }, | ||
); | ||
const WASM_LOAD_ERROR = makeCodeDefinition( | ||
'WASM_LOAD_ERROR', | ||
'Error loading a WebAssembly module', | ||
{ addedIn: '2.8.0' }, | ||
); | ||
export const ERROR_CATEGORIES = { | ||
@@ -786,2 +798,4 @@ DIRECTIVE_FIELDS_MISSING_EXTERNAL, | ||
SOURCE_FIELD_NOT_ON_ROOT_OR_ENTITY_FIELD, | ||
WASM_VALIDATION_ERROR, | ||
WASM_LOAD_ERROR, | ||
}; | ||
@@ -788,0 +802,0 @@ |
@@ -27,1 +27,2 @@ export * from './definitions'; | ||
export * from './specs/sourceSpec'; | ||
export * from './specs/connectSpec'; |
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 not supported yet
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
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is too big to display
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
Native code
Supply chain riskContains native code (e.g., compiled binaries or shared libraries). Including native code can obscure malicious behavior.
Found 1 instance in 1 package
Dynamic require
Supply chain riskDynamic require can indicate the package is performing dangerous or unsafe dynamic code execution.
Found 1 instance in 1 package
Filesystem access
Supply chain riskAccesses the file system, and could potentially read sensitive data.
Found 1 instance in 1 package
No v1
QualityPackage is not semver >=1. This means it is not stable and does not support ^ ranges.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
2263910
178
34355
2
5
1