@eagleoutice/flowr 2.0.9 → 2.0.10

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@eagleoutice/flowr",
3
- "version": "2.0.9",
3
+ "version": "2.0.10",
4
4
  "description": "Static Dataflow Analyzer and Program Slicer for the R Programming Language",
5
5
  "types": "dist/src/index.d.ts",
6
6
  "repository": {
@@ -57,11 +57,11 @@ function printArg(arg) {
57
57
  return '[empty]';
58
58
  }
59
59
  else if ((0, graph_1.isNamedArgument)(arg)) {
60
- const deps = arg.controlDependencies ? ', :maybe:' + arg.controlDependencies.map(c => c.id + (c.when ? '+' : '-')).join(',') : '';
60
+ const deps = arg.controlDependencies ? ', :may:' + arg.controlDependencies.map(c => c.id + (c.when ? '+' : '-')).join(',') : '';
61
61
  return `${arg.name} (${arg.nodeId}${deps})`;
62
62
  }
63
63
  else if ((0, graph_1.isPositionalArgument)(arg)) {
64
- const deps = arg.controlDependencies ? ' (:maybe:' + arg.controlDependencies.map(c => c.id + (c.when ? '+' : '-')).join(',') + ')' : '';
64
+ const deps = arg.controlDependencies ? ' (:may:' + arg.controlDependencies.map(c => c.id + (c.when ? '+' : '-')).join(',') + ')' : '';
65
65
  return `${arg.nodeId}${deps}`;
66
66
  }
67
67
  else {
@@ -128,7 +128,7 @@ function vertexToMermaid(info, mermaid, id, idPrefix, mark) {
128
128
  const node = mermaid.rootGraph.idMap?.get(info.id);
129
129
  const lexeme = node?.lexeme ?? (node?.type === "RExpressionList" /* RType.ExpressionList */ ? node?.grouping?.[0]?.lexeme : '') ?? '??';
130
130
  const escapedName = (0, mermaid_1.escapeMarkdown)(node ? `[${node.type}] ${lexeme}` : '??');
131
- const deps = info.controlDependencies ? ', :maybe:' + info.controlDependencies.join(',') : '';
131
+ const deps = info.controlDependencies ? ', :may:' + info.controlDependencies.map(c => c.id + (c.when ? '+' : '-')).join(',') : '';
132
132
  const n = node?.info.fullRange ?? node?.location ?? (node?.type === "RExpressionList" /* RType.ExpressionList */ ? node?.grouping?.[0].location : undefined);
133
133
  mermaid.nodeLines.push(` ${idPrefix}${id}${open}"\`${escapedName}${escapedName.length > 10 ? '\n ' : ' '}(${id}${deps})\n *${formatRange(n)}*${fCall ? displayFunctionArgMapping(info.args) : ''}\`"${close}`);
134
134
  if (mark?.has(id)) {
@@ -16,7 +16,8 @@ const replacements = {
16
16
  '\\': '#92;',
17
17
  '_': '#95;',
18
18
  '{': '#123;',
19
- '}': '#125;'
19
+ '}': '#125;',
20
+ '&': '#38;'
20
21
  };
21
22
  function escapeMarkdown(text) {
22
23
  for (const [key, value] of Object.entries(replacements)) {
package/util/version.js CHANGED
@@ -3,7 +3,7 @@ Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.flowrVersion = void 0;
4
4
  const semver_1 = require("semver");
5
5
  // this is automatically replaced with the current version by release-it
6
- const version = '2.0.9';
6
+ const version = '2.0.10';
7
7
  function flowrVersion() {
8
8
  return new semver_1.SemVer(version);
9
9
  }