@astral-sh/ruff-wasm-web 0.14.11 → 0.14.13
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/ruff_wasm.d.ts +16 -1
- package/ruff_wasm.js +21 -0
- package/ruff_wasm_bg.wasm +0 -0
package/package.json
CHANGED
package/ruff_wasm.d.ts
CHANGED
|
@@ -1,6 +1,20 @@
|
|
|
1
1
|
/* tslint:disable */
|
|
2
2
|
/* eslint-disable */
|
|
3
3
|
export function run(): void;
|
|
4
|
+
/**
|
|
5
|
+
* Initializes the logger with the given log level.
|
|
6
|
+
*
|
|
7
|
+
* ## Panics
|
|
8
|
+
* If this function is called more than once.
|
|
9
|
+
*/
|
|
10
|
+
export function initLogging(level: LogLevel): void;
|
|
11
|
+
export enum LogLevel {
|
|
12
|
+
Trace = 0,
|
|
13
|
+
Debug = 1,
|
|
14
|
+
Info = 2,
|
|
15
|
+
Warn = 3,
|
|
16
|
+
Error = 4,
|
|
17
|
+
}
|
|
4
18
|
export enum PositionEncoding {
|
|
5
19
|
Utf8 = 0,
|
|
6
20
|
Utf16 = 1,
|
|
@@ -57,7 +71,7 @@ export type InitInput = RequestInfo | URL | Response | BufferSource | WebAssembl
|
|
|
57
71
|
export interface InitOutput {
|
|
58
72
|
readonly memory: WebAssembly.Memory;
|
|
59
73
|
readonly __wbg_workspace_free: (a: number, b: number) => void;
|
|
60
|
-
readonly
|
|
74
|
+
readonly initLogging: (a: number) => void;
|
|
61
75
|
readonly workspace_check: (a: number, b: number, c: number) => [number, number, number];
|
|
62
76
|
readonly workspace_comments: (a: number, b: number, c: number) => [number, number, number, number];
|
|
63
77
|
readonly workspace_defaultSettings: () => [number, number, number];
|
|
@@ -67,6 +81,7 @@ export interface InitOutput {
|
|
|
67
81
|
readonly workspace_parse: (a: number, b: number, c: number) => [number, number, number, number];
|
|
68
82
|
readonly workspace_tokens: (a: number, b: number, c: number) => [number, number, number, number];
|
|
69
83
|
readonly workspace_version: () => [number, number];
|
|
84
|
+
readonly run: () => void;
|
|
70
85
|
readonly __wbindgen_malloc: (a: number, b: number) => number;
|
|
71
86
|
readonly __wbindgen_realloc: (a: number, b: number, c: number, d: number) => number;
|
|
72
87
|
readonly __wbindgen_exn_store: (a: number) => void;
|
package/ruff_wasm.js
CHANGED
|
@@ -186,11 +186,32 @@ export function run() {
|
|
|
186
186
|
wasm.run();
|
|
187
187
|
}
|
|
188
188
|
|
|
189
|
+
/**
|
|
190
|
+
* Initializes the logger with the given log level.
|
|
191
|
+
*
|
|
192
|
+
* ## Panics
|
|
193
|
+
* If this function is called more than once.
|
|
194
|
+
* @param {LogLevel} level
|
|
195
|
+
*/
|
|
196
|
+
export function initLogging(level) {
|
|
197
|
+
wasm.initLogging(level);
|
|
198
|
+
}
|
|
199
|
+
|
|
189
200
|
function takeFromExternrefTable0(idx) {
|
|
190
201
|
const value = wasm.__wbindgen_externrefs.get(idx);
|
|
191
202
|
wasm.__externref_table_dealloc(idx);
|
|
192
203
|
return value;
|
|
193
204
|
}
|
|
205
|
+
/**
|
|
206
|
+
* @enum {0 | 1 | 2 | 3 | 4}
|
|
207
|
+
*/
|
|
208
|
+
export const LogLevel = Object.freeze({
|
|
209
|
+
Trace: 0, "0": "Trace",
|
|
210
|
+
Debug: 1, "1": "Debug",
|
|
211
|
+
Info: 2, "2": "Info",
|
|
212
|
+
Warn: 3, "3": "Warn",
|
|
213
|
+
Error: 4, "4": "Error",
|
|
214
|
+
});
|
|
194
215
|
/**
|
|
195
216
|
* @enum {0 | 1 | 2}
|
|
196
217
|
*/
|
package/ruff_wasm_bg.wasm
CHANGED
|
Binary file
|