@stacksjs/actions 0.58.56 → 0.58.58
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/src/index.js +9 -3
- package/dist/src/release.js +9 -3
- package/dist/src/upgrade.js +1 -1
- package/package.json +1 -1
- package/src/action.ts +11 -3
package/dist/src/index.js
CHANGED
|
@@ -526,12 +526,18 @@ export default <Model> {
|
|
|
526
526
|
class Action3 {
|
|
527
527
|
name;
|
|
528
528
|
description;
|
|
529
|
-
|
|
529
|
+
rate;
|
|
530
|
+
tries;
|
|
531
|
+
backoff;
|
|
532
|
+
enabled;
|
|
530
533
|
handle;
|
|
531
|
-
constructor({ name, description, handle }) {
|
|
534
|
+
constructor({ name, description, handle, rate, tries, backoff, enabled }) {
|
|
532
535
|
this.name = name;
|
|
533
536
|
this.description = description;
|
|
534
|
-
this.
|
|
537
|
+
this.rate = rate;
|
|
538
|
+
this.tries = tries;
|
|
539
|
+
this.backoff = backoff;
|
|
540
|
+
this.enabled = enabled;
|
|
535
541
|
this.handle = handle;
|
|
536
542
|
}
|
|
537
543
|
}
|
package/dist/src/release.js
CHANGED
|
@@ -528,12 +528,18 @@ export default <Model> {
|
|
|
528
528
|
class Action3 {
|
|
529
529
|
name;
|
|
530
530
|
description;
|
|
531
|
-
|
|
531
|
+
rate;
|
|
532
|
+
tries;
|
|
533
|
+
backoff;
|
|
534
|
+
enabled;
|
|
532
535
|
handle;
|
|
533
|
-
constructor({ name, description, handle }) {
|
|
536
|
+
constructor({ name, description, handle, rate, tries, backoff, enabled }) {
|
|
534
537
|
this.name = name;
|
|
535
538
|
this.description = description;
|
|
536
|
-
this.
|
|
539
|
+
this.rate = rate;
|
|
540
|
+
this.tries = tries;
|
|
541
|
+
this.backoff = backoff;
|
|
542
|
+
this.enabled = enabled;
|
|
537
543
|
this.handle = handle;
|
|
538
544
|
}
|
|
539
545
|
}
|
package/dist/src/upgrade.js
CHANGED
|
@@ -6,7 +6,7 @@ import {log} from "@stacksjs/logging";
|
|
|
6
6
|
import {projectPath} from "@stacksjs/path";
|
|
7
7
|
import * as storage from "@stacksjs/storage";
|
|
8
8
|
// package.json
|
|
9
|
-
var version = "0.58.
|
|
9
|
+
var version = "0.58.58";
|
|
10
10
|
|
|
11
11
|
// src/upgrade.ts
|
|
12
12
|
function checkForUncommittedChanges(options2) {
|
package/package.json
CHANGED
package/src/action.ts
CHANGED
|
@@ -1,13 +1,21 @@
|
|
|
1
|
+
import type { JobOptions } from '@stacksjs/types'
|
|
2
|
+
|
|
1
3
|
export class Action {
|
|
2
4
|
name: string
|
|
3
5
|
description: string
|
|
4
|
-
|
|
6
|
+
rate: JobOptions['rate']
|
|
7
|
+
tries: JobOptions['tries']
|
|
8
|
+
backoff: JobOptions['backoff']
|
|
9
|
+
enabled: JobOptions['enabled']
|
|
5
10
|
handle: () => Promise<string>
|
|
6
11
|
|
|
7
|
-
constructor({ name, description, handle }: { name: string, description: string, handle: () => Promise<string
|
|
12
|
+
constructor({ name, description, handle, rate, tries, backoff, enabled }: { name: string, description: string, handle: () => Promise<string>, rate: JobOptions['rate'], tries: JobOptions['tries'], backoff: JobOptions['backoff'], enabled: JobOptions['enabled'] }) {
|
|
8
13
|
this.name = name
|
|
9
14
|
this.description = description
|
|
10
|
-
this.
|
|
15
|
+
this.rate = rate
|
|
16
|
+
this.tries = tries
|
|
17
|
+
this.backoff = backoff
|
|
18
|
+
this.enabled = enabled
|
|
11
19
|
this.handle = handle
|
|
12
20
|
}
|
|
13
21
|
}
|