@rvoh/psychic-workers 0.2.5 → 0.2.7

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -173,7 +173,7 @@ class Background {
173
173
  throw new ActivatingBackgroundWorkersWithoutDefaultWorkerConnection();
174
174
  const workerCount = backgroundOptions.defaultWorkstream?.workerCount ?? 1;
175
175
  for (let i = 0; i < workerCount; i++) {
176
- this._workers.push(new Background.Worker(formattedQueueName, job => this.doWork(job), {
176
+ this._workers.push(new Background.Worker(formattedQueueName, async (job) => await this.doWork(job), {
177
177
  connection: defaultWorkerConnection,
178
178
  concurrency: backgroundOptions.defaultWorkstream?.concurrency || 1,
179
179
  }));
@@ -169,7 +169,7 @@ export class Background {
169
169
  throw new ActivatingBackgroundWorkersWithoutDefaultWorkerConnection();
170
170
  const workerCount = backgroundOptions.defaultWorkstream?.workerCount ?? 1;
171
171
  for (let i = 0; i < workerCount; i++) {
172
- this._workers.push(new Background.Worker(formattedQueueName, job => this.doWork(job), {
172
+ this._workers.push(new Background.Worker(formattedQueueName, async (job) => await this.doWork(job), {
173
173
  connection: defaultWorkerConnection,
174
174
  concurrency: backgroundOptions.defaultWorkstream?.concurrency || 1,
175
175
  }));
package/package.json CHANGED
@@ -2,7 +2,7 @@
2
2
  "type": "module",
3
3
  "name": "@rvoh/psychic-workers",
4
4
  "description": "Background job system for Psychic applications",
5
- "version": "0.2.5",
5
+ "version": "0.2.7",
6
6
  "author": "RVO Health",
7
7
  "repository": {
8
8
  "type": "git",
@@ -23,7 +23,6 @@
23
23
  "dist/**/*"
24
24
  ],
25
25
  "scripts": {
26
- "publish": "yarn npm publish",
27
26
  "psy": "NODE_ENV=${NODE_ENV:-test} yarn psyts",
28
27
  "psyjs": "node ./dist/test-app/src/cli/index.js",
29
28
  "psyts": "node --experimental-specifier-resolution=node --import ./bin/esm.js ./test-app/src/cli/index.ts",
@@ -31,6 +30,8 @@
31
30
  "uspec": "vitest --config ./spec/unit/vite.config.ts",
32
31
  "format": "yarn run prettier . --write",
33
32
  "lint": "yarn run eslint --no-warn-ignored \"src/**/*.ts\" && yarn run prettier . --check",
33
+ "console": "tsx ./src/conf/repl.ts",
34
+ "consolejs": "node ./dist/src/conf/repl.js",
34
35
  "prepack": "yarn build",
35
36
  "dev-worker": "NODE_ENV=development WORKER_COUNT=1 ts-node --transpile-only ./test-app/worker.ts"
36
37
  },
@@ -42,9 +43,9 @@
42
43
  },
43
44
  "devDependencies": {
44
45
  "@eslint/js": "=9.0.0",
45
- "@rvoh/dream": "^0.31.0",
46
+ "@rvoh/dream": "^0.33.0",
46
47
  "@rvoh/dream-spec-helpers": "^0.2.0",
47
- "@rvoh/psychic": "^0.25.0",
48
+ "@rvoh/psychic": "^0.28.0",
48
49
  "@rvoh/psychic-spec-helpers": "^0.3.0",
49
50
  "@socket.io/redis-adapter": "^8.3.0",
50
51
  "@socket.io/redis-emitter": "^5.1.0",
@@ -52,7 +53,7 @@
52
53
  "@types/node": "^22.5.1",
53
54
  "@types/pg": "^8",
54
55
  "@types/supertest": "^6.0.2",
55
- "bullmq": "^5.12.12",
56
+ "bullmq": "^5.49.1",
56
57
  "eslint": "^9.9.1",
57
58
  "express": "^4.21.2",
58
59
  "ioredis": "^5.4.1",
@@ -69,7 +70,7 @@
69
70
  "typedoc": "^0.26.6",
70
71
  "typescript": "^5.8.2",
71
72
  "typescript-eslint": "=7.18.0",
72
- "vitest": "^3.0.9"
73
+ "vitest": "^3.1.1"
73
74
  },
74
75
  "packageManager": "yarn@4.7.0"
75
76
  }