Skip to content

Commit 0c0030d

Browse files
committed
refac(query): rename parseQueryFile to parseQuery.
1 parent 08974f0 commit 0c0030d

File tree

4 files changed

+4
-4
lines changed

4 files changed

+4
-4
lines changed

src/query/QueryManager.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ import {
1111
} from '../shared/GQLError';
1212

1313
import validate from './validation/validate';
14-
import parseQueryFile from './_shared/parseQueryFile';
14+
import parseQuery from './_shared/parseQuery';
1515
import GQLConfig from '../config/GQLConfig';
1616

1717
import watch from '../shared/watch';
@@ -113,7 +113,7 @@ export class QueryManager {
113113
const content = fs.readFileSync(absPath, 'utf8');
114114
const source = new Source(content, absPath);
115115
try {
116-
const { ast, isEmpty } = parseQueryFile(source, config);
116+
const { ast, isEmpty } = parseQuery(source, config);
117117
return {
118118
ast,
119119
error: null,

src/query/_shared/__tests__/parseQueryFile_toQueryDocument.test.js renamed to src/query/_shared/__tests__/parseQuery_toQueryDocument.test.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/* @flow */
2-
import { toQueryDocument } from '../parseQueryFile';
2+
import { toQueryDocument } from '../parseQuery';
33
import { Source } from 'graphql/language/source';
44

55
const relayParser = ['EmbeddedQueryParser', { startTag: 'Relay\\.QL`', endTag: '`' }];

src/query/_shared/parseQueryFile.js renamed to src/query/_shared/parseQuery.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,7 @@ export function toQueryDocument(source: Source, config: Config): string {
7373
return queryDocument;
7474
}
7575

76-
export default function parserQueryFile(
76+
export default function parserQuery(
7777
source: Source,
7878
config: Config,
7979
): { ast: ?DocumentNode, isEmpty: boolean } {

0 commit comments

Comments
 (0)