@defer.run/client
Advanced tools
Comparing version 0.2.1 to 0.2.2-alpha-20230102164124-00aa926
@@ -97,3 +97,3 @@ "use strict"; | ||
let error = new Error("Defer execution failed"); | ||
if (result.result.message) { | ||
if (result.result?.message) { | ||
error = new Error(result.result.message); | ||
@@ -100,0 +100,0 @@ error.stack = result.result.stack; |
@@ -89,3 +89,3 @@ /* eslint-disable @typescript-eslint/no-explicit-any */ | ||
let error = new Error("Defer execution failed"); | ||
if (result.result.message) { | ||
if (result.result?.message) { | ||
error = new Error(result.result.message); | ||
@@ -92,0 +92,0 @@ error.stack = result.result.stack; |
{ | ||
"name": "@defer.run/client", | ||
"version": "0.2.1", | ||
"version": "0.2.2-alpha-20230102164124-00aa926", | ||
"description": "cua JavaScript client", | ||
@@ -5,0 +5,0 @@ "dependencies": { |
@@ -13,4 +13,4 @@ import type { DeferConfiguredFetcher } from "./fetcher.js"; | ||
state: "running" | "created" | "failed" | "succeed"; | ||
result: any; | ||
result?: any; | ||
} | ||
export declare function poolForExecutionResult<R>(fnName: string, runId: string, fetcher: DeferConfiguredFetcher, debug?: boolean): Promise<R>; |
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
25375