Socket
Socket
Sign inDemoInstall

@temporalio/workflow

Package Overview
Dependencies
Maintainers
4
Versions
79
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@temporalio/workflow - npm Package Compare versions

Comparing version 0.8.0 to 0.9.0

7

lib/worker-interface.js

@@ -30,3 +30,6 @@ "use strict";

const OriginalDate = globalThis.Date;
global.Date = function () {
global.Date = function (...args) {
if (args.length > 0) {
return new OriginalDate(...args);
}
return new OriginalDate(internals_1.state.now);

@@ -37,2 +40,4 @@ };

};
global.Date.parse = OriginalDate.parse.bind(OriginalDate);
global.Date.UTC = OriginalDate.UTC.bind(OriginalDate);
global.Date.prototype = OriginalDate.prototype;

@@ -39,0 +44,0 @@ global.setTimeout = function (cb, ms, ...args) {

2

lib/workflow.d.ts

@@ -49,3 +49,2 @@ import { ActivityFunction, ActivityOptions, Workflow } from '@temporalio/common';

* const { httpGet, otherActivity } = createActivityHandle<typeof activities>({
* type: 'remote',
* startToCloseTimeout: '30 minutes',

@@ -64,3 +63,2 @@ * });

* } = createActivityHandle<JavaActivities>({
* type: 'remote',
* taskQueue: 'java-worker-taskQueue',

@@ -67,0 +65,0 @@ * startToCloseTimeout: '5m',

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

taskQueue: workflowInfo().taskQueue,
workflowId: uuid4(),
workflowId: opts.workflowId ?? uuid4(),
workflowIdReusePolicy: coresdk_1.coresdk.common.WorkflowIdReusePolicy.WORKFLOW_ID_REUSE_POLICY_ALLOW_DUPLICATE_FAILED_ONLY,

@@ -298,3 +298,2 @@ cancellationType: interfaces_1.ChildWorkflowCancellationType.WAIT_CANCELLATION_COMPLETED,

* const { httpGet, otherActivity } = createActivityHandle<typeof activities>({
* type: 'remote',
* startToCloseTimeout: '30 minutes',

@@ -313,3 +312,2 @@ * });

* } = createActivityHandle<JavaActivities>({
* type: 'remote',
* taskQueue: 'java-worker-taskQueue',

@@ -414,3 +412,3 @@ * startToCloseTimeout: '5m',

await this.start(...args);
return this.result();
return await this.result();
},

@@ -417,0 +415,0 @@ result() {

{
"name": "@temporalio/workflow",
"version": "0.8.0",
"version": "0.9.0",
"description": "Temporal.io SDK Workflow sub-package",

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

"dependencies": {
"@temporalio/common": "^0.3.0",
"@temporalio/proto": "^0.3.2"
"@temporalio/common": "^0.4.0",
"@temporalio/proto": "^0.3.3"
},

@@ -30,3 +30,3 @@ "bugs": {

},
"gitHead": "23da8507a90049774cc6ddd28a8ec3dfc37d345f"
"gitHead": "a46c7b9ce2e78d9f615bfdb1730af0956a25eb61"
}

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