@temporalio/workflow
Advanced tools
Comparing version 0.8.0 to 0.9.0
@@ -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) { |
@@ -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
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
176506
3079
- Removed@temporalio/common@0.3.0(transitive)
Updated@temporalio/common@^0.4.0
Updated@temporalio/proto@^0.3.3