graphql 15.6.0 → 15.6.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/package.json +2 -2
- package/type/introspection.js +30 -21
- package/type/introspection.js.flow +11 -1
- package/type/introspection.mjs +30 -21
- package/version.js +2 -2
- package/version.js.flow +2 -2
- package/version.mjs +2 -2
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "graphql",
|
|
3
|
-
"version": "15.6.
|
|
3
|
+
"version": "15.6.1",
|
|
4
4
|
"description": "A Query Language and Runtime which can target any service.",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"main": "index",
|
|
@@ -22,4 +22,4 @@
|
|
|
22
22
|
"engines": {
|
|
23
23
|
"node": ">= 10.x"
|
|
24
24
|
}
|
|
25
|
-
}
|
|
25
|
+
}
|
package/type/introspection.js
CHANGED
|
@@ -107,8 +107,17 @@ var __Directive = new _definition.GraphQLObjectType({
|
|
|
107
107
|
},
|
|
108
108
|
args: {
|
|
109
109
|
type: new _definition.GraphQLNonNull(new _definition.GraphQLList(new _definition.GraphQLNonNull(__InputValue))),
|
|
110
|
-
|
|
111
|
-
|
|
110
|
+
args: {
|
|
111
|
+
includeDeprecated: {
|
|
112
|
+
type: _scalars.GraphQLBoolean,
|
|
113
|
+
defaultValue: false
|
|
114
|
+
}
|
|
115
|
+
},
|
|
116
|
+
resolve: function resolve(field, _ref) {
|
|
117
|
+
var includeDeprecated = _ref.includeDeprecated;
|
|
118
|
+
return includeDeprecated ? field.args : field.args.filter(function (arg) {
|
|
119
|
+
return arg.deprecationReason == null;
|
|
120
|
+
});
|
|
112
121
|
}
|
|
113
122
|
}
|
|
114
123
|
};
|
|
@@ -273,8 +282,8 @@ var __Type = new _definition.GraphQLObjectType({
|
|
|
273
282
|
defaultValue: false
|
|
274
283
|
}
|
|
275
284
|
},
|
|
276
|
-
resolve: function resolve(type,
|
|
277
|
-
var includeDeprecated =
|
|
285
|
+
resolve: function resolve(type, _ref2) {
|
|
286
|
+
var includeDeprecated = _ref2.includeDeprecated;
|
|
278
287
|
|
|
279
288
|
if ((0, _definition.isObjectType)(type) || (0, _definition.isInterfaceType)(type)) {
|
|
280
289
|
var fields = (0, _objectValues.default)(type.getFields());
|
|
@@ -294,8 +303,8 @@ var __Type = new _definition.GraphQLObjectType({
|
|
|
294
303
|
},
|
|
295
304
|
possibleTypes: {
|
|
296
305
|
type: new _definition.GraphQLList(new _definition.GraphQLNonNull(__Type)),
|
|
297
|
-
resolve: function resolve(type, _args, _context,
|
|
298
|
-
var schema =
|
|
306
|
+
resolve: function resolve(type, _args, _context, _ref3) {
|
|
307
|
+
var schema = _ref3.schema;
|
|
299
308
|
|
|
300
309
|
if ((0, _definition.isAbstractType)(type)) {
|
|
301
310
|
return schema.getPossibleTypes(type);
|
|
@@ -310,8 +319,8 @@ var __Type = new _definition.GraphQLObjectType({
|
|
|
310
319
|
defaultValue: false
|
|
311
320
|
}
|
|
312
321
|
},
|
|
313
|
-
resolve: function resolve(type,
|
|
314
|
-
var includeDeprecated =
|
|
322
|
+
resolve: function resolve(type, _ref4) {
|
|
323
|
+
var includeDeprecated = _ref4.includeDeprecated;
|
|
315
324
|
|
|
316
325
|
if ((0, _definition.isEnumType)(type)) {
|
|
317
326
|
var values = type.getValues();
|
|
@@ -329,8 +338,8 @@ var __Type = new _definition.GraphQLObjectType({
|
|
|
329
338
|
defaultValue: false
|
|
330
339
|
}
|
|
331
340
|
},
|
|
332
|
-
resolve: function resolve(type,
|
|
333
|
-
var includeDeprecated =
|
|
341
|
+
resolve: function resolve(type, _ref5) {
|
|
342
|
+
var includeDeprecated = _ref5.includeDeprecated;
|
|
334
343
|
|
|
335
344
|
if ((0, _definition.isInputObjectType)(type)) {
|
|
336
345
|
var values = (0, _objectValues.default)(type.getFields());
|
|
@@ -377,8 +386,8 @@ var __Field = new _definition.GraphQLObjectType({
|
|
|
377
386
|
defaultValue: false
|
|
378
387
|
}
|
|
379
388
|
},
|
|
380
|
-
resolve: function resolve(field,
|
|
381
|
-
var includeDeprecated =
|
|
389
|
+
resolve: function resolve(field, _ref6) {
|
|
390
|
+
var includeDeprecated = _ref6.includeDeprecated;
|
|
382
391
|
return includeDeprecated ? field.args : field.args.filter(function (arg) {
|
|
383
392
|
return arg.deprecationReason == null;
|
|
384
393
|
});
|
|
@@ -555,8 +564,8 @@ var SchemaMetaFieldDef = {
|
|
|
555
564
|
type: new _definition.GraphQLNonNull(__Schema),
|
|
556
565
|
description: 'Access the current type schema of this server.',
|
|
557
566
|
args: [],
|
|
558
|
-
resolve: function resolve(_source, _args, _context,
|
|
559
|
-
var schema =
|
|
567
|
+
resolve: function resolve(_source, _args, _context, _ref7) {
|
|
568
|
+
var schema = _ref7.schema;
|
|
560
569
|
return schema;
|
|
561
570
|
},
|
|
562
571
|
isDeprecated: false,
|
|
@@ -578,9 +587,9 @@ var TypeMetaFieldDef = {
|
|
|
578
587
|
extensions: undefined,
|
|
579
588
|
astNode: undefined
|
|
580
589
|
}],
|
|
581
|
-
resolve: function resolve(_source,
|
|
582
|
-
var name =
|
|
583
|
-
var schema =
|
|
590
|
+
resolve: function resolve(_source, _ref8, _context, _ref9) {
|
|
591
|
+
var name = _ref8.name;
|
|
592
|
+
var schema = _ref9.schema;
|
|
584
593
|
return schema.getType(name);
|
|
585
594
|
},
|
|
586
595
|
isDeprecated: false,
|
|
@@ -594,8 +603,8 @@ var TypeNameMetaFieldDef = {
|
|
|
594
603
|
type: new _definition.GraphQLNonNull(_scalars.GraphQLString),
|
|
595
604
|
description: 'The name of the current Object type at runtime.',
|
|
596
605
|
args: [],
|
|
597
|
-
resolve: function resolve(_source, _args, _context,
|
|
598
|
-
var parentType =
|
|
606
|
+
resolve: function resolve(_source, _args, _context, _ref10) {
|
|
607
|
+
var parentType = _ref10.parentType;
|
|
599
608
|
return parentType.name;
|
|
600
609
|
},
|
|
601
610
|
isDeprecated: false,
|
|
@@ -608,8 +617,8 @@ var introspectionTypes = Object.freeze([__Schema, __Directive, __DirectiveLocati
|
|
|
608
617
|
exports.introspectionTypes = introspectionTypes;
|
|
609
618
|
|
|
610
619
|
function isIntrospectionType(type) {
|
|
611
|
-
return introspectionTypes.some(function (
|
|
612
|
-
var name =
|
|
620
|
+
return introspectionTypes.some(function (_ref11) {
|
|
621
|
+
var name = _ref11.name;
|
|
613
622
|
return type.name === name;
|
|
614
623
|
});
|
|
615
624
|
}
|
|
@@ -107,7 +107,17 @@ export const __Directive = new GraphQLObjectType({
|
|
|
107
107
|
type: new GraphQLNonNull(
|
|
108
108
|
new GraphQLList(new GraphQLNonNull(__InputValue)),
|
|
109
109
|
),
|
|
110
|
-
|
|
110
|
+
args: {
|
|
111
|
+
includeDeprecated: {
|
|
112
|
+
type: GraphQLBoolean,
|
|
113
|
+
defaultValue: false,
|
|
114
|
+
},
|
|
115
|
+
},
|
|
116
|
+
resolve(field, { includeDeprecated }) {
|
|
117
|
+
return includeDeprecated
|
|
118
|
+
? field.args
|
|
119
|
+
: field.args.filter((arg) => arg.deprecationReason == null);
|
|
120
|
+
},
|
|
111
121
|
},
|
|
112
122
|
}: GraphQLFieldConfigMap<GraphQLDirective, mixed>),
|
|
113
123
|
});
|
package/type/introspection.mjs
CHANGED
|
@@ -86,8 +86,17 @@ export var __Directive = new GraphQLObjectType({
|
|
|
86
86
|
},
|
|
87
87
|
args: {
|
|
88
88
|
type: new GraphQLNonNull(new GraphQLList(new GraphQLNonNull(__InputValue))),
|
|
89
|
-
|
|
90
|
-
|
|
89
|
+
args: {
|
|
90
|
+
includeDeprecated: {
|
|
91
|
+
type: GraphQLBoolean,
|
|
92
|
+
defaultValue: false
|
|
93
|
+
}
|
|
94
|
+
},
|
|
95
|
+
resolve: function resolve(field, _ref) {
|
|
96
|
+
var includeDeprecated = _ref.includeDeprecated;
|
|
97
|
+
return includeDeprecated ? field.args : field.args.filter(function (arg) {
|
|
98
|
+
return arg.deprecationReason == null;
|
|
99
|
+
});
|
|
91
100
|
}
|
|
92
101
|
}
|
|
93
102
|
};
|
|
@@ -246,8 +255,8 @@ export var __Type = new GraphQLObjectType({
|
|
|
246
255
|
defaultValue: false
|
|
247
256
|
}
|
|
248
257
|
},
|
|
249
|
-
resolve: function resolve(type,
|
|
250
|
-
var includeDeprecated =
|
|
258
|
+
resolve: function resolve(type, _ref2) {
|
|
259
|
+
var includeDeprecated = _ref2.includeDeprecated;
|
|
251
260
|
|
|
252
261
|
if (isObjectType(type) || isInterfaceType(type)) {
|
|
253
262
|
var fields = objectValues(type.getFields());
|
|
@@ -267,8 +276,8 @@ export var __Type = new GraphQLObjectType({
|
|
|
267
276
|
},
|
|
268
277
|
possibleTypes: {
|
|
269
278
|
type: new GraphQLList(new GraphQLNonNull(__Type)),
|
|
270
|
-
resolve: function resolve(type, _args, _context,
|
|
271
|
-
var schema =
|
|
279
|
+
resolve: function resolve(type, _args, _context, _ref3) {
|
|
280
|
+
var schema = _ref3.schema;
|
|
272
281
|
|
|
273
282
|
if (isAbstractType(type)) {
|
|
274
283
|
return schema.getPossibleTypes(type);
|
|
@@ -283,8 +292,8 @@ export var __Type = new GraphQLObjectType({
|
|
|
283
292
|
defaultValue: false
|
|
284
293
|
}
|
|
285
294
|
},
|
|
286
|
-
resolve: function resolve(type,
|
|
287
|
-
var includeDeprecated =
|
|
295
|
+
resolve: function resolve(type, _ref4) {
|
|
296
|
+
var includeDeprecated = _ref4.includeDeprecated;
|
|
288
297
|
|
|
289
298
|
if (isEnumType(type)) {
|
|
290
299
|
var values = type.getValues();
|
|
@@ -302,8 +311,8 @@ export var __Type = new GraphQLObjectType({
|
|
|
302
311
|
defaultValue: false
|
|
303
312
|
}
|
|
304
313
|
},
|
|
305
|
-
resolve: function resolve(type,
|
|
306
|
-
var includeDeprecated =
|
|
314
|
+
resolve: function resolve(type, _ref5) {
|
|
315
|
+
var includeDeprecated = _ref5.includeDeprecated;
|
|
307
316
|
|
|
308
317
|
if (isInputObjectType(type)) {
|
|
309
318
|
var values = objectValues(type.getFields());
|
|
@@ -347,8 +356,8 @@ export var __Field = new GraphQLObjectType({
|
|
|
347
356
|
defaultValue: false
|
|
348
357
|
}
|
|
349
358
|
},
|
|
350
|
-
resolve: function resolve(field,
|
|
351
|
-
var includeDeprecated =
|
|
359
|
+
resolve: function resolve(field, _ref6) {
|
|
360
|
+
var includeDeprecated = _ref6.includeDeprecated;
|
|
352
361
|
return includeDeprecated ? field.args : field.args.filter(function (arg) {
|
|
353
362
|
return arg.deprecationReason == null;
|
|
354
363
|
});
|
|
@@ -513,8 +522,8 @@ export var SchemaMetaFieldDef = {
|
|
|
513
522
|
type: new GraphQLNonNull(__Schema),
|
|
514
523
|
description: 'Access the current type schema of this server.',
|
|
515
524
|
args: [],
|
|
516
|
-
resolve: function resolve(_source, _args, _context,
|
|
517
|
-
var schema =
|
|
525
|
+
resolve: function resolve(_source, _args, _context, _ref7) {
|
|
526
|
+
var schema = _ref7.schema;
|
|
518
527
|
return schema;
|
|
519
528
|
},
|
|
520
529
|
isDeprecated: false,
|
|
@@ -535,9 +544,9 @@ export var TypeMetaFieldDef = {
|
|
|
535
544
|
extensions: undefined,
|
|
536
545
|
astNode: undefined
|
|
537
546
|
}],
|
|
538
|
-
resolve: function resolve(_source,
|
|
539
|
-
var name =
|
|
540
|
-
var schema =
|
|
547
|
+
resolve: function resolve(_source, _ref8, _context, _ref9) {
|
|
548
|
+
var name = _ref8.name;
|
|
549
|
+
var schema = _ref9.schema;
|
|
541
550
|
return schema.getType(name);
|
|
542
551
|
},
|
|
543
552
|
isDeprecated: false,
|
|
@@ -550,8 +559,8 @@ export var TypeNameMetaFieldDef = {
|
|
|
550
559
|
type: new GraphQLNonNull(GraphQLString),
|
|
551
560
|
description: 'The name of the current Object type at runtime.',
|
|
552
561
|
args: [],
|
|
553
|
-
resolve: function resolve(_source, _args, _context,
|
|
554
|
-
var parentType =
|
|
562
|
+
resolve: function resolve(_source, _args, _context, _ref10) {
|
|
563
|
+
var parentType = _ref10.parentType;
|
|
555
564
|
return parentType.name;
|
|
556
565
|
},
|
|
557
566
|
isDeprecated: false,
|
|
@@ -561,8 +570,8 @@ export var TypeNameMetaFieldDef = {
|
|
|
561
570
|
};
|
|
562
571
|
export var introspectionTypes = Object.freeze([__Schema, __Directive, __DirectiveLocation, __Type, __Field, __InputValue, __EnumValue, __TypeKind]);
|
|
563
572
|
export function isIntrospectionType(type) {
|
|
564
|
-
return introspectionTypes.some(function (
|
|
565
|
-
var name =
|
|
573
|
+
return introspectionTypes.some(function (_ref11) {
|
|
574
|
+
var name = _ref11.name;
|
|
566
575
|
return type.name === name;
|
|
567
576
|
});
|
|
568
577
|
}
|
package/version.js
CHANGED
|
@@ -13,7 +13,7 @@ exports.versionInfo = exports.version = void 0;
|
|
|
13
13
|
/**
|
|
14
14
|
* A string containing the version of the GraphQL.js library
|
|
15
15
|
*/
|
|
16
|
-
var version = '15.6.
|
|
16
|
+
var version = '15.6.1';
|
|
17
17
|
/**
|
|
18
18
|
* An object containing the components of the GraphQL.js version string
|
|
19
19
|
*/
|
|
@@ -22,7 +22,7 @@ exports.version = version;
|
|
|
22
22
|
var versionInfo = Object.freeze({
|
|
23
23
|
major: 15,
|
|
24
24
|
minor: 6,
|
|
25
|
-
patch:
|
|
25
|
+
patch: 1,
|
|
26
26
|
preReleaseTag: null
|
|
27
27
|
});
|
|
28
28
|
exports.versionInfo = versionInfo;
|
package/version.js.flow
CHANGED
|
@@ -7,7 +7,7 @@
|
|
|
7
7
|
/**
|
|
8
8
|
* A string containing the version of the GraphQL.js library
|
|
9
9
|
*/
|
|
10
|
-
export const version = '15.6.
|
|
10
|
+
export const version = '15.6.1';
|
|
11
11
|
|
|
12
12
|
/**
|
|
13
13
|
* An object containing the components of the GraphQL.js version string
|
|
@@ -15,6 +15,6 @@ export const version = '15.6.0';
|
|
|
15
15
|
export const versionInfo = Object.freeze({
|
|
16
16
|
major: 15,
|
|
17
17
|
minor: 6,
|
|
18
|
-
patch:
|
|
18
|
+
patch: 1,
|
|
19
19
|
preReleaseTag: null,
|
|
20
20
|
});
|
package/version.mjs
CHANGED
|
@@ -6,7 +6,7 @@
|
|
|
6
6
|
/**
|
|
7
7
|
* A string containing the version of the GraphQL.js library
|
|
8
8
|
*/
|
|
9
|
-
export var version = '15.6.
|
|
9
|
+
export var version = '15.6.1';
|
|
10
10
|
/**
|
|
11
11
|
* An object containing the components of the GraphQL.js version string
|
|
12
12
|
*/
|
|
@@ -14,6 +14,6 @@ export var version = '15.6.0';
|
|
|
14
14
|
export var versionInfo = Object.freeze({
|
|
15
15
|
major: 15,
|
|
16
16
|
minor: 6,
|
|
17
|
-
patch:
|
|
17
|
+
patch: 1,
|
|
18
18
|
preReleaseTag: null
|
|
19
19
|
});
|