Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

add template to creative debug #117

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading