Skip to content

Commit

Permalink
build(deps): apply updates
Browse files Browse the repository at this point in the history
Signed-off-by: Jérôme Benoit <[email protected]>
  • Loading branch information
Jérôme Benoit committed Sep 24, 2023
1 parent 09efa77 commit 2b59e7f
Show file tree
Hide file tree
Showing 5 changed files with 65 additions and 61 deletions.
12 changes: 6 additions & 6 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -99,10 +99,10 @@
}
},
"dependencies": {
"@mikro-orm/core": "^5.8.2",
"@mikro-orm/mariadb": "^5.8.2",
"@mikro-orm/reflection": "^5.8.2",
"@mikro-orm/sqlite": "^5.8.2",
"@mikro-orm/core": "^5.8.3",
"@mikro-orm/mariadb": "^5.8.3",
"@mikro-orm/reflection": "^5.8.3",
"@mikro-orm/sqlite": "^5.8.3",
"ajv": "^8.12.0",
"ajv-formats": "^2.1.1",
"basic-ftp": "^5.0.3",
Expand All @@ -113,7 +113,7 @@
"logform": "^2.5.1",
"mnemonist": "^0.39.5",
"mongodb": "^6.1.0",
"poolifier": "^2.7.2",
"poolifier": "^2.7.3",
"source-map-support": "^0.5.21",
"tar": "^6.2.0",
"tslib": "^2.6.2",
Expand All @@ -128,7 +128,7 @@
"devDependencies": {
"@commitlint/cli": "^17.7.1",
"@commitlint/config-conventional": "^17.7.0",
"@mikro-orm/cli": "^5.8.2",
"@mikro-orm/cli": "^5.8.3",
"@release-it/bumper": "^5.1.0",
"@rollup/plugin-json": "^6.0.0",
"@rollup/plugin-terser": "^0.4.3",
Expand Down
94 changes: 47 additions & 47 deletions pnpm-lock.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions src/worker/WorkerAbstract.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import type { EventEmitter } from 'node:events';
import { existsSync } from 'node:fs';

import type { PoolEmitter, PoolInfo } from 'poolifier';
import type { PoolInfo } from 'poolifier';

import type { SetInfo, WorkerData, WorkerOptions } from './WorkerTypes';
import { defaultErrorHandler, defaultExitHandler } from './WorkerUtils';
Expand All @@ -12,7 +12,7 @@ export abstract class WorkerAbstract<T extends WorkerData> {
public abstract readonly info: PoolInfo | SetInfo;
public abstract readonly size: number;
public abstract readonly maxElementsPerWorker: number | undefined;
public abstract readonly emitter: EventEmitter | PoolEmitter | undefined;
public abstract readonly emitter: EventEmitter | undefined;

/**
* `WorkerAbstract` constructor.
Expand Down
8 changes: 5 additions & 3 deletions src/worker/WorkerDynamicPool.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
import { DynamicThreadPool, type PoolEmitter, type PoolInfo } from 'poolifier';
import type { EventEmitter } from 'node:events';

import { DynamicThreadPool, type PoolInfo } from 'poolifier';

import { WorkerAbstract } from './WorkerAbstract';
import type { WorkerData, WorkerOptions } from './WorkerTypes';
Expand Down Expand Up @@ -35,8 +37,8 @@ export class WorkerDynamicPool extends WorkerAbstract<WorkerData> {
return undefined;
}

get emitter(): PoolEmitter | undefined {
return this.pool?.emitter;
get emitter(): EventEmitter | undefined {
return this.pool?.emitter as EventEmitter;
}

/** @inheritDoc */
Expand Down
8 changes: 5 additions & 3 deletions src/worker/WorkerFixedPool.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
import { FixedThreadPool, type PoolEmitter, type PoolInfo } from 'poolifier';
import type { EventEmitter } from 'node:events';

import { FixedThreadPool, type PoolInfo } from 'poolifier';

import { WorkerAbstract } from './WorkerAbstract';
import type { WorkerData, WorkerOptions } from './WorkerTypes';
Expand Down Expand Up @@ -34,8 +36,8 @@ export class WorkerFixedPool extends WorkerAbstract<WorkerData> {
return undefined;
}

get emitter(): PoolEmitter | undefined {
return this.pool?.emitter;
get emitter(): EventEmitter | undefined {
return this.pool?.emitter as EventEmitter;
}

/** @inheritDoc */
Expand Down

0 comments on commit 2b59e7f

Please sign in to comment.