@eagleoutice/flowr 2.2.4 → 2.2.6
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/README.md +9 -9
- package/cli/repl/commands/repl-cfg.js +4 -3
- package/cli/repl/commands/repl-dataflow.js +4 -3
- package/cli/repl/commands/repl-normalize.js +4 -3
- package/cli/repl/core.d.ts +1 -1
- package/cli/repl/core.js +23 -13
- package/config.d.ts +2 -2
- package/config.js +7 -1
- package/dataflow/environments/resolve-by-name.d.ts +24 -2
- package/dataflow/environments/resolve-by-name.js +85 -4
- package/documentation/print-query-wiki.js +6 -4
- package/documentation/print-readme.js +6 -6
- package/package.json +1 -1
- package/queries/catalog/call-context-query/call-context-query-executor.js +20 -6
- package/queries/catalog/call-context-query/call-context-query-format.d.ts +12 -6
- package/queries/catalog/call-context-query/call-context-query-format.js +8 -6
- package/queries/catalog/dependencies-query/dependencies-query-executor.js +157 -53
- package/queries/catalog/dependencies-query/dependencies-query-format.d.ts +16 -1
- package/queries/catalog/dependencies-query/dependencies-query-format.js +121 -112
- package/queries/catalog/resolve-value-query/resolve-value-query-executor.d.ts +1 -1
- package/queries/catalog/resolve-value-query/resolve-value-query-executor.js +3 -4
- package/queries/query-print.js +7 -4
- package/util/version.js +1 -1
package/queries/query-print.js
CHANGED
|
@@ -8,15 +8,18 @@ const query_1 = require("./query");
|
|
|
8
8
|
const html_hover_over_1 = require("../util/html-hover-over");
|
|
9
9
|
const time_1 = require("../util/time");
|
|
10
10
|
const built_in_1 = require("../dataflow/environments/built-in");
|
|
11
|
-
function nodeString(
|
|
11
|
+
function nodeString(nodeId, formatter, processed) {
|
|
12
|
+
const isObj = typeof nodeId === 'object' && nodeId !== null && 'id' in nodeId;
|
|
13
|
+
const id = isObj ? nodeId.id : nodeId;
|
|
14
|
+
const info = isObj ? nodeId.info : undefined;
|
|
12
15
|
if (id === built_in_1.BuiltIn) {
|
|
13
|
-
return (0, ansi_1.italic)('built-in', formatter);
|
|
16
|
+
return (0, ansi_1.italic)('built-in', formatter) + (info ? ` (${JSON.stringify(info)})` : '');
|
|
14
17
|
}
|
|
15
18
|
const node = processed.normalize.idMap.get(id);
|
|
16
19
|
if (node === undefined) {
|
|
17
|
-
return `UNKNOWN: ${id}`;
|
|
20
|
+
return `UNKNOWN: ${id} (info: ${JSON.stringify(info)})`;
|
|
18
21
|
}
|
|
19
|
-
return `${(0, ansi_1.italic)('`' + (node.lexeme ?? node.info.fullLexeme ?? 'UNKNOWN') + '`', formatter)} (L.${node.location?.[0]})`;
|
|
22
|
+
return `${(0, ansi_1.italic)('`' + (node.lexeme ?? node.info.fullLexeme ?? 'UNKNOWN') + '`', formatter)} (L.${node.location?.[0]}${info ? ', ' + JSON.stringify(info) : ''})`;
|
|
20
23
|
}
|
|
21
24
|
function asciiCallContextSubHit(formatter, results, processed) {
|
|
22
25
|
const result = [];
|
package/util/version.js
CHANGED
|
@@ -3,7 +3,7 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
3
3
|
exports.flowrVersion = flowrVersion;
|
|
4
4
|
const semver_1 = require("semver");
|
|
5
5
|
// this is automatically replaced with the current version by release-it
|
|
6
|
-
const version = '2.2.
|
|
6
|
+
const version = '2.2.6';
|
|
7
7
|
function flowrVersion() {
|
|
8
8
|
return new semver_1.SemVer(version);
|
|
9
9
|
}
|