pg-boss 12.21.0 → 12.21.2

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.
package/dist/db.js CHANGED
@@ -10,7 +10,7 @@ class Db extends EventEmitter {
10
10
  constructor(config) {
11
11
  super();
12
12
  config.application_name = config.application_name || 'pgboss';
13
- config.connectionTimeoutMillis = config.connectionTimeoutMillis || 10000;
13
+ config.connectionTimeoutMillis ??= 10000;
14
14
  // config.maxUses = config.maxUses || 1000
15
15
  this.config = config;
16
16
  this._pgbdb = true;
package/dist/index.js CHANGED
@@ -265,7 +265,7 @@ export class PgBoss extends EventEmitter {
265
265
  return this.#manager.deleteQueue(name);
266
266
  }
267
267
  getQueues(names) {
268
- return this.#manager.getQueues();
268
+ return this.#manager.getQueues(names);
269
269
  }
270
270
  getQueue(name) {
271
271
  return this.#manager.getQueue(name);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "pg-boss",
3
- "version": "12.21.0",
3
+ "version": "12.21.2",
4
4
  "description": "Queueing jobs in Postgres from Node.js like a boss",
5
5
  "type": "module",
6
6
  "main": "./dist/index.js",