Skip to content

Commit

Permalink
add template to creative debug
Browse files Browse the repository at this point in the history
  • Loading branch information
rjawesome committed Nov 1, 2024
1 parent bac4cc2 commit 0322902
Show file tree
Hide file tree
Showing 11 changed files with 11 additions and 11 deletions.
2 changes: 1 addition & 1 deletion src/filter.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import { FILTER_FIELDS } from "./config";
import _ from "lodash";
import { FilterCriteria, ObjectWithValueAsSet, CompactQualifiers } from "./types";
import { SmartAPIKGOperationObject } from "./parser/types";
// import Debug from "debug";
// import { Debug } from "@biothings-explorer/utils";
// const debug = Debug("bte:smartapi-kg:Filter");

const getUniqueValsForEachField = (operations: SmartAPIKGOperationObject[]): ObjectWithValueAsSet => {
Expand Down
2 changes: 1 addition & 1 deletion src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import { SmartAPIKGOperationObject } from "./parser/types";
import { BuilderOptions, FilterCriteria } from "./types";
import { ft } from "./filter";
import path from "path";
import Debug from "debug";
import { Debug } from "@biothings-explorer/utils";
import QueryOperationObject from "./parser/query_operation";
const debug = Debug("bte:smartapi-kg:MetaKG");

Expand Down
2 changes: 1 addition & 1 deletion src/load/all_specs_sync_loader.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import BaseLoader from "./base_loader";
import { SmartAPIQueryResult } from "../types";
import { SmartAPISpec } from "../parser/types";
import fs from "fs";
import Debug from "debug";
import { Debug } from "@biothings-explorer/utils";
const debug = Debug("bte:smartapi-kg:AllSpecsSyncLoader");

export default class AllSpecsSyncLoader extends BaseLoader {
Expand Down
2 changes: 1 addition & 1 deletion src/load/api_list_specs_sync_loader.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import AllSpecsSyncLoader from "./all_specs_sync_loader";
import { SmartAPIQueryResult, apiListObject } from "../types";
import { SmartAPISpec } from "../parser/types";
import Debug from "debug";
import { Debug } from "@biothings-explorer/utils";
const debug = Debug("bte:smartapi-kg:APIListSpecsSyncLoader");

export default class APIListSpecsSyncLoader extends AllSpecsSyncLoader {
Expand Down
2 changes: 1 addition & 1 deletion src/load/base_async_loader.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import FailToLoadSpecError from "../exceptions/fail_to_load_spec";
import { SmartAPIQueryResult } from "../types";
import { SmartAPISpec } from "../parser/types";
import BaseLoader from "./base_loader";
import Debug from "debug";
import { Debug } from "@biothings-explorer/utils";
const debug = Debug("bte:smartapi-kg:AsyncLoader");

export default abstract class BaseAsyncLoader extends BaseLoader {
Expand Down
2 changes: 1 addition & 1 deletion src/load/single_spec_sync_loader.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import AllSpecsSyncLoader from "./all_specs_sync_loader";
import { apiListObject, SmartAPIQueryResult } from "../types";
import { SmartAPISpec } from "../parser/types";
import Debug from "debug";
import { Debug } from "@biothings-explorer/utils";
const debug = Debug("bte:smartapi-kg:SingleSpecSyncLoader");

export default class SingleSpecSyncLoader extends AllSpecsSyncLoader {
Expand Down
2 changes: 1 addition & 1 deletion src/load/sync_loader_factory.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ import ComponentSpecsSyncLoader from "./component_specs_sync_loader";
import APIListSpecsSyncLoader from "./api_list_specs_sync_loader";
import { SmartAPISpec } from "../parser/types";
import { SmartAPIQueryResult, apiListObject } from "../types";
import Debug from "debug";
import { Debug } from "@biothings-explorer/utils";
const debug = Debug("bte:smartapi-kg:SyncLoader");

export const syncLoaderFactory = (
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import { SmartAPISpec, ParsedAPIMetadataObject, SmartAPIKGOperationObject } from
import { ReasonerPredicatesResponse } from "../types";
import API from "../parser/index";
import axios from "axios";
import Debug from "debug";
import { Debug } from "@biothings-explorer/utils";
const debug = Debug("bte:smartapi-kg:OperationsBuilder");

export default class AsyncOperationsBuilderWithReasoner extends AsyncOperationsBuilder {
Expand Down
2 changes: 1 addition & 1 deletion src/operations_builder/base_operations_builder.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import { BuilderOptions } from "../types";
import { SmartAPIKGOperationObject, SmartAPISpec } from "../parser/types";
import API from "../parser/index";
import Debug from "debug";
import { Debug } from "@biothings-explorer/utils";
const debug = Debug("bte:smartapi-kg:OperationsBuilder");

export default abstract class BaseOperationsBuilder {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import { BuilderOptions } from "../types";
import fs from "fs";
import { SmartAPIKGOperationObject } from "../parser/types";
import { PredicatesMetadata } from "../types";
import Debug from "debug";
import { Debug } from "@biothings-explorer/utils";
const debug = Debug("bte:smartapi-kg:SyncOperationsBuilderWithReasoner");
import { SmartAPISpec } from "../parser/types";
import { biolink } from "@biothings-explorer/utils";
Expand Down
2 changes: 1 addition & 1 deletion src/parser/index.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import Components from "./component";
import Endpoint from "./endpoint";
import Debug from "debug";
import { Debug } from "@biothings-explorer/utils";
const debug = Debug("bte:smartapi-kg:Parser");
import { SmartAPISpec, ParsedAPIMetadataObject, SmartAPIKGOperationObject, APIClass } from "./types";

Expand Down

0 comments on commit 0322902

Please sign in to comment.