pg-boss 10.3.1 → 10.3.3

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "pg-boss",
3
- "version": "10.3.1",
3
+ "version": "10.3.3",
4
4
  "description": "Queueing jobs in Postgres from Node.js like a boss",
5
5
  "main": "./src/index.js",
6
6
  "engines": {
@@ -8,12 +8,12 @@
8
8
  },
9
9
  "dependencies": {
10
10
  "cron-parser": "^4.9.0",
11
- "pg": "^8.16.0",
11
+ "pg": "^8.16.3",
12
12
  "serialize-error": "^8.1.0"
13
13
  },
14
14
  "devDependencies": {
15
- "@types/node": "^20.17.57",
16
- "luxon": "^3.6.1",
15
+ "@types/node": "^20.19.13",
16
+ "luxon": "^3.7.2",
17
17
  "mocha": "^10.8.2",
18
18
  "nyc": "^17.1.0",
19
19
  "standard": "^17.1.2"
package/src/manager.js CHANGED
@@ -521,7 +521,7 @@ class Manager extends EventEmitter {
521
521
  async retry (name, id, options = {}) {
522
522
  Attorney.assertQueueName(name)
523
523
  const db = options.db || this.db
524
- const ids = this.mapCompletionIdArg(id, 'resume')
524
+ const ids = this.mapCompletionIdArg(id, 'retry')
525
525
  const result = await db.executeSql(this.retryJobsCommand, [name, ids])
526
526
  return this.mapCommandResponse(ids, result)
527
527
  }
package/types.d.ts CHANGED
@@ -25,7 +25,7 @@ declare namespace PgBoss {
25
25
  application_name?: string;
26
26
  database?: string;
27
27
  user?: string;
28
- password?: string;
28
+ password?: string | (() => string) | (() => Promise<string>);
29
29
  host?: string;
30
30
  port?: number;
31
31
  schema?: string;
@@ -370,6 +370,8 @@ declare class PgBoss extends EventEmitter {
370
370
  schedule(name: string, cron: string, data?: object, options?: PgBoss.ScheduleOptions): Promise<void>;
371
371
  unschedule(name: string): Promise<void>;
372
372
  getSchedules(): Promise<PgBoss.Schedule[]>;
373
+
374
+ getDb(): PgBoss.Db;
373
375
  }
374
376
 
375
377
  export = PgBoss;