Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

pg-boss

Package Overview
Dependencies
Maintainers
1
Versions
205
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

pg-boss - npm Package Compare versions

Comparing version 10.0.1 to 10.0.2

2

package.json
{
"name": "pg-boss",
"version": "10.0.1",
"version": "10.0.2",
"description": "Queueing jobs in Postgres from Node.js like a boss",

@@ -5,0 +5,0 @@ "main": "./src/index.js",

@@ -18,2 +18,4 @@ Queueing jobs in Postgres from Node.js like a boss.

await boss.createQueue(queue)
const id = await boss.send(queue, { arg1: 'read me' })

@@ -38,2 +40,3 @@

* Exactly-once job delivery
* Create jobs within your existing database transaction
* Backpressure-compatible polling workers

@@ -40,0 +43,0 @@ * Cron scheduling

import { EventEmitter } from 'events'
declare namespace PgBoss {
type JobStates = {

@@ -110,9 +110,9 @@ created : 'created',

}
type InsertOptions = ConnectionOptions;
type SendOptions = JobOptions & ExpirationOptions & RetentionOptions & RetryOptions & ConnectionOptions;
type QueuePolicy = 'standard' | 'short' | 'singleton' | 'stately'
type Queue = RetryOptions & ExpirationOptions & RetentionOptions & { name: string, policy?: QueuePolicy, deadLetter?: string }

@@ -338,3 +338,3 @@ type QueueResult = Queue & { createdOn: Date, updatedOn: Date }

deleteJob(name: string, ids: string[], options?: PgBoss.ConnectionOptions): Promise<void>;
complete(name: string, id: string, options?: PgBoss.ConnectionOptions): Promise<void>;

@@ -348,4 +348,4 @@ complete(name: string, id: string, data: object, options?: PgBoss.ConnectionOptions): Promise<void>;

getJobById(name: string, id: string, options?: PgBoss.ConnectionOptions & { includeArchive: bool }): Promise<PgBoss.JobWithMetadata | null>;
getJobById<T>(name: string, id: string, options?: PgBoss.ConnectionOptions & { includeArchive: boolean }): Promise<PgBoss.JobWithMetadata<T> | null>;
createQueue(name: string, options?: PgBoss.Queue): Promise<void>;

@@ -352,0 +352,0 @@ updateQueue(name: string, options?: PgBoss.Queue): Promise<void>;

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc