@prisma/prisma-schema-wasm 7.1.0-3.d9cee0d5892b6ac19222fb0ef2384cc3d5efd043 → 7.1.0-5.ab17e348034e9823a063101c707b39f4ba1e6dd4

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
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@prisma/prisma-schema-wasm",
3
- "version": "7.1.0-3.d9cee0d5892b6ac19222fb0ef2384cc3d5efd043",
3
+ "version": "7.1.0-5.ab17e348034e9823a063101c707b39f4ba1e6dd4",
4
4
  "description": "The Wasm package for prisma-fmt",
5
5
  "main": "src/prisma_schema_build.js",
6
6
  "scripts": {
@@ -1,52 +1,52 @@
1
1
  /* tslint:disable */
2
2
  /* eslint-disable */
3
+ export function format(schema: string, params: string): string;
3
4
  /**
4
- * This API is modelled on an LSP [references
5
- * request](https://github.com/microsoft/language-server-protocol/blob/gh-pages/_specifications/specification-3-16.md#find-references-request-leftwards_arrow_with_hook).
5
+ * This API is modelled on an LSP [code action
6
+ * request](https://github.com/microsoft/language-server-protocol/blob/gh-pages/_specifications/specification-3-16.md#code-action-request-leftwards_arrow_with_hook).
6
7
  * Input and output are both JSON, the request being a
7
8
  * `CodeActionParams` object and the response being a list of
8
9
  * `CodeActionOrCommand` objects.
9
10
  */
10
- export function references(schema: string, params: string): string;
11
- export function native_types(input: string): string;
12
- /**
13
- * Docs: https://prisma.github.io/prisma-engines/doc/prisma_fmt/fn.get_dmmf.html
14
- */
15
- export function get_dmmf(params: string): string;
16
- /**
17
- * The API is modelled on an LSP [completion
18
- * request](https://github.com/microsoft/language-server-protocol/blob/gh-pages/_specifications/specification-3-16.md#completion-request-leftwards_arrow_with_hook).
19
- * Input and output are both JSON, the request being a `CompletionParams` object and the response
20
- * being a `CompletionList` object.
21
- */
22
- export function text_document_completion(schema_files: string, params: string): string;
23
- export function merge_schemas(input: string): string;
11
+ export function code_actions(schema: string, params: string): string;
24
12
  export function get_datamodel(params: string): string;
25
- export function validate(params: string): void;
26
- export function format(schema: string, params: string): string;
27
13
  /**
28
- * Trigger a panic inside the wasm module. This is only useful in development for testing panic
29
- * handling.
14
+ * This api is modelled on an LSP [hover request](https://github.com/microsoft/language-server-protocol/blob/gh-pages/_specifications/specification-3-16.md#hover-request-leftwards_arrow_with_hook).
15
+ * Input and output are both JSON, the request being a `HoverParams` object
16
+ * and the response being a `Hover` object.
30
17
  */
31
- export function debug_panic(): void;
18
+ export function hover(schema_files: string, params: string): string;
32
19
  /**
33
- * This API is modelled on an LSP [code action
34
- * request](https://github.com/microsoft/language-server-protocol/blob/gh-pages/_specifications/specification-3-16.md#code-action-request-leftwards_arrow_with_hook).
20
+ * This API is modelled on an LSP [references
21
+ * request](https://github.com/microsoft/language-server-protocol/blob/gh-pages/_specifications/specification-3-16.md#find-references-request-leftwards_arrow_with_hook).
35
22
  * Input and output are both JSON, the request being a
36
23
  * `CodeActionParams` object and the response being a list of
37
24
  * `CodeActionOrCommand` objects.
38
25
  */
39
- export function code_actions(schema: string, params: string): string;
26
+ export function references(schema: string, params: string): string;
40
27
  export function referential_actions(input: string): string;
28
+ export function merge_schemas(input: string): string;
41
29
  /**
42
- * This api is modelled on an LSP [hover request](https://github.com/microsoft/language-server-protocol/blob/gh-pages/_specifications/specification-3-16.md#hover-request-leftwards_arrow_with_hook).
43
- * Input and output are both JSON, the request being a `HoverParams` object
44
- * and the response being a `Hover` object.
30
+ * Trigger a panic inside the wasm module. This is only useful in development for testing panic
31
+ * handling.
45
32
  */
46
- export function hover(schema_files: string, params: string): string;
47
- export function preview_features(): string;
33
+ export function debug_panic(): void;
48
34
  /**
49
35
  * Docs: https://prisma.github.io/prisma-engines/doc/prisma_fmt/fn.get_config.html
50
36
  */
51
37
  export function get_config(params: string): string;
52
38
  export function lint(input: string): string;
39
+ export function native_types(input: string): string;
40
+ export function preview_features(): string;
41
+ /**
42
+ * Docs: https://prisma.github.io/prisma-engines/doc/prisma_fmt/fn.get_dmmf.html
43
+ */
44
+ export function get_dmmf(params: string): string;
45
+ export function validate(params: string): void;
46
+ /**
47
+ * The API is modelled on an LSP [completion
48
+ * request](https://github.com/microsoft/language-server-protocol/blob/gh-pages/_specifications/specification-3-16.md#completion-request-leftwards_arrow_with_hook).
49
+ * Input and output are both JSON, the request being a `CompletionParams` object and the response
50
+ * being a `CompletionList` object.
51
+ */
52
+ export function text_document_completion(schema_files: string, params: string): string;
@@ -78,16 +78,11 @@ function passStringToWasm0(arg, malloc, realloc) {
78
78
  return ptr;
79
79
  }
80
80
  /**
81
- * This API is modelled on an LSP [references
82
- * request](https://github.com/microsoft/language-server-protocol/blob/gh-pages/_specifications/specification-3-16.md#find-references-request-leftwards_arrow_with_hook).
83
- * Input and output are both JSON, the request being a
84
- * `CodeActionParams` object and the response being a list of
85
- * `CodeActionOrCommand` objects.
86
81
  * @param {string} schema
87
82
  * @param {string} params
88
83
  * @returns {string}
89
84
  */
90
- exports.references = function(schema, params) {
85
+ exports.format = function(schema, params) {
91
86
  let deferred3_0;
92
87
  let deferred3_1;
93
88
  try {
@@ -95,7 +90,7 @@ exports.references = function(schema, params) {
95
90
  const len0 = WASM_VECTOR_LEN;
96
91
  const ptr1 = passStringToWasm0(params, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
97
92
  const len1 = WASM_VECTOR_LEN;
98
- const ret = wasm.references(ptr0, len0, ptr1, len1);
93
+ const ret = wasm.format(ptr0, len0, ptr1, len1);
99
94
  deferred3_0 = ret[0];
100
95
  deferred3_1 = ret[1];
101
96
  return getStringFromWasm0(ret[0], ret[1]);
@@ -105,21 +100,29 @@ exports.references = function(schema, params) {
105
100
  };
106
101
 
107
102
  /**
108
- * @param {string} input
103
+ * This API is modelled on an LSP [code action
104
+ * request](https://github.com/microsoft/language-server-protocol/blob/gh-pages/_specifications/specification-3-16.md#code-action-request-leftwards_arrow_with_hook).
105
+ * Input and output are both JSON, the request being a
106
+ * `CodeActionParams` object and the response being a list of
107
+ * `CodeActionOrCommand` objects.
108
+ * @param {string} schema
109
+ * @param {string} params
109
110
  * @returns {string}
110
111
  */
111
- exports.native_types = function(input) {
112
- let deferred2_0;
113
- let deferred2_1;
112
+ exports.code_actions = function(schema, params) {
113
+ let deferred3_0;
114
+ let deferred3_1;
114
115
  try {
115
- const ptr0 = passStringToWasm0(input, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
116
+ const ptr0 = passStringToWasm0(schema, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
116
117
  const len0 = WASM_VECTOR_LEN;
117
- const ret = wasm.native_types(ptr0, len0);
118
- deferred2_0 = ret[0];
119
- deferred2_1 = ret[1];
118
+ const ptr1 = passStringToWasm0(params, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
119
+ const len1 = WASM_VECTOR_LEN;
120
+ const ret = wasm.code_actions(ptr0, len0, ptr1, len1);
121
+ deferred3_0 = ret[0];
122
+ deferred3_1 = ret[1];
120
123
  return getStringFromWasm0(ret[0], ret[1]);
121
124
  } finally {
122
- wasm.__wbindgen_free(deferred2_0, deferred2_1, 1);
125
+ wasm.__wbindgen_free(deferred3_0, deferred3_1, 1);
123
126
  }
124
127
  };
125
128
 
@@ -129,17 +132,16 @@ function takeFromExternrefTable0(idx) {
129
132
  return value;
130
133
  }
131
134
  /**
132
- * Docs: https://prisma.github.io/prisma-engines/doc/prisma_fmt/fn.get_dmmf.html
133
135
  * @param {string} params
134
136
  * @returns {string}
135
137
  */
136
- exports.get_dmmf = function(params) {
138
+ exports.get_datamodel = function(params) {
137
139
  let deferred3_0;
138
140
  let deferred3_1;
139
141
  try {
140
142
  const ptr0 = passStringToWasm0(params, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
141
143
  const len0 = WASM_VECTOR_LEN;
142
- const ret = wasm.get_dmmf(ptr0, len0);
144
+ const ret = wasm.get_datamodel(ptr0, len0);
143
145
  var ptr2 = ret[0];
144
146
  var len2 = ret[1];
145
147
  if (ret[3]) {
@@ -155,15 +157,14 @@ exports.get_dmmf = function(params) {
155
157
  };
156
158
 
157
159
  /**
158
- * The API is modelled on an LSP [completion
159
- * request](https://github.com/microsoft/language-server-protocol/blob/gh-pages/_specifications/specification-3-16.md#completion-request-leftwards_arrow_with_hook).
160
- * Input and output are both JSON, the request being a `CompletionParams` object and the response
161
- * being a `CompletionList` object.
160
+ * This api is modelled on an LSP [hover request](https://github.com/microsoft/language-server-protocol/blob/gh-pages/_specifications/specification-3-16.md#hover-request-leftwards_arrow_with_hook).
161
+ * Input and output are both JSON, the request being a `HoverParams` object
162
+ * and the response being a `Hover` object.
162
163
  * @param {string} schema_files
163
164
  * @param {string} params
164
165
  * @returns {string}
165
166
  */
166
- exports.text_document_completion = function(schema_files, params) {
167
+ exports.hover = function(schema_files, params) {
167
168
  let deferred3_0;
168
169
  let deferred3_1;
169
170
  try {
@@ -171,7 +172,7 @@ exports.text_document_completion = function(schema_files, params) {
171
172
  const len0 = WASM_VECTOR_LEN;
172
173
  const ptr1 = passStringToWasm0(params, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
173
174
  const len1 = WASM_VECTOR_LEN;
174
- const ret = wasm.text_document_completion(ptr0, len0, ptr1, len1);
175
+ const ret = wasm.hover(ptr0, len0, ptr1, len1);
175
176
  deferred3_0 = ret[0];
176
177
  deferred3_1 = ret[1];
177
178
  return getStringFromWasm0(ret[0], ret[1]);
@@ -181,84 +182,71 @@ exports.text_document_completion = function(schema_files, params) {
181
182
  };
182
183
 
183
184
  /**
184
- * @param {string} input
185
+ * This API is modelled on an LSP [references
186
+ * request](https://github.com/microsoft/language-server-protocol/blob/gh-pages/_specifications/specification-3-16.md#find-references-request-leftwards_arrow_with_hook).
187
+ * Input and output are both JSON, the request being a
188
+ * `CodeActionParams` object and the response being a list of
189
+ * `CodeActionOrCommand` objects.
190
+ * @param {string} schema
191
+ * @param {string} params
185
192
  * @returns {string}
186
193
  */
187
- exports.merge_schemas = function(input) {
194
+ exports.references = function(schema, params) {
188
195
  let deferred3_0;
189
196
  let deferred3_1;
190
197
  try {
191
- const ptr0 = passStringToWasm0(input, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
198
+ const ptr0 = passStringToWasm0(schema, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
192
199
  const len0 = WASM_VECTOR_LEN;
193
- const ret = wasm.merge_schemas(ptr0, len0);
194
- var ptr2 = ret[0];
195
- var len2 = ret[1];
196
- if (ret[3]) {
197
- ptr2 = 0; len2 = 0;
198
- throw takeFromExternrefTable0(ret[2]);
199
- }
200
- deferred3_0 = ptr2;
201
- deferred3_1 = len2;
202
- return getStringFromWasm0(ptr2, len2);
200
+ const ptr1 = passStringToWasm0(params, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
201
+ const len1 = WASM_VECTOR_LEN;
202
+ const ret = wasm.references(ptr0, len0, ptr1, len1);
203
+ deferred3_0 = ret[0];
204
+ deferred3_1 = ret[1];
205
+ return getStringFromWasm0(ret[0], ret[1]);
203
206
  } finally {
204
207
  wasm.__wbindgen_free(deferred3_0, deferred3_1, 1);
205
208
  }
206
209
  };
207
210
 
208
211
  /**
209
- * @param {string} params
212
+ * @param {string} input
210
213
  * @returns {string}
211
214
  */
212
- exports.get_datamodel = function(params) {
213
- let deferred3_0;
214
- let deferred3_1;
215
+ exports.referential_actions = function(input) {
216
+ let deferred2_0;
217
+ let deferred2_1;
215
218
  try {
216
- const ptr0 = passStringToWasm0(params, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
219
+ const ptr0 = passStringToWasm0(input, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
217
220
  const len0 = WASM_VECTOR_LEN;
218
- const ret = wasm.get_datamodel(ptr0, len0);
219
- var ptr2 = ret[0];
220
- var len2 = ret[1];
221
- if (ret[3]) {
222
- ptr2 = 0; len2 = 0;
223
- throw takeFromExternrefTable0(ret[2]);
224
- }
225
- deferred3_0 = ptr2;
226
- deferred3_1 = len2;
227
- return getStringFromWasm0(ptr2, len2);
221
+ const ret = wasm.referential_actions(ptr0, len0);
222
+ deferred2_0 = ret[0];
223
+ deferred2_1 = ret[1];
224
+ return getStringFromWasm0(ret[0], ret[1]);
228
225
  } finally {
229
- wasm.__wbindgen_free(deferred3_0, deferred3_1, 1);
230
- }
231
- };
232
-
233
- /**
234
- * @param {string} params
235
- */
236
- exports.validate = function(params) {
237
- const ptr0 = passStringToWasm0(params, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
238
- const len0 = WASM_VECTOR_LEN;
239
- const ret = wasm.validate(ptr0, len0);
240
- if (ret[1]) {
241
- throw takeFromExternrefTable0(ret[0]);
226
+ wasm.__wbindgen_free(deferred2_0, deferred2_1, 1);
242
227
  }
243
228
  };
244
229
 
245
230
  /**
246
- * @param {string} schema
247
- * @param {string} params
231
+ * @param {string} input
248
232
  * @returns {string}
249
233
  */
250
- exports.format = function(schema, params) {
234
+ exports.merge_schemas = function(input) {
251
235
  let deferred3_0;
252
236
  let deferred3_1;
253
237
  try {
254
- const ptr0 = passStringToWasm0(schema, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
238
+ const ptr0 = passStringToWasm0(input, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
255
239
  const len0 = WASM_VECTOR_LEN;
256
- const ptr1 = passStringToWasm0(params, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
257
- const len1 = WASM_VECTOR_LEN;
258
- const ret = wasm.format(ptr0, len0, ptr1, len1);
259
- deferred3_0 = ret[0];
260
- deferred3_1 = ret[1];
261
- return getStringFromWasm0(ret[0], ret[1]);
240
+ const ret = wasm.merge_schemas(ptr0, len0);
241
+ var ptr2 = ret[0];
242
+ var len2 = ret[1];
243
+ if (ret[3]) {
244
+ ptr2 = 0; len2 = 0;
245
+ throw takeFromExternrefTable0(ret[2]);
246
+ }
247
+ deferred3_0 = ptr2;
248
+ deferred3_1 = len2;
249
+ return getStringFromWasm0(ptr2, len2);
262
250
  } finally {
263
251
  wasm.__wbindgen_free(deferred3_0, deferred3_1, 1);
264
252
  }
@@ -273,29 +261,22 @@ exports.debug_panic = function() {
273
261
  };
274
262
 
275
263
  /**
276
- * This API is modelled on an LSP [code action
277
- * request](https://github.com/microsoft/language-server-protocol/blob/gh-pages/_specifications/specification-3-16.md#code-action-request-leftwards_arrow_with_hook).
278
- * Input and output are both JSON, the request being a
279
- * `CodeActionParams` object and the response being a list of
280
- * `CodeActionOrCommand` objects.
281
- * @param {string} schema
264
+ * Docs: https://prisma.github.io/prisma-engines/doc/prisma_fmt/fn.get_config.html
282
265
  * @param {string} params
283
266
  * @returns {string}
284
267
  */
285
- exports.code_actions = function(schema, params) {
286
- let deferred3_0;
287
- let deferred3_1;
268
+ exports.get_config = function(params) {
269
+ let deferred2_0;
270
+ let deferred2_1;
288
271
  try {
289
- const ptr0 = passStringToWasm0(schema, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
272
+ const ptr0 = passStringToWasm0(params, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
290
273
  const len0 = WASM_VECTOR_LEN;
291
- const ptr1 = passStringToWasm0(params, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
292
- const len1 = WASM_VECTOR_LEN;
293
- const ret = wasm.code_actions(ptr0, len0, ptr1, len1);
294
- deferred3_0 = ret[0];
295
- deferred3_1 = ret[1];
274
+ const ret = wasm.get_config(ptr0, len0);
275
+ deferred2_0 = ret[0];
276
+ deferred2_1 = ret[1];
296
277
  return getStringFromWasm0(ret[0], ret[1]);
297
278
  } finally {
298
- wasm.__wbindgen_free(deferred3_0, deferred3_1, 1);
279
+ wasm.__wbindgen_free(deferred2_0, deferred2_1, 1);
299
280
  }
300
281
  };
301
282
 
@@ -303,13 +284,13 @@ exports.code_actions = function(schema, params) {
303
284
  * @param {string} input
304
285
  * @returns {string}
305
286
  */
306
- exports.referential_actions = function(input) {
287
+ exports.lint = function(input) {
307
288
  let deferred2_0;
308
289
  let deferred2_1;
309
290
  try {
310
291
  const ptr0 = passStringToWasm0(input, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
311
292
  const len0 = WASM_VECTOR_LEN;
312
- const ret = wasm.referential_actions(ptr0, len0);
293
+ const ret = wasm.lint(ptr0, len0);
313
294
  deferred2_0 = ret[0];
314
295
  deferred2_1 = ret[1];
315
296
  return getStringFromWasm0(ret[0], ret[1]);
@@ -319,27 +300,21 @@ exports.referential_actions = function(input) {
319
300
  };
320
301
 
321
302
  /**
322
- * This api is modelled on an LSP [hover request](https://github.com/microsoft/language-server-protocol/blob/gh-pages/_specifications/specification-3-16.md#hover-request-leftwards_arrow_with_hook).
323
- * Input and output are both JSON, the request being a `HoverParams` object
324
- * and the response being a `Hover` object.
325
- * @param {string} schema_files
326
- * @param {string} params
303
+ * @param {string} input
327
304
  * @returns {string}
328
305
  */
329
- exports.hover = function(schema_files, params) {
330
- let deferred3_0;
331
- let deferred3_1;
306
+ exports.native_types = function(input) {
307
+ let deferred2_0;
308
+ let deferred2_1;
332
309
  try {
333
- const ptr0 = passStringToWasm0(schema_files, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
310
+ const ptr0 = passStringToWasm0(input, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
334
311
  const len0 = WASM_VECTOR_LEN;
335
- const ptr1 = passStringToWasm0(params, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
336
- const len1 = WASM_VECTOR_LEN;
337
- const ret = wasm.hover(ptr0, len0, ptr1, len1);
338
- deferred3_0 = ret[0];
339
- deferred3_1 = ret[1];
312
+ const ret = wasm.native_types(ptr0, len0);
313
+ deferred2_0 = ret[0];
314
+ deferred2_1 = ret[1];
340
315
  return getStringFromWasm0(ret[0], ret[1]);
341
316
  } finally {
342
- wasm.__wbindgen_free(deferred3_0, deferred3_1, 1);
317
+ wasm.__wbindgen_free(deferred2_0, deferred2_1, 1);
343
318
  }
344
319
  };
345
320
 
@@ -360,41 +335,66 @@ exports.preview_features = function() {
360
335
  };
361
336
 
362
337
  /**
363
- * Docs: https://prisma.github.io/prisma-engines/doc/prisma_fmt/fn.get_config.html
338
+ * Docs: https://prisma.github.io/prisma-engines/doc/prisma_fmt/fn.get_dmmf.html
364
339
  * @param {string} params
365
340
  * @returns {string}
366
341
  */
367
- exports.get_config = function(params) {
368
- let deferred2_0;
369
- let deferred2_1;
342
+ exports.get_dmmf = function(params) {
343
+ let deferred3_0;
344
+ let deferred3_1;
370
345
  try {
371
346
  const ptr0 = passStringToWasm0(params, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
372
347
  const len0 = WASM_VECTOR_LEN;
373
- const ret = wasm.get_config(ptr0, len0);
374
- deferred2_0 = ret[0];
375
- deferred2_1 = ret[1];
376
- return getStringFromWasm0(ret[0], ret[1]);
348
+ const ret = wasm.get_dmmf(ptr0, len0);
349
+ var ptr2 = ret[0];
350
+ var len2 = ret[1];
351
+ if (ret[3]) {
352
+ ptr2 = 0; len2 = 0;
353
+ throw takeFromExternrefTable0(ret[2]);
354
+ }
355
+ deferred3_0 = ptr2;
356
+ deferred3_1 = len2;
357
+ return getStringFromWasm0(ptr2, len2);
377
358
  } finally {
378
- wasm.__wbindgen_free(deferred2_0, deferred2_1, 1);
359
+ wasm.__wbindgen_free(deferred3_0, deferred3_1, 1);
379
360
  }
380
361
  };
381
362
 
382
363
  /**
383
- * @param {string} input
364
+ * @param {string} params
365
+ */
366
+ exports.validate = function(params) {
367
+ const ptr0 = passStringToWasm0(params, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
368
+ const len0 = WASM_VECTOR_LEN;
369
+ const ret = wasm.validate(ptr0, len0);
370
+ if (ret[1]) {
371
+ throw takeFromExternrefTable0(ret[0]);
372
+ }
373
+ };
374
+
375
+ /**
376
+ * The API is modelled on an LSP [completion
377
+ * request](https://github.com/microsoft/language-server-protocol/blob/gh-pages/_specifications/specification-3-16.md#completion-request-leftwards_arrow_with_hook).
378
+ * Input and output are both JSON, the request being a `CompletionParams` object and the response
379
+ * being a `CompletionList` object.
380
+ * @param {string} schema_files
381
+ * @param {string} params
384
382
  * @returns {string}
385
383
  */
386
- exports.lint = function(input) {
387
- let deferred2_0;
388
- let deferred2_1;
384
+ exports.text_document_completion = function(schema_files, params) {
385
+ let deferred3_0;
386
+ let deferred3_1;
389
387
  try {
390
- const ptr0 = passStringToWasm0(input, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
388
+ const ptr0 = passStringToWasm0(schema_files, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
391
389
  const len0 = WASM_VECTOR_LEN;
392
- const ret = wasm.lint(ptr0, len0);
393
- deferred2_0 = ret[0];
394
- deferred2_1 = ret[1];
390
+ const ptr1 = passStringToWasm0(params, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
391
+ const len1 = WASM_VECTOR_LEN;
392
+ const ret = wasm.text_document_completion(ptr0, len0, ptr1, len1);
393
+ deferred3_0 = ret[0];
394
+ deferred3_1 = ret[1];
395
395
  return getStringFromWasm0(ret[0], ret[1]);
396
396
  } finally {
397
- wasm.__wbindgen_free(deferred2_0, deferred2_1, 1);
397
+ wasm.__wbindgen_free(deferred3_0, deferred3_1, 1);
398
398
  }
399
399
  };
400
400
 
Binary file