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
7
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.4.3 to 0.4.4

4

CHANGELOG.md

@@ -9,2 +9,6 @@ # Changelog

## 0.4.4
* `DEPS`: update `camunda-bpmn-moddle` peer dependency ([`7c5d8e42`](https://github.com/bpmn-io/extract-process-variables/commit/7c5d8e4220764b1a7312b76b5128bfe3442387fc2))
## 0.4.3

@@ -11,0 +15,0 @@

15

dist/index.esm.js

@@ -60,3 +60,3 @@ import { filter, find, isArray, forEach, findIndex } from 'min-dash';

function getFormData(element) {
return (getElements(element, 'camunda:FormData') || [])[0];
return getElements(element, 'camunda:FormData')[0];
}

@@ -72,3 +72,3 @@

function getOutMappings(element) {
return getElements(element, 'camunda:Out') || [];
return getElements(element, 'camunda:Out');
}

@@ -80,3 +80,3 @@

function getElements(element, type, property) {
var elements = getExtensionElements(element, type) || [];
var elements = getExtensionElements(element, type);

@@ -93,2 +93,3 @@ return !property ? elements : (elements[0] || {})[property] || [];

function getExtensionElements(element, type) {
var elements = [];
var extensionElements = element.get('extensionElements');

@@ -100,11 +101,9 @@

if (typeof extensionValues !== 'undefined') {
var elements = filter(extensionValues, function(value) {
elements = filter(extensionValues, function(value) {
return is(value, type);
});
if (elements.length) {
return elements;
}
}
}
return elements;
}

@@ -111,0 +110,0 @@

@@ -64,3 +64,3 @@ 'use strict';

function getFormData(element) {
return (getElements(element, 'camunda:FormData') || [])[0];
return getElements(element, 'camunda:FormData')[0];
}

@@ -76,3 +76,3 @@

function getOutMappings(element) {
return getElements(element, 'camunda:Out') || [];
return getElements(element, 'camunda:Out');
}

@@ -84,3 +84,3 @@

function getElements(element, type, property) {
var elements = getExtensionElements(element, type) || [];
var elements = getExtensionElements(element, type);

@@ -97,2 +97,3 @@ return !property ? elements : (elements[0] || {})[property] || [];

function getExtensionElements(element, type) {
var elements = [];
var extensionElements = element.get('extensionElements');

@@ -104,11 +105,9 @@

if (typeof extensionValues !== 'undefined') {
var elements = minDash.filter(extensionValues, function(value) {
elements = minDash.filter(extensionValues, function(value) {
return is(value, type);
});
if (elements.length) {
return elements;
}
}
}
return elements;
}

@@ -115,0 +114,0 @@

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

@@ -47,4 +47,4 @@ "main": "dist/index.js",

"peerDependencies": {
"camunda-bpmn-moddle": "^4.x || ^5.x"
"camunda-bpmn-moddle": "^4.x || ^5.x || ^6.x"
}
}
# extract-process-variables
[![Build Status](https://img.shields.io/github/workflow/status/bpmn-io/extract-process-variables/CI)](https://github.com/bpmn-io/extract-process-variables/actions?query=workflow%3ACI)
[![CI](https://github.com/bpmn-io/extract-process-variables/actions/workflows/CI.yml/badge.svg)](https://github.com/bpmn-io/extract-process-variables/actions/workflows/CI.yml)

@@ -71,3 +71,3 @@ An util for [bpmn-js](https://github.com/bpmn-io/bpmn-js) to extract Camunda BPM [process variables](https://docs.camunda.org/manual/latest/user-guide/process-engine/variables/) from a BPMN 2.0 diagram.

We are currently [extracting process variables](https://github.com/bpmn-io/extract-process-variables/tree/master/src/extractors) from the following diagram properties
We are currently [extracting process variables](https://github.com/bpmn-io/extract-process-variables/tree/main/src/extractors) from the following diagram properties
* `camunda:formField`

@@ -74,0 +74,0 @@ * `camunda:outputParameter`

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