@culpritsql/plans 0.0.0-stage → 0.5.6

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.
Files changed (119) hide show
  1. package/LICENSE +21 -0
  2. package/README.md +119 -2
  3. package/package.json +46 -4
  4. package/pkg/THIRD-PARTY-LICENSES.txt +9021 -0
  5. package/pkg/build-report.json +583 -0
  6. package/pkg/index.d.ts +26 -0
  7. package/pkg/index.js +37 -0
  8. package/pkg/models/ActualSummary.d.ts +16 -0
  9. package/pkg/models/CachedStatementContext.d.ts +9 -0
  10. package/pkg/models/CachedStatementIdentity.d.ts +7 -0
  11. package/pkg/models/ChangeKind.d.ts +3 -0
  12. package/pkg/models/CollectionStop.d.ts +3 -0
  13. package/pkg/models/CollectionTarget.d.ts +5 -0
  14. package/pkg/models/CompareContext.d.ts +12 -0
  15. package/pkg/models/DatabaseIdentity.d.ts +5 -0
  16. package/pkg/models/DatabaseLocation.d.ts +3 -0
  17. package/pkg/models/Deadlock.d.ts +23 -0
  18. package/pkg/models/DeadlockFix.d.ts +16 -0
  19. package/pkg/models/DeadlockFixKind.d.ts +6 -0
  20. package/pkg/models/DeadlockPattern.d.ts +3 -0
  21. package/pkg/models/DeadlockProcess.d.ts +23 -0
  22. package/pkg/models/DeadlockResource.d.ts +12 -0
  23. package/pkg/models/DeliveryProblem.d.ts +3 -0
  24. package/pkg/models/DocdbMetrics.d.ts +7 -0
  25. package/pkg/models/Engine.d.ts +3 -0
  26. package/pkg/models/Error.d.ts +5 -0
  27. package/pkg/models/ErrorCode.d.ts +3 -0
  28. package/pkg/models/ErrorDetail.d.ts +10 -0
  29. package/pkg/models/ExecutionProtection.d.ts +3 -0
  30. package/pkg/models/ExportFile.d.ts +7 -0
  31. package/pkg/models/ExportFormat.d.ts +3 -0
  32. package/pkg/models/ExportNote.d.ts +11 -0
  33. package/pkg/models/ExportOptions.d.ts +12 -0
  34. package/pkg/models/Guess.d.ts +6 -0
  35. package/pkg/models/InsightArea.d.ts +6 -0
  36. package/pkg/models/LexError.d.ts +6 -0
  37. package/pkg/models/LockHolder.d.ts +3 -0
  38. package/pkg/models/Metric.d.ts +10 -0
  39. package/pkg/models/MssqlCatalogIndexColumn.d.ts +3 -0
  40. package/pkg/models/MssqlCurrentTableType.d.ts +10 -0
  41. package/pkg/models/MssqlCurrentTypeColumn.d.ts +7 -0
  42. package/pkg/models/MssqlCurrentTypeIndex.d.ts +4 -0
  43. package/pkg/models/MssqlCurrentTypeModule.d.ts +4 -0
  44. package/pkg/models/MssqlCurrentTypeParameter.d.ts +3 -0
  45. package/pkg/models/MssqlCurrentTypeSchema.d.ts +11 -0
  46. package/pkg/models/MssqlCurrentTypeSchemaStatus.d.ts +3 -0
  47. package/pkg/models/MssqlIndexParentKind.d.ts +3 -0
  48. package/pkg/models/MssqlObjectIdentity.d.ts +7 -0
  49. package/pkg/models/NativeIdentity.d.ts +3 -0
  50. package/pkg/models/NativePlanIdentity.d.ts +4 -0
  51. package/pkg/models/NativeQueryIdentity.d.ts +3 -0
  52. package/pkg/models/NativeReadContext.d.ts +13 -0
  53. package/pkg/models/NodeKind.d.ts +3 -0
  54. package/pkg/models/NodeMatch.d.ts +3 -0
  55. package/pkg/models/NodeRuntime.d.ts +28 -0
  56. package/pkg/models/OutboxProblem.d.ts +3 -0
  57. package/pkg/models/Plan.d.ts +11 -0
  58. package/pkg/models/PlanAccessRows.d.ts +13 -0
  59. package/pkg/models/PlanAutomaticIndex.d.ts +3 -0
  60. package/pkg/models/PlanChange.d.ts +17 -0
  61. package/pkg/models/PlanChangedColumn.d.ts +3 -0
  62. package/pkg/models/PlanConversion.d.ts +4 -0
  63. package/pkg/models/PlanConversionIssue.d.ts +3 -0
  64. package/pkg/models/PlanCurrentTypeSchemaView.d.ts +6 -0
  65. package/pkg/models/PlanDiff.d.ts +13 -0
  66. package/pkg/models/PlanExecutionMode.d.ts +3 -0
  67. package/pkg/models/PlanFacts.d.ts +36 -0
  68. package/pkg/models/PlanIndexColumns.d.ts +3 -0
  69. package/pkg/models/PlanIndexHint.d.ts +3 -0
  70. package/pkg/models/PlanInsight.d.ts +44 -0
  71. package/pkg/models/PlanInsightShare.d.ts +3 -0
  72. package/pkg/models/PlanInsights.d.ts +8 -0
  73. package/pkg/models/PlanKind.d.ts +3 -0
  74. package/pkg/models/PlanMeasurementRef.d.ts +3 -0
  75. package/pkg/models/PlanMemoryGrantFeedback.d.ts +15 -0
  76. package/pkg/models/PlanMemoryGrantFeedbackIssue.d.ts +3 -0
  77. package/pkg/models/PlanMemoryGrantFeedbackState.d.ts +3 -0
  78. package/pkg/models/PlanNode.d.ts +7 -0
  79. package/pkg/models/PlanNodeFacts.d.ts +63 -0
  80. package/pkg/models/PlanOperatorView.d.ts +5 -0
  81. package/pkg/models/PlanPageServerIo.d.ts +16 -0
  82. package/pkg/models/PlanPageServerIoIssue.d.ts +4 -0
  83. package/pkg/models/PlanPageServerIoView.d.ts +7 -0
  84. package/pkg/models/PlanPageServerMetric.d.ts +3 -0
  85. package/pkg/models/PlanParameter.d.ts +10 -0
  86. package/pkg/models/PlanParameterComparison.d.ts +3 -0
  87. package/pkg/models/PlanParameterContext.d.ts +15 -0
  88. package/pkg/models/PlanParameterIssue.d.ts +3 -0
  89. package/pkg/models/PlanParameterUse.d.ts +4 -0
  90. package/pkg/models/PlanParameterUseKind.d.ts +3 -0
  91. package/pkg/models/PlanParameterValueState.d.ts +3 -0
  92. package/pkg/models/PlanParentRelationship.d.ts +3 -0
  93. package/pkg/models/PlanRegion.d.ts +7 -0
  94. package/pkg/models/PlanSampleSource.d.ts +6 -0
  95. package/pkg/models/PlanScanCompletion.d.ts +8 -0
  96. package/pkg/models/PlanScanThread.d.ts +3 -0
  97. package/pkg/models/PlanTemporaryTableUse.d.ts +7 -0
  98. package/pkg/models/PlanView.d.ts +9 -0
  99. package/pkg/models/PlanWarning.d.ts +3 -0
  100. package/pkg/models/RelationalInput.d.ts +5 -0
  101. package/pkg/models/RelationalInputKind.d.ts +3 -0
  102. package/pkg/models/RelationalInputProvenance.d.ts +3 -0
  103. package/pkg/models/RetainedPlanProvenance.d.ts +11 -0
  104. package/pkg/models/Scenario.d.ts +11 -0
  105. package/pkg/models/ScenarioKind.d.ts +3 -0
  106. package/pkg/models/Severity.d.ts +3 -0
  107. package/pkg/models/SharedResourceIdentity.d.ts +11 -0
  108. package/pkg/models/SharedResourceKind.d.ts +3 -0
  109. package/pkg/models/SourcePartition.d.ts +8 -0
  110. package/pkg/models/StatementOrigin.d.ts +6 -0
  111. package/pkg/models/StatementProblem.d.ts +4 -0
  112. package/pkg/models/StatisticsInfo.d.ts +3 -0
  113. package/pkg/models/TriggerTiming.d.ts +3 -0
  114. package/pkg/models/Unit.d.ts +3 -0
  115. package/pkg/models/WorkerSkew.d.ts +3 -0
  116. package/pkg/native/culprit_wasm.d.ts +49 -0
  117. package/pkg/native/culprit_wasm.js +378 -0
  118. package/pkg/native/culprit_wasm_bg.wasm +0 -0
  119. package/pkg/native/culprit_wasm_bg.wasm.d.ts +11 -0
@@ -0,0 +1,378 @@
1
+ /* @ts-self-types="./culprit_wasm.d.ts" */
2
+
3
+ /**
4
+ * @param {string} a_json
5
+ * @param {string} name_a
6
+ * @param {string} b_json
7
+ * @param {string} name_b
8
+ * @param {string} context_json
9
+ * @returns {string}
10
+ */
11
+ export function diffPlansJson(a_json, name_a, b_json, name_b, context_json) {
12
+ let deferred7_0;
13
+ let deferred7_1;
14
+ try {
15
+ const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
16
+ const ptr0 = passStringToWasm0(a_json, wasm.__wbindgen_export, wasm.__wbindgen_export2);
17
+ const len0 = WASM_VECTOR_LEN;
18
+ const ptr1 = passStringToWasm0(name_a, wasm.__wbindgen_export, wasm.__wbindgen_export2);
19
+ const len1 = WASM_VECTOR_LEN;
20
+ const ptr2 = passStringToWasm0(b_json, wasm.__wbindgen_export, wasm.__wbindgen_export2);
21
+ const len2 = WASM_VECTOR_LEN;
22
+ const ptr3 = passStringToWasm0(name_b, wasm.__wbindgen_export, wasm.__wbindgen_export2);
23
+ const len3 = WASM_VECTOR_LEN;
24
+ const ptr4 = passStringToWasm0(context_json, wasm.__wbindgen_export, wasm.__wbindgen_export2);
25
+ const len4 = WASM_VECTOR_LEN;
26
+ wasm.diffPlansJson(retptr, ptr0, len0, ptr1, len1, ptr2, len2, ptr3, len3, ptr4, len4);
27
+ var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
28
+ var r1 = getDataViewMemory0().getInt32(retptr + 4 * 1, true);
29
+ var r2 = getDataViewMemory0().getInt32(retptr + 4 * 2, true);
30
+ var r3 = getDataViewMemory0().getInt32(retptr + 4 * 3, true);
31
+ var ptr6 = r0;
32
+ var len6 = r1;
33
+ if (r3) {
34
+ ptr6 = 0; len6 = 0;
35
+ throw takeObject(r2);
36
+ }
37
+ deferred7_0 = ptr6;
38
+ deferred7_1 = len6;
39
+ return getStringFromWasm0(ptr6, len6);
40
+ } finally {
41
+ wasm.__wbindgen_add_to_stack_pointer(16);
42
+ wasm.__wbindgen_export3(deferred7_0, deferred7_1, 1);
43
+ }
44
+ }
45
+
46
+ /**
47
+ * @param {string} plan_json
48
+ * @param {string} title
49
+ * @param {string} format_json
50
+ * @param {string} options_json
51
+ * @param {string} exported_at
52
+ * @returns {string}
53
+ */
54
+ export function exportPlanJson(plan_json, title, format_json, options_json, exported_at) {
55
+ let deferred7_0;
56
+ let deferred7_1;
57
+ try {
58
+ const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
59
+ const ptr0 = passStringToWasm0(plan_json, wasm.__wbindgen_export, wasm.__wbindgen_export2);
60
+ const len0 = WASM_VECTOR_LEN;
61
+ const ptr1 = passStringToWasm0(title, wasm.__wbindgen_export, wasm.__wbindgen_export2);
62
+ const len1 = WASM_VECTOR_LEN;
63
+ const ptr2 = passStringToWasm0(format_json, wasm.__wbindgen_export, wasm.__wbindgen_export2);
64
+ const len2 = WASM_VECTOR_LEN;
65
+ const ptr3 = passStringToWasm0(options_json, wasm.__wbindgen_export, wasm.__wbindgen_export2);
66
+ const len3 = WASM_VECTOR_LEN;
67
+ const ptr4 = passStringToWasm0(exported_at, wasm.__wbindgen_export, wasm.__wbindgen_export2);
68
+ const len4 = WASM_VECTOR_LEN;
69
+ wasm.exportPlanJson(retptr, ptr0, len0, ptr1, len1, ptr2, len2, ptr3, len3, ptr4, len4);
70
+ var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
71
+ var r1 = getDataViewMemory0().getInt32(retptr + 4 * 1, true);
72
+ var r2 = getDataViewMemory0().getInt32(retptr + 4 * 2, true);
73
+ var r3 = getDataViewMemory0().getInt32(retptr + 4 * 3, true);
74
+ var ptr6 = r0;
75
+ var len6 = r1;
76
+ if (r3) {
77
+ ptr6 = 0; len6 = 0;
78
+ throw takeObject(r2);
79
+ }
80
+ deferred7_0 = ptr6;
81
+ deferred7_1 = len6;
82
+ return getStringFromWasm0(ptr6, len6);
83
+ } finally {
84
+ wasm.__wbindgen_add_to_stack_pointer(16);
85
+ wasm.__wbindgen_export3(deferred7_0, deferred7_1, 1);
86
+ }
87
+ }
88
+
89
+ /**
90
+ * @param {string} input
91
+ * @returns {string}
92
+ */
93
+ export function parseDeadlockJson(input) {
94
+ let deferred3_0;
95
+ let deferred3_1;
96
+ try {
97
+ const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
98
+ const ptr0 = passStringToWasm0(input, wasm.__wbindgen_export, wasm.__wbindgen_export2);
99
+ const len0 = WASM_VECTOR_LEN;
100
+ wasm.parseDeadlockJson(retptr, ptr0, len0);
101
+ var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
102
+ var r1 = getDataViewMemory0().getInt32(retptr + 4 * 1, true);
103
+ var r2 = getDataViewMemory0().getInt32(retptr + 4 * 2, true);
104
+ var r3 = getDataViewMemory0().getInt32(retptr + 4 * 3, true);
105
+ var ptr2 = r0;
106
+ var len2 = r1;
107
+ if (r3) {
108
+ ptr2 = 0; len2 = 0;
109
+ throw takeObject(r2);
110
+ }
111
+ deferred3_0 = ptr2;
112
+ deferred3_1 = len2;
113
+ return getStringFromWasm0(ptr2, len2);
114
+ } finally {
115
+ wasm.__wbindgen_add_to_stack_pointer(16);
116
+ wasm.__wbindgen_export3(deferred3_0, deferred3_1, 1);
117
+ }
118
+ }
119
+
120
+ /**
121
+ * The optional supplied engine selects the existing strict native parser; it is not source authority.
122
+ * @param {string} input
123
+ * @param {string} engine_json
124
+ * @returns {string}
125
+ */
126
+ export function parsePlanJson(input, engine_json) {
127
+ let deferred4_0;
128
+ let deferred4_1;
129
+ try {
130
+ const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
131
+ const ptr0 = passStringToWasm0(input, wasm.__wbindgen_export, wasm.__wbindgen_export2);
132
+ const len0 = WASM_VECTOR_LEN;
133
+ const ptr1 = passStringToWasm0(engine_json, wasm.__wbindgen_export, wasm.__wbindgen_export2);
134
+ const len1 = WASM_VECTOR_LEN;
135
+ wasm.parsePlanJson(retptr, ptr0, len0, ptr1, len1);
136
+ var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
137
+ var r1 = getDataViewMemory0().getInt32(retptr + 4 * 1, true);
138
+ var r2 = getDataViewMemory0().getInt32(retptr + 4 * 2, true);
139
+ var r3 = getDataViewMemory0().getInt32(retptr + 4 * 3, true);
140
+ var ptr3 = r0;
141
+ var len3 = r1;
142
+ if (r3) {
143
+ ptr3 = 0; len3 = 0;
144
+ throw takeObject(r2);
145
+ }
146
+ deferred4_0 = ptr3;
147
+ deferred4_1 = len3;
148
+ return getStringFromWasm0(ptr3, len3);
149
+ } finally {
150
+ wasm.__wbindgen_add_to_stack_pointer(16);
151
+ wasm.__wbindgen_export3(deferred4_0, deferred4_1, 1);
152
+ }
153
+ }
154
+ function __wbg_get_imports() {
155
+ const import0 = {
156
+ __proto__: null,
157
+ __wbindgen_generic_0000000000000001: function(arg0, arg1) {
158
+ // Cast intrinsic for `Ref(String) -> Externref`.
159
+ const ret = getStringFromWasm0(arg0, arg1);
160
+ return addHeapObject(ret);
161
+ },
162
+ };
163
+ return {
164
+ __proto__: null,
165
+ "./culprit_wasm_bg.js": import0,
166
+ };
167
+ }
168
+
169
+ function addHeapObject(obj) {
170
+ if (heap_next === heap.length) heap.push(heap.length + 1);
171
+ const idx = heap_next;
172
+ heap_next = heap[idx];
173
+
174
+ heap[idx] = obj;
175
+ return idx;
176
+ }
177
+
178
+ function dropObject(idx) {
179
+ if (idx < 1028) return;
180
+ heap[idx] = heap_next;
181
+ heap_next = idx;
182
+ }
183
+
184
+ let cachedDataViewMemory0 = null;
185
+ function getDataViewMemory0() {
186
+ if (cachedDataViewMemory0 === null || cachedDataViewMemory0.buffer.detached === true || (cachedDataViewMemory0.buffer.detached === undefined && cachedDataViewMemory0.buffer !== wasm.memory.buffer)) {
187
+ cachedDataViewMemory0 = new DataView(wasm.memory.buffer);
188
+ }
189
+ return cachedDataViewMemory0;
190
+ }
191
+
192
+ function getStringFromWasm0(ptr, len) {
193
+ return decodeText(ptr >>> 0, len);
194
+ }
195
+
196
+ let cachedUint8ArrayMemory0 = null;
197
+ function getUint8ArrayMemory0() {
198
+ if (cachedUint8ArrayMemory0 === null || cachedUint8ArrayMemory0.byteLength === 0) {
199
+ cachedUint8ArrayMemory0 = new Uint8Array(wasm.memory.buffer);
200
+ }
201
+ return cachedUint8ArrayMemory0;
202
+ }
203
+
204
+ function getObject(idx) { return heap[idx]; }
205
+
206
+ let heap = new Array(1024).fill(undefined);
207
+ heap.push(undefined, null, true, false);
208
+
209
+ let heap_next = heap.length;
210
+
211
+ function passStringToWasm0(arg, malloc, realloc) {
212
+ if (realloc === undefined) {
213
+ const buf = cachedTextEncoder.encode(arg);
214
+ const ptr = malloc(buf.length, 1) >>> 0;
215
+ getUint8ArrayMemory0().subarray(ptr, ptr + buf.length).set(buf);
216
+ WASM_VECTOR_LEN = buf.length;
217
+ return ptr;
218
+ }
219
+
220
+ let len = arg.length;
221
+ let ptr = malloc(len, 1) >>> 0;
222
+
223
+ const mem = getUint8ArrayMemory0();
224
+
225
+ let offset = 0;
226
+
227
+ for (; offset < len; offset++) {
228
+ const code = arg.charCodeAt(offset);
229
+ if (code > 0x7F) break;
230
+ mem[ptr + offset] = code;
231
+ }
232
+ if (offset !== len) {
233
+ if (offset !== 0) {
234
+ arg = arg.slice(offset);
235
+ }
236
+ ptr = realloc(ptr, len, len = offset + arg.length * 3, 1) >>> 0;
237
+ const view = getUint8ArrayMemory0().subarray(ptr + offset, ptr + len);
238
+ const ret = cachedTextEncoder.encodeInto(arg, view);
239
+
240
+ offset += ret.written;
241
+ ptr = realloc(ptr, len, offset, 1) >>> 0;
242
+ }
243
+
244
+ WASM_VECTOR_LEN = offset;
245
+ return ptr;
246
+ }
247
+
248
+ function takeObject(idx) {
249
+ const ret = getObject(idx);
250
+ dropObject(idx);
251
+ return ret;
252
+ }
253
+
254
+ let cachedTextDecoder = new TextDecoder('utf-8', { ignoreBOM: true, fatal: true });
255
+ cachedTextDecoder.decode();
256
+ const MAX_SAFARI_DECODE_BYTES = 2146435072;
257
+ let numBytesDecoded = 0;
258
+ function decodeText(ptr, len) {
259
+ numBytesDecoded += len;
260
+ if (numBytesDecoded >= MAX_SAFARI_DECODE_BYTES) {
261
+ cachedTextDecoder = new TextDecoder('utf-8', { ignoreBOM: true, fatal: true });
262
+ cachedTextDecoder.decode();
263
+ numBytesDecoded = len;
264
+ }
265
+ return cachedTextDecoder.decode(getUint8ArrayMemory0().subarray(ptr, ptr + len));
266
+ }
267
+
268
+ const cachedTextEncoder = new TextEncoder();
269
+
270
+ if (!('encodeInto' in cachedTextEncoder)) {
271
+ cachedTextEncoder.encodeInto = function (arg, view) {
272
+ const buf = cachedTextEncoder.encode(arg);
273
+ view.set(buf);
274
+ return {
275
+ read: arg.length,
276
+ written: buf.length
277
+ };
278
+ };
279
+ }
280
+
281
+ let WASM_VECTOR_LEN = 0;
282
+
283
+ let wasmModule, wasmInstance, wasm;
284
+ function __wbg_finalize_init(instance, module) {
285
+ wasmInstance = instance;
286
+ wasm = instance.exports;
287
+ wasmModule = module;
288
+ cachedDataViewMemory0 = null;
289
+ cachedUint8ArrayMemory0 = null;
290
+ return wasm;
291
+ }
292
+
293
+ async function __wbg_load(module, imports) {
294
+ if (typeof Response === 'function' && module instanceof Response) {
295
+ if (!module.ok) {
296
+ throw new Error(`failed to fetch Wasm: ${module.status} ${module.statusText} fetching '${module.url}'`);
297
+ }
298
+
299
+ if (typeof WebAssembly.instantiateStreaming === 'function') {
300
+ try {
301
+ return await WebAssembly.instantiateStreaming(module, imports);
302
+ } catch (e) {
303
+ const validResponse = expectedResponseType(module.type);
304
+
305
+ if (validResponse && module.headers.get('Content-Type') !== 'application/wasm') {
306
+ console.warn("`WebAssembly.instantiateStreaming` failed because your server does not serve Wasm with `application/wasm` MIME type. Falling back to `WebAssembly.instantiate` which is slower. Original error:\n", e);
307
+
308
+ } else { throw e; }
309
+ }
310
+ }
311
+
312
+ const bytes = await module.arrayBuffer();
313
+ return await WebAssembly.instantiate(bytes, imports);
314
+ } else {
315
+ const instance = await WebAssembly.instantiate(module, imports);
316
+
317
+ if (instance instanceof WebAssembly.Instance) {
318
+ return { instance, module };
319
+ } else {
320
+ return instance;
321
+ }
322
+ }
323
+
324
+ function expectedResponseType(type) {
325
+ switch (type) {
326
+ case 'basic': case 'cors': case 'default': return true;
327
+ }
328
+ return false;
329
+ }
330
+ }
331
+
332
+ function initSync(module) {
333
+ if (wasm !== undefined) return wasm;
334
+
335
+
336
+ if (module !== undefined) {
337
+ if (Object.getPrototypeOf(module) === Object.prototype) {
338
+ ({module} = module)
339
+ } else {
340
+ console.warn('using deprecated parameters for `initSync()`; pass a single object instead')
341
+ }
342
+ }
343
+
344
+ const imports = __wbg_get_imports();
345
+ if (!(module instanceof WebAssembly.Module)) {
346
+ module = new WebAssembly.Module(module);
347
+ }
348
+ const instance = new WebAssembly.Instance(module, imports);
349
+ return __wbg_finalize_init(instance, module);
350
+ }
351
+
352
+ async function __wbg_init(module_or_path) {
353
+ if (wasm !== undefined) return wasm;
354
+
355
+
356
+ if (module_or_path !== undefined) {
357
+ if (Object.getPrototypeOf(module_or_path) === Object.prototype) {
358
+ ({module_or_path} = module_or_path)
359
+ } else {
360
+ console.warn('using deprecated parameters for the initialization function; pass a single object instead')
361
+ }
362
+ }
363
+
364
+ if (module_or_path === undefined) {
365
+ module_or_path = new URL('culprit_wasm_bg.wasm', import.meta.url);
366
+ }
367
+ const imports = __wbg_get_imports();
368
+
369
+ if (typeof module_or_path === 'string' || (typeof Request === 'function' && module_or_path instanceof Request) || (typeof URL === 'function' && module_or_path instanceof URL)) {
370
+ module_or_path = fetch(module_or_path);
371
+ }
372
+
373
+ const { instance, module } = await __wbg_load(await module_or_path, imports);
374
+
375
+ return __wbg_finalize_init(instance, module);
376
+ }
377
+
378
+ export { initSync, __wbg_init as default };
Binary file
@@ -0,0 +1,11 @@
1
+ /* tslint:disable */
2
+ /* eslint-disable */
3
+ export const memory: WebAssembly.Memory;
4
+ export const diffPlansJson: (a: number, b: number, c: number, d: number, e: number, f: number, g: number, h: number, i: number, j: number, k: number) => void;
5
+ export const exportPlanJson: (a: number, b: number, c: number, d: number, e: number, f: number, g: number, h: number, i: number, j: number, k: number) => void;
6
+ export const parseDeadlockJson: (a: number, b: number, c: number) => void;
7
+ export const parsePlanJson: (a: number, b: number, c: number, d: number, e: number) => void;
8
+ export const __wbindgen_add_to_stack_pointer: (a: number) => number;
9
+ export const __wbindgen_export: (a: number, b: number) => number;
10
+ export const __wbindgen_export2: (a: number, b: number, c: number, d: number) => number;
11
+ export const __wbindgen_export3: (a: number, b: number, c: number) => void;