@luvio/graphql-parser 0.103.0 → 0.104.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/dist/gql.d.ts +8 -0
- package/dist/luvioGraphqlParser.js +1059 -1066
- package/dist/luvioGraphqlParser.mjs +1060 -1065
- package/dist/main.d.ts +6 -3
- package/package.json +1 -1
- package/src/__tests__/main.spec.ts +49 -0
- package/src/gql.ts +9 -5
- package/src/main.ts +20 -15
package/dist/gql.d.ts
CHANGED
|
@@ -16,6 +16,14 @@ export declare const docMap: Map<string, DocumentNode>;
|
|
|
16
16
|
*/
|
|
17
17
|
export declare const referenceMap: WeakMap<Object, DocumentNode>;
|
|
18
18
|
export declare let addMetaschemaDirectives: boolean;
|
|
19
|
+
/**
|
|
20
|
+
* Returns document node if cached or else update the cache and return the document node
|
|
21
|
+
* @param inputString - operation string
|
|
22
|
+
* @returns DocumentNode
|
|
23
|
+
*/
|
|
24
|
+
export declare function parseDocument(inputString: string): DocumentNode | null;
|
|
25
|
+
export declare function updateReferenceMapWithKnownKey(doc: DocumentNode, key: object): void;
|
|
26
|
+
export declare function updateReferenceMapAndGetKey(doc: DocumentNode): object;
|
|
19
27
|
/**
|
|
20
28
|
* Insert string and fragment substitutions with the actual nodes
|
|
21
29
|
* @param inputString
|