@defer/client
Advanced tools
Comparing version 2.1.1-alpha-20240220092822-d2e1ec72e0543931d35ecd6ccfc5e1a3ea3756e0 to 2.1.1-alpha-20240220131829-dc38d609b5bcbea33762f52e83cabaf8c7d5cb30
@@ -361,3 +361,3 @@ "use strict"; | ||
for (const executionId of executionIds) { | ||
const execution = (await executionsStore.get(executionId)); | ||
const execution = await executionsStore.get(executionId); | ||
if (isExecutionMatchFilter(filters, execution)) | ||
@@ -373,3 +373,3 @@ data.set(executionId, buildExecution(execution)); | ||
for (const executionId of executionIds) { | ||
const execution = (await executionsStore.get(executionId)); | ||
const execution = await executionsStore.get(executionId); | ||
if ((execution.id === id || execution.retryOf === id) && | ||
@@ -376,0 +376,0 @@ isExecutionMatchFilter(filters, execution)) |
"use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
exports.default = "2.1.1-alpha-20240220092822-d2e1ec72e0543931d35ecd6ccfc5e1a3ea3756e0"; | ||
exports.default = "2.1.1-alpha-20240220131829-dc38d609b5bcbea33762f52e83cabaf8c7d5cb30"; |
@@ -348,3 +348,3 @@ // Copyright (c) 2023 Defer SAS <hello@defer.run>. | ||
for (const executionId of executionIds) { | ||
const execution = (await executionsStore.get(executionId)); | ||
const execution = await executionsStore.get(executionId); | ||
if (isExecutionMatchFilter(filters, execution)) | ||
@@ -359,3 +359,3 @@ data.set(executionId, buildExecution(execution)); | ||
for (const executionId of executionIds) { | ||
const execution = (await executionsStore.get(executionId)); | ||
const execution = await executionsStore.get(executionId); | ||
if ((execution.id === id || execution.retryOf === id) && | ||
@@ -362,0 +362,0 @@ isExecutionMatchFilter(filters, execution)) |
@@ -1,1 +0,1 @@ | ||
export default "2.1.1-alpha-20240220092822-d2e1ec72e0543931d35ecd6ccfc5e1a3ea3756e0"; | ||
export default "2.1.1-alpha-20240220131829-dc38d609b5bcbea33762f52e83cabaf8c7d5cb30"; |
{ | ||
"name": "@defer/client", | ||
"version": "2.1.1-alpha-20240220092822-d2e1ec72e0543931d35ecd6ccfc5e1a3ea3756e0", | ||
"version": "2.1.1-alpha-20240220131829-dc38d609b5bcbea33762f52e83cabaf8c7d5cb30", | ||
"description": "Zero infrastructure NodeJS background jobs", | ||
@@ -5,0 +5,0 @@ "dependencies": { |
@@ -29,3 +29,3 @@ import { Backend, CancelExecutionResult, EnqueueResult, ExecutionFilters, GetExecutionResult, ListExecutionAttemptsResult, ListExecutionsResult, PageRequest, ReRunExecutionResult, RescheduleExecutionResult } from "./backend.js"; | ||
} | ||
export type DeferableFunction = (...args: any) => Promise<any>; | ||
export type DeferableFunction = (...args: any[]) => Promise<any>; | ||
export interface ExecutionOptions { | ||
@@ -32,0 +32,0 @@ delay?: Duration | Date; |
@@ -1,2 +0,2 @@ | ||
declare const _default: "2.1.1-alpha-20240220092822-d2e1ec72e0543931d35ecd6ccfc5e1a3ea3756e0"; | ||
declare const _default: "2.1.1-alpha-20240220131829-dc38d609b5bcbea33762f52e83cabaf8c7d5cb30"; | ||
export default _default; |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
151698