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