From d3d760a59c90debd3802b5bfb2157601a61fc9f5 Mon Sep 17 00:00:00 2001 From: Dan Kadera Date: Thu, 7 Sep 2023 15:37:23 +0200 Subject: [PATCH] fix bug --- core/cli/package.json | 2 +- core/cli/src/compiler.ts | 2 +- package-lock.json | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/core/cli/package.json b/core/cli/package.json index 7229306..b96bdeb 100644 --- a/core/cli/package.json +++ b/core/cli/package.json @@ -9,7 +9,7 @@ "ioc", "inversion of control" ], - "version": "0.0.37", + "version": "0.0.38", "license": "MIT", "author": { "name": "Dan Kadera", diff --git a/core/cli/src/compiler.ts b/core/cli/src/compiler.ts index 1fb1a5f..c051faa 100644 --- a/core/cli/src/compiler.ts +++ b/core/cli/src/compiler.ts @@ -275,7 +275,7 @@ export class Compiler { writer.write(') => '); if (!decorators.length) { - this.compileCall(writer, join('.', source, path, hook), ['callback', ...params]); + this.compileCall(writer, join('.', source, path, hook), hook === 'onFork' ? ['callback', ...params] : params); writer.write(',\n'); return; } diff --git a/package-lock.json b/package-lock.json index 51b81d5..33c5938 100644 --- a/package-lock.json +++ b/package-lock.json @@ -12,7 +12,7 @@ }, "core/cli": { "name": "dicc-cli", - "version": "0.0.37", + "version": "0.0.38", "license": "MIT", "dependencies": { "@debugr/console": "^3.0.0-rc.10",