mdmodels-core 0.2.3 → 0.2.5

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,18 @@ export function parse_model(markdown_content: string): DataModel;
27
27
  * - `Err(JsValue)` if there is an error during parsing or conversion.
28
28
  */
29
29
  export function convert_to(markdown_content: string, template: Templates): string;
30
+ /**
31
+ * Parses the given JSON schema string into a `DataModel`.
32
+ *
33
+ * # Arguments
34
+ *
35
+ * * `json_schema` - A string slice that holds the JSON schema to be parsed.
36
+ *
37
+ * # Returns
38
+ *
39
+ * A `String` or an error `JsError`.
40
+ */
41
+ export function from_json_schema(json_schema: any): string;
30
42
  /**
31
43
  * Returns the JSON schema for the given markdown content.
32
44
  *
@@ -59,34 +71,124 @@ export function validate(markdown_content: string): Validator;
59
71
  * Enumeration of available templates.
60
72
  */
61
73
  export enum Templates {
74
+ /**
75
+ * XML Schema
76
+ */
62
77
  XmlSchema = 0,
78
+ /**
79
+ * Markdown
80
+ */
63
81
  Markdown = 1,
82
+ /**
83
+ * Compact Markdown
84
+ */
64
85
  CompactMarkdown = 2,
86
+ /**
87
+ * SHACL
88
+ */
65
89
  Shacl = 3,
90
+ /**
91
+ * JSON Schema
92
+ */
66
93
  JsonSchema = 4,
94
+ /**
95
+ * JSON Schema All
96
+ */
67
97
  JsonSchemaAll = 5,
98
+ /**
99
+ * SHACL
100
+ */
68
101
  Shex = 6,
102
+ /**
103
+ * Python Dataclass
104
+ */
69
105
  PythonDataclass = 7,
106
+ /**
107
+ * Python Pydantic XML
108
+ */
70
109
  PythonPydanticXML = 8,
110
+ /**
111
+ * Python Pydantic
112
+ */
71
113
  PythonPydantic = 9,
114
+ /**
115
+ * MkDocs
116
+ */
72
117
  MkDocs = 10,
118
+ /**
119
+ * Internal
120
+ */
73
121
  Internal = 11,
122
+ /**
123
+ * Typescript (io-ts)
124
+ */
74
125
  Typescript = 12,
126
+ /**
127
+ * Typescript (Zod)
128
+ */
75
129
  TypescriptZod = 13,
130
+ /**
131
+ * Rust
132
+ */
76
133
  Rust = 14,
134
+ /**
135
+ * Protobuf
136
+ */
77
137
  Protobuf = 15,
138
+ /**
139
+ * Graphql
140
+ */
78
141
  Graphql = 16,
142
+ /**
143
+ * Golang
144
+ */
79
145
  Golang = 17,
146
+ /**
147
+ * Linkml
148
+ */
80
149
  Linkml = 18,
150
+ /**
151
+ * Julia
152
+ */
81
153
  Julia = 19,
154
+ /**
155
+ * Mermaid class diagram
156
+ */
157
+ Mermaid = 20,
82
158
  }
83
- export interface DataModel {
84
- name?: string;
85
- objects: Object[];
86
- enums: Enumeration[];
87
- config?: FrontMatter;
159
+ /**
160
+ * A raw key-value representation of an attribute option.
161
+ *
162
+ * This struct provides a simple string-based representation of options,
163
+ * which is useful for serialization/deserialization and when working
164
+ * with untyped data.
165
+ */
166
+ export interface RawOption {
167
+ /**
168
+ * The key/name of the option
169
+ */
170
+ key: string;
171
+ /**
172
+ * The string value of the option
173
+ */
174
+ value: string;
88
175
  }
89
176
 
177
+ /**
178
+ * Represents an option for an attribute in a data model.
179
+ *
180
+ * This enum provides a strongly-typed representation of various attribute options
181
+ * that can be used to configure and constrain attributes in a data model.
182
+ *
183
+ * The options are grouped into several categories:
184
+ * - JSON Schema validation options (e.g., minimum/maximum values, length constraints)
185
+ * - SQL database options (e.g., primary key)
186
+ * - LinkML specific options (e.g., readonly, recommended)
187
+ * - Custom options via the `Other` variant
188
+ *
189
+ */
190
+ export type AttrOption = { Example: string } | { MinimumValue: number } | { MaximumValue: number } | { MinItems: number } | { MaxItems: number } | { MinLength: number } | { MaxLength: number } | { Pattern: string } | { Unique: boolean } | { MultipleOf: number } | { ExclusiveMinimum: number } | { ExclusiveMaximum: number } | { PrimaryKey: boolean } | { ReadOnly: boolean } | { Recommended: boolean } | { Other: { key: string; value: string } };
191
+
90
192
  export type DataType = { Boolean: boolean } | { Integer: number } | { Float: number } | { String: string };
91
193
 
92
194
  /**
@@ -173,62 +275,21 @@ export interface ValidationError {
173
275
  positions: Position[];
174
276
  }
175
277
 
176
- /**
177
- * Represents an XML type, either an attribute or an element.
178
- */
179
- export type XMLType = { Attribute: { is_attr: boolean; name: string } } | { Element: { is_attr: boolean; name: string } } | { Wrapped: { is_attr: boolean; name: string; wrapped: string[] | undefined } };
278
+ export interface PositionRange {
279
+ start: number;
280
+ end: number;
281
+ }
180
282
 
181
- /**
182
- * Represents an enumeration with a name and mappings.
183
- */
184
- export interface Enumeration {
185
- /**
186
- * Name of the enumeration.
187
- */
188
- name: string;
189
- /**
190
- * Mappings associated with the enumeration.
191
- */
192
- mappings: Map<string, string>;
193
- /**
194
- * Documentation string for the enumeration.
195
- */
196
- docstring: string;
197
- /**
198
- * The line number of the enumeration
199
- */
200
- position: Position | undefined;
283
+ export interface Position {
284
+ line: number;
285
+ column: PositionRange;
286
+ offset: PositionRange;
201
287
  }
202
288
 
203
289
  /**
204
- * Represents an object with a name, attributes, docstring, and an optional term.
290
+ * Represents an XML type, either an attribute or an element.
205
291
  */
206
- export interface Object {
207
- /**
208
- * Name of the object.
209
- */
210
- name: string;
211
- /**
212
- * List of attributes associated with the object.
213
- */
214
- attributes: Attribute[];
215
- /**
216
- * Documentation string for the object.
217
- */
218
- docstring: string;
219
- /**
220
- * Optional term associated with the object.
221
- */
222
- term?: string;
223
- /**
224
- * Parent object of the object.
225
- */
226
- parent?: string;
227
- /**
228
- * The line number of the object
229
- */
230
- position?: Position;
231
- }
292
+ export type XMLType = { Attribute: { is_attr: boolean; name: string } } | { Element: { is_attr: boolean; name: string } } | { Wrapped: { is_attr: boolean; name: string; wrapped: string[] | undefined } };
232
293
 
233
294
  /**
234
295
  * Represents different types of model imports.
@@ -276,46 +337,61 @@ export interface FrontMatter {
276
337
  }
277
338
 
278
339
  /**
279
- * A raw key-value representation of an attribute option.
280
- *
281
- * This struct provides a simple string-based representation of options,
282
- * which is useful for serialization/deserialization and when working
283
- * with untyped data.
340
+ * Represents an enumeration with a name and mappings.
284
341
  */
285
- export interface RawOption {
342
+ export interface Enumeration {
286
343
  /**
287
- * The key/name of the option
344
+ * Name of the enumeration.
288
345
  */
289
- key: string;
346
+ name: string;
290
347
  /**
291
- * The string value of the option
348
+ * Mappings associated with the enumeration.
292
349
  */
293
- value: string;
350
+ mappings: Map<string, string>;
351
+ /**
352
+ * Documentation string for the enumeration.
353
+ */
354
+ docstring: string;
355
+ /**
356
+ * The line number of the enumeration
357
+ */
358
+ position: Position | undefined;
294
359
  }
295
360
 
296
361
  /**
297
- * Represents an option for an attribute in a data model.
298
- *
299
- * This enum provides a strongly-typed representation of various attribute options
300
- * that can be used to configure and constrain attributes in a data model.
301
- *
302
- * The options are grouped into several categories:
303
- * - JSON Schema validation options (e.g., minimum/maximum values, length constraints)
304
- * - SQL database options (e.g., primary key)
305
- * - LinkML specific options (e.g., readonly, recommended)
306
- * - Custom options via the `Other` variant
307
- *
362
+ * Represents an object with a name, attributes, docstring, and an optional term.
308
363
  */
309
- export type AttrOption = { Example: string } | { MinimumValue: number } | { MaximumValue: number } | { MinItems: number } | { MaxItems: number } | { MinLength: number } | { MaxLength: number } | { Pattern: string } | { Unique: boolean } | { MultipleOf: number } | { ExclusiveMinimum: number } | { ExclusiveMaximum: number } | { PrimaryKey: boolean } | { ReadOnly: boolean } | { Recommended: boolean } | { Other: { key: string; value: string } };
310
-
311
- export interface PositionRange {
312
- start: number;
313
- end: number;
364
+ export interface Object {
365
+ /**
366
+ * Name of the object.
367
+ */
368
+ name: string;
369
+ /**
370
+ * List of attributes associated with the object.
371
+ */
372
+ attributes: Attribute[];
373
+ /**
374
+ * Documentation string for the object.
375
+ */
376
+ docstring: string;
377
+ /**
378
+ * Optional term associated with the object.
379
+ */
380
+ term?: string;
381
+ /**
382
+ * Other objects that this object gets mixed in with.
383
+ */
384
+ mixins?: string[];
385
+ /**
386
+ * The line number of the object
387
+ */
388
+ position?: Position;
314
389
  }
315
390
 
316
- export interface Position {
317
- line: number;
318
- column: PositionRange;
319
- offset: PositionRange;
391
+ export interface DataModel {
392
+ name?: string;
393
+ objects: Object[];
394
+ enums: Enumeration[];
395
+ config?: FrontMatter;
320
396
  }
321
397
 
@@ -80,6 +80,90 @@ function getDataViewMemory0() {
80
80
  return cachedDataViewMemory0;
81
81
  }
82
82
 
83
+ function addToExternrefTable0(obj) {
84
+ const idx = wasm.__externref_table_alloc();
85
+ wasm.__wbindgen_export_4.set(idx, obj);
86
+ return idx;
87
+ }
88
+
89
+ function handleError(f, args) {
90
+ try {
91
+ return f.apply(this, args);
92
+ } catch (e) {
93
+ const idx = addToExternrefTable0(e);
94
+ wasm.__wbindgen_exn_store(idx);
95
+ }
96
+ }
97
+
98
+ function isLikeNone(x) {
99
+ return x === undefined || x === null;
100
+ }
101
+
102
+ function debugString(val) {
103
+ // primitive types
104
+ const type = typeof val;
105
+ if (type == 'number' || type == 'boolean' || val == null) {
106
+ return `${val}`;
107
+ }
108
+ if (type == 'string') {
109
+ return `"${val}"`;
110
+ }
111
+ if (type == 'symbol') {
112
+ const description = val.description;
113
+ if (description == null) {
114
+ return 'Symbol';
115
+ } else {
116
+ return `Symbol(${description})`;
117
+ }
118
+ }
119
+ if (type == 'function') {
120
+ const name = val.name;
121
+ if (typeof name == 'string' && name.length > 0) {
122
+ return `Function(${name})`;
123
+ } else {
124
+ return 'Function';
125
+ }
126
+ }
127
+ // objects
128
+ if (Array.isArray(val)) {
129
+ const length = val.length;
130
+ let debug = '[';
131
+ if (length > 0) {
132
+ debug += debugString(val[0]);
133
+ }
134
+ for(let i = 1; i < length; i++) {
135
+ debug += ', ' + debugString(val[i]);
136
+ }
137
+ debug += ']';
138
+ return debug;
139
+ }
140
+ // Test for built-in
141
+ const builtInMatches = /\[object ([^\]]+)\]/.exec(toString.call(val));
142
+ let className;
143
+ if (builtInMatches && builtInMatches.length > 1) {
144
+ className = builtInMatches[1];
145
+ } else {
146
+ // Failed to match the standard '[object ClassName]'
147
+ return toString.call(val);
148
+ }
149
+ if (className == 'Object') {
150
+ // we're a user defined class or Object
151
+ // JSON.stringify avoids problems with cycles, and is generally much
152
+ // easier than looping through ownProperties of `val`.
153
+ try {
154
+ return 'Object(' + JSON.stringify(val) + ')';
155
+ } catch (_) {
156
+ return 'Object';
157
+ }
158
+ }
159
+ // errors
160
+ if (val instanceof Error) {
161
+ return `${val.name}: ${val.message}\n${val.stack}`;
162
+ }
163
+ // TODO we could test for more things here, like `Set`s and `Map`s.
164
+ return className;
165
+ }
166
+
83
167
  const lTextDecoder = typeof TextDecoder === 'undefined' ? (0, module.require)('util').TextDecoder : TextDecoder;
84
168
 
85
169
  let cachedTextDecoder = new lTextDecoder('utf-8', { ignoreBOM: true, fatal: true });
@@ -92,7 +176,7 @@ function getStringFromWasm0(ptr, len) {
92
176
  }
93
177
 
94
178
  function takeFromExternrefTable0(idx) {
95
- const value = wasm.__wbindgen_export_2.get(idx);
179
+ const value = wasm.__wbindgen_export_4.get(idx);
96
180
  wasm.__externref_table_dealloc(idx);
97
181
  return value;
98
182
  }
@@ -157,9 +241,38 @@ export function convert_to(markdown_content, template) {
157
241
  }
158
242
  }
159
243
 
160
- function isLikeNone(x) {
161
- return x === undefined || x === null;
244
+ /**
245
+ * Parses the given JSON schema string into a `DataModel`.
246
+ *
247
+ * # Arguments
248
+ *
249
+ * * `json_schema` - A string slice that holds the JSON schema to be parsed.
250
+ *
251
+ * # Returns
252
+ *
253
+ * A `String` or an error `JsError`.
254
+ * @param {any} json_schema
255
+ * @returns {string}
256
+ */
257
+ export function from_json_schema(json_schema) {
258
+ let deferred2_0;
259
+ let deferred2_1;
260
+ try {
261
+ const ret = wasm.from_json_schema(json_schema);
262
+ var ptr1 = ret[0];
263
+ var len1 = ret[1];
264
+ if (ret[3]) {
265
+ ptr1 = 0; len1 = 0;
266
+ throw takeFromExternrefTable0(ret[2]);
267
+ }
268
+ deferred2_0 = ptr1;
269
+ deferred2_1 = len1;
270
+ return getStringFromWasm0(ptr1, len1);
271
+ } finally {
272
+ wasm.__wbindgen_free(deferred2_0, deferred2_1, 1);
273
+ }
162
274
  }
275
+
163
276
  /**
164
277
  * Returns the JSON schema for the given markdown content.
165
278
  *
@@ -224,29 +337,93 @@ export function validate(markdown_content) {
224
337
 
225
338
  /**
226
339
  * Enumeration of available templates.
227
- * @enum {0 | 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19}
340
+ * @enum {0 | 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20}
228
341
  */
229
342
  export const Templates = Object.freeze({
343
+ /**
344
+ * XML Schema
345
+ */
230
346
  XmlSchema: 0, "0": "XmlSchema",
347
+ /**
348
+ * Markdown
349
+ */
231
350
  Markdown: 1, "1": "Markdown",
351
+ /**
352
+ * Compact Markdown
353
+ */
232
354
  CompactMarkdown: 2, "2": "CompactMarkdown",
355
+ /**
356
+ * SHACL
357
+ */
233
358
  Shacl: 3, "3": "Shacl",
359
+ /**
360
+ * JSON Schema
361
+ */
234
362
  JsonSchema: 4, "4": "JsonSchema",
363
+ /**
364
+ * JSON Schema All
365
+ */
235
366
  JsonSchemaAll: 5, "5": "JsonSchemaAll",
367
+ /**
368
+ * SHACL
369
+ */
236
370
  Shex: 6, "6": "Shex",
371
+ /**
372
+ * Python Dataclass
373
+ */
237
374
  PythonDataclass: 7, "7": "PythonDataclass",
375
+ /**
376
+ * Python Pydantic XML
377
+ */
238
378
  PythonPydanticXML: 8, "8": "PythonPydanticXML",
379
+ /**
380
+ * Python Pydantic
381
+ */
239
382
  PythonPydantic: 9, "9": "PythonPydantic",
383
+ /**
384
+ * MkDocs
385
+ */
240
386
  MkDocs: 10, "10": "MkDocs",
387
+ /**
388
+ * Internal
389
+ */
241
390
  Internal: 11, "11": "Internal",
391
+ /**
392
+ * Typescript (io-ts)
393
+ */
242
394
  Typescript: 12, "12": "Typescript",
395
+ /**
396
+ * Typescript (Zod)
397
+ */
243
398
  TypescriptZod: 13, "13": "TypescriptZod",
399
+ /**
400
+ * Rust
401
+ */
244
402
  Rust: 14, "14": "Rust",
403
+ /**
404
+ * Protobuf
405
+ */
245
406
  Protobuf: 15, "15": "Protobuf",
407
+ /**
408
+ * Graphql
409
+ */
246
410
  Graphql: 16, "16": "Graphql",
411
+ /**
412
+ * Golang
413
+ */
247
414
  Golang: 17, "17": "Golang",
415
+ /**
416
+ * Linkml
417
+ */
248
418
  Linkml: 18, "18": "Linkml",
419
+ /**
420
+ * Julia
421
+ */
249
422
  Julia: 19, "19": "Julia",
423
+ /**
424
+ * Mermaid class diagram
425
+ */
426
+ Mermaid: 20, "20": "Mermaid",
250
427
  });
251
428
 
252
429
  export function __wbg_String_8f0eb39a4a4c2f66(arg0, arg1) {
@@ -257,11 +434,109 @@ export function __wbg_String_8f0eb39a4a4c2f66(arg0, arg1) {
257
434
  getDataViewMemory0().setInt32(arg0 + 4 * 0, ptr1, true);
258
435
  };
259
436
 
437
+ export function __wbg_buffer_61b7ce01341d7f88(arg0) {
438
+ const ret = arg0.buffer;
439
+ return ret;
440
+ };
441
+
442
+ export function __wbg_call_b0d8e36992d9900d() { return handleError(function (arg0, arg1) {
443
+ const ret = arg0.call(arg1);
444
+ return ret;
445
+ }, arguments) };
446
+
447
+ export function __wbg_done_f22c1561fa919baa(arg0) {
448
+ const ret = arg0.done;
449
+ return ret;
450
+ };
451
+
452
+ export function __wbg_entries_4f2bb9b0d701c0f6(arg0) {
453
+ const ret = Object.entries(arg0);
454
+ return ret;
455
+ };
456
+
457
+ export function __wbg_get_9aa3dff3f0266054(arg0, arg1) {
458
+ const ret = arg0[arg1 >>> 0];
459
+ return ret;
460
+ };
461
+
462
+ export function __wbg_get_bbccf8970793c087() { return handleError(function (arg0, arg1) {
463
+ const ret = Reflect.get(arg0, arg1);
464
+ return ret;
465
+ }, arguments) };
466
+
467
+ export function __wbg_getwithrefkey_1dc361bd10053bfe(arg0, arg1) {
468
+ const ret = arg0[arg1];
469
+ return ret;
470
+ };
471
+
472
+ export function __wbg_instanceof_ArrayBuffer_670ddde44cdb2602(arg0) {
473
+ let result;
474
+ try {
475
+ result = arg0 instanceof ArrayBuffer;
476
+ } catch (_) {
477
+ result = false;
478
+ }
479
+ const ret = result;
480
+ return ret;
481
+ };
482
+
483
+ export function __wbg_instanceof_Map_98ecb30afec5acdb(arg0) {
484
+ let result;
485
+ try {
486
+ result = arg0 instanceof Map;
487
+ } catch (_) {
488
+ result = false;
489
+ }
490
+ const ret = result;
491
+ return ret;
492
+ };
493
+
494
+ export function __wbg_instanceof_Uint8Array_28af5bc19d6acad8(arg0) {
495
+ let result;
496
+ try {
497
+ result = arg0 instanceof Uint8Array;
498
+ } catch (_) {
499
+ result = false;
500
+ }
501
+ const ret = result;
502
+ return ret;
503
+ };
504
+
505
+ export function __wbg_isArray_1ba11a930108ec51(arg0) {
506
+ const ret = Array.isArray(arg0);
507
+ return ret;
508
+ };
509
+
510
+ export function __wbg_isSafeInteger_12f5549b2fca23f4(arg0) {
511
+ const ret = Number.isSafeInteger(arg0);
512
+ return ret;
513
+ };
514
+
515
+ export function __wbg_iterator_23604bb983791576() {
516
+ const ret = Symbol.iterator;
517
+ return ret;
518
+ };
519
+
520
+ export function __wbg_length_65d1cd11729ced11(arg0) {
521
+ const ret = arg0.length;
522
+ return ret;
523
+ };
524
+
525
+ export function __wbg_length_d65cf0786bfc5739(arg0) {
526
+ const ret = arg0.length;
527
+ return ret;
528
+ };
529
+
260
530
  export function __wbg_new_254fa9eac11932ae() {
261
531
  const ret = new Array();
262
532
  return ret;
263
533
  };
264
534
 
535
+ export function __wbg_new_3ff5b33b1ce712df(arg0) {
536
+ const ret = new Uint8Array(arg0);
537
+ return ret;
538
+ };
539
+
265
540
  export function __wbg_new_688846f374351c92() {
266
541
  const ret = new Object();
267
542
  return ret;
@@ -272,10 +547,24 @@ export function __wbg_new_bc96c6a1c0786643() {
272
547
  return ret;
273
548
  };
274
549
 
550
+ export function __wbg_next_01dd9234a5bf6d05() { return handleError(function (arg0) {
551
+ const ret = arg0.next();
552
+ return ret;
553
+ }, arguments) };
554
+
555
+ export function __wbg_next_137428deb98342b0(arg0) {
556
+ const ret = arg0.next;
557
+ return ret;
558
+ };
559
+
275
560
  export function __wbg_set_1d80752d0d5f0b21(arg0, arg1, arg2) {
276
561
  arg0[arg1 >>> 0] = arg2;
277
562
  };
278
563
 
564
+ export function __wbg_set_23d69db4e5c66a6e(arg0, arg1, arg2) {
565
+ arg0.set(arg1, arg2 >>> 0);
566
+ };
567
+
279
568
  export function __wbg_set_3f1d0b984ed272ed(arg0, arg1, arg2) {
280
569
  arg0[arg1] = arg2;
281
570
  };
@@ -285,6 +574,11 @@ export function __wbg_set_76818dc3c59a63d5(arg0, arg1, arg2) {
285
574
  return ret;
286
575
  };
287
576
 
577
+ export function __wbg_value_4c32fd138a88eee2(arg0) {
578
+ const ret = arg0.value;
579
+ return ret;
580
+ };
581
+
288
582
  export function __wbindgen_bigint_from_i64(arg0) {
289
583
  const ret = arg0;
290
584
  return ret;
@@ -295,13 +589,39 @@ export function __wbindgen_bigint_from_u64(arg0) {
295
589
  return ret;
296
590
  };
297
591
 
592
+ export function __wbindgen_bigint_get_as_i64(arg0, arg1) {
593
+ const v = arg1;
594
+ const ret = typeof(v) === 'bigint' ? v : undefined;
595
+ getDataViewMemory0().setBigInt64(arg0 + 8 * 1, isLikeNone(ret) ? BigInt(0) : ret, true);
596
+ getDataViewMemory0().setInt32(arg0 + 4 * 0, !isLikeNone(ret), true);
597
+ };
598
+
599
+ export function __wbindgen_boolean_get(arg0) {
600
+ const v = arg0;
601
+ const ret = typeof(v) === 'boolean' ? (v ? 1 : 0) : 2;
602
+ return ret;
603
+ };
604
+
605
+ export function __wbindgen_debug_string(arg0, arg1) {
606
+ const ret = debugString(arg1);
607
+ const ptr1 = passStringToWasm0(ret, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
608
+ const len1 = WASM_VECTOR_LEN;
609
+ getDataViewMemory0().setInt32(arg0 + 4 * 1, len1, true);
610
+ getDataViewMemory0().setInt32(arg0 + 4 * 0, ptr1, true);
611
+ };
612
+
298
613
  export function __wbindgen_error_new(arg0, arg1) {
299
614
  const ret = new Error(getStringFromWasm0(arg0, arg1));
300
615
  return ret;
301
616
  };
302
617
 
618
+ export function __wbindgen_in(arg0, arg1) {
619
+ const ret = arg0 in arg1;
620
+ return ret;
621
+ };
622
+
303
623
  export function __wbindgen_init_externref_table() {
304
- const table = wasm.__wbindgen_export_2;
624
+ const table = wasm.__wbindgen_export_4;
305
625
  const offset = table.grow(4);
306
626
  table.set(0, undefined);
307
627
  table.set(offset + 0, undefined);
@@ -311,16 +631,68 @@ export function __wbindgen_init_externref_table() {
311
631
  ;
312
632
  };
313
633
 
634
+ export function __wbindgen_is_bigint(arg0) {
635
+ const ret = typeof(arg0) === 'bigint';
636
+ return ret;
637
+ };
638
+
639
+ export function __wbindgen_is_function(arg0) {
640
+ const ret = typeof(arg0) === 'function';
641
+ return ret;
642
+ };
643
+
644
+ export function __wbindgen_is_object(arg0) {
645
+ const val = arg0;
646
+ const ret = typeof(val) === 'object' && val !== null;
647
+ return ret;
648
+ };
649
+
314
650
  export function __wbindgen_is_string(arg0) {
315
651
  const ret = typeof(arg0) === 'string';
316
652
  return ret;
317
653
  };
318
654
 
655
+ export function __wbindgen_is_undefined(arg0) {
656
+ const ret = arg0 === undefined;
657
+ return ret;
658
+ };
659
+
660
+ export function __wbindgen_jsval_eq(arg0, arg1) {
661
+ const ret = arg0 === arg1;
662
+ return ret;
663
+ };
664
+
665
+ export function __wbindgen_jsval_loose_eq(arg0, arg1) {
666
+ const ret = arg0 == arg1;
667
+ return ret;
668
+ };
669
+
670
+ export function __wbindgen_memory() {
671
+ const ret = wasm.memory;
672
+ return ret;
673
+ };
674
+
675
+ export function __wbindgen_number_get(arg0, arg1) {
676
+ const obj = arg1;
677
+ const ret = typeof(obj) === 'number' ? obj : undefined;
678
+ getDataViewMemory0().setFloat64(arg0 + 8 * 1, isLikeNone(ret) ? 0 : ret, true);
679
+ getDataViewMemory0().setInt32(arg0 + 4 * 0, !isLikeNone(ret), true);
680
+ };
681
+
319
682
  export function __wbindgen_number_new(arg0) {
320
683
  const ret = arg0;
321
684
  return ret;
322
685
  };
323
686
 
687
+ export function __wbindgen_string_get(arg0, arg1) {
688
+ const obj = arg1;
689
+ const ret = typeof(obj) === 'string' ? obj : undefined;
690
+ var ptr1 = isLikeNone(ret) ? 0 : passStringToWasm0(ret, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
691
+ var len1 = WASM_VECTOR_LEN;
692
+ getDataViewMemory0().setInt32(arg0 + 4 * 1, len1, true);
693
+ getDataViewMemory0().setInt32(arg0 + 4 * 0, ptr1, true);
694
+ };
695
+
324
696
  export function __wbindgen_string_new(arg0, arg1) {
325
697
  const ret = getStringFromWasm0(arg0, arg1);
326
698
  return ret;
Binary file
package/package.json CHANGED
@@ -5,7 +5,7 @@
5
5
  "Jan Range <jan.range@simtech.uni-stuttgart.de>"
6
6
  ],
7
7
  "description": "A tool to generate models, code and schemas from markdown files",
8
- "version": "0.2.3",
8
+ "version": "0.2.5",
9
9
  "license": "MIT",
10
10
  "repository": {
11
11
  "type": "git",