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