Socket
Socket
Sign inDemoInstall

@prismatic-io/spectral

Package Overview
Dependencies
Maintainers
3
Versions
173
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@prismatic-io/spectral - npm Package Compare versions

Comparing version 5.0.0-rc.3 to 5.0.0-rc.4

6

dist/testing.js

@@ -31,2 +31,4 @@ "use strict";

const loggerMock = () => ({
metric: console.log,
trace: jest_mock_1.spyOn(console, "trace"),
debug: jest_mock_1.spyOn(console, "debug"),

@@ -47,3 +49,3 @@ info: jest_mock_1.spyOn(console, "info"),

const action = (actionBase.perform ? actionBase : Object.values(actionBase)[0]);
const realizedContext = Object.assign({ logger: exports.loggerMock(), instanceState: {}, stepId: "mockStepId", executionId: "mockExecutionId" }, context);
const realizedContext = Object.assign({ logger: exports.loggerMock(), instanceState: {}, executionState: {}, stepId: "mockStepId", executionId: "mockExecutionId" }, context);
const result = yield action.perform(realizedContext, params);

@@ -93,3 +95,3 @@ return {

const trigger = (triggerBase.perform ? triggerBase : Object.values(triggerBase)[0]);
const realizedContext = Object.assign({ logger: exports.loggerMock(), instanceState: {}, stepId: "mockStepId", executionId: "mockExecutionId" }, context);
const realizedContext = Object.assign({ logger: exports.loggerMock(), instanceState: {}, executionState: {}, stepId: "mockStepId", executionId: "mockExecutionId" }, context);
const realizedPayload = Object.assign(Object.assign({}, exports.defaultTriggerPayload()), payload);

@@ -96,0 +98,0 @@ const realizedParams = params || {};

@@ -15,2 +15,4 @@ import { ActionPerformReturn, ActionDisplayDefinition, ActionPerformFunction, Inputs } from ".";

terminateExecution?: boolean;
/** Specifies whether an Action will break out of a loop. */
breakLoop?: boolean;
/** Determines whether an Action will allow Conditional Branching.*/

@@ -17,0 +19,0 @@ allowsBranching?: AllowsBranching;

@@ -15,2 +15,4 @@ /**

export interface ActionLogger {
metric: ActionLoggerFunction;
trace: ActionLoggerFunction;
debug: ActionLoggerFunction;

@@ -17,0 +19,0 @@ info: ActionLoggerFunction;

@@ -10,2 +10,4 @@ import { Inputs, ActionPerformReturn, ActionInputParameters, ActionLogger } from ".";

instanceState: Record<string, unknown>;
/** A key/value store that may be used to store small amounts of data for use later during the execution */
executionState: Record<string, unknown>;
/** A unique id that corresponds to the step on the Integration */

@@ -12,0 +14,0 @@ stepId: string;

@@ -10,3 +10,5 @@ /** Used to represent a binary or serialized data return as content type must be specified */

/** An optional object, the keys and values of which will be persisted in the instanceState and available for subsequent actions and executions */
state?: Record<string, unknown>;
instanceState?: Record<string, unknown>;
/** An optional object, the keys and values of which will be persisted in the executionState and available for the duration of the execution */
executionState?: Record<string, unknown>;
}

@@ -13,0 +15,0 @@ /** Used to represent a branching return of conventional data and does not require content type to be specified */

@@ -48,2 +48,4 @@ /**

terminateExecution?: boolean;
/** Specifies whether an Action will break out of a loop. */
breakLoop?: boolean;
/** Determines whether an Action will allow Conditional Branching. */

@@ -99,3 +101,5 @@ allowsBranching?: boolean;

/** An optional object, the keys and values of which will be persisted in the instanceState and available for subsequent actions and executions */
state?: Record<string, unknown>;
instanceState?: Record<string, unknown>;
/** An optional object, the keys and values of which will be persisted in the executionState and available for the duration of the execution */
executionState?: Record<string, unknown>;
}

@@ -111,3 +115,5 @@ /** Used to represent a binary or serialized data return as content type must be specified */

/** An optional object, the keys and values of which will be persisted in the instanceState and available for subsequent actions and executions */
state?: Record<string, unknown>;
instanceState?: Record<string, unknown>;
/** An optional object, the keys and values of which will be persisted in the executionState and available for the duration of the execution */
executionState?: Record<string, unknown>;
}

@@ -114,0 +120,0 @@ /** Used to represent a branching return of conventional data and does not require content type to be specified */

@@ -22,2 +22,4 @@ import { TriggerResult, ActionDisplayDefinition, TriggerPerformFunction, Inputs } from ".";

terminateExecution?: boolean;
/** Specifies whether an Action will break out of a loop. */
breakLoop?: boolean;
/** Determines whether this Trigger allows Conditional Branching. */

@@ -24,0 +26,0 @@ allowsBranching?: AllowsBranching;

@@ -10,3 +10,5 @@ import { TriggerPayload } from "./TriggerPayload";

/** An optional object, the keys and values of which will be persisted in the instanceState and available for subsequent actions and executions */
state?: Record<string, unknown>;
instanceState?: Record<string, unknown>;
/** An optional object, the keys and values of which will be persisted in the executionState and available for the duration of the execution */
executionState?: Record<string, unknown>;
}

@@ -13,0 +15,0 @@ /** Represents the result of a Trigger action that uses branching. */

{
"name": "@prismatic-io/spectral",
"version": "5.0.0-rc.3",
"version": "5.0.0-rc.4",
"description": "Utility library for building Prismatic components",

@@ -5,0 +5,0 @@ "keywords": [

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