feathersjs/feathers-hooks-common

View on GitHub
src/hooks/debug.ts

Summary

Maintainability
A
1 hr
Test Coverage

Function debug has 32 lines of code (exceeds 25 allowed). Consider refactoring.
Open

export function debug<H extends HookContext = HookContext>(msg: string, ...fieldNames: string[]) {
  return (context: H) => {
    // display timestamp
    const now = new Date();
    console.log(
Severity: Minor
Found in src/hooks/debug.ts - About 1 hr to fix

    There are no issues that match your filters.

    Category
    Status