mdmodels-core 0.2.4 → 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.
- package/mdmodels-core.d.ts +125 -113
- package/mdmodels-core_bg.js +312 -4
- package/mdmodels-core_bg.wasm +0 -0
- package/package.json +1 -1
package/mdmodels-core.d.ts
CHANGED
|
@@ -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
|
*
|
|
@@ -144,56 +156,6 @@ export enum Templates {
|
|
|
144
156
|
*/
|
|
145
157
|
Mermaid = 20,
|
|
146
158
|
}
|
|
147
|
-
/**
|
|
148
|
-
* Represents different types of model imports.
|
|
149
|
-
*
|
|
150
|
-
* Can be either a remote URL or a local file path.
|
|
151
|
-
*/
|
|
152
|
-
export type ImportType = { Remote: string } | { Local: string };
|
|
153
|
-
|
|
154
|
-
/**
|
|
155
|
-
* Represents the front matter data of a markdown file.
|
|
156
|
-
*/
|
|
157
|
-
export interface FrontMatter {
|
|
158
|
-
/**
|
|
159
|
-
* Identifier field of the model.
|
|
160
|
-
*/
|
|
161
|
-
id: string | undefined;
|
|
162
|
-
/**
|
|
163
|
-
* A boolean field with a default value, renamed from `id-field`.
|
|
164
|
-
*/
|
|
165
|
-
"id-field"?: boolean;
|
|
166
|
-
/**
|
|
167
|
-
* Optional hashmap of prefixes.
|
|
168
|
-
*/
|
|
169
|
-
prefixes: Map<string, string> | undefined;
|
|
170
|
-
/**
|
|
171
|
-
* Optional namespace map.
|
|
172
|
-
*/
|
|
173
|
-
nsmap: Map<string, string> | undefined;
|
|
174
|
-
/**
|
|
175
|
-
* A string field with a default value representing the repository URL.
|
|
176
|
-
*/
|
|
177
|
-
repo?: string;
|
|
178
|
-
/**
|
|
179
|
-
* A string field with a default value representing the prefix.
|
|
180
|
-
*/
|
|
181
|
-
prefix?: string;
|
|
182
|
-
/**
|
|
183
|
-
* Import remote or local models.
|
|
184
|
-
*/
|
|
185
|
-
imports?: Map<string, ImportType>;
|
|
186
|
-
/**
|
|
187
|
-
* Allow empty models.
|
|
188
|
-
*/
|
|
189
|
-
"allow-empty"?: boolean;
|
|
190
|
-
}
|
|
191
|
-
|
|
192
|
-
/**
|
|
193
|
-
* Represents an XML type, either an attribute or an element.
|
|
194
|
-
*/
|
|
195
|
-
export type XMLType = { Attribute: { is_attr: boolean; name: string } } | { Element: { is_attr: boolean; name: string } } | { Wrapped: { is_attr: boolean; name: string; wrapped: string[] | undefined } };
|
|
196
|
-
|
|
197
159
|
/**
|
|
198
160
|
* A raw key-value representation of an attribute option.
|
|
199
161
|
*
|
|
@@ -227,58 +189,6 @@ export interface RawOption {
|
|
|
227
189
|
*/
|
|
228
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 } };
|
|
229
191
|
|
|
230
|
-
/**
|
|
231
|
-
* Represents an enumeration with a name and mappings.
|
|
232
|
-
*/
|
|
233
|
-
export interface Enumeration {
|
|
234
|
-
/**
|
|
235
|
-
* Name of the enumeration.
|
|
236
|
-
*/
|
|
237
|
-
name: string;
|
|
238
|
-
/**
|
|
239
|
-
* Mappings associated with the enumeration.
|
|
240
|
-
*/
|
|
241
|
-
mappings: Map<string, string>;
|
|
242
|
-
/**
|
|
243
|
-
* Documentation string for the enumeration.
|
|
244
|
-
*/
|
|
245
|
-
docstring: string;
|
|
246
|
-
/**
|
|
247
|
-
* The line number of the enumeration
|
|
248
|
-
*/
|
|
249
|
-
position: Position | undefined;
|
|
250
|
-
}
|
|
251
|
-
|
|
252
|
-
/**
|
|
253
|
-
* Represents an object with a name, attributes, docstring, and an optional term.
|
|
254
|
-
*/
|
|
255
|
-
export interface Object {
|
|
256
|
-
/**
|
|
257
|
-
* Name of the object.
|
|
258
|
-
*/
|
|
259
|
-
name: string;
|
|
260
|
-
/**
|
|
261
|
-
* List of attributes associated with the object.
|
|
262
|
-
*/
|
|
263
|
-
attributes: Attribute[];
|
|
264
|
-
/**
|
|
265
|
-
* Documentation string for the object.
|
|
266
|
-
*/
|
|
267
|
-
docstring: string;
|
|
268
|
-
/**
|
|
269
|
-
* Optional term associated with the object.
|
|
270
|
-
*/
|
|
271
|
-
term?: string;
|
|
272
|
-
/**
|
|
273
|
-
* Parent object of the object.
|
|
274
|
-
*/
|
|
275
|
-
parent?: string;
|
|
276
|
-
/**
|
|
277
|
-
* The line number of the object
|
|
278
|
-
*/
|
|
279
|
-
position?: Position;
|
|
280
|
-
}
|
|
281
|
-
|
|
282
192
|
export type DataType = { Boolean: boolean } | { Integer: number } | { Float: number } | { String: string };
|
|
283
193
|
|
|
284
194
|
/**
|
|
@@ -339,17 +249,6 @@ export interface Attribute {
|
|
|
339
249
|
import_prefix?: string;
|
|
340
250
|
}
|
|
341
251
|
|
|
342
|
-
export interface PositionRange {
|
|
343
|
-
start: number;
|
|
344
|
-
end: number;
|
|
345
|
-
}
|
|
346
|
-
|
|
347
|
-
export interface Position {
|
|
348
|
-
line: number;
|
|
349
|
-
column: PositionRange;
|
|
350
|
-
offset: PositionRange;
|
|
351
|
-
}
|
|
352
|
-
|
|
353
252
|
/**
|
|
354
253
|
* Validator for checking the integrity of a data model.
|
|
355
254
|
*/
|
|
@@ -376,6 +275,119 @@ export interface ValidationError {
|
|
|
376
275
|
positions: Position[];
|
|
377
276
|
}
|
|
378
277
|
|
|
278
|
+
export interface PositionRange {
|
|
279
|
+
start: number;
|
|
280
|
+
end: number;
|
|
281
|
+
}
|
|
282
|
+
|
|
283
|
+
export interface Position {
|
|
284
|
+
line: number;
|
|
285
|
+
column: PositionRange;
|
|
286
|
+
offset: PositionRange;
|
|
287
|
+
}
|
|
288
|
+
|
|
289
|
+
/**
|
|
290
|
+
* Represents an XML type, either an attribute or an element.
|
|
291
|
+
*/
|
|
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 } };
|
|
293
|
+
|
|
294
|
+
/**
|
|
295
|
+
* Represents different types of model imports.
|
|
296
|
+
*
|
|
297
|
+
* Can be either a remote URL or a local file path.
|
|
298
|
+
*/
|
|
299
|
+
export type ImportType = { Remote: string } | { Local: string };
|
|
300
|
+
|
|
301
|
+
/**
|
|
302
|
+
* Represents the front matter data of a markdown file.
|
|
303
|
+
*/
|
|
304
|
+
export interface FrontMatter {
|
|
305
|
+
/**
|
|
306
|
+
* Identifier field of the model.
|
|
307
|
+
*/
|
|
308
|
+
id: string | undefined;
|
|
309
|
+
/**
|
|
310
|
+
* A boolean field with a default value, renamed from `id-field`.
|
|
311
|
+
*/
|
|
312
|
+
"id-field"?: boolean;
|
|
313
|
+
/**
|
|
314
|
+
* Optional hashmap of prefixes.
|
|
315
|
+
*/
|
|
316
|
+
prefixes: Map<string, string> | undefined;
|
|
317
|
+
/**
|
|
318
|
+
* Optional namespace map.
|
|
319
|
+
*/
|
|
320
|
+
nsmap: Map<string, string> | undefined;
|
|
321
|
+
/**
|
|
322
|
+
* A string field with a default value representing the repository URL.
|
|
323
|
+
*/
|
|
324
|
+
repo?: string;
|
|
325
|
+
/**
|
|
326
|
+
* A string field with a default value representing the prefix.
|
|
327
|
+
*/
|
|
328
|
+
prefix?: string;
|
|
329
|
+
/**
|
|
330
|
+
* Import remote or local models.
|
|
331
|
+
*/
|
|
332
|
+
imports?: Map<string, ImportType>;
|
|
333
|
+
/**
|
|
334
|
+
* Allow empty models.
|
|
335
|
+
*/
|
|
336
|
+
"allow-empty"?: boolean;
|
|
337
|
+
}
|
|
338
|
+
|
|
339
|
+
/**
|
|
340
|
+
* Represents an enumeration with a name and mappings.
|
|
341
|
+
*/
|
|
342
|
+
export interface Enumeration {
|
|
343
|
+
/**
|
|
344
|
+
* Name of the enumeration.
|
|
345
|
+
*/
|
|
346
|
+
name: string;
|
|
347
|
+
/**
|
|
348
|
+
* Mappings associated with the enumeration.
|
|
349
|
+
*/
|
|
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;
|
|
359
|
+
}
|
|
360
|
+
|
|
361
|
+
/**
|
|
362
|
+
* Represents an object with a name, attributes, docstring, and an optional term.
|
|
363
|
+
*/
|
|
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;
|
|
389
|
+
}
|
|
390
|
+
|
|
379
391
|
export interface DataModel {
|
|
380
392
|
name?: string;
|
|
381
393
|
objects: Object[];
|
package/mdmodels-core_bg.js
CHANGED
|
@@ -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.
|
|
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
|
-
|
|
161
|
-
|
|
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
|
*
|
|
@@ -321,11 +434,109 @@ export function __wbg_String_8f0eb39a4a4c2f66(arg0, arg1) {
|
|
|
321
434
|
getDataViewMemory0().setInt32(arg0 + 4 * 0, ptr1, true);
|
|
322
435
|
};
|
|
323
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
|
+
|
|
324
530
|
export function __wbg_new_254fa9eac11932ae() {
|
|
325
531
|
const ret = new Array();
|
|
326
532
|
return ret;
|
|
327
533
|
};
|
|
328
534
|
|
|
535
|
+
export function __wbg_new_3ff5b33b1ce712df(arg0) {
|
|
536
|
+
const ret = new Uint8Array(arg0);
|
|
537
|
+
return ret;
|
|
538
|
+
};
|
|
539
|
+
|
|
329
540
|
export function __wbg_new_688846f374351c92() {
|
|
330
541
|
const ret = new Object();
|
|
331
542
|
return ret;
|
|
@@ -336,10 +547,24 @@ export function __wbg_new_bc96c6a1c0786643() {
|
|
|
336
547
|
return ret;
|
|
337
548
|
};
|
|
338
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
|
+
|
|
339
560
|
export function __wbg_set_1d80752d0d5f0b21(arg0, arg1, arg2) {
|
|
340
561
|
arg0[arg1 >>> 0] = arg2;
|
|
341
562
|
};
|
|
342
563
|
|
|
564
|
+
export function __wbg_set_23d69db4e5c66a6e(arg0, arg1, arg2) {
|
|
565
|
+
arg0.set(arg1, arg2 >>> 0);
|
|
566
|
+
};
|
|
567
|
+
|
|
343
568
|
export function __wbg_set_3f1d0b984ed272ed(arg0, arg1, arg2) {
|
|
344
569
|
arg0[arg1] = arg2;
|
|
345
570
|
};
|
|
@@ -349,6 +574,11 @@ export function __wbg_set_76818dc3c59a63d5(arg0, arg1, arg2) {
|
|
|
349
574
|
return ret;
|
|
350
575
|
};
|
|
351
576
|
|
|
577
|
+
export function __wbg_value_4c32fd138a88eee2(arg0) {
|
|
578
|
+
const ret = arg0.value;
|
|
579
|
+
return ret;
|
|
580
|
+
};
|
|
581
|
+
|
|
352
582
|
export function __wbindgen_bigint_from_i64(arg0) {
|
|
353
583
|
const ret = arg0;
|
|
354
584
|
return ret;
|
|
@@ -359,13 +589,39 @@ export function __wbindgen_bigint_from_u64(arg0) {
|
|
|
359
589
|
return ret;
|
|
360
590
|
};
|
|
361
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
|
+
|
|
362
613
|
export function __wbindgen_error_new(arg0, arg1) {
|
|
363
614
|
const ret = new Error(getStringFromWasm0(arg0, arg1));
|
|
364
615
|
return ret;
|
|
365
616
|
};
|
|
366
617
|
|
|
618
|
+
export function __wbindgen_in(arg0, arg1) {
|
|
619
|
+
const ret = arg0 in arg1;
|
|
620
|
+
return ret;
|
|
621
|
+
};
|
|
622
|
+
|
|
367
623
|
export function __wbindgen_init_externref_table() {
|
|
368
|
-
const table = wasm.
|
|
624
|
+
const table = wasm.__wbindgen_export_4;
|
|
369
625
|
const offset = table.grow(4);
|
|
370
626
|
table.set(0, undefined);
|
|
371
627
|
table.set(offset + 0, undefined);
|
|
@@ -375,16 +631,68 @@ export function __wbindgen_init_externref_table() {
|
|
|
375
631
|
;
|
|
376
632
|
};
|
|
377
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
|
+
|
|
378
650
|
export function __wbindgen_is_string(arg0) {
|
|
379
651
|
const ret = typeof(arg0) === 'string';
|
|
380
652
|
return ret;
|
|
381
653
|
};
|
|
382
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
|
+
|
|
383
682
|
export function __wbindgen_number_new(arg0) {
|
|
384
683
|
const ret = arg0;
|
|
385
684
|
return ret;
|
|
386
685
|
};
|
|
387
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
|
+
|
|
388
696
|
export function __wbindgen_string_new(arg0, arg1) {
|
|
389
697
|
const ret = getStringFromWasm0(arg0, arg1);
|
|
390
698
|
return ret;
|
package/mdmodels-core_bg.wasm
CHANGED
|
Binary file
|
package/package.json
CHANGED