Socket
Socket
Sign inDemoInstall

@temporalio/client

Package Overview
Dependencies
Maintainers
8
Versions
79
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@temporalio/client - npm Package Compare versions

Comparing version 1.10.2 to 1.10.3

2

lib/helpers.js

@@ -50,3 +50,3 @@ "use strict";

historySize: raw.historySizeBytes?.toNumber() || undefined,
startTime: (0, time_1.tsToDate)(raw.startTime),
startTime: (0, time_1.requiredTsToDate)(raw.startTime, 'startTime'),
executionTime: (0, time_1.optionalTsToDate)(raw.executionTime),

@@ -53,0 +53,0 @@ closeTime: (0, time_1.optionalTsToDate)(raw.closeTime),

@@ -285,4 +285,3 @@ "use strict";

nextActionTimes: raw.info?.futureActionTimes?.map(time_1.tsToDate) ?? [],
// eslint-disable-next-line @typescript-eslint/no-non-null-assertion
createdAt: (0, time_1.tsToDate)(raw.info.createTime),
createdAt: (0, time_1.requiredTsToDate)(raw.info?.createTime, 'createTime'),
lastUpdatedAt: (0, time_1.optionalTsToDate)(raw.info?.updateTime),

@@ -289,0 +288,0 @@ runningActions: (0, schedule_helpers_1.decodeScheduleRunningActions)(raw.info?.runningWorkflows),

@@ -282,6 +282,4 @@ "use strict";

return {
// eslint-disable-next-line @typescript-eslint/no-non-null-assertion
scheduledAt: (0, time_1.tsToDate)(executionResult.scheduleTime),
// eslint-disable-next-line @typescript-eslint/no-non-null-assertion
takenAt: (0, time_1.tsToDate)(executionResult.actualTime),
scheduledAt: (0, time_1.requiredTsToDate)(executionResult.scheduleTime, 'scheduleTime'),
takenAt: (0, time_1.requiredTsToDate)(executionResult.actualTime, 'actualTime'),
action,

@@ -288,0 +286,0 @@ };

{
"name": "@temporalio/client",
"version": "1.10.2",
"version": "1.10.3",
"description": "Temporal.io SDK Client sub-package",

@@ -17,4 +17,4 @@ "main": "lib/index.js",

"@grpc/grpc-js": "^1.10.6",
"@temporalio/common": "1.10.2",
"@temporalio/proto": "1.10.2",
"@temporalio/common": "1.10.3",
"@temporalio/proto": "1.10.3",
"abort-controller": "^3.0.0",

@@ -43,3 +43,3 @@ "long": "^5.2.3",

],
"gitHead": "a44bdfa780c1247fe7ed82b4b73c7b1577ee94af"
"gitHead": "7832067434443145e1f0ddf07cb37b0b90158bfb"
}

@@ -10,3 +10,3 @@ import { ServiceError as GrpcServiceError } from '@grpc/grpc-js';

import { Replace } from '@temporalio/common/lib/type-helpers';
import { optionalTsToDate, tsToDate } from '@temporalio/common/lib/time';
import { optionalTsToDate, requiredTsToDate } from '@temporalio/common/lib/time';
import { decodeMapFromPayloads } from '@temporalio/common/lib/internal-non-workflow/codec-helpers';

@@ -66,3 +66,3 @@ import { temporal, google } from '@temporalio/proto';

historySize: raw.historySizeBytes?.toNumber() || undefined,
startTime: tsToDate(raw.startTime!),
startTime: requiredTsToDate(raw.startTime, 'startTime'),
executionTime: optionalTsToDate(raw.executionTime),

@@ -69,0 +69,0 @@ closeTime: optionalTsToDate(raw.closeTime),

@@ -11,3 +11,9 @@ import { status as grpcStatus } from '@grpc/grpc-js';

import { temporal } from '@temporalio/proto';
import { optionalDateToTs, optionalTsToDate, optionalTsToMs, tsToDate } from '@temporalio/common/lib/time';
import {
optionalDateToTs,
optionalTsToDate,
optionalTsToMs,
requiredTsToDate,
tsToDate,
} from '@temporalio/common/lib/time';
import { SymbolBasedInstanceOfError } from '@temporalio/common/lib/type-helpers';

@@ -434,4 +440,3 @@ import { CreateScheduleInput, CreateScheduleOutput, ScheduleClientInterceptor } from './interceptors';

nextActionTimes: raw.info?.futureActionTimes?.map(tsToDate) ?? [],
// eslint-disable-next-line @typescript-eslint/no-non-null-assertion
createdAt: tsToDate(raw.info!.createTime!),
createdAt: requiredTsToDate(raw.info?.createTime, 'createTime'),
lastUpdatedAt: optionalTsToDate(raw.info?.updateTime),

@@ -438,0 +443,0 @@ runningActions: decodeScheduleRunningActions(raw.info?.runningWorkflows),

@@ -26,3 +26,3 @@ import Long from 'long'; // eslint-disable-line import/no-named-as-default

optionalTsToMs,
tsToDate,
requiredTsToDate,
} from '@temporalio/common/lib/time';

@@ -409,6 +409,4 @@ import {

return {
// eslint-disable-next-line @typescript-eslint/no-non-null-assertion
scheduledAt: tsToDate(executionResult.scheduleTime!),
// eslint-disable-next-line @typescript-eslint/no-non-null-assertion
takenAt: tsToDate(executionResult.actualTime!),
scheduledAt: requiredTsToDate(executionResult.scheduleTime, 'scheduleTime'),
takenAt: requiredTsToDate(executionResult.actualTime, 'actualTime'),
action,

@@ -415,0 +413,0 @@ };

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc