diff --git a/src/builder/builder_factory.ts b/src/builder/builder_factory.ts index b69df72..420d939 100644 --- a/src/builder/builder_factory.ts +++ b/src/builder/builder_factory.ts @@ -1,7 +1,7 @@ import QueryBuilder from "./query_builder"; import TRAPIQueryBuilder from "./trapi_query_builder"; import TemplateQueryBuilder from "./template_query_builder"; -import Debug from "debug"; +import { Debug } from "@biothings-explorer/utils"; const debug = Debug("bte:call-apis:query"); import type { APIEdge } from "../types"; import { QueryHandlerOptions } from "@biothings-explorer/types"; diff --git a/src/dispatcher.ts b/src/dispatcher.ts index 6e3b665..b8edceb 100644 --- a/src/dispatcher.ts +++ b/src/dispatcher.ts @@ -10,7 +10,7 @@ import { Telemetry, RedisClient, } from "@biothings-explorer/utils"; -import Debug from "debug"; +import { Debug } from "@biothings-explorer/utils"; const debug = Debug("bte:call-apis:query"); export default class SubQueryDispatcher { diff --git a/src/index.ts b/src/index.ts index e2ee4a4..8c43d9e 100644 --- a/src/index.ts +++ b/src/index.ts @@ -1,7 +1,7 @@ import { LogEntry, StampedLog, RedisClient } from "@biothings-explorer/utils"; import { APIEdge, UnavailableAPITracker } from "./types"; import { QueryHandlerOptions } from "@biothings-explorer/types"; -import Debug from "debug"; +import { Debug } from "@biothings-explorer/utils"; const debug = Debug("bte:call-apis:query"); import queryBuilder from "./builder/builder_factory"; import TRAPIQueryBuilder from "./builder/trapi_query_builder"; diff --git a/src/query_pool.ts b/src/query_pool.ts index c919d0e..97a0334 100644 --- a/src/query_pool.ts +++ b/src/query_pool.ts @@ -6,7 +6,7 @@ import BaseQueryBuilder from "./builder/base_query_builder"; import { UnavailableAPITracker } from "./types"; import os from "os"; import axios, { AxiosRequestConfig, AxiosResponse } from "axios"; -import Debug from "debug"; +import { Debug } from "@biothings-explorer/utils"; const debug = Debug("bte:call-apis:query"); import { Telemetry, LogEntry, StampedLog } from "@biothings-explorer/utils"; import axiosRetry from "axios-retry"; diff --git a/src/query_queue.ts b/src/query_queue.ts index 62df649..c4b12f2 100644 --- a/src/query_queue.ts +++ b/src/query_queue.ts @@ -1,7 +1,7 @@ import BaseQueryBuilder from "./builder/base_query_builder"; import RateCounter from "./rate_limiter"; import { RedisClient } from "@biothings-explorer/utils"; -import Debug from "debug"; +import { Debug } from "@biothings-explorer/utils"; const debug = Debug("bte:call-apis:query"); export default class APIQueryQueue { diff --git a/src/rate_limiter.ts b/src/rate_limiter.ts index fea2fd0..a309464 100644 --- a/src/rate_limiter.ts +++ b/src/rate_limiter.ts @@ -1,6 +1,6 @@ import BaseQueryBuilder from "./builder/base_query_builder"; import { RedisClient } from "@biothings-explorer/utils"; -import Debug from "debug"; +import { Debug } from "@biothings-explorer/utils"; const debug = Debug("bte:call-apis:query"); // Default rate limit of 100 queries per second, which shouldn't ever be reached