@graphql-tools/utils 7.2.3 → 7.2.4
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/es5/index.cjs.js +2 -2
- package/es5/index.cjs.js.map +1 -1
- package/es5/index.esm.js +2 -2
- package/es5/index.esm.js.map +1 -1
- package/es5/package.json +2 -2
- package/es5/selectionSets.d.ts +2 -1
- package/index.cjs.js +2 -2
- package/index.cjs.js.map +1 -1
- package/index.esm.js +2 -2
- package/index.esm.js.map +1 -1
- package/package.json +2 -2
- package/selectionSets.d.ts +2 -1
package/es5/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@graphql-tools/utils/es5",
|
|
3
|
-
"version": "7.2.
|
|
3
|
+
"version": "7.2.4",
|
|
4
4
|
"description": "Common package containting utils and types for GraphQL tools",
|
|
5
5
|
"sideEffects": false,
|
|
6
6
|
"peerDependencies": {
|
|
@@ -9,7 +9,7 @@
|
|
|
9
9
|
"dependencies": {
|
|
10
10
|
"@ardatan/aggregate-error": "0.0.6",
|
|
11
11
|
"camel-case": "4.1.2",
|
|
12
|
-
"tslib": "~2.0
|
|
12
|
+
"tslib": "~2.1.0"
|
|
13
13
|
},
|
|
14
14
|
"repository": {
|
|
15
15
|
"type": "git",
|
package/es5/selectionSets.d.ts
CHANGED
|
@@ -1,2 +1,3 @@
|
|
|
1
1
|
import { SelectionSetNode } from 'graphql';
|
|
2
|
-
|
|
2
|
+
import { GraphQLParseOptions } from './Interfaces';
|
|
3
|
+
export declare function parseSelectionSet(selectionSet: string, options?: GraphQLParseOptions): SelectionSetNode;
|
package/index.cjs.js
CHANGED
|
@@ -3450,8 +3450,8 @@ function isObject(item) {
|
|
|
3450
3450
|
return item && typeof item === 'object' && !Array.isArray(item);
|
|
3451
3451
|
}
|
|
3452
3452
|
|
|
3453
|
-
function parseSelectionSet(selectionSet) {
|
|
3454
|
-
const query = graphql.parse(selectionSet).definitions[0];
|
|
3453
|
+
function parseSelectionSet(selectionSet, options) {
|
|
3454
|
+
const query = graphql.parse(selectionSet, options).definitions[0];
|
|
3455
3455
|
return query.selectionSet;
|
|
3456
3456
|
}
|
|
3457
3457
|
|