From c104d15942d6a18b8b209979f347cac2d98a9f9a Mon Sep 17 00:00:00 2001 From: renxia Date: Tue, 18 Jul 2023 10:42:47 +0800 Subject: [PATCH] chore: update deps --- .github/workflows/npm-publish.yml | 2 +- package.json | 16 ++++++++-------- src/lib/worker_pool.ts | 5 ++++- 3 files changed, 13 insertions(+), 10 deletions(-) diff --git a/.github/workflows/npm-publish.yml b/.github/workflows/npm-publish.yml index 930886b..62bef6a 100644 --- a/.github/workflows/npm-publish.yml +++ b/.github/workflows/npm-publish.yml @@ -16,7 +16,7 @@ jobs: - uses: actions/checkout@v3 - uses: pnpm/action-setup@v2.2.1 with: - version: 7 + version: 8 - uses: actions/setup-node@v3 with: node-version: '16.x' diff --git a/package.json b/package.json index a3a8f85..83088a0 100644 --- a/package.json +++ b/package.json @@ -45,23 +45,23 @@ }, "devDependencies": { "@lzwme/fed-lint-helper": "^2.3.2", - "@types/node": "^20.3.2", - "@typescript-eslint/eslint-plugin": "^5.60.1", - "@typescript-eslint/parser": "^5.60.1", - "eslint": "^8.43.0", + "@types/node": "^20.4.2", + "@typescript-eslint/eslint-plugin": "^6.1.0", + "@typescript-eslint/parser": "^6.1.0", + "eslint": "^8.45.0", "eslint-config-prettier": "^8.8.0", - "eslint-plugin-prettier": "^4.2.1", + "eslint-plugin-prettier": "^5.0.0", "husky": "^8.0.3", - "prettier": "^2.8.8", + "prettier": "^3.0.0", "standard-version": "^9.5.0", "typescript": "^5.1.6" }, "dependencies": { - "@lzwme/fe-utils": "^1.5.1", + "@lzwme/fe-utils": "^1.5.2", "commander": "^11.0.0", "console-log-colors": "^0.4.0", "enquirer": "^2.3.6", - "m3u8-parser": "^6.2.0" + "m3u8-parser": "^7.0.0" }, "files": [ "cjs", diff --git a/src/lib/worker_pool.ts b/src/lib/worker_pool.ts index 7b764c0..117082a 100644 --- a/src/lib/worker_pool.ts +++ b/src/lib/worker_pool.ts @@ -35,7 +35,10 @@ export class WorkerPool extends EventEmitter { get freeNum() { return this.freeWorkers.length; } - constructor(private processorFile: string, public numThreads = 0) { + constructor( + private processorFile: string, + public numThreads = 0 + ) { super(); numThreads = +numThreads || cpus().length;