@malloydata/malloy 0.0.351 → 0.0.353
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/annotation.js +6 -6
- package/dist/version.d.ts +1 -1
- package/dist/version.js +1 -1
- package/package.json +4 -4
package/dist/annotation.js
CHANGED
|
@@ -27,11 +27,6 @@ function collectNotes(annote, prefix) {
|
|
|
27
27
|
function annotationToTaglines(annote, prefix) {
|
|
28
28
|
return collectNotes(annote || {}, prefix).map(n => n.text);
|
|
29
29
|
}
|
|
30
|
-
// TODO: Error location mapping currently works by post-hoc mapping
|
|
31
|
-
// parse errors back to source locations using the Note's `at` field.
|
|
32
|
-
// The proper approach is to pass source location information into the
|
|
33
|
-
// MOTLY parser session so that errors come back with correct locations
|
|
34
|
-
// directly, eliminating the need for this remapping step.
|
|
35
30
|
function annotationToTag(annote, spec = {}) {
|
|
36
31
|
const prefix = spec.prefix || /^##? /;
|
|
37
32
|
annote || (annote = {});
|
|
@@ -39,7 +34,12 @@ function annotationToTag(annote, spec = {}) {
|
|
|
39
34
|
const allErrs = [];
|
|
40
35
|
const session = new malloy_tag_1.TagParser();
|
|
41
36
|
for (const note of notes) {
|
|
42
|
-
const
|
|
37
|
+
const origin = {
|
|
38
|
+
url: note.at.url,
|
|
39
|
+
startLine: note.at.range.start.line,
|
|
40
|
+
startColumn: note.at.range.start.character,
|
|
41
|
+
};
|
|
42
|
+
const noteParse = session.parse(note.text, origin);
|
|
43
43
|
allErrs.push(...noteParse.log.map((e) => mapMalloyError(e, note)));
|
|
44
44
|
}
|
|
45
45
|
const tag = session.finish();
|
package/dist/version.d.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export declare const MALLOY_VERSION = "0.0.
|
|
1
|
+
export declare const MALLOY_VERSION = "0.0.353";
|
package/dist/version.js
CHANGED
|
@@ -2,5 +2,5 @@
|
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.MALLOY_VERSION = void 0;
|
|
4
4
|
// generated with 'generate-version-file' script; do not edit manually
|
|
5
|
-
exports.MALLOY_VERSION = '0.0.
|
|
5
|
+
exports.MALLOY_VERSION = '0.0.353';
|
|
6
6
|
//# sourceMappingURL=version.js.map
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@malloydata/malloy",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.353",
|
|
4
4
|
"license": "MIT",
|
|
5
5
|
"exports": {
|
|
6
6
|
".": "./dist/index.js",
|
|
@@ -47,9 +47,9 @@
|
|
|
47
47
|
"generate-version-file": "VERSION=$(npm pkg get version --workspaces=false | tr -d \\\")\necho \"// generated with 'generate-version-file' script; do not edit manually\\nexport const MALLOY_VERSION = '$VERSION';\" > src/version.ts"
|
|
48
48
|
},
|
|
49
49
|
"dependencies": {
|
|
50
|
-
"@malloydata/malloy-filter": "0.0.
|
|
51
|
-
"@malloydata/malloy-interfaces": "0.0.
|
|
52
|
-
"@malloydata/malloy-tag": "0.0.
|
|
50
|
+
"@malloydata/malloy-filter": "0.0.353",
|
|
51
|
+
"@malloydata/malloy-interfaces": "0.0.353",
|
|
52
|
+
"@malloydata/malloy-tag": "0.0.353",
|
|
53
53
|
"@noble/hashes": "^1.8.0",
|
|
54
54
|
"antlr4ts": "^0.5.0-alpha.4",
|
|
55
55
|
"assert": "^2.0.0",
|