@temporalio/client
Advanced tools
Comparing version 1.4.0 to 1.4.1
@@ -207,10 +207,4 @@ "use strict"; | ||
} | ||
if (!res.history) { | ||
throw new Error('No history returned by service'); | ||
} | ||
const { events } = res.history; | ||
if (!events) { | ||
throw new Error('No events in history returned by service'); | ||
} | ||
if (events.length === 0) { | ||
const events = res.history?.events; | ||
if (events == null || events.length === 0) { | ||
req.nextPageToken = res.nextPageToken; | ||
@@ -217,0 +211,0 @@ continue; |
{ | ||
"name": "@temporalio/client", | ||
"version": "1.4.0", | ||
"version": "1.4.1", | ||
"description": "Temporal.io SDK Client sub-package", | ||
@@ -17,4 +17,4 @@ "main": "lib/index.js", | ||
"@grpc/grpc-js": "^1.6.7", | ||
"@temporalio/common": "^1.4.0", | ||
"@temporalio/proto": "^1.4.0", | ||
"@temporalio/common": "^1.4.1", | ||
"@temporalio/proto": "^1.4.1", | ||
"ms": "^2.1.3", | ||
@@ -37,3 +37,3 @@ "uuid": "^8.3.2" | ||
], | ||
"gitHead": "4b757ebbc052f327cc37e5693f46c8127c156b0c" | ||
"gitHead": "f745212e0dcb23896e37d5026978bc96008b1fdd" | ||
} |
@@ -505,10 +505,5 @@ import { status as grpcStatus } from '@grpc/grpc-js'; | ||
} | ||
if (!res.history) { | ||
throw new Error('No history returned by service'); | ||
} | ||
const { events } = res.history; | ||
if (!events) { | ||
throw new Error('No events in history returned by service'); | ||
} | ||
if (events.length === 0) { | ||
const events = res.history?.events; | ||
if (events == null || events.length === 0) { | ||
req.nextPageToken = res.nextPageToken; | ||
@@ -515,0 +510,0 @@ continue; |
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
234588
4834
Updated@temporalio/common@^1.4.1
Updated@temporalio/proto@^1.4.1