rumdl-wasm 0.0.194 → 0.0.196
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/rumdl_lib.d.ts +7 -4
- package/rumdl_lib.js +10 -7
- package/rumdl_lib_bg.wasm +0 -0
package/package.json
CHANGED
package/rumdl_lib.d.ts
CHANGED
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
/* tslint:disable */
|
|
2
2
|
/* eslint-disable */
|
|
3
|
-
/**
|
|
4
|
-
* Get the rumdl version
|
|
5
|
-
*/
|
|
6
|
-
export function get_version(): string;
|
|
7
3
|
/**
|
|
8
4
|
* Initialize the WASM module with better panic messages
|
|
9
5
|
*/
|
|
10
6
|
export function init(): void;
|
|
7
|
+
/**
|
|
8
|
+
* Get the rumdl version
|
|
9
|
+
*/
|
|
10
|
+
export function get_version(): string;
|
|
11
11
|
/**
|
|
12
12
|
* Get list of available rules as JSON
|
|
13
13
|
*
|
|
@@ -61,6 +61,9 @@ export class Linter {
|
|
|
61
61
|
* - `line`: 1-indexed line number
|
|
62
62
|
* - `column`: 1-indexed column number
|
|
63
63
|
* - `fix`: Optional fix object with `range.start`, `range.end`, `replacement`
|
|
64
|
+
*
|
|
65
|
+
* Note: Fix ranges use character offsets (not byte offsets) for JavaScript compatibility.
|
|
66
|
+
* This is important for multi-byte UTF-8 characters like `æ` or emoji.
|
|
64
67
|
*/
|
|
65
68
|
check(content: string): string;
|
|
66
69
|
}
|
package/rumdl_lib.js
CHANGED
|
@@ -203,6 +203,13 @@ function takeObject(idx) {
|
|
|
203
203
|
dropObject(idx);
|
|
204
204
|
return ret;
|
|
205
205
|
}
|
|
206
|
+
/**
|
|
207
|
+
* Initialize the WASM module with better panic messages
|
|
208
|
+
*/
|
|
209
|
+
export function init() {
|
|
210
|
+
wasm.init();
|
|
211
|
+
}
|
|
212
|
+
|
|
206
213
|
/**
|
|
207
214
|
* Get the rumdl version
|
|
208
215
|
* @returns {string}
|
|
@@ -224,13 +231,6 @@ export function get_version() {
|
|
|
224
231
|
}
|
|
225
232
|
}
|
|
226
233
|
|
|
227
|
-
/**
|
|
228
|
-
* Initialize the WASM module with better panic messages
|
|
229
|
-
*/
|
|
230
|
-
export function init() {
|
|
231
|
-
wasm.init();
|
|
232
|
-
}
|
|
233
|
-
|
|
234
234
|
/**
|
|
235
235
|
* Get list of available rules as JSON
|
|
236
236
|
*
|
|
@@ -366,6 +366,9 @@ export class Linter {
|
|
|
366
366
|
* - `line`: 1-indexed line number
|
|
367
367
|
* - `column`: 1-indexed column number
|
|
368
368
|
* - `fix`: Optional fix object with `range.start`, `range.end`, `replacement`
|
|
369
|
+
*
|
|
370
|
+
* Note: Fix ranges use character offsets (not byte offsets) for JavaScript compatibility.
|
|
371
|
+
* This is important for multi-byte UTF-8 characters like `æ` or emoji.
|
|
369
372
|
* @param {string} content
|
|
370
373
|
* @returns {string}
|
|
371
374
|
*/
|
package/rumdl_lib_bg.wasm
CHANGED
|
Binary file
|