@stacksjs/queue 0.58.48 → 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.48",
4
+ "version": "0.58.50",
5
5
  "description": "The Stacks Queue system.",
6
6
  "author": "Chris Breuer",
7
7
  "license": "MIT",
@@ -42,7 +42,8 @@
42
42
  ],
43
43
  "files": [
44
44
  "README.md",
45
- "dist"
45
+ "dist",
46
+ "src"
46
47
  ],
47
48
  "scripts": {
48
49
  "build": "bun --bun build.ts",
package/src/index.ts ADDED
@@ -0,0 +1,19 @@
1
+ import type { JobOptions } from '@stacksjs/types'
2
+
3
+ export class Job {
4
+ name: JobOptions['name']
5
+ description: JobOptions['description']
6
+ action?: JobOptions['action']
7
+ handle?: JobOptions['handle']
8
+ tries: JobOptions['tries']
9
+ backoff: JobOptions['backoff']
10
+
11
+ constructor({ name, description, handle, tries, backoff, action }: JobOptions) {
12
+ this.name = name
13
+ this.description = description
14
+ this.handle = handle
15
+ this.action = action
16
+ this.tries = tries
17
+ this.backoff = backoff
18
+ }
19
+ }