gql-ast 2.4.6 → 2.5.0
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/esm/index.js +4 -0
- package/index.d.ts +7 -4
- package/index.js +6 -1
- package/package.json +2 -2
package/esm/index.js
CHANGED
package/index.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { ArgumentNode, BooleanValueNode, DefinitionNode, DirectiveNode, DocumentNode, FieldNode, FragmentDefinitionNode, IntValueNode, ListTypeNode, ListValueNode, NamedTypeNode, NullValueNode, ObjectFieldNode, ObjectValueNode, OperationDefinitionNode, OperationTypeNode, SelectionSetNode, StringValueNode, TypeNode, VariableDefinitionNode, VariableNode } from 'graphql';
|
|
1
|
+
import { ArgumentNode, BooleanValueNode, DefinitionNode, DirectiveNode, DocumentNode, FieldNode, FloatValueNode, FragmentDefinitionNode, IntValueNode, ListTypeNode, ListValueNode, NamedTypeNode, NullValueNode, ObjectFieldNode, ObjectValueNode, OperationDefinitionNode, OperationTypeNode, SelectionSetNode, StringValueNode, TypeNode, ValueNode, VariableDefinitionNode, VariableNode } from 'graphql';
|
|
2
2
|
export declare const document: ({ definitions }: {
|
|
3
3
|
definitions: DefinitionNode[];
|
|
4
4
|
}) => DocumentNode;
|
|
@@ -41,8 +41,11 @@ export declare const intValue: ({ value }: {
|
|
|
41
41
|
export declare const booleanValue: ({ value }: {
|
|
42
42
|
value: boolean;
|
|
43
43
|
}) => BooleanValueNode;
|
|
44
|
+
export declare const floatValue: ({ value }: {
|
|
45
|
+
value: string;
|
|
46
|
+
}) => FloatValueNode;
|
|
44
47
|
export declare const listValue: ({ values }: {
|
|
45
|
-
values:
|
|
48
|
+
values: ValueNode[];
|
|
46
49
|
}) => ListValueNode;
|
|
47
50
|
export declare const nullValue: () => NullValueNode;
|
|
48
51
|
export declare const fragmentDefinition: ({ name, typeCondition, directives, selectionSet }: {
|
|
@@ -53,7 +56,7 @@ export declare const fragmentDefinition: ({ name, typeCondition, directives, sel
|
|
|
53
56
|
}) => FragmentDefinitionNode;
|
|
54
57
|
export declare const objectField: ({ name, value }: {
|
|
55
58
|
name: string;
|
|
56
|
-
value:
|
|
59
|
+
value: ValueNode;
|
|
57
60
|
}) => ObjectFieldNode;
|
|
58
61
|
export declare const field: ({ name, args, directives, selectionSet }: {
|
|
59
62
|
name: string;
|
|
@@ -63,5 +66,5 @@ export declare const field: ({ name, args, directives, selectionSet }: {
|
|
|
63
66
|
}) => FieldNode;
|
|
64
67
|
export declare const argument: ({ name, value }: {
|
|
65
68
|
name: string;
|
|
66
|
-
value:
|
|
69
|
+
value: ValueNode;
|
|
67
70
|
}) => ArgumentNode;
|
package/index.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.argument = exports.field = exports.objectField = exports.fragmentDefinition = exports.nullValue = exports.listValue = exports.booleanValue = exports.intValue = exports.stringValue = exports.objectValue = exports.variable = exports.namedType = exports.nonNullType = exports.listType = exports.selectionSet = exports.variableDefinition = exports.operationDefinition = exports.document = void 0;
|
|
3
|
+
exports.argument = exports.field = exports.objectField = exports.fragmentDefinition = exports.nullValue = exports.listValue = exports.floatValue = exports.booleanValue = exports.intValue = exports.stringValue = exports.objectValue = exports.variable = exports.namedType = exports.nonNullType = exports.listType = exports.selectionSet = exports.variableDefinition = exports.operationDefinition = exports.document = void 0;
|
|
4
4
|
const document = ({ definitions }) => ({
|
|
5
5
|
kind: 'Document',
|
|
6
6
|
definitions
|
|
@@ -76,6 +76,11 @@ const booleanValue = ({ value }) => ({
|
|
|
76
76
|
value
|
|
77
77
|
});
|
|
78
78
|
exports.booleanValue = booleanValue;
|
|
79
|
+
const floatValue = ({ value }) => ({
|
|
80
|
+
kind: 'FloatValue',
|
|
81
|
+
value
|
|
82
|
+
});
|
|
83
|
+
exports.floatValue = floatValue;
|
|
79
84
|
const listValue = ({ values }) => ({
|
|
80
85
|
kind: 'ListValue',
|
|
81
86
|
values
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "gql-ast",
|
|
3
|
-
"version": "2.
|
|
3
|
+
"version": "2.5.0",
|
|
4
4
|
"author": "Constructive <developers@constructive.io>",
|
|
5
5
|
"description": "GraphQL ASTs",
|
|
6
6
|
"main": "index.js",
|
|
@@ -41,5 +41,5 @@
|
|
|
41
41
|
"devDependencies": {
|
|
42
42
|
"makage": "^0.1.10"
|
|
43
43
|
},
|
|
44
|
-
"gitHead": "
|
|
44
|
+
"gitHead": "b7abf2fdaf0a827d79a80c9c0a29e5c960f227df"
|
|
45
45
|
}
|