pg-boss 7.0.0 → 7.0.1

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.
Files changed (2) hide show
  1. package/package.json +3 -2
  2. package/types.d.ts +3 -1
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "pg-boss",
3
- "version": "7.0.0",
3
+ "version": "7.0.1",
4
4
  "description": "Queueing jobs in Node.js using PostgreSQL like a boss",
5
5
  "main": "./src/index.js",
6
6
  "engines": {
@@ -27,7 +27,8 @@
27
27
  "forcover": "npm run cover && nyc report --reporter=text-lcov | coveralls",
28
28
  "export-schema": "node ./scripts/construct.js",
29
29
  "export-migration": "node ./scripts/migrate.js",
30
- "export-rollback": "node ./scripts/rollback.js"
30
+ "export-rollback": "node ./scripts/rollback.js",
31
+ "tsc": "tsc --noEmit types.d.ts"
31
32
  },
32
33
  "mocha": {
33
34
  "timeout": 10000,
package/types.d.ts CHANGED
@@ -304,7 +304,9 @@ declare class PgBoss {
304
304
 
305
305
  subscribe(event: string, name: string): Promise<void>;
306
306
  unsubscribe(event: string, name: string): Promise<void>;
307
- publish(request: Resolute.Request): Promise<string[]>;
307
+ publish(event: string): Promise<string[]>;
308
+ publish(event: string, data: object): Promise<string[]>;
309
+ publish(event: string, data: object, options: PgBoss.SendOptions): Promise<string[]>;
308
310
 
309
311
  offComplete(name: string): Promise<void>;
310
312
  offComplete(options: PgBoss.OffWorkOptions): Promise<void>;