From e01eb6a5c0b74a3c13a6e3651ed6ea10f84e6c36 Mon Sep 17 00:00:00 2001 From: Ray Foss Date: Fri, 16 Jun 2023 18:02:50 -0500 Subject: [PATCH] docs: Update migrating.md debugging (#3220) --- docs/guides/migrating.md | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/docs/guides/migrating.md b/docs/guides/migrating.md index 8cfd803d93..80e88d672f 100644 --- a/docs/guides/migrating.md +++ b/docs/guides/migrating.md @@ -240,17 +240,17 @@ The automatic environment variable substitution in `@feathersjs/configuration` w The `debug` module has been removed as a direct dependency. This reduces the the client bundle size and allows to support other platforms (like Deno). The original `debug` functionality can now be initialized as follows: -```js -const feathers = require('@feathersjs/feathers') -const debug = require('debug') +```ts +import { feathers } from '@feathersjs/feathers' +import debug from 'debug' feathers.setDebug(debug) ``` It is also possible to set a custom logger like this: -```js -const feathers = require('@feathersjs/feathers') +```ts +import { feathers } from '@feathersjs/feathers' const customDebug = (name) =>