@rsvelte/compiler 0.9.4 → 0.9.7

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 CHANGED
@@ -2,7 +2,7 @@
2
2
  "name": "@rsvelte/compiler",
3
3
  "type": "module",
4
4
  "description": "A high-performance Rust implementation of the Svelte compiler",
5
- "version": "0.9.4",
5
+ "version": "0.9.7",
6
6
  "license": "MIT",
7
7
  "files": [
8
8
  "rsvelte_lint_bg.wasm",
package/rsvelte_lint.d.ts CHANGED
@@ -93,9 +93,6 @@ export type InitInput = RequestInfo | URL | Response | BufferSource | WebAssembl
93
93
 
94
94
  export interface InitOutput {
95
95
  readonly memory: WebAssembly.Memory;
96
- readonly lint: (a: number, b: number, c: number, d: number) => [number, number];
97
- readonly lint_rules: () => [number, number];
98
- readonly lint_version: () => [number, number];
99
96
  readonly __wbg_compileresultwasm_free: (a: number, b: number) => void;
100
97
  readonly __wbg_parseresultwasm_free: (a: number, b: number) => void;
101
98
  readonly compile: (a: number, b: number, c: any) => [number, number, number, number];
@@ -106,13 +103,16 @@ export interface InitOutput {
106
103
  readonly compileresultwasm_js: (a: number) => [number, number];
107
104
  readonly compileresultwasm_success: (a: number) => number;
108
105
  readonly init: () => void;
106
+ readonly lint: (a: number, b: number, c: number, d: number) => [number, number];
107
+ readonly lint_rules: () => [number, number];
108
+ readonly lint_version: () => [number, number];
109
109
  readonly parse_svelte: (a: number, b: number) => number;
110
110
  readonly parseresultwasm_ast: (a: number) => [number, number];
111
111
  readonly parseresultwasm_error: (a: number) => [number, number];
112
112
  readonly parseresultwasm_success: (a: number) => number;
113
113
  readonly svelte2tsx: (a: number, b: number, c: number, d: number) => [number, number];
114
114
  readonly version: () => [number, number];
115
- readonly wasm_bindgen_b67232e9c19c9ca6___convert__closures_____invoke___alloc_a941a2cfab7efbc4___string__String__alloc_a941a2cfab7efbc4___string__String__true_: (a: number, b: number, c: number, d: number) => [number, number];
115
+ readonly wasm_bindgen_de7100a3341595c3___convert__closures_____invoke___alloc_a941a2cfab7efbc4___string__String__alloc_a941a2cfab7efbc4___string__String__true_: (a: number, b: number, c: number, d: number) => [number, number];
116
116
  readonly __wbindgen_malloc: (a: number, b: number) => number;
117
117
  readonly __wbindgen_realloc: (a: number, b: number, c: number, d: number) => number;
118
118
  readonly __wbindgen_exn_store: (a: number) => void;
package/rsvelte_lint.js CHANGED
@@ -391,8 +391,8 @@ function __wbg_get_imports() {
391
391
  getDataViewMemory0().setInt32(arg0 + 4 * 0, ptr1, true);
392
392
  },
393
393
  __wbindgen_cast_0000000000000001: function(arg0, arg1) {
394
- // Cast intrinsic for `Closure(Closure { owned: true, function: Function { arguments: [String], shim_idx: 164, ret: String, inner_ret: Some(String) }, mutable: false }) -> Externref`.
395
- const ret = makeClosure(arg0, arg1, wasm_bindgen_b67232e9c19c9ca6___convert__closures_____invoke___alloc_a941a2cfab7efbc4___string__String__alloc_a941a2cfab7efbc4___string__String__true_);
394
+ // Cast intrinsic for `Closure(Closure { owned: true, function: Function { arguments: [String], shim_idx: 5, ret: String, inner_ret: Some(String) }, mutable: false }) -> Externref`.
395
+ const ret = makeClosure(arg0, arg1, wasm_bindgen_de7100a3341595c3___convert__closures_____invoke___alloc_a941a2cfab7efbc4___string__String__alloc_a941a2cfab7efbc4___string__String__true_);
396
396
  return ret;
397
397
  },
398
398
  __wbindgen_cast_0000000000000002: function(arg0, arg1) {
@@ -416,13 +416,13 @@ function __wbg_get_imports() {
416
416
  };
417
417
  }
418
418
 
419
- function wasm_bindgen_b67232e9c19c9ca6___convert__closures_____invoke___alloc_a941a2cfab7efbc4___string__String__alloc_a941a2cfab7efbc4___string__String__true_(arg0, arg1, arg2) {
419
+ function wasm_bindgen_de7100a3341595c3___convert__closures_____invoke___alloc_a941a2cfab7efbc4___string__String__alloc_a941a2cfab7efbc4___string__String__true_(arg0, arg1, arg2) {
420
420
  let deferred2_0;
421
421
  let deferred2_1;
422
422
  try {
423
423
  const ptr0 = passStringToWasm0(arg2, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
424
424
  const len0 = WASM_VECTOR_LEN;
425
- const ret = wasm.wasm_bindgen_b67232e9c19c9ca6___convert__closures_____invoke___alloc_a941a2cfab7efbc4___string__String__alloc_a941a2cfab7efbc4___string__String__true_(arg0, arg1, ptr0, len0);
425
+ const ret = wasm.wasm_bindgen_de7100a3341595c3___convert__closures_____invoke___alloc_a941a2cfab7efbc4___string__String__alloc_a941a2cfab7efbc4___string__String__true_(arg0, arg1, ptr0, len0);
426
426
  deferred2_0 = ret[0];
427
427
  deferred2_1 = ret[1];
428
428
  return getStringFromWasm0(ret[0], ret[1]);
Binary file