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