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 3761d62 commit 9da59fc
Show file tree
Hide file tree
Showing 9 changed files with 10 additions and 9 deletions.
3 changes: 2 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,8 @@
"biolink-model": "workspace:../biolink-model",
"debug": "^4.3.4",
"husky": "^8.0.3",
"lodash": "^4.17.21"
"lodash": "^4.17.21",
"@biothings-explorer/utils": "workspace:*"
},
"husky": {
"hooks": {
Expand Down
2 changes: 1 addition & 1 deletion src/attrs.ts
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ import {
} from './utils';
import { BioLink } from 'biolink-model';

import Debug from 'debug';
import { Debug } from "@biothings-explorer/utils";
const debug = Debug('biomedical-id-resolver:AddAttributes');

function groupCuriesByPrefix(curies: string[]): ObjectWithStringKeyAndArrayValues {
Expand Down
2 changes: 1 addition & 1 deletion src/query/builder/biothings_builder.ts
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ import {
import { ResolvableBioEntity } from '../../bioentity/valid_bioentity';
import { IrresolvableBioEntity } from '../../bioentity/irresolvable_bioentity';
import { QueryBuilder } from './base_builder';
import Debug from 'debug';
import { Debug } from "@biothings-explorer/utils";
const debug = Debug('biomedical-id-resolver:QueryBuilder');

export class BioThingsQueryBuilder extends QueryBuilder {
Expand Down
2 changes: 1 addition & 1 deletion src/query/index.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import { Scheduler } from './scheduler';
import { DBIdsObject, IndividualResolverOutput } from '../common/types';
import Debug from 'debug';
import { Debug } from "@biothings-explorer/utils";
const debug = Debug('biomedical-id-resolver:Query');

const query = async (resolvable: DBIdsObject): Promise<IndividualResolverOutput[]> => {
Expand Down
2 changes: 1 addition & 1 deletion src/query/scheduler.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import _ from 'lodash';
import { BioThingsQueryBuilder } from './builder/biothings_builder';
import { DBIdsObject, Buckets } from '../common/types';
import { MAX_CONCURRENT_QUERIES } from '../config';
import Debug from 'debug';
import { Debug } from "@biothings-explorer/utils";
const debug = Debug('biomedical-id-resolver:Scheduler');

export class Scheduler {
Expand Down
2 changes: 1 addition & 1 deletion src/resolve/base_resolver.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import { IResolver, ResolverOutput, DBIdsObject } from '../common/types';
import { IrresolvableBioEntity } from '../bioentity/irresolvable_bioentity';
import Debug from 'debug';
import { Debug } from "@biothings-explorer/utils";
const debug = Debug('biomedical-id-resolver:resolver');

export default abstract class BaseResolver implements IResolver {
Expand Down
2 changes: 1 addition & 1 deletion src/resolve/biolink_based_resolver.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import BioLinkBasedValidator from '../validate/biolink_based_validator';
import query from '../query/index';
import { ResolverOutput, IndividualResolverOutput, DBIdsObject } from '../common/types';
import BioLinkHandlerInstance from '../biolink';
import Debug from 'debug';
import { Debug } from "@biothings-explorer/utils";
const debug = Debug('biomedical-id-resolver:resolver');

export default class BioLinkBasedResolver extends BaseResolver {
Expand Down
2 changes: 1 addition & 1 deletion src/resolve/default_resolver.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import BaseResolver from './base_resolver';
import { ResolverOutput, IndividualResolverOutput } from '../common/types';
import query from '../query/index';
import DefaultValidator from '../validate/default_validator';
import Debug from 'debug';
import { Debug } from "@biothings-explorer/utils";
const debug = Debug('biomedical-id-resolver:resolver');

export default class DefaultResolver extends BaseResolver {
Expand Down
2 changes: 1 addition & 1 deletion src/sri.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import axios from 'axios';
import axiosRetry from 'axios-retry';
import { CURIE } from './config';
import { SRIResolverOutput, ResolverInput, SRIBioEntity, SRIResponseEntity, SRIResponse } from './common/types';
import Debug from 'debug';
import { Debug } from "@biothings-explorer/utils";
import _ from 'lodash';
import SRINodeNormFailure from './exceptions/sri_resolver_failiure';
const debug = Debug('bte:biomedical-id-resolver:SRI');
Expand Down

0 comments on commit 9da59fc

Please sign in to comment.