New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

@eventual/core

Package Overview
Dependencies
Maintainers
2
Versions
164
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@eventual/core - npm Package Compare versions

Comparing version 0.28.2 to 0.28.3

4

lib/cjs/internal/calls/calls.d.ts

@@ -8,4 +8,4 @@ import { ActivityCall } from "./activity-call.js";

import { RegisterSignalHandlerCall } from "./signal-handler-call.js";
import { WorkflowCall } from "./workflow-call.js";
export type EventualCall = ActivityCall | AwaitTimerCall | ConditionCall | ExpectSignalCall | PublishEventsCall | SendSignalCall | RegisterSignalHandlerCall | WorkflowCall;
import { ChildWorkflowCall } from "./workflow-call.js";
export type EventualCall = ActivityCall | AwaitTimerCall | ConditionCall | ExpectSignalCall | PublishEventsCall | SendSignalCall | RegisterSignalHandlerCall | ChildWorkflowCall;
export declare enum EventualCallKind {

@@ -12,0 +12,0 @@ ActivityCall = 0,

@@ -29,2 +29,2 @@ "use strict";

exports.isEventualCallOfKind = isEventualCallOfKind;
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiY2FsbHMuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi8uLi9zcmMvaW50ZXJuYWwvY2FsbHMvY2FsbHMudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6Ijs7O0FBbUJBLElBQVksZ0JBU1g7QUFURCxXQUFZLGdCQUFnQjtJQUMxQix1RUFBZ0IsQ0FBQTtJQUNoQiwyRUFBa0IsQ0FBQTtJQUNsQix5RUFBaUIsQ0FBQTtJQUNqQiwrRUFBb0IsQ0FBQTtJQUNwQixpRkFBcUIsQ0FBQTtJQUNyQixpR0FBNkIsQ0FBQTtJQUM3QiwyRUFBa0IsQ0FBQTtJQUNsQix1RUFBZ0IsQ0FBQTtBQUNsQixDQUFDLEVBVFcsZ0JBQWdCLEdBQ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FdmVudHVhbENhbGxTeW1ib2wgPSAvKiBAX19QVVJFX18gKi8gU3ltYm9sLmZvcihcImV2ZW50dWFsOkV2ZW50dWFsQ2FsbFwiKTtcblxuZXhwb3J0IGludGVyZmFjZSBFdmVudHVhbENhbGxCYXNlPFxuICBLaW5kIGV4dGVuZHMgRXZlbnR1YWxDYWxsW3R5cGVvZiBFdmVudHVhbENhbGxTeW1ib2xdXG4+IHtcbiAgW0V2ZW50dWFsQ2FsbFN5bWJvbF06IEtpbmQ7XG59XG5cbmV4cG9ydCBmdW5jdGlvbiBjcmVhdGVFdmVudHVhbENhbGw8RSBleHRlbmRzIEV2ZW50dWFsQ2FsbD4oXG4gIGtpbmQ6IEVbdHlwZW9mIEV2ZW50dWFsQ2FsbFN5bWJvbF0sXG4gIGU6IE9taXQ8RSwgdHlwZW9mIEV2ZW50dWFsQ2FsbFN5bWJvbD5cbik6IEUge1xuICAoZSBhcyBFKVtFdmVudHVhbENhbGxTeW1ib2xdID0ga2luZDtcbiAgcmV0dXJuIGUgYXMgRTtcbn1cblxuZXhwb3J0IGZ1bmN0aW9uIGlzRXZlbnR1YWxDYWxsKGE6IGFueSk6IGEgaXMgRXZlbnR1YWxDYWxsIHtcbiAgcmV0dXJuIGEgJiYgdHlwZW9mIGEgPT09IFwib2JqZWN0XCIgJiYgRXZlbnR1YWxDYWxsU3ltYm9sIGluIGE7XG59XG5cbmV4cG9ydCBmdW5jdGlvbiBpc0V2ZW50dWFsQ2FsbE9mS2luZDxFIGV4dGVuZHMgRXZlbnR1YWxDYWxsPihcbiAga2luZDogRVt0eXBlb2YgRXZlbnR1YWxDYWxsU3ltYm9sXSxcbiAgYTogYW55XG4pOiBhIGlzIEUge1xuICByZXR1cm4gaXNFdmVudHVhbENhbGwoYSkgJiYgYVtFdmVudHVhbENhbGxTeW1ib2xdID09PSBraW5kO1xufVxuIl19

@@ -5,7 +5,7 @@ import { ChildExecution } from "../../execution.js";

import { EventualCall, EventualCallBase, EventualCallKind } from "./calls.js";
export declare function isWorkflowCall(a: EventualCall): a is WorkflowCall;
export declare function isChildWorkflowCall(a: EventualCall): a is ChildWorkflowCall;
/**
* An {@link Eventual} representing an awaited call to a {@link Workflow}.
*/
export interface WorkflowCall extends EventualCallBase<EventualCallKind.WorkflowCall> {
export interface ChildWorkflowCall extends EventualCallBase<EventualCallKind.WorkflowCall> {
name: string;

@@ -21,5 +21,5 @@ input?: any;

*/
timeout: Promise<any>;
timeout?: Promise<any>;
}
export declare function createWorkflowCall<T>(name: string, input?: any, opts?: WorkflowExecutionOptions, timeout?: Promise<any>): EventualPromise<T> & ChildExecution;
export declare function createChildWorkflowCall<T>(name: string, input?: any, opts?: WorkflowExecutionOptions, timeout?: Promise<any>): EventualPromise<T> & ChildExecution;
//# sourceMappingURL=workflow-call.d.ts.map
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.createWorkflowCall = exports.isWorkflowCall = void 0;
exports.createChildWorkflowCall = exports.isChildWorkflowCall = void 0;
const eventual_hook_js_1 = require("../eventual-hook.js");

@@ -8,7 +8,7 @@ const signal_js_1 = require("../signal.js");

const send_signal_call_js_1 = require("./send-signal-call.js");
function isWorkflowCall(a) {
function isChildWorkflowCall(a) {
return (0, calls_js_1.isEventualCallOfKind)(calls_js_1.EventualCallKind.WorkflowCall, a);
}
exports.isWorkflowCall = isWorkflowCall;
function createWorkflowCall(name, input, opts, timeout) {
exports.isChildWorkflowCall = isChildWorkflowCall;
function createChildWorkflowCall(name, input, opts, timeout) {
const hook = (0, eventual_hook_js_1.getWorkflowHook)();

@@ -33,3 +33,3 @@ const eventual = hook.registerEventualCall((0, calls_js_1.createEventualCall)(calls_js_1.EventualCallKind.WorkflowCall, {

}
exports.createWorkflowCall = createWorkflowCall;
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoid29ya2Zsb3ctY2FsbC5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uLy4uLy4uL3NyY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bGxLaW5kLldvcmtmbG93Q2FsbCwge1xuICAgICAgaW5wdXQsXG4gICAgICBuYW1lLFxuICAgICAgb3B0cyxcbiAgICAgIHRpbWVvdXQsXG4gICAgfSlcbiAgKSBhcyBFdmVudHVhbFByb21pc2U8VD4gJiBDaGlsZEV4ZWN1dGlvbjtcblxuICAvLyBjcmVhdGUgYSByZWZlcmVuY2UgdG8gdGhlIGNoaWxkIHdvcmtmbG93IHN0YXJ0ZWQgYXQgYSBzZXF1ZW5jZSBpbiB0aGlzIGV4ZWN1dGlvbi5cbiAgLy8gdGhpcyByZWZlcmVuY2Ugd2lsbCBiZSByZXNvbHZlZCBieSB0aGUgcnVudGltZS5cbiAgZXZlbnR1YWwuc2VuZFNpZ25hbCA9IGZ1bmN0aW9uIChzaWduYWwsIHBheWxvYWQ/KSB7XG4gICAgY29uc3Qgc2lnbmFsSWQgPSB0eXBlb2Ygc2lnbmFsID09PSBcInN0cmluZ1wiID8gc2lnbmFsIDogc2lnbmFsLmlkO1xuICAgIHJldHVybiBjcmVhdGVTZW5kU2lnbmFsQ2FsbChcbiAgICAgIHtcbiAgICAgICAgdHlwZTogU2lnbmFsVGFyZ2V0VHlwZS5DaGlsZEV4ZWN1dGlvbixcbiAgICAgICAgc2VxOiBldmVudHVhbFtFdmVudHVhbFByb21pc2VTeW1ib2xdISxcbiAgICAgICAgd29ya2Zsb3dOYW1lOiBuYW1lLFxuICAgICAgfSxcbiAgICAgIHNpZ25hbElkLFxuICAgICAgcGF5bG9hZFxuICAgICkgYXMgdW5rbm93biBhcyBhbnk7XG4gIH07XG5cbiAgcmV0dXJuIGV2ZW50dWFsO1xufVxuIl19
exports.createChildWorkflowCall = createChildWorkflowCall;
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoid29ya2Zsb3ctY2FsbC5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uLy4uLy4uL3NyYy9pbnRlcm5hbC9jYWxscy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2FsbEtpbmQuV29ya2Zsb3dDYWxsLCB7XG4gICAgICBpbnB1dCxcbiAgICAgIG5hbWUsXG4gICAgICBvcHRzLFxuICAgICAgdGltZW91dCxcbiAgICB9KVxuICApIGFzIEV2ZW50dWFsUHJvbWlzZTxUPiAmIENoaWxkRXhlY3V0aW9uO1xuXG4gIC8vIGNyZWF0ZSBhIHJlZmVyZW5jZSB0byB0aGUgY2hpbGQgd29ya2Zsb3cgc3RhcnRlZCBhdCBhIHNlcXVlbmNlIGluIHRoaXMgZXhlY3V0aW9uLlxuICAvLyB0aGlzIHJlZmVyZW5jZSB3aWxsIGJlIHJlc29sdmVkIGJ5IHRoZSBydW50aW1lLlxuICBldmVudHVhbC5zZW5kU2lnbmFsID0gZnVuY3Rpb24gKHNpZ25hbCwgcGF5bG9hZD8pIHtcbiAgICBjb25zdCBzaWduYWxJZCA9IHR5cGVvZiBzaWduYWwgPT09IFwic3RyaW5nXCIgPyBzaWduYWwgOiBzaWduYWwuaWQ7XG4gICAgcmV0dXJuIGNyZWF0ZVNlbmRTaWduYWxDYWxsKFxuICAgICAge1xuICAgICAgICB0eXBlOiBTaWduYWxUYXJnZXRUeXBlLkNoaWxkRXhlY3V0aW9uLFxuICAgICAgICBzZXE6IGV2ZW50dWFsW0V2ZW50dWFsUHJvbWlzZVN5bWJvbF0hLFxuICAgICAgICB3b3JrZmxvd05hbWU6IG5hbWUsXG4gICAgICB9LFxuICAgICAgc2lnbmFsSWQsXG4gICAgICBwYXlsb2FkXG4gICAgKSBhcyB1bmtub3duIGFzIGFueTtcbiAgfTtcblxuICByZXR1cm4gZXZlbnR1YWw7XG59XG4iXX0=

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

const timeout = options?.timeout ?? opts?.timeout;
return (0, workflow_call_js_1.createWorkflowCall)(name, input,
return (0, workflow_call_js_1.createChildWorkflowCall)(name, input,
// if the timeout is a time or a duration, from any source, send the timeout to the child execution

@@ -76,2 +76,2 @@ // to time itself out.

exports.generateSyntheticEvents = generateSy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leHQgdmFsdWVzIHByb3ZpZGVkIHRvIGVhY2ggd29ya2Zsb3cgZXhlY3V0aW9uLlxuICovXG5leHBvcnQgaW50ZXJmYWNlIFdvcmtmbG93Q29udGV4dCB7XG4gIC8qKlxuICAgKiBDb250ZXh0IHZhbHVlcyByZWxhdGVkIHRvIHRoZSBjdXJyZW50IGV4ZWN1dGlvbiBvZiB0aGUgd29ya2Zsb3cuXG4gICAqL1xuICB3b3JrZmxvdzogV29ya2Zsb3dEZWZpbml0aW9uQ29udGV4dDtcbiAgLyoqXG4gICAqIENvbnRleHQgdmFsdWVzIHJlbGF0ZWQgdG8gdGhlIHdvcmtmbG93IGRlZmluaXRpb24uXG4gICAqL1xuICBleGVjdXRpb246IFdvcmtmbG93RXhlY3V0aW9uQ29udGV4dDtcbn1cbiJdfQ==

@@ -8,4 +8,4 @@ import { ActivityCall } from "./activity-call.js";

import { RegisterSignalHandlerCall } from "./signal-handler-call.js";
import { WorkflowCall } from "./workflow-call.js";
export type EventualCall = ActivityCall | AwaitTimerCall | ConditionCall | ExpectSignalCall | PublishEventsCall | SendSignalCall | RegisterSignalHandlerCall | WorkflowCall;
import { ChildWorkflowCall } from "./workflow-call.js";
export type EventualCall = ActivityCall | AwaitTimerCall | ConditionCall | ExpectSignalCall | PublishEventsCall | SendSignalCall | RegisterSignalHandlerCall | ChildWorkflowCall;
export declare enum EventualCallKind {

@@ -12,0 +12,0 @@ ActivityCall = 0,

@@ -23,2 +23,2 @@ export var EventualCallKind;

}
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiY2FsbHMuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi8uLi9zcmMvaW50ZXJuYWwvY2FsbHMvY2FsbHMudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBbUJBLE1BQU0sQ0FBTixJQUFZLGdCQVNYO0FBVEQsV0FBWSxnQkFBZ0I7SUFDMUIsdUVBQWdCL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udHVhbENhbGxTeW1ib2xdID09PSBraW5kO1xufVxuIl19

@@ -5,7 +5,7 @@ import { ChildExecution } from "../../execution.js";

import { EventualCall, EventualCallBase, EventualCallKind } from "./calls.js";
export declare function isWorkflowCall(a: EventualCall): a is WorkflowCall;
export declare function isChildWorkflowCall(a: EventualCall): a is ChildWorkflowCall;
/**
* An {@link Eventual} representing an awaited call to a {@link Workflow}.
*/
export interface WorkflowCall extends EventualCallBase<EventualCallKind.WorkflowCall> {
export interface ChildWorkflowCall extends EventualCallBase<EventualCallKind.WorkflowCall> {
name: string;

@@ -21,5 +21,5 @@ input?: any;

*/
timeout: Promise<any>;
timeout?: Promise<any>;
}
export declare function createWorkflowCall<T>(name: string, input?: any, opts?: WorkflowExecutionOptions, timeout?: Promise<any>): EventualPromise<T> & ChildExecution;
export declare function createChildWorkflowCall<T>(name: string, input?: any, opts?: WorkflowExecutionOptions, timeout?: Promise<any>): EventualPromise<T> & ChildExecution;
//# sourceMappingURL=workflow-call.d.ts.map

@@ -5,6 +5,6 @@ import { EventualPromiseSymbol, getWorkflowHook, } from "../eventual-hook.js";

import { createSendSignalCall } from "./send-signal-call.js";
export function isWorkflowCall(a) {
export function isChildWorkflowCall(a) {
return isEventualCallOfKind(EventualCallKind.WorkflowCall, a);
}
export function createWorkflowCall(name, input, opts, timeout) {
export function createChildWorkflowCall(name, input, opts, timeout) {
const hook = getWorkflowHook();

@@ -29,2 +29,2 @@ const eventual = hook.registerEventualCall(createEventualCall(EventualCallKind.WorkflowCall, {

}
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoid29ya2Zsb3ctY2FsbC5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uLy4uLy4uL3NyYy9pbnRlcm5hbC9jYWxscy93b3JrZmxvdy1jYWxsLnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQUVBLE9BQU8sRUFFTCxxQkFBcUIsRUFDckIsZUF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XG59XG4iXX0=

@@ -1,2 +0,2 @@

import { createWorkflowCall } from "./internal/calls/workflow-call.js";
import { createChildWorkflowCall } from "./internal/calls/workflow-call.js";
import { isOrchestratorWorker } from "./internal/flags.js";

@@ -18,3 +18,3 @@ import { getServiceClient, workflows } from "./internal/global.js";

const timeout = options?.timeout ?? opts?.timeout;
return createWorkflowCall(name, input,
return createChildWorkflowCall(name, input,
// if the timeout is a time or a duration, from any source, send the timeout to the child execution

@@ -71,2 +71,2 @@ // to time itself out.

}
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoid29ya2Zsb3cuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi9zcmMvd29ya2Zsb3cudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBS0EsT0FBTyxFQUFFLGtCQUFrQixFQUFFLE1BQU0sbUNBQW1DLENBQUM7QUFDdkUsT0FBTyxFQUFFLG9CQUFvQixFQUFFLE1BQU0scUJBQXFCLENBQUM7QUFDM0QsT0FBTyxFQUFFLGdCQUFnQixFQUFFLFNBQVMsRUFBRSxNQUFNLHNCQUFzQixDQUFDO0FBQ25FLE9BQU8sRUFBRSxrQkFBa0IsRUFBRSxjQUFjLEVBQUUsTUFBTSx3QkFBd0IsQ0FBQztBQUM1RSxPQUFPLEVBRUwsZ0JBQWdCLEVBQ2hCLGdCQUFnQixFQUdoQixpQkFBaUIsR0FDbEIsTUFBTSwrQkFBK0IsQ0FBQztBQWdJdkMsTUFBTSxVQUFVLFFBQVEsQ0FDdEIsSUFBWSxFQUNaLEdBQUcsSUFLNkM7SUFFaEQsTUFBTSxDQUFDLElBQUksRUFBRSxVQUFVLENBQUMsR0FBRyxJQUFJLENBQUMsTUFBTSxLQUFLLENBQUMsQ0FBQyxDQUFDLENBQUMsQ0FBQyxTQUFTLEVBQUUsSUFBSSxDQUFDLENBQUMsQ0FBQyxDQUFDLENBQUMsQ0FBQyxDQUFDLElBQUksQ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=
{
"name": "@eventual/core",
"version": "0.28.2",
"version": "0.28.3",
"exports": {

@@ -5,0 +5,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

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