Skip to content

Commit

Permalink
Rename util.ts to utils.ts in OData handler
Browse files Browse the repository at this point in the history
  • Loading branch information
habbes committed Jul 15, 2021
1 parent 457db97 commit cc5cb7a
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 6 deletions.
4 changes: 2 additions & 2 deletions packages/handlers/odata/src/request-processing.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@ import { parseResponse } from 'http-string-parser';
import { getCachedFetch, jsonFlatStringify } from "@graphql-mesh/utils";
import { Request, Response } from 'cross-fetch';
import { nativeFetch } from './native-fetch';
import { EntityTypeExtensions } from "./schema-util";
import { getUrlString, addIdentifierToUrl } from "./util";
import { EntityTypeExtensions } from "./schema-utils";
import { getUrlString, addIdentifierToUrl } from "./utils";
import urljoin from 'url-join';
import { ResolverData } from "@graphql-mesh/types";

Expand Down
4 changes: 2 additions & 2 deletions packages/handlers/odata/src/schema-builder.ts
Original file line number Diff line number Diff line change
Expand Up @@ -31,8 +31,8 @@ import { pascalCase } from 'pascal-case';
import { Request } from 'cross-fetch';
import { SCALARS } from './scalars';
import { queryOptionsFields } from './query-options';
import { EntityTypeExtensions } from './schema-util';
import { addIdentifierToUrl, getUrlString } from './util';
import { EntityTypeExtensions } from './schema-utils';
import { addIdentifierToUrl, getUrlString } from './utils';
import { handleResponseText, HeadersFactory } from './request-processing'
import DataLoader from 'dataloader';

Expand Down
File renamed without changes.
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
import { ResolverData } from "@graphql-mesh/types";

export function getUrlString(url: URL) {
return decodeURIComponent(url.toString()).split('+').join(' ');
}
Expand Down

0 comments on commit cc5cb7a

Please sign in to comment.