Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@activepieces/shared

Package Overview
Dependencies
Maintainers
3
Versions
222
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@activepieces/shared - npm Package Compare versions

Comparing version 0.3.46 to 0.3.47

2

package.json
{
"name": "@activepieces/shared",
"version": "0.3.46",
"version": "0.3.47",
"type": "commonjs",

@@ -5,0 +5,0 @@ "dependencies": {

@@ -46,2 +46,3 @@ import { Static } from "@sinclair/typebox";

export declare const FlowTemplate: import("@sinclair/typebox").TObject<{
id: import("@sinclair/typebox").TString<string>;
name: import("@sinclair/typebox").TString<string>;

@@ -48,0 +49,0 @@ description: import("@sinclair/typebox").TString<string>;

@@ -8,2 +8,3 @@ "use strict";

exports.FlowTemplate = typebox_1.Type.Object({
id: typebox_1.Type.String(),
name: typebox_1.Type.String(),

@@ -10,0 +11,0 @@ description: typebox_1.Type.String(),

@@ -14,6 +14,7 @@ import { FlowOperationRequest } from './flow-operations';

declare function isValid(flowVersion: FlowVersion): boolean;
declare function isAction(type: ActionType | TriggerType): boolean;
declare function isAction(type: ActionType | TriggerType | undefined): boolean;
declare function isTrigger(type: ActionType | TriggerType | undefined): boolean;
declare function getUsedPieces(trigger: Trigger): string[];
declare function getAllSteps(trigger: Trigger): (Action | Trigger)[];
declare function getAllParentSteps(step: Trigger): (Action | Trigger)[];
declare function getAllStepsAtFirstLevel(step: Trigger): (Action | Trigger)[];
declare function getAllChildSteps(action: LoopOnItemsAction | BranchAction): (Action)[];

@@ -28,2 +29,3 @@ declare function getStep(flowVersion: FlowVersion, stepName: string): Action | Trigger | undefined;

isAction: typeof isAction;
isTrigger: typeof isTrigger;
getAllSteps: typeof getAllSteps;

@@ -36,4 +38,4 @@ getUsedPieces: typeof getUsedPieces;

getAllChildSteps: typeof getAllChildSteps;
getAllParentSteps: typeof getAllParentSteps;
getAllStepsAtFirstLevel: typeof getAllStepsAtFirstLevel;
};
export {};

@@ -24,2 +24,5 @@ "use strict";

}
function isTrigger(type) {
return Object.entries(trigger_1.TriggerType).some(([, value]) => value === type);
}
function deleteAction(flowVersion, request) {

@@ -86,3 +89,3 @@ const steps = getAllSteps(flowVersion.trigger);

}
function getAllParentSteps(step) {
function getAllStepsAtFirstLevel(step) {
const steps = [];

@@ -418,2 +421,3 @@ while (step !== undefined && step !== null) {

isAction,
isTrigger,
getAllSteps,

@@ -426,4 +430,4 @@ getUsedPieces,

getAllChildSteps,
getAllParentSteps
getAllStepsAtFirstLevel
};
//# sourceMappingURL=flow-helper.js.map

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