Skip to content

Commit

Permalink
Catch the other bad imports via auto-refactoring
Browse files Browse the repository at this point in the history
  • Loading branch information
ecooper committed Oct 9, 2024
1 parent ade23d2 commit c5ace89
Show file tree
Hide file tree
Showing 5 changed files with 4 additions and 10 deletions.
3 changes: 1 addition & 2 deletions src/http-client/fetch-client.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
/// <reference lib="dom" />

import { getServiceError, NetworkError } from "../errors";
import { QueryFailure } from "../wire-protocol";
import { QueryFailure, QueryRequest } from "../wire-protocol";
import { FaunaAPIPaths } from "./paths";
import {
HTTPClient,
Expand All @@ -13,7 +13,6 @@ import {
HTTPStreamClient,
StreamAdapter,
} from "./http-client";
import { QueryRequest } from "fauna";

/**
* An implementation for {@link HTTPClient} that uses the native fetch API
Expand Down
2 changes: 0 additions & 2 deletions src/http-client/http-client.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,4 @@
// eslint-disable-next-line @typescript-eslint/no-unused-vars
import { Query } from "fauna";
// eslint-disable-next-line @typescript-eslint/no-unused-vars
import type { Client } from "../client";
import { QueryRequest, StreamRequest } from "../wire-protocol";
import { SupportedFaunaAPIPaths } from "./paths";
Expand Down
3 changes: 1 addition & 2 deletions src/http-client/node-http2-client.ts
Original file line number Diff line number Diff line change
Expand Up @@ -14,9 +14,8 @@ import {
StreamAdapter,
} from "./http-client";
import { NetworkError, getServiceError } from "../errors";
import { QueryFailure } from "../wire-protocol";
import { QueryFailure, QueryRequest } from "../wire-protocol";
import { FaunaAPIPaths } from "./paths";
import { QueryRequest } from "fauna";

// alias http2 types
type ClientHttp2Session = any;
Expand Down
2 changes: 1 addition & 1 deletion src/values/stream.ts
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
import { QueryStats } from "fauna";
import {
ChangeFeedSuccess,
QueryValue,
StreamEventData,
QueryStats,
} from "../wire-protocol";
import { getServiceError } from "../errors";

Expand Down
4 changes: 1 addition & 3 deletions src/wire-protocol.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,5 @@
// eslint-disable-next-line @typescript-eslint/no-unused-vars
import { Query } from "fauna";
// eslint-disable-next-line @typescript-eslint/no-unused-vars
import { fql, QueryArgumentObject } from "./query-builder";
import { Query, fql, QueryArgumentObject } from "./query-builder";
import {
DateStub,
Document,
Expand Down

0 comments on commit c5ace89

Please sign in to comment.