relay-compiler 0.0.0-main-e0f88a3b → 0.0.0-main-2087b512
Sign up to get free protection for your applications and to get access to all the features.
- package/bin/RelayCompilerBin.js.flow +2 -3
- package/bin/RelayCompilerMain.js.flow +12 -14
- package/bin/relay-compiler +5613 -5548
- package/codegen/CodegenDirectory.js.flow +4 -5
- package/codegen/CodegenRunner.js.flow +11 -13
- package/codegen/CodegenWatcher.js.flow +3 -4
- package/codegen/NormalizationCodeGenerator.js.flow +13 -14
- package/codegen/ReaderCodeGenerator.js.flow +14 -16
- package/codegen/RelayCodeGenerator.js.flow +7 -7
- package/codegen/RelayFileWriter.js.flow +20 -22
- package/codegen/compileRelayArtifacts.js.flow +5 -6
- package/codegen/writeRelayGeneratedFile.js.flow +7 -9
- package/core/ASTCache.js.flow +3 -4
- package/core/ASTConvert.js.flow +7 -8
- package/core/CompilerContext.js.flow +5 -7
- package/core/CompilerError.js.flow +2 -2
- package/core/DotGraphQLParser.js.flow +4 -6
- package/core/IR.js.flow +2 -2
- package/core/IRPrinter.js.flow +3 -4
- package/core/IRTransformer.js.flow +4 -5
- package/core/IRValidator.js.flow +3 -4
- package/core/IRVisitor.js.flow +2 -2
- package/core/JSModuleParser.js.flow +2 -2
- package/core/RelayCompilerScope.js.flow +2 -2
- package/core/RelayFindGraphQLTags.js.flow +6 -7
- package/core/RelayGraphQLEnumsGenerator.js.flow +2 -2
- package/core/RelayIRTransforms.js.flow +3 -3
- package/core/RelayParser.js.flow +16 -18
- package/core/RelaySourceModuleParser.js.flow +7 -9
- package/core/Schema.js.flow +24 -24
- package/core/SchemaUtils.js.flow +3 -3
- package/core/filterContextForNode.js.flow +2 -3
- package/core/getFieldDefinition.js.flow +3 -3
- package/core/getIdentifierForArgumentValue.js.flow +2 -2
- package/core/getIdentifierForSelection.js.flow +3 -4
- package/core/inferRootArgumentDefinitions.js.flow +5 -6
- package/index.js +1 -1
- package/index.js.flow +33 -35
- package/language/RelayLanguagePluginInterface.js.flow +3 -3
- package/language/javascript/FindGraphQLTags.js.flow +2 -3
- package/language/javascript/RelayFlowBabelFactories.js.flow +1 -1
- package/language/javascript/RelayFlowGenerator.js.flow +16 -19
- package/language/javascript/RelayFlowTypeTransformers.js.flow +3 -5
- package/language/javascript/RelayLanguagePluginJavaScript.js.flow +2 -3
- package/lib/bin/RelayCompilerBin.js +2 -2
- package/lib/bin/RelayCompilerMain.js +10 -10
- package/lib/codegen/CodegenDirectory.js +2 -3
- package/lib/codegen/CodegenRunner.js +9 -9
- package/lib/codegen/CodegenWatcher.js +2 -2
- package/lib/codegen/NormalizationCodeGenerator.js +11 -4
- package/lib/codegen/ReaderCodeGenerator.js +7 -6
- package/lib/codegen/RelayCodeGenerator.js +11 -4
- package/lib/codegen/RelayFileWriter.js +14 -14
- package/lib/codegen/compileRelayArtifacts.js +3 -3
- package/lib/codegen/writeRelayGeneratedFile.js +4 -4
- package/lib/core/CompilerContext.js +5 -5
- package/lib/core/CompilerError.js +2 -1
- package/lib/core/DotGraphQLParser.js +4 -4
- package/lib/core/IRPrinter.js +2 -2
- package/lib/core/IRTransformer.js +2 -2
- package/lib/core/IRValidator.js +2 -2
- package/lib/core/RelayCompilerScope.js +34 -0
- package/lib/core/RelayFindGraphQLTags.js +2 -2
- package/lib/core/RelayIRTransforms.js +4 -4
- package/lib/core/RelayParser.js +10 -10
- package/lib/core/RelaySourceModuleParser.js +5 -5
- package/lib/core/Schema.js +2 -2
- package/lib/core/filterContextForNode.js +2 -1
- package/lib/core/getIdentifierForArgumentValue.js +2 -1
- package/lib/core/getIdentifierForSelection.js +3 -2
- package/lib/core/inferRootArgumentDefinitions.js +3 -3
- package/lib/index.js +46 -46
- package/lib/language/RelayLanguagePluginInterface.js +13 -1
- package/lib/language/javascript/FindGraphQLTags.js +2 -2
- package/lib/language/javascript/RelayFlowBabelFactories.js +2 -2
- package/lib/language/javascript/RelayFlowGenerator.js +3 -3
- package/lib/language/javascript/RelayFlowTypeTransformers.js +2 -2
- package/lib/language/javascript/RelayLanguagePluginJavaScript.js +2 -2
- package/lib/runner/Artifacts.js +3 -3
- package/lib/runner/BufferedFilesystem.js +2 -1
- package/lib/runner/GraphQLASTNodeGroup.js +2 -2
- package/lib/runner/GraphQLNodeMap.js +2 -2
- package/lib/runner/Sources.js +2 -2
- package/lib/runner/compileArtifacts.js +2 -2
- package/lib/runner/extractAST.js +2 -2
- package/lib/transforms/ApplyFragmentArgumentTransform.js +6 -6
- package/lib/transforms/ClientExtensionsTransform.js +2 -2
- package/lib/transforms/ConnectionTransform.js +6 -6
- package/lib/transforms/DeclarativeConnectionMutationTransform.js +2 -2
- package/lib/transforms/DeferStreamTransform.js +4 -4
- package/lib/transforms/DisallowIdAsAlias.js +2 -2
- package/lib/transforms/DisallowTypenameOnRoot.js +2 -2
- package/lib/transforms/FilterDirectivesTransform.js +2 -1
- package/lib/transforms/FlattenTransform.js +6 -6
- package/lib/transforms/InlineDataFragmentTransform.js +2 -2
- package/lib/transforms/MaskTransform.js +4 -4
- package/lib/transforms/MatchTransform.js +4 -4
- package/lib/transforms/ReactFlightComponentTransform.js +4 -4
- package/lib/transforms/RefetchableFragmentTransform.js +4 -4
- package/lib/transforms/RelayDirectiveTransform.js +2 -2
- package/lib/transforms/RequiredFieldTransform.js +4 -4
- package/lib/transforms/SkipHandleFieldTransform.js +2 -1
- package/lib/transforms/SkipRedundantNodesTransform.js +11 -3
- package/lib/transforms/SkipUnusedVariablesTransform.js +2 -1
- package/lib/transforms/SplitModuleImportTransform.js +2 -2
- package/lib/transforms/TestOperationTransform.js +3 -3
- package/lib/transforms/ValidateGlobalVariablesTransform.js +3 -2
- package/lib/transforms/ValidateRequiredArgumentsTransform.js +2 -2
- package/lib/transforms/ValidateServerOnlyDirectivesTransform.js +2 -2
- package/lib/transforms/ValidateUnusedVariablesTransform.js +2 -2
- package/lib/transforms/query-generators/FetchableQueryGenerator.js +2 -2
- package/lib/transforms/query-generators/NodeQueryGenerator.js +4 -4
- package/lib/transforms/query-generators/index.js +3 -3
- package/lib/util/joinArgumentDefinitions.js +2 -1
- package/package.json +2 -2
- package/relay-compiler.js +4 -4
- package/relay-compiler.min.js +4 -4
- package/reporters/ConsoleReporter.js.flow +2 -2
- package/runner/Artifacts.js.flow +4 -5
- package/runner/BufferedFilesystem.js.flow +3 -3
- package/runner/GraphQLASTNodeGroup.js.flow +2 -3
- package/runner/GraphQLNodeMap.js.flow +3 -3
- package/runner/Sources.js.flow +5 -6
- package/runner/compileArtifacts.js.flow +5 -6
- package/runner/extractAST.js.flow +4 -6
- package/runner/getChangedNodeNames.js.flow +2 -2
- package/runner/getSchemaInstance.js.flow +3 -3
- package/transforms/ApplyFragmentArgumentTransform.js.flow +9 -11
- package/transforms/ClientExtensionsTransform.js.flow +3 -4
- package/transforms/ConnectionTransform.js.flow +11 -13
- package/transforms/DeclarativeConnectionMutationTransform.js.flow +3 -5
- package/transforms/DeferStreamTransform.js.flow +5 -7
- package/transforms/DisallowIdAsAlias.js.flow +3 -4
- package/transforms/DisallowTypenameOnRoot.js.flow +3 -4
- package/transforms/FieldHandleTransform.js.flow +3 -5
- package/transforms/FilterCompilerDirectivesTransform.js.flow +2 -2
- package/transforms/FilterDirectivesTransform.js.flow +2 -2
- package/transforms/FlattenTransform.js.flow +5 -7
- package/transforms/GenerateIDFieldTransform.js.flow +4 -5
- package/transforms/GenerateTypeNameTransform.js.flow +4 -6
- package/transforms/InlineDataFragmentTransform.js.flow +3 -4
- package/transforms/InlineFragmentsTransform.js.flow +3 -4
- package/transforms/MaskTransform.js.flow +6 -8
- package/transforms/MatchTransform.js.flow +7 -9
- package/transforms/ReactFlightComponentTransform.js.flow +5 -6
- package/transforms/RefetchableFragmentTransform.js.flow +7 -9
- package/transforms/RelayDirectiveTransform.js.flow +3 -4
- package/transforms/RequiredFieldTransform.js.flow +10 -12
- package/transforms/SkipClientExtensionsTransform.js.flow +2 -2
- package/transforms/SkipHandleFieldTransform.js.flow +2 -2
- package/transforms/SkipRedundantNodesTransform.js.flow +6 -8
- package/transforms/SkipSplitOperationTransform.js.flow +2 -2
- package/transforms/SkipUnreachableNodeTransform.js.flow +3 -4
- package/transforms/SkipUnusedVariablesTransform.js.flow +2 -2
- package/transforms/SplitModuleImportTransform.js.flow +4 -5
- package/transforms/TestOperationTransform.js.flow +2 -2
- package/transforms/ValidateGlobalVariablesTransform.js.flow +3 -4
- package/transforms/ValidateRequiredArgumentsTransform.js.flow +5 -6
- package/transforms/ValidateServerOnlyDirectivesTransform.js.flow +3 -4
- package/transforms/ValidateUnusedVariablesTransform.js.flow +3 -4
- package/transforms/query-generators/FetchableQueryGenerator.js.flow +4 -5
- package/transforms/query-generators/NodeQueryGenerator.js.flow +5 -7
- package/transforms/query-generators/QueryQueryGenerator.js.flow +4 -4
- package/transforms/query-generators/ViewerQueryGenerator.js.flow +4 -4
- package/transforms/query-generators/index.js.flow +4 -5
- package/util/RelayCompilerCache.js.flow +0 -1
- package/util/TimeReporter.js.flow +2 -2
- package/util/argumentContainsVariables.js.flow +1 -1
- package/util/generateAbstractTypeRefinementKey.js.flow +2 -2
- package/util/getDefinitionNodeHash.js.flow +2 -3
- package/util/joinArgumentDefinitions.js.flow +2 -2
@@ -14,10 +14,10 @@ var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefau
|
|
14
14
|
|
15
15
|
var _objectSpread2 = _interopRequireDefault(require("@babel/runtime/helpers/objectSpread2"));
|
16
16
|
|
17
|
-
var IRTransformer = require('../core/IRTransformer');
|
18
|
-
|
19
17
|
var getLiteralArgumentValues = require('../core/getLiteralArgumentValues');
|
20
18
|
|
19
|
+
var IRTransformer = require('../core/IRTransformer');
|
20
|
+
|
21
21
|
var invariant = require('invariant');
|
22
22
|
|
23
23
|
var RELAY = 'relay';
|
@@ -18,14 +18,14 @@ var _objectSpread2 = _interopRequireDefault(require("@babel/runtime/helpers/obje
|
|
18
18
|
|
19
19
|
var _toConsumableArray2 = _interopRequireDefault(require("@babel/runtime/helpers/toConsumableArray"));
|
20
20
|
|
21
|
+
var _require = require('../core/CompilerError'),
|
22
|
+
createCompilerError = _require.createCompilerError,
|
23
|
+
createUserError = _require.createUserError;
|
24
|
+
|
21
25
|
var IRTransformer = require('../core/IRTransformer');
|
22
26
|
|
23
27
|
var partitionArray = require('../util/partitionArray');
|
24
28
|
|
25
|
-
var _require = require('../core/CompilerError'),
|
26
|
-
createUserError = _require.createUserError,
|
27
|
-
createCompilerError = _require.createCompilerError;
|
28
|
-
|
29
29
|
var _require2 = require('relay-runtime'),
|
30
30
|
RelayFeatureFlags = _require2.RelayFeatureFlags;
|
31
31
|
|
@@ -15,11 +15,12 @@ var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefau
|
|
15
15
|
var _objectSpread2 = _interopRequireDefault(require("@babel/runtime/helpers/objectSpread2"));
|
16
16
|
|
17
17
|
var IRTransformer = require('../core/IRTransformer');
|
18
|
-
|
19
18
|
/**
|
20
19
|
* A transform that removes field `handles`. Intended for use when e.g.
|
21
20
|
* printing queries to send to a GraphQL server.
|
22
21
|
*/
|
22
|
+
|
23
|
+
|
23
24
|
function skipHandleFieldTransform(context) {
|
24
25
|
return IRTransformer.transform(context, {
|
25
26
|
LinkedField: visitField,
|
@@ -16,15 +16,23 @@ var _objectSpread2 = _interopRequireDefault(require("@babel/runtime/helpers/obje
|
|
16
16
|
|
17
17
|
var _toConsumableArray2 = _interopRequireDefault(require("@babel/runtime/helpers/toConsumableArray"));
|
18
18
|
|
19
|
-
var
|
19
|
+
var getIdentifierForSelection = require('../core/getIdentifierForSelection');
|
20
20
|
|
21
|
-
var
|
21
|
+
var IRTransformer = require('../core/IRTransformer');
|
22
22
|
|
23
23
|
var partitionArray = require('../util/partitionArray');
|
24
24
|
|
25
|
-
var
|
25
|
+
var IMap = require('immutable').Map;
|
26
26
|
|
27
27
|
var invariant = require('invariant');
|
28
|
+
/**
|
29
|
+
* A simplified representation of a document: keys in the map are unique
|
30
|
+
* identifiers for the selections of a node, values are either null (for scalars)
|
31
|
+
* or nested maps for items with subselections (linked fields, inline fragments,
|
32
|
+
* etc).
|
33
|
+
*/
|
34
|
+
// $FlowFixMe[value-as-type]
|
35
|
+
|
28
36
|
|
29
37
|
/**
|
30
38
|
* A transform that removes redundant fields and fragment spreads. Redundancy is
|
@@ -17,12 +17,13 @@ var _objectSpread2 = _interopRequireDefault(require("@babel/runtime/helpers/obje
|
|
17
17
|
var _createForOfIteratorHelper2 = _interopRequireDefault(require("@babel/runtime/helpers/createForOfIteratorHelper"));
|
18
18
|
|
19
19
|
var inferRootArgumentDefinitions = require('../core/inferRootArgumentDefinitions');
|
20
|
-
|
21
20
|
/**
|
22
21
|
* Refines the argument definitions for operations to remove unused arguments
|
23
22
|
* due to statically pruned conditional branches (e.g. because of overriding
|
24
23
|
* a variable used in `@include()` to be false).
|
25
24
|
*/
|
25
|
+
|
26
|
+
|
26
27
|
function skipUnusedVariablesTransform(context) {
|
27
28
|
var contextWithUsedArguments = inferRootArgumentDefinitions(context);
|
28
29
|
return context.withMutations(function (ctx) {
|
@@ -10,10 +10,10 @@
|
|
10
10
|
// flowlint ambiguous-object-type:error
|
11
11
|
'use strict';
|
12
12
|
|
13
|
-
var IRTransformer = require('../core/IRTransformer');
|
14
|
-
|
15
13
|
var getNormalizationOperationName = require('../core/getNormalizationOperationName');
|
16
14
|
|
15
|
+
var IRTransformer = require('../core/IRTransformer');
|
16
|
+
|
17
17
|
/**
|
18
18
|
* This transform creates a SplitOperation root for every ModuleImport.
|
19
19
|
*/
|
@@ -15,11 +15,11 @@ var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefau
|
|
15
15
|
|
16
16
|
var _objectSpread2 = _interopRequireDefault(require("@babel/runtime/helpers/objectSpread2"));
|
17
17
|
|
18
|
-
var IRTransformer = require('../core/IRTransformer');
|
19
|
-
|
20
|
-
// The purpose of this directive is to add GraphQL type inform for fields in
|
18
|
+
var IRTransformer = require('../core/IRTransformer'); // The purpose of this directive is to add GraphQL type inform for fields in
|
21
19
|
// the operation selection in order to use in in RelayMockPayloadGenerator
|
22
20
|
// to generate better mock values, and expand the API of MockResolvers
|
21
|
+
|
22
|
+
|
23
23
|
var SCHEMA_EXTENSION = 'directive @relay_test_operation on QUERY | MUTATION | SUBSCRIPTION';
|
24
24
|
|
25
25
|
function testOperationDirective(context) {
|
@@ -14,17 +14,18 @@ var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefau
|
|
14
14
|
|
15
15
|
var _createForOfIteratorHelper2 = _interopRequireDefault(require("@babel/runtime/helpers/createForOfIteratorHelper"));
|
16
16
|
|
17
|
-
var inferRootArgumentDefinitions = require('../core/inferRootArgumentDefinitions');
|
18
|
-
|
19
17
|
var _require = require('../core/CompilerError'),
|
20
18
|
createUserError = _require.createUserError,
|
21
19
|
eachWithCombinedError = _require.eachWithCombinedError;
|
22
20
|
|
21
|
+
var inferRootArgumentDefinitions = require('../core/inferRootArgumentDefinitions');
|
23
22
|
/**
|
24
23
|
* Validates that all global variables used in operations are defined at the
|
25
24
|
* root. This isn't a real transform as it returns the original context, but
|
26
25
|
* has to happen before other transforms strip certain variable usages.
|
27
26
|
*/
|
27
|
+
|
28
|
+
|
28
29
|
function validateGlobalVariablesTransform(context) {
|
29
30
|
var contextWithUsedArguments = inferRootArgumentDefinitions(context);
|
30
31
|
eachWithCombinedError(context.documents(), function (node) {
|
@@ -14,14 +14,14 @@ var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefau
|
|
14
14
|
|
15
15
|
var _createForOfIteratorHelper2 = _interopRequireDefault(require("@babel/runtime/helpers/createForOfIteratorHelper"));
|
16
16
|
|
17
|
-
var IRValidator = require('../core/IRValidator');
|
18
|
-
|
19
17
|
var _require = require('../core/CompilerError'),
|
20
18
|
createUserError = _require.createUserError;
|
21
19
|
|
22
20
|
var _require2 = require('../core/getFieldDefinition'),
|
23
21
|
getFieldDefinitionStrict = _require2.getFieldDefinitionStrict;
|
24
22
|
|
23
|
+
var IRValidator = require('../core/IRValidator');
|
24
|
+
|
25
25
|
/*
|
26
26
|
* Validate required arguments are provided after transforms filling in arguments
|
27
27
|
*/
|
@@ -14,11 +14,11 @@ var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefau
|
|
14
14
|
|
15
15
|
var _createForOfIteratorHelper2 = _interopRequireDefault(require("@babel/runtime/helpers/createForOfIteratorHelper"));
|
16
16
|
|
17
|
-
var IRValidator = require('../core/IRValidator');
|
18
|
-
|
19
17
|
var _require = require('../core/CompilerError'),
|
20
18
|
createUserError = _require.createUserError;
|
21
19
|
|
20
|
+
var IRValidator = require('../core/IRValidator');
|
21
|
+
|
22
22
|
var NODEKIND_DIRECTIVE_MAP = {
|
23
23
|
Defer: 'defer',
|
24
24
|
Stream: 'stream'
|
@@ -14,12 +14,12 @@ var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefau
|
|
14
14
|
|
15
15
|
var _createForOfIteratorHelper2 = _interopRequireDefault(require("@babel/runtime/helpers/createForOfIteratorHelper"));
|
16
16
|
|
17
|
-
var inferRootArgumentDefinitions = require('../core/inferRootArgumentDefinitions');
|
18
|
-
|
19
17
|
var _require = require('../core/CompilerError'),
|
20
18
|
createUserError = _require.createUserError,
|
21
19
|
eachWithCombinedError = _require.eachWithCombinedError;
|
22
20
|
|
21
|
+
var inferRootArgumentDefinitions = require('../core/inferRootArgumentDefinitions');
|
22
|
+
|
23
23
|
var SCHEMA_EXTENSION = 'directive @DEPRECATED__relay_ignore_unused_variables_error on QUERY | MUTATION | SUBSCRIPTION';
|
24
24
|
/**
|
25
25
|
* Validates that there are no unused variables in the operation.
|
@@ -16,11 +16,11 @@ var _objectSpread2 = _interopRequireDefault(require("@babel/runtime/helpers/obje
|
|
16
16
|
|
17
17
|
var _toConsumableArray2 = _interopRequireDefault(require("@babel/runtime/helpers/toConsumableArray"));
|
18
18
|
|
19
|
-
var SchemaUtils = require('../../core/SchemaUtils');
|
20
|
-
|
21
19
|
var _require = require('../../core/CompilerError'),
|
22
20
|
createUserError = _require.createUserError;
|
23
21
|
|
22
|
+
var SchemaUtils = require('../../core/SchemaUtils');
|
23
|
+
|
24
24
|
var _require2 = require('./utils'),
|
25
25
|
buildFragmentSpread = _require2.buildFragmentSpread,
|
26
26
|
buildOperationArgumentDefinitions = _require2.buildOperationArgumentDefinitions;
|
@@ -16,17 +16,17 @@ var _objectSpread2 = _interopRequireDefault(require("@babel/runtime/helpers/obje
|
|
16
16
|
|
17
17
|
var _toConsumableArray2 = _interopRequireDefault(require("@babel/runtime/helpers/toConsumableArray"));
|
18
18
|
|
19
|
-
var SchemaUtils = require('../../core/SchemaUtils');
|
20
|
-
|
21
|
-
var nullthrows = require('nullthrows');
|
22
|
-
|
23
19
|
var _require = require('../../core/CompilerError'),
|
24
20
|
createUserError = _require.createUserError;
|
25
21
|
|
22
|
+
var SchemaUtils = require('../../core/SchemaUtils');
|
23
|
+
|
26
24
|
var _require2 = require('./utils'),
|
27
25
|
buildFragmentSpread = _require2.buildFragmentSpread,
|
28
26
|
buildOperationArgumentDefinitions = _require2.buildOperationArgumentDefinitions;
|
29
27
|
|
28
|
+
var nullthrows = require('nullthrows');
|
29
|
+
|
30
30
|
var NODE_TYPE_NAME = 'Node';
|
31
31
|
var NODE_FIELD_NAME = 'node';
|
32
32
|
|
@@ -14,6 +14,9 @@ var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefau
|
|
14
14
|
|
15
15
|
var _createForOfIteratorHelper2 = _interopRequireDefault(require("@babel/runtime/helpers/createForOfIteratorHelper"));
|
16
16
|
|
17
|
+
var _require = require('../../core/CompilerError'),
|
18
|
+
createUserError = _require.createUserError;
|
19
|
+
|
17
20
|
var FetchableQueryGenerator = require('./FetchableQueryGenerator');
|
18
21
|
|
19
22
|
var NodeQueryGenerator = require('./NodeQueryGenerator');
|
@@ -22,9 +25,6 @@ var QueryQueryGenerator = require('./QueryQueryGenerator');
|
|
22
25
|
|
23
26
|
var ViewerQueryGenerator = require('./ViewerQueryGenerator');
|
24
27
|
|
25
|
-
var _require = require('../../core/CompilerError'),
|
26
|
-
createUserError = _require.createUserError;
|
27
|
-
|
28
28
|
var GENERATORS = [ViewerQueryGenerator, QueryQueryGenerator, NodeQueryGenerator, FetchableQueryGenerator];
|
29
29
|
/**
|
30
30
|
* Builds a query to refetch the given fragment or throws if we have not way to
|
@@ -12,13 +12,14 @@
|
|
12
12
|
|
13
13
|
var _require = require('../core/CompilerError'),
|
14
14
|
createUserError = _require.createUserError;
|
15
|
-
|
16
15
|
/**
|
17
16
|
* Attempts to join the argument definitions for a root fragment
|
18
17
|
* and any unmasked fragment spreads reachable from that root fragment,
|
19
18
|
* returning a combined list of arguments or throwing if the same
|
20
19
|
* variable(s) are used in incompatible ways in different fragments.
|
21
20
|
*/
|
21
|
+
|
22
|
+
|
22
23
|
function joinArgumentDefinitions(schema, fragment, reachableArguments, directiveName) {
|
23
24
|
var joinedArgumentDefinitions = new Map();
|
24
25
|
fragment.argumentDefinitions.forEach(function (prevArgDef) {
|
package/package.json
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
{
|
2
2
|
"name": "relay-compiler",
|
3
3
|
"description": "A compiler tool for building GraphQL-driven applications.",
|
4
|
-
"version": "0.0.0-main-
|
4
|
+
"version": "0.0.0-main-2087b512",
|
5
5
|
"keywords": [
|
6
6
|
"graphql",
|
7
7
|
"relay"
|
@@ -29,7 +29,7 @@
|
|
29
29
|
"immutable": "~3.7.6",
|
30
30
|
"invariant": "^2.2.4",
|
31
31
|
"nullthrows": "^1.1.1",
|
32
|
-
"relay-runtime": "0.0.0-main-
|
32
|
+
"relay-runtime": "0.0.0-main-2087b512",
|
33
33
|
"signedsource": "^1.0.0",
|
34
34
|
"yargs": "^15.3.1"
|
35
35
|
},
|