@prisma/prisma-schema-wasm 6.20.0-9.next-bb196f7af8269b5150a3852ad0677f8cd2a807dd → 7.1.0-1.fix-broken-links-4f977cbccf35d76bd3516f82bb56758fe51d4e5e

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