pg-boss 10.3.2 → 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 +4 -4
- package/types.d.ts +3 -1
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "pg-boss",
|
|
3
|
-
"version": "10.3.
|
|
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.
|
|
11
|
+
"pg": "^8.16.3",
|
|
12
12
|
"serialize-error": "^8.1.0"
|
|
13
13
|
},
|
|
14
14
|
"devDependencies": {
|
|
15
|
-
"@types/node": "^20.
|
|
16
|
-
"luxon": "^3.
|
|
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/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;
|