runlater-js 0.6.0 → 0.7.0
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.d.mts +3 -0
- package/dist/index.d.ts +3 -0
- package/dist/index.js +3 -1
- package/dist/index.mjs +3 -1
- package/package.json +1 -1
package/dist/index.d.mts
CHANGED
|
@@ -14,6 +14,8 @@ interface SendOptions {
|
|
|
14
14
|
on_failure_url?: string;
|
|
15
15
|
on_recovery_url?: string;
|
|
16
16
|
script?: string;
|
|
17
|
+
debounce?: string | number;
|
|
18
|
+
debounceKey?: string;
|
|
17
19
|
}
|
|
18
20
|
interface DelayOptions extends SendOptions {
|
|
19
21
|
delay: string | number;
|
|
@@ -41,6 +43,7 @@ interface TaskResponse {
|
|
|
41
43
|
execution_id: string;
|
|
42
44
|
status: string;
|
|
43
45
|
scheduled_for: string;
|
|
46
|
+
debounce_key?: string;
|
|
44
47
|
}
|
|
45
48
|
interface CronResponse {
|
|
46
49
|
id: string;
|
package/dist/index.d.ts
CHANGED
|
@@ -14,6 +14,8 @@ interface SendOptions {
|
|
|
14
14
|
on_failure_url?: string;
|
|
15
15
|
on_recovery_url?: string;
|
|
16
16
|
script?: string;
|
|
17
|
+
debounce?: string | number;
|
|
18
|
+
debounceKey?: string;
|
|
17
19
|
}
|
|
18
20
|
interface DelayOptions extends SendOptions {
|
|
19
21
|
delay: string | number;
|
|
@@ -41,6 +43,7 @@ interface TaskResponse {
|
|
|
41
43
|
execution_id: string;
|
|
42
44
|
status: string;
|
|
43
45
|
scheduled_for: string;
|
|
46
|
+
debounce_key?: string;
|
|
44
47
|
}
|
|
45
48
|
interface CronResponse {
|
|
46
49
|
id: string;
|
package/dist/index.js
CHANGED
|
@@ -211,7 +211,9 @@ var Runlater = class {
|
|
|
211
211
|
retry_attempts: options.retries,
|
|
212
212
|
queue: options.queue,
|
|
213
213
|
callback_url: options.callback,
|
|
214
|
-
script: options.script
|
|
214
|
+
script: options.script,
|
|
215
|
+
debounce: options.debounce != null ? formatDelay(options.debounce) : void 0,
|
|
216
|
+
debounce_key: options.debounceKey
|
|
215
217
|
};
|
|
216
218
|
}
|
|
217
219
|
/** @internal */
|
package/dist/index.mjs
CHANGED
|
@@ -184,7 +184,9 @@ var Runlater = class {
|
|
|
184
184
|
retry_attempts: options.retries,
|
|
185
185
|
queue: options.queue,
|
|
186
186
|
callback_url: options.callback,
|
|
187
|
-
script: options.script
|
|
187
|
+
script: options.script,
|
|
188
|
+
debounce: options.debounce != null ? formatDelay(options.debounce) : void 0,
|
|
189
|
+
debounce_key: options.debounceKey
|
|
188
190
|
};
|
|
189
191
|
}
|
|
190
192
|
/** @internal */
|