@pydantic/logfire-sqlls 0.3.0 → 0.4.0

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.
@@ -27,6 +27,9 @@ export class Diagnostic {
27
27
  private constructor();
28
28
  free(): void;
29
29
  [Symbol.dispose](): void;
30
+ get actions(): any | undefined;
31
+ set actions(value: any | null | undefined);
32
+ code: DiagnosticCode;
30
33
  message: string;
31
34
  get related_information(): RelatedInformation[] | undefined;
32
35
  set related_information(value: RelatedInformation[] | null | undefined);
@@ -34,6 +37,16 @@ export class Diagnostic {
34
37
  span: Span;
35
38
  }
36
39
 
40
+ export enum DiagnosticCode {
41
+ InvalidSyntax = 0,
42
+ UnknownTable = 1,
43
+ UnknownColumn = 2,
44
+ UnusedCte = 3,
45
+ AmbiguousColumn = 4,
46
+ DuplicateQualifiedFieldName = 5,
47
+ DuplicateUnqualifiedFieldName = 6,
48
+ }
49
+
37
50
  export class Hover {
38
51
  private constructor();
39
52
  free(): void;
@@ -120,6 +133,9 @@ export interface InitOutput {
120
133
  readonly __wbg_get_completion_kind: (a: number) => number;
121
134
  readonly __wbg_get_completion_name: (a: number) => [number, number];
122
135
  readonly __wbg_get_completion_span: (a: number) => number;
136
+ readonly __wbg_get_diagnostic_actions: (a: number) => any;
137
+ readonly __wbg_get_diagnostic_code: (a: number) => number;
138
+ readonly __wbg_get_diagnostic_message: (a: number) => [number, number];
123
139
  readonly __wbg_get_diagnostic_related_information: (a: number) => [number, number];
124
140
  readonly __wbg_get_diagnostic_severity: (a: number) => number;
125
141
  readonly __wbg_get_diagnostic_span: (a: number) => number;
@@ -139,6 +155,9 @@ export interface InitOutput {
139
155
  readonly __wbg_set_completion_kind: (a: number, b: number) => void;
140
156
  readonly __wbg_set_completion_name: (a: number, b: number, c: number) => void;
141
157
  readonly __wbg_set_completion_span: (a: number, b: number) => void;
158
+ readonly __wbg_set_diagnostic_actions: (a: number, b: number) => void;
159
+ readonly __wbg_set_diagnostic_code: (a: number, b: number) => void;
160
+ readonly __wbg_set_diagnostic_message: (a: number, b: number, c: number) => void;
142
161
  readonly __wbg_set_diagnostic_related_information: (a: number, b: number, c: number) => void;
143
162
  readonly __wbg_set_diagnostic_severity: (a: number, b: number) => void;
144
163
  readonly __wbg_set_diagnostic_span: (a: number, b: number) => void;
@@ -151,9 +170,7 @@ export interface InitOutput {
151
170
  readonly __wbg_set_span_start: (a: number, b: number) => void;
152
171
  readonly __wbg_span_free: (a: number, b: number) => void;
153
172
  readonly location_new: (a: number, b: number) => number;
154
- readonly __wbg_get_diagnostic_message: (a: number) => [number, number];
155
173
  readonly __wbg_get_relatedinformation_message: (a: number) => [number, number];
156
- readonly __wbg_set_diagnostic_message: (a: number, b: number, c: number) => void;
157
174
  readonly __wbg_set_relatedinformation_message: (a: number, b: number, c: number) => void;
158
175
  readonly __wbg_workspace_free: (a: number, b: number) => void;
159
176
  readonly workspace_checkQuery: (a: number, b: number, c: number) => [number, number];
@@ -160,6 +160,20 @@ export class Diagnostic {
160
160
  const ptr = this.__destroy_into_raw();
161
161
  wasm.__wbg_diagnostic_free(ptr, 0);
162
162
  }
163
+ /**
164
+ * @returns {any | undefined}
165
+ */
166
+ get actions() {
167
+ const ret = wasm.__wbg_get_diagnostic_actions(this.__wbg_ptr);
168
+ return ret;
169
+ }
170
+ /**
171
+ * @returns {DiagnosticCode}
172
+ */
173
+ get code() {
174
+ const ret = wasm.__wbg_get_diagnostic_code(this.__wbg_ptr);
175
+ return ret;
176
+ }
163
177
  /**
164
178
  * @returns {string}
165
179
  */
@@ -201,6 +215,18 @@ export class Diagnostic {
201
215
  const ret = wasm.__wbg_get_diagnostic_span(this.__wbg_ptr);
202
216
  return Span.__wrap(ret);
203
217
  }
218
+ /**
219
+ * @param {any | null} [arg0]
220
+ */
221
+ set actions(arg0) {
222
+ wasm.__wbg_set_diagnostic_actions(this.__wbg_ptr, isLikeNone(arg0) ? 0 : addToExternrefTable0(arg0));
223
+ }
224
+ /**
225
+ * @param {DiagnosticCode} arg0
226
+ */
227
+ set code(arg0) {
228
+ wasm.__wbg_set_diagnostic_code(this.__wbg_ptr, arg0);
229
+ }
204
230
  /**
205
231
  * @param {string} arg0
206
232
  */
@@ -234,6 +260,19 @@ export class Diagnostic {
234
260
  }
235
261
  if (Symbol.dispose) Diagnostic.prototype[Symbol.dispose] = Diagnostic.prototype.free;
236
262
 
263
+ /**
264
+ * @enum {0 | 1 | 2 | 3 | 4 | 5 | 6}
265
+ */
266
+ export const DiagnosticCode = Object.freeze({
267
+ InvalidSyntax: 0, "0": "InvalidSyntax",
268
+ UnknownTable: 1, "1": "UnknownTable",
269
+ UnknownColumn: 2, "2": "UnknownColumn",
270
+ UnusedCte: 3, "3": "UnusedCte",
271
+ AmbiguousColumn: 4, "4": "AmbiguousColumn",
272
+ DuplicateQualifiedFieldName: 5, "5": "DuplicateQualifiedFieldName",
273
+ DuplicateUnqualifiedFieldName: 6, "6": "DuplicateUnqualifiedFieldName",
274
+ });
275
+
237
276
  export class Hover {
238
277
  static __wrap(ptr) {
239
278
  ptr = ptr >>> 0;
@@ -575,11 +614,10 @@ export class Workspace {
575
614
  }
576
615
  }
577
616
  if (Symbol.dispose) Workspace.prototype[Symbol.dispose] = Workspace.prototype.free;
578
-
579
617
  function __wbg_get_imports() {
580
618
  const import0 = {
581
619
  __proto__: null,
582
- __wbg_Error_4577686b3a6d9b3a: function(arg0, arg1) {
620
+ __wbg_Error_960c155d3d49e4c2: function(arg0, arg1) {
583
621
  const ret = Error(getStringFromWasm0(arg0, arg1));
584
622
  return ret;
585
623
  },
@@ -590,50 +628,50 @@ function __wbg_get_imports() {
590
628
  getDataViewMemory0().setInt32(arg0 + 4 * 1, len1, true);
591
629
  getDataViewMemory0().setInt32(arg0 + 4 * 0, ptr1, true);
592
630
  },
593
- __wbg___wbindgen_boolean_get_18c4ed9422296fff: function(arg0) {
631
+ __wbg___wbindgen_boolean_get_6ea149f0a8dcc5ff: function(arg0) {
594
632
  const v = arg0;
595
633
  const ret = typeof(v) === 'boolean' ? v : undefined;
596
634
  return isLikeNone(ret) ? 0xFFFFFF : ret ? 1 : 0;
597
635
  },
598
- __wbg___wbindgen_debug_string_ddde1867f49c2442: function(arg0, arg1) {
636
+ __wbg___wbindgen_debug_string_ab4b34d23d6778bd: function(arg0, arg1) {
599
637
  const ret = debugString(arg1);
600
638
  const ptr1 = passStringToWasm0(ret, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
601
639
  const len1 = WASM_VECTOR_LEN;
602
640
  getDataViewMemory0().setInt32(arg0 + 4 * 1, len1, true);
603
641
  getDataViewMemory0().setInt32(arg0 + 4 * 0, ptr1, true);
604
642
  },
605
- __wbg___wbindgen_in_1064a108f4d18b9e: function(arg0, arg1) {
643
+ __wbg___wbindgen_in_a5d8b22e52b24dd1: function(arg0, arg1) {
606
644
  const ret = arg0 in arg1;
607
645
  return ret;
608
646
  },
609
- __wbg___wbindgen_is_function_d633e708baf0d146: function(arg0) {
647
+ __wbg___wbindgen_is_function_3baa9db1a987f47d: function(arg0) {
610
648
  const ret = typeof(arg0) === 'function';
611
649
  return ret;
612
650
  },
613
- __wbg___wbindgen_is_object_4b3de556756ee8a8: function(arg0) {
651
+ __wbg___wbindgen_is_object_63322ec0cd6ea4ef: function(arg0) {
614
652
  const val = arg0;
615
653
  const ret = typeof(val) === 'object' && val !== null;
616
654
  return ret;
617
655
  },
618
- __wbg___wbindgen_is_string_7debe47dc1e045c2: function(arg0) {
656
+ __wbg___wbindgen_is_string_6df3bf7ef1164ed3: function(arg0) {
619
657
  const ret = typeof(arg0) === 'string';
620
658
  return ret;
621
659
  },
622
- __wbg___wbindgen_is_undefined_c18285b9fc34cb7d: function(arg0) {
660
+ __wbg___wbindgen_is_undefined_29a43b4d42920abd: function(arg0) {
623
661
  const ret = arg0 === undefined;
624
662
  return ret;
625
663
  },
626
- __wbg___wbindgen_jsval_loose_eq_1562ceb9af84e990: function(arg0, arg1) {
664
+ __wbg___wbindgen_jsval_loose_eq_cac3565e89b4134c: function(arg0, arg1) {
627
665
  const ret = arg0 == arg1;
628
666
  return ret;
629
667
  },
630
- __wbg___wbindgen_number_get_5854912275df1894: function(arg0, arg1) {
668
+ __wbg___wbindgen_number_get_c7f42aed0525c451: function(arg0, arg1) {
631
669
  const obj = arg1;
632
670
  const ret = typeof(obj) === 'number' ? obj : undefined;
633
671
  getDataViewMemory0().setFloat64(arg0 + 8 * 1, isLikeNone(ret) ? 0 : ret, true);
634
672
  getDataViewMemory0().setInt32(arg0 + 4 * 0, !isLikeNone(ret), true);
635
673
  },
636
- __wbg___wbindgen_string_get_3e5751597f39a112: function(arg0, arg1) {
674
+ __wbg___wbindgen_string_get_7ed5322991caaec5: function(arg0, arg1) {
637
675
  const obj = arg1;
638
676
  const ret = typeof(obj) === 'string' ? obj : undefined;
639
677
  var ptr1 = isLikeNone(ret) ? 0 : passStringToWasm0(ret, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
@@ -641,10 +679,10 @@ function __wbg_get_imports() {
641
679
  getDataViewMemory0().setInt32(arg0 + 4 * 1, len1, true);
642
680
  getDataViewMemory0().setInt32(arg0 + 4 * 0, ptr1, true);
643
681
  },
644
- __wbg___wbindgen_throw_39bc967c0e5a9b58: function(arg0, arg1) {
682
+ __wbg___wbindgen_throw_6b64449b9b9ed33c: function(arg0, arg1) {
645
683
  throw new Error(getStringFromWasm0(arg0, arg1));
646
684
  },
647
- __wbg_call_73af281463ec8b58: function() { return handleError(function (arg0, arg1) {
685
+ __wbg_call_14b169f759b26747: function() { return handleError(function (arg0, arg1) {
648
686
  const ret = arg0.call(arg1);
649
687
  return ret;
650
688
  }, arguments); },
@@ -656,11 +694,11 @@ function __wbg_get_imports() {
656
694
  const ret = Diagnostic.__wrap(arg0);
657
695
  return ret;
658
696
  },
659
- __wbg_done_5aad55ec6b1954b1: function(arg0) {
697
+ __wbg_done_9158f7cc8751ba32: function(arg0) {
660
698
  const ret = arg0.done;
661
699
  return ret;
662
700
  },
663
- __wbg_entries_28d32ba4cd93f5fc: function(arg0) {
701
+ __wbg_entries_e0b73aa8571ddb56: function(arg0) {
664
702
  const ret = Object.entries(arg0);
665
703
  return ret;
666
704
  },
@@ -675,15 +713,15 @@ function __wbg_get_imports() {
675
713
  wasm.__wbindgen_free(deferred0_0, deferred0_1, 1);
676
714
  }
677
715
  },
678
- __wbg_get_4920fefd3451364b: function() { return handleError(function (arg0, arg1) {
716
+ __wbg_get_1affdbdd5573b16a: function() { return handleError(function (arg0, arg1) {
679
717
  const ret = Reflect.get(arg0, arg1);
680
718
  return ret;
681
719
  }, arguments); },
682
- __wbg_get_f09c3a16f8848381: function(arg0, arg1) {
720
+ __wbg_get_8360291721e2339f: function(arg0, arg1) {
683
721
  const ret = arg0[arg1 >>> 0];
684
722
  return ret;
685
723
  },
686
- __wbg_get_unchecked_3d0f4b91c8eca4f0: function(arg0, arg1) {
724
+ __wbg_get_unchecked_17f53dad852b9588: function(arg0, arg1) {
687
725
  const ret = arg0[arg1 >>> 0];
688
726
  return ret;
689
727
  },
@@ -691,7 +729,7 @@ function __wbg_get_imports() {
691
729
  const ret = arg0[arg1];
692
730
  return ret;
693
731
  },
694
- __wbg_instanceof_ArrayBuffer_15859862b80b732d: function(arg0) {
732
+ __wbg_instanceof_ArrayBuffer_7c8433c6ed14ffe3: function(arg0) {
695
733
  let result;
696
734
  try {
697
735
  result = arg0 instanceof ArrayBuffer;
@@ -701,7 +739,7 @@ function __wbg_get_imports() {
701
739
  const ret = result;
702
740
  return ret;
703
741
  },
704
- __wbg_instanceof_Uint8Array_2240b7046ac16f05: function(arg0) {
742
+ __wbg_instanceof_Uint8Array_152ba1f289edcf3f: function(arg0) {
705
743
  let result;
706
744
  try {
707
745
  result = arg0 instanceof Uint8Array;
@@ -711,43 +749,51 @@ function __wbg_get_imports() {
711
749
  const ret = result;
712
750
  return ret;
713
751
  },
714
- __wbg_isArray_fad08a0d12828686: function(arg0) {
752
+ __wbg_isArray_c3109d14ffc06469: function(arg0) {
715
753
  const ret = Array.isArray(arg0);
716
754
  return ret;
717
755
  },
718
- __wbg_iterator_fc7ad8d33bab9e26: function() {
756
+ __wbg_iterator_013bc09ec998c2a7: function() {
719
757
  const ret = Symbol.iterator;
720
758
  return ret;
721
759
  },
722
- __wbg_length_5855c1f289dfffc1: function(arg0) {
760
+ __wbg_length_3d4ecd04bd8d22f1: function(arg0) {
723
761
  const ret = arg0.length;
724
762
  return ret;
725
763
  },
726
- __wbg_length_a31e05262e09b7f8: function(arg0) {
764
+ __wbg_length_9f1775224cf1d815: function(arg0) {
727
765
  const ret = arg0.length;
728
766
  return ret;
729
767
  },
730
- __wbg_new_09959f7b4c92c246: function(arg0) {
768
+ __wbg_new_0c7403db6e782f19: function(arg0) {
731
769
  const ret = new Uint8Array(arg0);
732
770
  return ret;
733
771
  },
734
- __wbg_new_1213b57bccbdbb66: function(arg0, arg1) {
772
+ __wbg_new_227d7c05414eb861: function() {
773
+ const ret = new Error();
774
+ return ret;
775
+ },
776
+ __wbg_new_5e360d2ff7b9e1c3: function(arg0, arg1) {
735
777
  const ret = new Error(getStringFromWasm0(arg0, arg1));
736
778
  return ret;
737
779
  },
738
- __wbg_new_227d7c05414eb861: function() {
739
- const ret = new Error();
780
+ __wbg_new_682678e2f47e32bc: function() {
781
+ const ret = new Array();
740
782
  return ret;
741
783
  },
742
- __wbg_next_a5fe6f328f7affc2: function(arg0) {
743
- const ret = arg0.next;
784
+ __wbg_new_aa8d0fa9762c29bd: function() {
785
+ const ret = new Object();
744
786
  return ret;
745
787
  },
746
- __wbg_next_e592122bb4ed4c67: function() { return handleError(function (arg0) {
788
+ __wbg_next_0340c4ae324393c3: function() { return handleError(function (arg0) {
747
789
  const ret = arg0.next();
748
790
  return ret;
749
791
  }, arguments); },
750
- __wbg_prototypesetcall_f034d444741426c3: function(arg0, arg1, arg2) {
792
+ __wbg_next_7646edaa39458ef7: function(arg0) {
793
+ const ret = arg0.next;
794
+ return ret;
795
+ },
796
+ __wbg_prototypesetcall_a6b02eb00b0f4ce2: function(arg0, arg1, arg2) {
751
797
  Uint8Array.prototype.set.call(getArrayU8FromWasm0(arg0, arg1), arg2);
752
798
  },
753
799
  __wbg_relatedinformation_new: function(arg0) {
@@ -758,6 +804,12 @@ function __wbg_get_imports() {
758
804
  const ret = RelatedInformation.__unwrap(arg0);
759
805
  return ret;
760
806
  },
807
+ __wbg_set_3bf1de9fab0cd644: function(arg0, arg1, arg2) {
808
+ arg0[arg1 >>> 0] = arg2;
809
+ },
810
+ __wbg_set_6be42768c690e380: function(arg0, arg1, arg2) {
811
+ arg0[arg1] = arg2;
812
+ },
761
813
  __wbg_span_new: function(arg0) {
762
814
  const ret = Span.__wrap(arg0);
763
815
  return ret;
@@ -769,7 +821,7 @@ function __wbg_get_imports() {
769
821
  getDataViewMemory0().setInt32(arg0 + 4 * 1, len1, true);
770
822
  getDataViewMemory0().setInt32(arg0 + 4 * 0, ptr1, true);
771
823
  },
772
- __wbg_value_667dcb90597486a6: function(arg0) {
824
+ __wbg_value_ee3a06f4579184fa: function(arg0) {
773
825
  const ret = arg0.value;
774
826
  return ret;
775
827
  },
Binary file
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@pydantic/logfire-sqlls",
3
3
  "type": "module",
4
- "version": "0.3.0",
4
+ "version": "0.4.0",
5
5
  "files": [
6
6
  "logfire_sqlls_wasm_bg.wasm",
7
7
  "logfire_sqlls_wasm.js",