@flywheel-io/fw-file-rs 0.6.2 → 0.7.2

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/dcm/dcm.d.ts CHANGED
@@ -13,7 +13,6 @@ export class Context {
13
13
  group_series(path_header_pairs: any): any;
14
14
  include_tags(tags: any): Context;
15
15
  static is_dcm_filename(filename: string): boolean;
16
- mappings(mappings: any): Context;
17
16
  matches_file_filter(filename: string): boolean;
18
17
  max_size(size: number): Context;
19
18
  constructor();
@@ -54,6 +53,13 @@ export type InitInput = RequestInfo | URL | Response | BufferSource | WebAssembl
54
53
 
55
54
  export interface InitOutput {
56
55
  readonly memory: WebAssembly.Memory;
56
+ readonly __wbg_deidprofile_free: (a: number, b: number) => void;
57
+ readonly deidprofile_deid_dcm: (a: number, b: number, c: number) => [number, number, number, number];
58
+ readonly deidprofile_from_yaml: (a: number, b: number) => [number, number, number];
59
+ readonly create_dcm_as_bytes: (a: any) => [number, number, number, number];
60
+ readonly get_fw_meta: (a: any, b: any) => [number, number, number];
61
+ readonly is_dicom_part10: (a: any) => any;
62
+ readonly read_until_pixels: (a: any, b: any, c: number) => any;
57
63
  readonly __wbg_context_free: (a: number, b: number) => void;
58
64
  readonly context_default: () => number;
59
65
  readonly context_deid_header: (a: number, b: number, c: number) => [number, number, number, number];
@@ -64,7 +70,6 @@ export interface InitOutput {
64
70
  readonly context_group_series: (a: number, b: any) => [number, number, number];
65
71
  readonly context_include_tags: (a: number, b: any) => [number, number, number];
66
72
  readonly context_is_dcm_filename: (a: number, b: number) => number;
67
- readonly context_mappings: (a: number, b: any) => [number, number, number];
68
73
  readonly context_matches_file_filter: (a: number, b: number, c: number) => number;
69
74
  readonly context_max_size: (a: number, b: number) => number;
70
75
  readonly context_parse_header: (a: number, b: number, c: number) => [number, number, number];
@@ -73,24 +78,17 @@ export interface InitOutput {
73
78
  readonly context_split_localizer: (a: number, b: number) => number;
74
79
  readonly context_stop_at_tags: (a: number, b: any) => [number, number, number];
75
80
  readonly context_new: () => number;
76
- readonly parse_header: (a: number, b: number, c: number, d: number) => [number, number, number];
77
- readonly create_dcm_as_bytes: (a: any) => [number, number, number, number];
78
- readonly is_dicom_part10: (a: any) => any;
79
- readonly read_until_pixels: (a: any, b: any, c: number) => any;
80
- readonly __wbg_deidprofile_free: (a: number, b: number) => void;
81
- readonly deidprofile_deid_dcm: (a: number, b: number, c: number) => [number, number, number, number];
82
- readonly deidprofile_from_yaml: (a: number, b: number) => [number, number, number];
83
- readonly get_fw_meta: (a: any, b: any) => [number, number, number];
84
81
  readonly __wbg_wasmdcmgroup_free: (a: number, b: number) => void;
85
82
  readonly group_series: (a: any, b: any, c: number) => any;
86
- readonly wasm_bindgen__closure__destroy__hc703fda7f01827cb: (a: number, b: number) => void;
87
- readonly wasm_bindgen__convert__closures_____invoke__he45b980513d9d817: (a: number, b: number, c: any) => [number, number];
88
- readonly wasm_bindgen__convert__closures_____invoke__h1c3be20287daddfc: (a: number, b: number, c: any, d: any) => void;
83
+ readonly parse_header: (a: number, b: number, c: number, d: number) => [number, number, number];
84
+ readonly wasm_bindgen_2a450bc771b58efd___convert__closures_____invoke___wasm_bindgen_2a450bc771b58efd___JsValue__core_f0fd674eaa06beef___result__Result_____wasm_bindgen_2a450bc771b58efd___JsError___true_: (a: number, b: number, c: any) => [number, number];
85
+ readonly wasm_bindgen_2a450bc771b58efd___convert__closures_____invoke___js_sys_3e9a0dee23731d16___Function_fn_wasm_bindgen_2a450bc771b58efd___JsValue_____wasm_bindgen_2a450bc771b58efd___sys__Undefined___js_sys_3e9a0dee23731d16___Function_fn_wasm_bindgen_2a450bc771b58efd___JsValue_____wasm_bindgen_2a450bc771b58efd___sys__Undefined_______true_: (a: number, b: number, c: any, d: any) => void;
89
86
  readonly __wbindgen_malloc: (a: number, b: number) => number;
90
87
  readonly __wbindgen_realloc: (a: number, b: number, c: number, d: number) => number;
91
88
  readonly __wbindgen_exn_store: (a: number) => void;
92
89
  readonly __externref_table_alloc: () => number;
93
90
  readonly __wbindgen_externrefs: WebAssembly.Table;
91
+ readonly __wbindgen_destroy_closure: (a: number, b: number) => void;
94
92
  readonly __externref_table_dealloc: (a: number) => void;
95
93
  readonly __wbindgen_free: (a: number, b: number, c: number) => void;
96
94
  readonly __wbindgen_start: () => void;
package/dcm/dcm.js CHANGED
@@ -2,7 +2,6 @@
2
2
 
3
3
  export class Context {
4
4
  static __wrap(ptr) {
5
- ptr = ptr >>> 0;
6
5
  const obj = Object.create(Context.prototype);
7
6
  obj.__wbg_ptr = ptr;
8
7
  ContextFinalization.register(obj, obj.__wbg_ptr, obj);
@@ -117,18 +116,6 @@ export class Context {
117
116
  const ret = wasm.context_is_dcm_filename(ptr0, len0);
118
117
  return ret !== 0;
119
118
  }
120
- /**
121
- * @param {any} mappings
122
- * @returns {Context}
123
- */
124
- mappings(mappings) {
125
- const ptr = this.__destroy_into_raw();
126
- const ret = wasm.context_mappings(ptr, mappings);
127
- if (ret[2]) {
128
- throw takeFromExternrefTable0(ret[1]);
129
- }
130
- return Context.__wrap(ret[0]);
131
- }
132
119
  /**
133
120
  * @param {string} filename
134
121
  * @returns {boolean}
@@ -150,7 +137,7 @@ export class Context {
150
137
  }
151
138
  constructor() {
152
139
  const ret = wasm.context_new();
153
- this.__wbg_ptr = ret >>> 0;
140
+ this.__wbg_ptr = ret;
154
141
  ContextFinalization.register(this, this.__wbg_ptr, this);
155
142
  return this;
156
143
  }
@@ -217,7 +204,6 @@ if (Symbol.dispose) Context.prototype[Symbol.dispose] = Context.prototype.free;
217
204
 
218
205
  export class DeidProfile {
219
206
  static __wrap(ptr) {
220
- ptr = ptr >>> 0;
221
207
  const obj = Object.create(DeidProfile.prototype);
222
208
  obj.__wbg_ptr = ptr;
223
209
  DeidProfileFinalization.register(obj, obj.__wbg_ptr, obj);
@@ -349,18 +335,17 @@ export function parse_header(bytes, include_tags) {
349
335
  * @returns {Promise<Uint8Array>}
350
336
  */
351
337
  export function read_until_pixels(file, stop_tags, max_size) {
352
- const ret = wasm.read_until_pixels(file, stop_tags, isLikeNone(max_size) ? 0x100000001 : (max_size) >>> 0);
338
+ const ret = wasm.read_until_pixels(file, stop_tags, isLikeNone(max_size) ? Number.MAX_SAFE_INTEGER : (max_size) >>> 0);
353
339
  return ret;
354
340
  }
355
-
356
341
  function __wbg_get_imports() {
357
342
  const import0 = {
358
343
  __proto__: null,
359
- __wbg_Error_83742b46f01ce22d: function(arg0, arg1) {
344
+ __wbg_Error_408e67f47ca7b58b: function(arg0, arg1) {
360
345
  const ret = Error(getStringFromWasm0(arg0, arg1));
361
346
  return ret;
362
347
  },
363
- __wbg_Number_a5a435bd7bbec835: function(arg0) {
348
+ __wbg_Number_3890faa6d3ff057d: function(arg0) {
364
349
  const ret = Number(arg0);
365
350
  return ret;
366
351
  },
@@ -371,68 +356,68 @@ function __wbg_get_imports() {
371
356
  getDataViewMemory0().setInt32(arg0 + 4 * 1, len1, true);
372
357
  getDataViewMemory0().setInt32(arg0 + 4 * 0, ptr1, true);
373
358
  },
374
- __wbg___wbindgen_bigint_get_as_i64_447a76b5c6ef7bda: function(arg0, arg1) {
359
+ __wbg___wbindgen_bigint_get_as_i64_c4ecf48528083721: function(arg0, arg1) {
375
360
  const v = arg1;
376
361
  const ret = typeof(v) === 'bigint' ? v : undefined;
377
362
  getDataViewMemory0().setBigInt64(arg0 + 8 * 1, isLikeNone(ret) ? BigInt(0) : ret, true);
378
363
  getDataViewMemory0().setInt32(arg0 + 4 * 0, !isLikeNone(ret), true);
379
364
  },
380
- __wbg___wbindgen_boolean_get_c0f3f60bac5a78d1: function(arg0) {
365
+ __wbg___wbindgen_boolean_get_c9c83ebd41b34df3: function(arg0) {
381
366
  const v = arg0;
382
367
  const ret = typeof(v) === 'boolean' ? v : undefined;
383
368
  return isLikeNone(ret) ? 0xFFFFFF : ret ? 1 : 0;
384
369
  },
385
- __wbg___wbindgen_debug_string_5398f5bb970e0daa: function(arg0, arg1) {
370
+ __wbg___wbindgen_debug_string_a57024b9c6e4a48b: function(arg0, arg1) {
386
371
  const ret = debugString(arg1);
387
372
  const ptr1 = passStringToWasm0(ret, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
388
373
  const len1 = WASM_VECTOR_LEN;
389
374
  getDataViewMemory0().setInt32(arg0 + 4 * 1, len1, true);
390
375
  getDataViewMemory0().setInt32(arg0 + 4 * 0, ptr1, true);
391
376
  },
392
- __wbg___wbindgen_in_41dbb8413020e076: function(arg0, arg1) {
377
+ __wbg___wbindgen_in_ac983077f137f2e6: function(arg0, arg1) {
393
378
  const ret = arg0 in arg1;
394
379
  return ret;
395
380
  },
396
- __wbg___wbindgen_is_bigint_e2141d4f045b7eda: function(arg0) {
381
+ __wbg___wbindgen_is_bigint_8ffbbef442139384: function(arg0) {
397
382
  const ret = typeof(arg0) === 'bigint';
398
383
  return ret;
399
384
  },
400
- __wbg___wbindgen_is_function_3c846841762788c1: function(arg0) {
385
+ __wbg___wbindgen_is_function_5e4570eb24ffa122: function(arg0) {
401
386
  const ret = typeof(arg0) === 'function';
402
387
  return ret;
403
388
  },
404
- __wbg___wbindgen_is_null_0b605fc6b167c56f: function(arg0) {
389
+ __wbg___wbindgen_is_null_7d13f41e1a2d5140: function(arg0) {
405
390
  const ret = arg0 === null;
406
391
  return ret;
407
392
  },
408
- __wbg___wbindgen_is_object_781bc9f159099513: function(arg0) {
393
+ __wbg___wbindgen_is_object_a2790eb24c211ea0: function(arg0) {
409
394
  const val = arg0;
410
395
  const ret = typeof(val) === 'object' && val !== null;
411
396
  return ret;
412
397
  },
413
- __wbg___wbindgen_is_string_7ef6b97b02428fae: function(arg0) {
398
+ __wbg___wbindgen_is_string_e6f02f0ea5f20a32: function(arg0) {
414
399
  const ret = typeof(arg0) === 'string';
415
400
  return ret;
416
401
  },
417
- __wbg___wbindgen_is_undefined_52709e72fb9f179c: function(arg0) {
402
+ __wbg___wbindgen_is_undefined_6cff064c44e0d823: function(arg0) {
418
403
  const ret = arg0 === undefined;
419
404
  return ret;
420
405
  },
421
- __wbg___wbindgen_jsval_eq_ee31bfad3e536463: function(arg0, arg1) {
406
+ __wbg___wbindgen_jsval_eq_0a18949a61670320: function(arg0, arg1) {
422
407
  const ret = arg0 === arg1;
423
408
  return ret;
424
409
  },
425
- __wbg___wbindgen_jsval_loose_eq_5bcc3bed3c69e72b: function(arg0, arg1) {
410
+ __wbg___wbindgen_jsval_loose_eq_acf2776254a8d832: function(arg0, arg1) {
426
411
  const ret = arg0 == arg1;
427
412
  return ret;
428
413
  },
429
- __wbg___wbindgen_number_get_34bb9d9dcfa21373: function(arg0, arg1) {
414
+ __wbg___wbindgen_number_get_136b9679cab35cfb: function(arg0, arg1) {
430
415
  const obj = arg1;
431
416
  const ret = typeof(obj) === 'number' ? obj : undefined;
432
417
  getDataViewMemory0().setFloat64(arg0 + 8 * 1, isLikeNone(ret) ? 0 : ret, true);
433
418
  getDataViewMemory0().setInt32(arg0 + 4 * 0, !isLikeNone(ret), true);
434
419
  },
435
- __wbg___wbindgen_string_get_395e606bd0ee4427: function(arg0, arg1) {
420
+ __wbg___wbindgen_string_get_d154f1e671052120: function(arg0, arg1) {
436
421
  const obj = arg1;
437
422
  const ret = typeof(obj) === 'string' ? obj : undefined;
438
423
  var ptr1 = isLikeNone(ret) ? 0 : passStringToWasm0(ret, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
@@ -440,56 +425,56 @@ function __wbg_get_imports() {
440
425
  getDataViewMemory0().setInt32(arg0 + 4 * 1, len1, true);
441
426
  getDataViewMemory0().setInt32(arg0 + 4 * 0, ptr1, true);
442
427
  },
443
- __wbg___wbindgen_throw_6ddd609b62940d55: function(arg0, arg1) {
428
+ __wbg___wbindgen_throw_bb96b2010945f0bc: function(arg0, arg1) {
444
429
  throw new Error(getStringFromWasm0(arg0, arg1));
445
430
  },
446
- __wbg__wbg_cb_unref_6b5b6b8576d35cb1: function(arg0) {
431
+ __wbg__wbg_cb_unref_be22cc64ae6946a0: function(arg0) {
447
432
  arg0._wbg_cb_unref();
448
433
  },
449
- __wbg_arrayBuffer_7ff5e58aa85a64f7: function(arg0) {
434
+ __wbg_arrayBuffer_393639d72165e90f: function(arg0) {
450
435
  const ret = arg0.arrayBuffer();
451
436
  return ret;
452
437
  },
453
- __wbg_call_2d781c1f4d5c0ef8: function() { return handleError(function (arg0, arg1, arg2) {
454
- const ret = arg0.call(arg1, arg2);
438
+ __wbg_call_1c5886ab9c57d1c7: function() { return handleError(function (arg0, arg1) {
439
+ const ret = arg0.call(arg1);
455
440
  return ret;
456
441
  }, arguments); },
457
- __wbg_call_e133b57c9155d22c: function() { return handleError(function (arg0, arg1) {
458
- const ret = arg0.call(arg1);
442
+ __wbg_call_35dba3c747ad7521: function() { return handleError(function (arg0, arg1, arg2) {
443
+ const ret = arg0.call(arg1, arg2);
459
444
  return ret;
460
445
  }, arguments); },
461
- __wbg_done_08ce71ee07e3bd17: function(arg0) {
446
+ __wbg_done_669171204c3dcae2: function(arg0) {
462
447
  const ret = arg0.done;
463
448
  return ret;
464
449
  },
465
- __wbg_entries_e8a20ff8c9757101: function(arg0) {
450
+ __wbg_entries_7774d489e1da5f4f: function(arg0) {
466
451
  const ret = Object.entries(arg0);
467
452
  return ret;
468
453
  },
469
- __wbg_getRandomValues_3f44b700395062e5: function() { return handleError(function (arg0, arg1) {
454
+ __wbg_getRandomValues_a608c4436c19407a: function() { return handleError(function (arg0, arg1) {
470
455
  globalThis.crypto.getRandomValues(getArrayU8FromWasm0(arg0, arg1));
471
456
  }, arguments); },
472
- __wbg_getTime_1dad7b5386ddd2d9: function(arg0) {
457
+ __wbg_getTime_63fb0332e6c4ec17: function(arg0) {
473
458
  const ret = arg0.getTime();
474
459
  return ret;
475
460
  },
476
- __wbg_getTimezoneOffset_639bcf2dde21158b: function(arg0) {
461
+ __wbg_getTimezoneOffset_4baa793e0d3962a8: function(arg0) {
477
462
  const ret = arg0.getTimezoneOffset();
478
463
  return ret;
479
464
  },
480
- __wbg_get_326e41e095fb2575: function() { return handleError(function (arg0, arg1) {
481
- const ret = Reflect.get(arg0, arg1);
482
- return ret;
483
- }, arguments); },
484
- __wbg_get_a8ee5c45dabc1b3b: function(arg0, arg1) {
465
+ __wbg_get_c0c8f8d7da0c03dd: function(arg0, arg1) {
485
466
  const ret = arg0[arg1 >>> 0];
486
467
  return ret;
487
468
  },
488
- __wbg_get_unchecked_329cfe50afab7352: function(arg0, arg1) {
469
+ __wbg_get_d173c0308df22d37: function() { return handleError(function (arg0, arg1) {
470
+ const ret = Reflect.get(arg0, arg1);
471
+ return ret;
472
+ }, arguments); },
473
+ __wbg_get_unchecked_e20b893aeafc3fca: function(arg0, arg1) {
489
474
  const ret = arg0[arg1 >>> 0];
490
475
  return ret;
491
476
  },
492
- __wbg_instanceof_ArrayBuffer_101e2bf31071a9f6: function(arg0) {
477
+ __wbg_instanceof_ArrayBuffer_993d02d2d254cad1: function(arg0) {
493
478
  let result;
494
479
  try {
495
480
  result = arg0 instanceof ArrayBuffer;
@@ -499,7 +484,7 @@ function __wbg_get_imports() {
499
484
  const ret = result;
500
485
  return ret;
501
486
  },
502
- __wbg_instanceof_Map_f194b366846aca0c: function(arg0) {
487
+ __wbg_instanceof_Map_9a4d6ead180ae3a9: function(arg0) {
503
488
  let result;
504
489
  try {
505
490
  result = arg0 instanceof Map;
@@ -509,7 +494,7 @@ function __wbg_get_imports() {
509
494
  const ret = result;
510
495
  return ret;
511
496
  },
512
- __wbg_instanceof_Uint8Array_740438561a5b956d: function(arg0) {
497
+ __wbg_instanceof_Uint8Array_f935dbb0aa7cdeed: function(arg0) {
513
498
  let result;
514
499
  try {
515
500
  result = arg0 instanceof Uint8Array;
@@ -519,62 +504,62 @@ function __wbg_get_imports() {
519
504
  const ret = result;
520
505
  return ret;
521
506
  },
522
- __wbg_isArray_33b91feb269ff46e: function(arg0) {
507
+ __wbg_isArray_6339f732981044bf: function(arg0) {
523
508
  const ret = Array.isArray(arg0);
524
509
  return ret;
525
510
  },
526
- __wbg_isSafeInteger_ecd6a7f9c3e053cd: function(arg0) {
511
+ __wbg_isSafeInteger_f3d6cd19ccfe4512: function(arg0) {
527
512
  const ret = Number.isSafeInteger(arg0);
528
513
  return ret;
529
514
  },
530
- __wbg_iterator_d8f549ec8fb061b1: function() {
515
+ __wbg_iterator_5cebbb86e33c6dd6: function() {
531
516
  const ret = Symbol.iterator;
532
517
  return ret;
533
518
  },
534
- __wbg_length_b3416cf66a5452c8: function(arg0) {
519
+ __wbg_length_36bd29c6848c2144: function(arg0) {
535
520
  const ret = arg0.length;
536
521
  return ret;
537
522
  },
538
- __wbg_length_ea16607d7b61445b: function(arg0) {
523
+ __wbg_length_ecfa2c63d3d0d82c: function(arg0) {
539
524
  const ret = arg0.length;
540
525
  return ret;
541
526
  },
542
- __wbg_new_0_1dcafdf5e786e876: function() {
527
+ __wbg_new_0_f117d868b403dc07: function() {
543
528
  const ret = new Date();
544
529
  return ret;
545
530
  },
546
- __wbg_new_49d5571bd3f0c4d4: function() {
547
- const ret = new Map();
531
+ __wbg_new_116be93542d39019: function() {
532
+ const ret = new Array();
548
533
  return ret;
549
534
  },
550
- __wbg_new_5f486cdf45a04d78: function(arg0) {
535
+ __wbg_new_77cc4f4f472aeb81: function(arg0) {
551
536
  const ret = new Uint8Array(arg0);
552
537
  return ret;
553
538
  },
554
- __wbg_new_a70fbab9066b301f: function() {
555
- const ret = new Array();
539
+ __wbg_new_cdf041679ded4c5f: function() {
540
+ const ret = new Map();
556
541
  return ret;
557
542
  },
558
- __wbg_new_ab79df5bd7c26067: function() {
543
+ __wbg_new_ebe3e0f6837f0879: function() {
559
544
  const ret = new Object();
560
545
  return ret;
561
546
  },
562
- __wbg_new_fd94ca5c9639abd2: function(arg0) {
547
+ __wbg_new_f9d6489212f3b2b3: function(arg0) {
563
548
  const ret = new Date(arg0);
564
549
  return ret;
565
550
  },
566
- __wbg_new_from_slice_22da9388ac046e50: function(arg0, arg1) {
551
+ __wbg_new_from_slice_3eea173078478cfe: function(arg0, arg1) {
567
552
  const ret = new Uint8Array(getArrayU8FromWasm0(arg0, arg1));
568
553
  return ret;
569
554
  },
570
- __wbg_new_typed_aaaeaf29cf802876: function(arg0, arg1) {
555
+ __wbg_new_typed_cceaf62d8d95e9f2: function(arg0, arg1) {
571
556
  try {
572
557
  var state0 = {a: arg0, b: arg1};
573
558
  var cb0 = (arg0, arg1) => {
574
559
  const a = state0.a;
575
560
  state0.a = 0;
576
561
  try {
577
- return wasm_bindgen__convert__closures_____invoke__h1c3be20287daddfc(a, state0.b, arg0, arg1);
562
+ return wasm_bindgen_2a450bc771b58efd___convert__closures_____invoke___js_sys_3e9a0dee23731d16___Function_fn_wasm_bindgen_2a450bc771b58efd___JsValue_____wasm_bindgen_2a450bc771b58efd___sys__Undefined___js_sys_3e9a0dee23731d16___Function_fn_wasm_bindgen_2a450bc771b58efd___JsValue_____wasm_bindgen_2a450bc771b58efd___sys__Undefined_______true_(a, state0.b, arg0, arg1);
578
563
  } finally {
579
564
  state0.a = a;
580
565
  }
@@ -582,80 +567,80 @@ function __wbg_get_imports() {
582
567
  const ret = new Promise(cb0);
583
568
  return ret;
584
569
  } finally {
585
- state0.a = state0.b = 0;
570
+ state0.a = 0;
586
571
  }
587
572
  },
588
- __wbg_next_11b99ee6237339e3: function() { return handleError(function (arg0) {
573
+ __wbg_next_42cf16ee0dafc9e2: function() { return handleError(function (arg0) {
589
574
  const ret = arg0.next();
590
575
  return ret;
591
576
  }, arguments); },
592
- __wbg_next_e01a967809d1aa68: function(arg0) {
577
+ __wbg_next_8f26b64fa5e9f64b: function(arg0) {
593
578
  const ret = arg0.next;
594
579
  return ret;
595
580
  },
596
- __wbg_prototypesetcall_d62e5099504357e6: function(arg0, arg1, arg2) {
581
+ __wbg_prototypesetcall_de8e0d9553586985: function(arg0, arg1, arg2) {
597
582
  Uint8Array.prototype.set.call(getArrayU8FromWasm0(arg0, arg1), arg2);
598
583
  },
599
- __wbg_queueMicrotask_0c399741342fb10f: function(arg0) {
584
+ __wbg_queueMicrotask_ac694eae12e92dfb: function(arg0) {
585
+ queueMicrotask(arg0);
586
+ },
587
+ __wbg_queueMicrotask_be5fe34a8f4cad4d: function(arg0) {
600
588
  const ret = arg0.queueMicrotask;
601
589
  return ret;
602
590
  },
603
- __wbg_queueMicrotask_a082d78ce798393e: function(arg0) {
604
- queueMicrotask(arg0);
605
- },
606
- __wbg_resolve_ae8d83246e5bcc12: function(arg0) {
591
+ __wbg_resolve_020f95d838c6ef25: function(arg0) {
607
592
  const ret = Promise.resolve(arg0);
608
593
  return ret;
609
594
  },
610
- __wbg_set_282384002438957f: function(arg0, arg1, arg2) {
611
- arg0[arg1 >>> 0] = arg2;
595
+ __wbg_set_014226dfeca53178: function(arg0, arg1, arg2) {
596
+ const ret = arg0.set(arg1, arg2);
597
+ return ret;
612
598
  },
613
599
  __wbg_set_6be42768c690e380: function(arg0, arg1, arg2) {
614
600
  arg0[arg1] = arg2;
615
601
  },
616
- __wbg_set_bf7251625df30a02: function(arg0, arg1, arg2) {
617
- const ret = arg0.set(arg1, arg2);
618
- return ret;
602
+ __wbg_set_a80955eb93b145c6: function(arg0, arg1, arg2) {
603
+ arg0[arg1 >>> 0] = arg2;
619
604
  },
620
- __wbg_size_819df95195daae81: function(arg0) {
605
+ __wbg_size_86ca1114f3d8af74: function(arg0) {
621
606
  const ret = arg0.size;
622
607
  return ret;
623
608
  },
624
- __wbg_slice_f55d290dcc799204: function() { return handleError(function (arg0, arg1, arg2) {
609
+ __wbg_slice_8b3c1aff3f9a6cc3: function() { return handleError(function (arg0, arg1, arg2) {
625
610
  const ret = arg0.slice(arg1, arg2);
626
611
  return ret;
627
612
  }, arguments); },
628
- __wbg_static_accessor_GLOBAL_8adb955bd33fac2f: function() {
629
- const ret = typeof global === 'undefined' ? null : global;
613
+ __wbg_static_accessor_GLOBAL_THIS_466428f93b4eaa76: function() {
614
+ const ret = typeof globalThis === 'undefined' ? null : globalThis;
630
615
  return isLikeNone(ret) ? 0 : addToExternrefTable0(ret);
631
616
  },
632
- __wbg_static_accessor_GLOBAL_THIS_ad356e0db91c7913: function() {
633
- const ret = typeof globalThis === 'undefined' ? null : globalThis;
617
+ __wbg_static_accessor_GLOBAL_c7aea38d4de089bc: function() {
618
+ const ret = typeof global === 'undefined' ? null : global;
634
619
  return isLikeNone(ret) ? 0 : addToExternrefTable0(ret);
635
620
  },
636
- __wbg_static_accessor_SELF_f207c857566db248: function() {
621
+ __wbg_static_accessor_SELF_42d4fae05e59267a: function() {
637
622
  const ret = typeof self === 'undefined' ? null : self;
638
623
  return isLikeNone(ret) ? 0 : addToExternrefTable0(ret);
639
624
  },
640
- __wbg_static_accessor_WINDOW_bb9f1ba69d61b386: function() {
625
+ __wbg_static_accessor_WINDOW_e0db14a0eba6a812: function() {
641
626
  const ret = typeof window === 'undefined' ? null : window;
642
627
  return isLikeNone(ret) ? 0 : addToExternrefTable0(ret);
643
628
  },
644
- __wbg_then_098abe61755d12f6: function(arg0, arg1) {
629
+ __wbg_then_7026b513a94278a8: function(arg0, arg1) {
645
630
  const ret = arg0.then(arg1);
646
631
  return ret;
647
632
  },
648
- __wbg_then_9e335f6dd892bc11: function(arg0, arg1, arg2) {
633
+ __wbg_then_72819b8d4e081fb5: function(arg0, arg1, arg2) {
649
634
  const ret = arg0.then(arg1, arg2);
650
635
  return ret;
651
636
  },
652
- __wbg_value_21fc78aab0322612: function(arg0) {
637
+ __wbg_value_1e2369fab29b420e: function(arg0) {
653
638
  const ret = arg0.value;
654
639
  return ret;
655
640
  },
656
641
  __wbindgen_cast_0000000000000001: function(arg0, arg1) {
657
- // Cast intrinsic for `Closure(Closure { dtor_idx: 53, function: Function { arguments: [Externref], shim_idx: 54, ret: Result(Unit), inner_ret: Some(Result(Unit)) }, mutable: true }) -> Externref`.
658
- const ret = makeMutClosure(arg0, arg1, wasm.wasm_bindgen__closure__destroy__hc703fda7f01827cb, wasm_bindgen__convert__closures_____invoke__he45b980513d9d817);
642
+ // Cast intrinsic for `Closure(Closure { owned: true, function: Function { arguments: [Externref], shim_idx: 1295, ret: Result(Unit), inner_ret: Some(Result(Unit)) }, mutable: true }) -> Externref`.
643
+ const ret = makeMutClosure(arg0, arg1, wasm_bindgen_2a450bc771b58efd___convert__closures_____invoke___wasm_bindgen_2a450bc771b58efd___JsValue__core_f0fd674eaa06beef___result__Result_____wasm_bindgen_2a450bc771b58efd___JsError___true_);
659
644
  return ret;
660
645
  },
661
646
  __wbindgen_cast_0000000000000002: function(arg0) {
@@ -694,26 +679,26 @@ function __wbg_get_imports() {
694
679
  };
695
680
  }
696
681
 
697
- function wasm_bindgen__convert__closures_____invoke__he45b980513d9d817(arg0, arg1, arg2) {
698
- const ret = wasm.wasm_bindgen__convert__closures_____invoke__he45b980513d9d817(arg0, arg1, arg2);
682
+ function wasm_bindgen_2a450bc771b58efd___convert__closures_____invoke___wasm_bindgen_2a450bc771b58efd___JsValue__core_f0fd674eaa06beef___result__Result_____wasm_bindgen_2a450bc771b58efd___JsError___true_(arg0, arg1, arg2) {
683
+ const ret = wasm.wasm_bindgen_2a450bc771b58efd___convert__closures_____invoke___wasm_bindgen_2a450bc771b58efd___JsValue__core_f0fd674eaa06beef___result__Result_____wasm_bindgen_2a450bc771b58efd___JsError___true_(arg0, arg1, arg2);
699
684
  if (ret[1]) {
700
685
  throw takeFromExternrefTable0(ret[0]);
701
686
  }
702
687
  }
703
688
 
704
- function wasm_bindgen__convert__closures_____invoke__h1c3be20287daddfc(arg0, arg1, arg2, arg3) {
705
- wasm.wasm_bindgen__convert__closures_____invoke__h1c3be20287daddfc(arg0, arg1, arg2, arg3);
689
+ function wasm_bindgen_2a450bc771b58efd___convert__closures_____invoke___js_sys_3e9a0dee23731d16___Function_fn_wasm_bindgen_2a450bc771b58efd___JsValue_____wasm_bindgen_2a450bc771b58efd___sys__Undefined___js_sys_3e9a0dee23731d16___Function_fn_wasm_bindgen_2a450bc771b58efd___JsValue_____wasm_bindgen_2a450bc771b58efd___sys__Undefined_______true_(arg0, arg1, arg2, arg3) {
690
+ wasm.wasm_bindgen_2a450bc771b58efd___convert__closures_____invoke___js_sys_3e9a0dee23731d16___Function_fn_wasm_bindgen_2a450bc771b58efd___JsValue_____wasm_bindgen_2a450bc771b58efd___sys__Undefined___js_sys_3e9a0dee23731d16___Function_fn_wasm_bindgen_2a450bc771b58efd___JsValue_____wasm_bindgen_2a450bc771b58efd___sys__Undefined_______true_(arg0, arg1, arg2, arg3);
706
691
  }
707
692
 
708
693
  const ContextFinalization = (typeof FinalizationRegistry === 'undefined')
709
694
  ? { register: () => {}, unregister: () => {} }
710
- : new FinalizationRegistry(ptr => wasm.__wbg_context_free(ptr >>> 0, 1));
695
+ : new FinalizationRegistry(ptr => wasm.__wbg_context_free(ptr, 1));
711
696
  const DeidProfileFinalization = (typeof FinalizationRegistry === 'undefined')
712
697
  ? { register: () => {}, unregister: () => {} }
713
- : new FinalizationRegistry(ptr => wasm.__wbg_deidprofile_free(ptr >>> 0, 1));
698
+ : new FinalizationRegistry(ptr => wasm.__wbg_deidprofile_free(ptr, 1));
714
699
  const WasmDCMGroupFinalization = (typeof FinalizationRegistry === 'undefined')
715
700
  ? { register: () => {}, unregister: () => {} }
716
- : new FinalizationRegistry(ptr => wasm.__wbg_wasmdcmgroup_free(ptr >>> 0, 1));
701
+ : new FinalizationRegistry(ptr => wasm.__wbg_wasmdcmgroup_free(ptr, 1));
717
702
 
718
703
  function addToExternrefTable0(obj) {
719
704
  const idx = wasm.__externref_table_alloc();
@@ -723,7 +708,7 @@ function addToExternrefTable0(obj) {
723
708
 
724
709
  const CLOSURE_DTORS = (typeof FinalizationRegistry === 'undefined')
725
710
  ? { register: () => {}, unregister: () => {} }
726
- : new FinalizationRegistry(state => state.dtor(state.a, state.b));
711
+ : new FinalizationRegistry(state => wasm.__wbindgen_destroy_closure(state.a, state.b));
727
712
 
728
713
  function debugString(val) {
729
714
  // primitive types
@@ -804,8 +789,7 @@ function getDataViewMemory0() {
804
789
  }
805
790
 
806
791
  function getStringFromWasm0(ptr, len) {
807
- ptr = ptr >>> 0;
808
- return decodeText(ptr, len);
792
+ return decodeText(ptr >>> 0, len);
809
793
  }
810
794
 
811
795
  let cachedUint8ArrayMemory0 = null;
@@ -829,8 +813,8 @@ function isLikeNone(x) {
829
813
  return x === undefined || x === null;
830
814
  }
831
815
 
832
- function makeMutClosure(arg0, arg1, dtor, f) {
833
- const state = { a: arg0, b: arg1, cnt: 1, dtor };
816
+ function makeMutClosure(arg0, arg1, f) {
817
+ const state = { a: arg0, b: arg1, cnt: 1 };
834
818
  const real = (...args) => {
835
819
 
836
820
  // First up with a closure we increment the internal reference
@@ -848,7 +832,7 @@ function makeMutClosure(arg0, arg1, dtor, f) {
848
832
  };
849
833
  real._wbg_cb_unref = () => {
850
834
  if (--state.cnt === 0) {
851
- state.dtor(state.a, state.b);
835
+ wasm.__wbindgen_destroy_closure(state.a, state.b);
852
836
  state.a = 0;
853
837
  CLOSURE_DTORS.unregister(state);
854
838
  }
@@ -946,8 +930,9 @@ if (!('encodeInto' in cachedTextEncoder)) {
946
930
 
947
931
  let WASM_VECTOR_LEN = 0;
948
932
 
949
- let wasmModule, wasm;
933
+ let wasmModule, wasmInstance, wasm;
950
934
  function __wbg_finalize_init(instance, module) {
935
+ wasmInstance = instance;
951
936
  wasm = instance.exports;
952
937
  wasmModule = module;
953
938
  cachedDataViewMemory0 = null;
@@ -958,11 +943,15 @@ function __wbg_finalize_init(instance, module) {
958
943
 
959
944
  async function __wbg_load(module, imports) {
960
945
  if (typeof Response === 'function' && module instanceof Response) {
946
+ if (!module.ok) {
947
+ throw new Error(`failed to fetch Wasm: ${module.status} ${module.statusText} fetching '${module.url}'`);
948
+ }
949
+
961
950
  if (typeof WebAssembly.instantiateStreaming === 'function') {
962
951
  try {
963
952
  return await WebAssembly.instantiateStreaming(module, imports);
964
953
  } catch (e) {
965
- const validResponse = module.ok && expectedResponseType(module.type);
954
+ const validResponse = expectedResponseType(module.type);
966
955
 
967
956
  if (validResponse && module.headers.get('Content-Type') !== 'application/wasm') {
968
957
  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);
package/dcm/dcm_bg.wasm CHANGED
Binary file
@@ -1,6 +1,13 @@
1
1
  /* tslint:disable */
2
2
  /* eslint-disable */
3
3
  export const memory: WebAssembly.Memory;
4
+ export const __wbg_deidprofile_free: (a: number, b: number) => void;
5
+ export const deidprofile_deid_dcm: (a: number, b: number, c: number) => [number, number, number, number];
6
+ export const deidprofile_from_yaml: (a: number, b: number) => [number, number, number];
7
+ export const create_dcm_as_bytes: (a: any) => [number, number, number, number];
8
+ export const get_fw_meta: (a: any, b: any) => [number, number, number];
9
+ export const is_dicom_part10: (a: any) => any;
10
+ export const read_until_pixels: (a: any, b: any, c: number) => any;
4
11
  export const __wbg_context_free: (a: number, b: number) => void;
5
12
  export const context_default: () => number;
6
13
  export const context_deid_header: (a: number, b: number, c: number) => [number, number, number, number];
@@ -11,7 +18,6 @@ export const context_group_by_tags: (a: number, b: any) => [number, number, numb
11
18
  export const context_group_series: (a: number, b: any) => [number, number, number];
12
19
  export const context_include_tags: (a: number, b: any) => [number, number, number];
13
20
  export const context_is_dcm_filename: (a: number, b: number) => number;
14
- export const context_mappings: (a: number, b: any) => [number, number, number];
15
21
  export const context_matches_file_filter: (a: number, b: number, c: number) => number;
16
22
  export const context_max_size: (a: number, b: number) => number;
17
23
  export const context_parse_header: (a: number, b: number, c: number) => [number, number, number];
@@ -20,24 +26,17 @@ export const context_rename_file: (a: number, b: number, c: number, d: number, e
20
26
  export const context_split_localizer: (a: number, b: number) => number;
21
27
  export const context_stop_at_tags: (a: number, b: any) => [number, number, number];
22
28
  export const context_new: () => number;
23
- export const parse_header: (a: number, b: number, c: number, d: number) => [number, number, number];
24
- export const create_dcm_as_bytes: (a: any) => [number, number, number, number];
25
- export const is_dicom_part10: (a: any) => any;
26
- export const read_until_pixels: (a: any, b: any, c: number) => any;
27
- export const __wbg_deidprofile_free: (a: number, b: number) => void;
28
- export const deidprofile_deid_dcm: (a: number, b: number, c: number) => [number, number, number, number];
29
- export const deidprofile_from_yaml: (a: number, b: number) => [number, number, number];
30
- export const get_fw_meta: (a: any, b: any) => [number, number, number];
31
29
  export const __wbg_wasmdcmgroup_free: (a: number, b: number) => void;
32
30
  export const group_series: (a: any, b: any, c: number) => any;
33
- export const wasm_bindgen__closure__destroy__hc703fda7f01827cb: (a: number, b: number) => void;
34
- export const wasm_bindgen__convert__closures_____invoke__he45b980513d9d817: (a: number, b: number, c: any) => [number, number];
35
- export const wasm_bindgen__convert__closures_____invoke__h1c3be20287daddfc: (a: number, b: number, c: any, d: any) => void;
31
+ export const parse_header: (a: number, b: number, c: number, d: number) => [number, number, number];
32
+ export const wasm_bindgen_2a450bc771b58efd___convert__closures_____invoke___wasm_bindgen_2a450bc771b58efd___JsValue__core_f0fd674eaa06beef___result__Result_____wasm_bindgen_2a450bc771b58efd___JsError___true_: (a: number, b: number, c: any) => [number, number];
33
+ export const wasm_bindgen_2a450bc771b58efd___convert__closures_____invoke___js_sys_3e9a0dee23731d16___Function_fn_wasm_bindgen_2a450bc771b58efd___JsValue_____wasm_bindgen_2a450bc771b58efd___sys__Undefined___js_sys_3e9a0dee23731d16___Function_fn_wasm_bindgen_2a450bc771b58efd___JsValue_____wasm_bindgen_2a450bc771b58efd___sys__Undefined_______true_: (a: number, b: number, c: any, d: any) => void;
36
34
  export const __wbindgen_malloc: (a: number, b: number) => number;
37
35
  export const __wbindgen_realloc: (a: number, b: number, c: number, d: number) => number;
38
36
  export const __wbindgen_exn_store: (a: number) => void;
39
37
  export const __externref_table_alloc: () => number;
40
38
  export const __wbindgen_externrefs: WebAssembly.Table;
39
+ export const __wbindgen_destroy_closure: (a: number, b: number) => void;
41
40
  export const __externref_table_dealloc: (a: number) => void;
42
41
  export const __wbindgen_free: (a: number, b: number, c: number) => void;
43
42
  export const __wbindgen_start: () => void;
package/package.json CHANGED
@@ -5,7 +5,7 @@
5
5
  "Flywheel <support@flywheel.io>"
6
6
  ],
7
7
  "description": "JavaScript/WebAssembly bindings for fw-file rust crate",
8
- "version": "0.6.2",
8
+ "version": "0.7.2",
9
9
  "license": "MIT",
10
10
  "repository": {
11
11
  "type": "git",