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

@bpmn-io/extract-process-variables

Package Overview
Dependencies
Maintainers
9
Versions
17
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@bpmn-io/extract-process-variables - npm Package Compare versions

Comparing version 0.7.0 to 0.8.0

4

package.json
{
"name": "@bpmn-io/extract-process-variables",
"version": "0.7.0",
"version": "0.8.0",
"description": "A util for bpmn-js to extract Camunda BPM process variables from a BPMN 2.0 diagram.",

@@ -46,3 +46,3 @@ "main": "dist/index.js",

"rollup": "^2.79.1",
"zeebe-bpmn-moddle": "^0.15.0"
"zeebe-bpmn-moddle": "^0.17.0"
},

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

@@ -82,2 +82,12 @@ import { filter, find, isArray, forEach, findIndex } from 'min-dash';

/**
* Get a script from the business object
*
* @param {MoodleElement} element
* @returns {MoodleElement} the script object
*/
function getScript(element) {
return (getElements(element, 'zeebe:Script') || [])[0];
}
// helpers //////////

@@ -511,9 +521,10 @@

var calledDecision = getCalledDecision(element);
var baseElement = getCalledDecision(element) ||
getScript(element);
if (!calledDecision) {
if (!baseElement) {
return;
}
var resultVariable = calledDecision.resultVariable;
var resultVariable = baseElement.resultVariable;

@@ -520,0 +531,0 @@ if (resultVariable) {

@@ -86,2 +86,12 @@ 'use strict';

/**
* Get a script from the business object
*
* @param {MoodleElement} element
* @returns {MoodleElement} the script object
*/
function getScript(element) {
return (getElements(element, 'zeebe:Script') || [])[0];
}
// helpers //////////

@@ -515,9 +525,10 @@

var calledDecision = getCalledDecision(element);
var baseElement = getCalledDecision(element) ||
getScript(element);
if (!calledDecision) {
if (!baseElement) {
return;
}
var resultVariable = calledDecision.resultVariable;
var resultVariable = baseElement.resultVariable;

@@ -524,0 +535,0 @@ if (resultVariable) {

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