pg-boss 10.0.0-beta18 → 10.0.0-beta19

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.0.0-beta18",
3
+ "version": "10.0.0-beta19",
4
4
  "description": "Queueing jobs in Postgres from Node.js like a boss",
5
5
  "main": "./src/index.js",
6
6
  "engines": {
package/src/manager.js CHANGED
@@ -69,7 +69,7 @@ class Manager extends EventEmitter {
69
69
  this.complete,
70
70
  this.cancel,
71
71
  this.resume,
72
- this.delete,
72
+ this.deleteJob,
73
73
  this.fail,
74
74
  this.fetch,
75
75
  this.work,
@@ -498,10 +498,10 @@ class Manager extends EventEmitter {
498
498
  return this.mapCommandResponse(ids, result)
499
499
  }
500
500
 
501
- async delete (name, id, options = {}) {
501
+ async deleteJob (name, id, options = {}) {
502
502
  Attorney.assertQueueName(name)
503
503
  const db = options.db || this.db
504
- const ids = this.mapCompletionIdArg(id, 'delete')
504
+ const ids = this.mapCompletionIdArg(id, 'deleteJob')
505
505
  const result = await db.executeSql(this.deleteJobsCommand, [name, ids])
506
506
  return this.mapCommandResponse(ids, result)
507
507
  }
package/types.d.ts CHANGED
@@ -332,8 +332,8 @@ declare class PgBoss extends EventEmitter {
332
332
  resume(name: string, id: string, options?: PgBoss.ConnectionOptions): Promise<void>;
333
333
  resume(name: string, ids: string[], options?: PgBoss.ConnectionOptions): Promise<void>;
334
334
 
335
- delete(name: string, id: string, options?: PgBoss.ConnectionOptions): Promise<void>;
336
- delete(name: string, ids: string[], options?: PgBoss.ConnectionOptions): Promise<void>;
335
+ deleteJob(name: string, id: string, options?: PgBoss.ConnectionOptions): Promise<void>;
336
+ deleteJob(name: string, ids: string[], options?: PgBoss.ConnectionOptions): Promise<void>;
337
337
 
338
338
  complete(name: string, id: string, options?: PgBoss.ConnectionOptions): Promise<void>;
339
339
  complete(name: string, id: string, data: object, options?: PgBoss.ConnectionOptions): Promise<void>;