@defer.run/client
Advanced tools
Comparing version 1.0.0-alpha-20230224195307-84f03b7 to 1.0.0-alpha-20230224200026-b1884e4
@@ -163,3 +163,4 @@ "use strict"; | ||
console.log(`[defer.run][${fn.name}] defer ignore, no token found.`); | ||
return fn(...functionArguments); | ||
await fn(...functionArguments); | ||
return { id: FakeID }; | ||
}; | ||
@@ -166,0 +167,0 @@ exports.delay = delay; |
@@ -155,3 +155,4 @@ /* eslint-disable @typescript-eslint/no-explicit-any */ | ||
console.log(`[defer.run][${fn.name}] defer ignore, no token found.`); | ||
return fn(...functionArguments); | ||
await fn(...functionArguments); | ||
return { id: FakeID }; | ||
}; | ||
@@ -158,0 +159,0 @@ // EXAMPLES: |
{ | ||
"name": "@defer.run/client", | ||
"version": "1.0.0-alpha-20230224195307-84f03b7", | ||
"version": "1.0.0-alpha-20230224200026-b1884e4", | ||
"description": "Zero infrastructure NodeJS background jobs", | ||
@@ -5,0 +5,0 @@ "dependencies": { |
@@ -44,3 +44,3 @@ import { Units } from "parse-duration"; | ||
interface DeferDelay { | ||
<F extends (...args: any | undefined) => Promise<any>>(deferFn: DeferRetFn<F>, delay: DelayString | Date): (...args: Parameters<F>) => ReturnType<F> | Promise<EnqueueExecutionResponse>; | ||
<F extends (...args: any | undefined) => Promise<any>>(deferFn: DeferRetFn<F>, delay: DelayString | Date): (...args: Parameters<F>) => Promise<EnqueueExecutionResponse>; | ||
} | ||
@@ -47,0 +47,0 @@ /** |
Sorry, the diff of this file is not supported yet
36132
821