diff --git a/package.json b/package.json index 4ca6e58e1a..fcefa9bbde 100644 --- a/package.json +++ b/package.json @@ -207,7 +207,6 @@ "tailwindcss-animate": "^1.0.7", "tesseract.js": "4.0.6", "three": "^0.154.0", - "ts-node": "10.9.1", "tslib": "^2.3.0", "twitter-api-v2": "1.14.3", "typechat": "^0.0.10", diff --git a/packages/core/shared/src/nodes/io/Output.ts b/packages/core/shared/src/nodes/io/Output.ts index 71bed00b81..29ac030adb 100644 --- a/packages/core/shared/src/nodes/io/Output.ts +++ b/packages/core/shared/src/nodes/io/Output.ts @@ -1,6 +1,5 @@ // DOCUMENTED import Rete from '@magickml/rete' -import { getLogger } from '@magickml/core' import { v4 as uuidv4 } from 'uuid' import { DropdownControl } from '../../dataControls/DropdownControl' @@ -28,12 +27,12 @@ const defaultOutputTypes = [ }, ] -const logger = getLogger(); /** * Output component */ export class Output extends MagickComponent { + /** * Constructor for Output component */ @@ -52,7 +51,6 @@ export class Output extends MagickComponent { ) this.common = true - this.module = { nodeType: 'output', socket: anySocket, @@ -165,9 +163,9 @@ export class Output extends MagickComponent { const t = agent.outputTypes.find(t => t.name === outputType) // Find outputType in outputTypes where name is outputType if (!t) { - logger.error({ outputType, finalType: t }, 'Output type is not defined') + this.logger.error({ outputType, finalType: t }, 'Output type is not defined') } else if (!t.handler) { - logger.error({ outputType, finalType: t }, 'Output type is not defined') + this.logger.error({ outputType, finalType: t }, 'Output type is not defined') } else { t.handler({ output,