rumdl-wasm 0.0.198 → 0.0.200
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 +8 -8
- package/rumdl_lib.js +17 -17
- package/rumdl_lib_bg.wasm +0 -0
package/package.json
CHANGED
package/rumdl_lib.d.ts
CHANGED
|
@@ -1,21 +1,21 @@
|
|
|
1
1
|
/* tslint:disable */
|
|
2
2
|
/* eslint-disable */
|
|
3
3
|
/**
|
|
4
|
-
*
|
|
5
|
-
*
|
|
6
|
-
* Returns a JSON array of rule info objects, each with:
|
|
7
|
-
* - `name`: Rule name (e.g., "MD001")
|
|
8
|
-
* - `description`: Rule description
|
|
4
|
+
* Initialize the WASM module with better panic messages
|
|
9
5
|
*/
|
|
10
|
-
export function
|
|
6
|
+
export function init(): void;
|
|
11
7
|
/**
|
|
12
8
|
* Get the rumdl version
|
|
13
9
|
*/
|
|
14
10
|
export function get_version(): string;
|
|
15
11
|
/**
|
|
16
|
-
*
|
|
12
|
+
* Get list of available rules as JSON
|
|
13
|
+
*
|
|
14
|
+
* Returns a JSON array of rule info objects, each with:
|
|
15
|
+
* - `name`: Rule name (e.g., "MD001")
|
|
16
|
+
* - `description`: Rule description
|
|
17
17
|
*/
|
|
18
|
-
export function
|
|
18
|
+
export function get_available_rules(): string;
|
|
19
19
|
/**
|
|
20
20
|
* A markdown linter with configuration
|
|
21
21
|
*
|
package/rumdl_lib.js
CHANGED
|
@@ -204,19 +204,22 @@ function takeObject(idx) {
|
|
|
204
204
|
return ret;
|
|
205
205
|
}
|
|
206
206
|
/**
|
|
207
|
-
*
|
|
208
|
-
|
|
209
|
-
|
|
210
|
-
|
|
211
|
-
|
|
207
|
+
* Initialize the WASM module with better panic messages
|
|
208
|
+
*/
|
|
209
|
+
export function init() {
|
|
210
|
+
wasm.init();
|
|
211
|
+
}
|
|
212
|
+
|
|
213
|
+
/**
|
|
214
|
+
* Get the rumdl version
|
|
212
215
|
* @returns {string}
|
|
213
216
|
*/
|
|
214
|
-
export function
|
|
217
|
+
export function get_version() {
|
|
215
218
|
let deferred1_0;
|
|
216
219
|
let deferred1_1;
|
|
217
220
|
try {
|
|
218
221
|
const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
|
|
219
|
-
wasm.
|
|
222
|
+
wasm.get_version(retptr);
|
|
220
223
|
var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
|
|
221
224
|
var r1 = getDataViewMemory0().getInt32(retptr + 4 * 1, true);
|
|
222
225
|
deferred1_0 = r0;
|
|
@@ -229,15 +232,19 @@ export function get_available_rules() {
|
|
|
229
232
|
}
|
|
230
233
|
|
|
231
234
|
/**
|
|
232
|
-
* Get
|
|
235
|
+
* Get list of available rules as JSON
|
|
236
|
+
*
|
|
237
|
+
* Returns a JSON array of rule info objects, each with:
|
|
238
|
+
* - `name`: Rule name (e.g., "MD001")
|
|
239
|
+
* - `description`: Rule description
|
|
233
240
|
* @returns {string}
|
|
234
241
|
*/
|
|
235
|
-
export function
|
|
242
|
+
export function get_available_rules() {
|
|
236
243
|
let deferred1_0;
|
|
237
244
|
let deferred1_1;
|
|
238
245
|
try {
|
|
239
246
|
const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
|
|
240
|
-
wasm.
|
|
247
|
+
wasm.get_available_rules(retptr);
|
|
241
248
|
var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
|
|
242
249
|
var r1 = getDataViewMemory0().getInt32(retptr + 4 * 1, true);
|
|
243
250
|
deferred1_0 = r0;
|
|
@@ -249,13 +256,6 @@ export function get_version() {
|
|
|
249
256
|
}
|
|
250
257
|
}
|
|
251
258
|
|
|
252
|
-
/**
|
|
253
|
-
* Initialize the WASM module with better panic messages
|
|
254
|
-
*/
|
|
255
|
-
export function init() {
|
|
256
|
-
wasm.init();
|
|
257
|
-
}
|
|
258
|
-
|
|
259
259
|
const LinterFinalization = (typeof FinalizationRegistry === 'undefined')
|
|
260
260
|
? { register: () => {}, unregister: () => {} }
|
|
261
261
|
: new FinalizationRegistry(ptr => wasm.__wbg_linter_free(ptr >>> 0, 1));
|
package/rumdl_lib_bg.wasm
CHANGED
|
Binary file
|