@stacksjs/queue 0.58.49 → 0.58.50

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/dist/index.js CHANGED
@@ -3,13 +3,15 @@
3
3
  class Job {
4
4
  name;
5
5
  description;
6
+ action;
6
7
  handle;
7
8
  tries;
8
9
  backoff;
9
- constructor({ name, description, handle, tries, backoff }) {
10
+ constructor({ name, description, handle, tries, backoff, action }) {
10
11
  this.name = name;
11
12
  this.description = description;
12
13
  this.handle = handle;
14
+ this.action = action;
13
15
  this.tries = tries;
14
16
  this.backoff = backoff;
15
17
  }
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@stacksjs/queue",
3
3
  "type": "module",
4
- "version": "0.58.49",
4
+ "version": "0.58.50",
5
5
  "description": "The Stacks Queue system.",
6
6
  "author": "Chris Breuer",
7
7
  "license": "MIT",
package/src/index.ts CHANGED
@@ -3,14 +3,16 @@ import type { JobOptions } from '@stacksjs/types'
3
3
  export class Job {
4
4
  name: JobOptions['name']
5
5
  description: JobOptions['description']
6
- handle: JobOptions['handle']
6
+ action?: JobOptions['action']
7
+ handle?: JobOptions['handle']
7
8
  tries: JobOptions['tries']
8
9
  backoff: JobOptions['backoff']
9
10
 
10
- constructor({ name, description, handle, tries, backoff }: JobOptions) {
11
+ constructor({ name, description, handle, tries, backoff, action }: JobOptions) {
11
12
  this.name = name
12
13
  this.description = description
13
14
  this.handle = handle
15
+ this.action = action
14
16
  this.tries = tries
15
17
  this.backoff = backoff
16
18
  }