@bpmn-io/feel-editor 1.9.0 → 1.9.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.es.js CHANGED
@@ -1027,7 +1027,8 @@ function parseBuiltin(builtin) {
1027
1027
  const functionName = match[1];
1028
1028
  const functionArguments = match[2];
1029
1029
 
1030
- const params = functionArguments.split(', ').map(name => ({ name }));
1030
+ // parameterless function matches as empty string
1031
+ const params = functionArguments ? functionArguments.split(', ').map(name => ({ name })) : [];
1031
1032
 
1032
1033
  return {
1033
1034
  name: functionName,
package/dist/index.js CHANGED
@@ -1029,7 +1029,8 @@ function parseBuiltin(builtin) {
1029
1029
  const functionName = match[1];
1030
1030
  const functionArguments = match[2];
1031
1031
 
1032
- const params = functionArguments.split(', ').map(name => ({ name }));
1032
+ // parameterless function matches as empty string
1033
+ const params = functionArguments ? functionArguments.split(', ').map(name => ({ name })) : [];
1033
1034
 
1034
1035
  return {
1035
1036
  name: functionName,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@bpmn-io/feel-editor",
3
- "version": "1.9.0",
3
+ "version": "1.9.1",
4
4
  "description": "Editor for FEEL expressions.",
5
5
  "files": [
6
6
  "dist"