@keroway/tdsl-wasm 1.16.0 → 1.17.0
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 +1 -1
- package/tdsl_wasm.d.ts +4 -5
- package/tdsl_wasm.js +4 -5
- package/tdsl_wasm_bg.wasm +0 -0
package/package.json
CHANGED
package/tdsl_wasm.d.ts
CHANGED
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
* Check TDSL source and return diagnostics as JSON.
|
|
6
6
|
*
|
|
7
7
|
* Returns a JSON array of diagnostic objects: `[{severity, message, line, col}]`.
|
|
8
|
-
* `severity` is `"error"` or `"
|
|
8
|
+
* `severity` is `"error"`, `"warning"`, or `"info"`.
|
|
9
9
|
*
|
|
10
10
|
* `line`/`col` are **1-based** when a source position is available (parse errors via
|
|
11
11
|
* `ParseError::source_location`, validation warnings via the item's `source_span`),
|
|
@@ -13,10 +13,9 @@
|
|
|
13
13
|
* attributes. Diagnostics that carry no position (lowering errors such as unknown-lane
|
|
14
14
|
* references) report `line: 0, col: 0`; the WebUI treats a `0` line as non-clickable.
|
|
15
15
|
*
|
|
16
|
-
* **Note on `import` blocks**:
|
|
17
|
-
*
|
|
18
|
-
*
|
|
19
|
-
* `event`, and `event_range` statements for content that must render in the browser.
|
|
16
|
+
* **Note on `import`/`map` blocks**: Wikidata fetch is not available in the browser.
|
|
17
|
+
* Each `import` or `map` block receives an `"info"` diagnostic pointing to its start
|
|
18
|
+
* line so the user knows to run `tdsl build` for full resolution.
|
|
20
19
|
*/
|
|
21
20
|
export function check_source(source: string): string;
|
|
22
21
|
|
package/tdsl_wasm.js
CHANGED
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
* Check TDSL source and return diagnostics as JSON.
|
|
5
5
|
*
|
|
6
6
|
* Returns a JSON array of diagnostic objects: `[{severity, message, line, col}]`.
|
|
7
|
-
* `severity` is `"error"` or `"
|
|
7
|
+
* `severity` is `"error"`, `"warning"`, or `"info"`.
|
|
8
8
|
*
|
|
9
9
|
* `line`/`col` are **1-based** when a source position is available (parse errors via
|
|
10
10
|
* `ParseError::source_location`, validation warnings via the item's `source_span`),
|
|
@@ -12,10 +12,9 @@
|
|
|
12
12
|
* attributes. Diagnostics that carry no position (lowering errors such as unknown-lane
|
|
13
13
|
* references) report `line: 0, col: 0`; the WebUI treats a `0` line as non-clickable.
|
|
14
14
|
*
|
|
15
|
-
* **Note on `import` blocks**:
|
|
16
|
-
*
|
|
17
|
-
*
|
|
18
|
-
* `event`, and `event_range` statements for content that must render in the browser.
|
|
15
|
+
* **Note on `import`/`map` blocks**: Wikidata fetch is not available in the browser.
|
|
16
|
+
* Each `import` or `map` block receives an `"info"` diagnostic pointing to its start
|
|
17
|
+
* line so the user knows to run `tdsl build` for full resolution.
|
|
19
18
|
* @param {string} source
|
|
20
19
|
* @returns {string}
|
|
21
20
|
*/
|
package/tdsl_wasm_bg.wasm
CHANGED
|
Binary file
|