@flywheel-io/fw-file-rs 0.7.0 → 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
@@ -53,6 +53,13 @@ export type InitInput = RequestInfo | URL | Response | BufferSource | WebAssembl
53
53
 
54
54
  export interface InitOutput {
55
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;
56
63
  readonly __wbg_context_free: (a: number, b: number) => void;
57
64
  readonly context_default: () => number;
58
65
  readonly context_deid_header: (a: number, b: number, c: number) => [number, number, number, number];
@@ -71,18 +78,11 @@ export interface InitOutput {
71
78
  readonly context_split_localizer: (a: number, b: number) => number;
72
79
  readonly context_stop_at_tags: (a: number, b: any) => [number, number, number];
73
80
  readonly context_new: () => number;
74
- readonly parse_header: (a: number, b: number, c: number, d: number) => [number, number, number];
75
- readonly get_fw_meta: (a: any, b: any) => [number, number, number];
76
81
  readonly __wbg_wasmdcmgroup_free: (a: number, b: number) => void;
77
- readonly create_dcm_as_bytes: (a: any) => [number, number, number, number];
78
82
  readonly group_series: (a: any, b: any, c: number) => any;
79
- readonly is_dicom_part10: (a: any) => any;
80
- readonly read_until_pixels: (a: any, b: any, c: number) => any;
81
- readonly __wbg_deidprofile_free: (a: number, b: number) => void;
82
- readonly deidprofile_deid_dcm: (a: number, b: number, c: number) => [number, number, number, number];
83
- readonly deidprofile_from_yaml: (a: number, b: number) => [number, number, number];
84
- readonly wasm_bindgen__convert__closures_____invoke__h023ec276d801cc59: (a: number, b: number, c: any) => [number, number];
85
- readonly wasm_bindgen__convert__closures_____invoke__h4d206e7acbddb6aa: (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;
86
86
  readonly __wbindgen_malloc: (a: number, b: number) => number;
87
87
  readonly __wbindgen_realloc: (a: number, b: number, c: number, d: number) => number;
88
88
  readonly __wbindgen_exn_store: (a: number) => void;
package/dcm/dcm.js CHANGED
@@ -341,11 +341,11 @@ export function read_until_pixels(file, stop_tags, max_size) {
341
341
  function __wbg_get_imports() {
342
342
  const import0 = {
343
343
  __proto__: null,
344
- __wbg_Error_fdd633d4bb5dd76a: function(arg0, arg1) {
344
+ __wbg_Error_408e67f47ca7b58b: function(arg0, arg1) {
345
345
  const ret = Error(getStringFromWasm0(arg0, arg1));
346
346
  return ret;
347
347
  },
348
- __wbg_Number_c4bdf66bb78f7977: function(arg0) {
348
+ __wbg_Number_3890faa6d3ff057d: function(arg0) {
349
349
  const ret = Number(arg0);
350
350
  return ret;
351
351
  },
@@ -356,68 +356,68 @@ function __wbg_get_imports() {
356
356
  getDataViewMemory0().setInt32(arg0 + 4 * 1, len1, true);
357
357
  getDataViewMemory0().setInt32(arg0 + 4 * 0, ptr1, true);
358
358
  },
359
- __wbg___wbindgen_bigint_get_as_i64_d9e915702856f831: function(arg0, arg1) {
359
+ __wbg___wbindgen_bigint_get_as_i64_c4ecf48528083721: function(arg0, arg1) {
360
360
  const v = arg1;
361
361
  const ret = typeof(v) === 'bigint' ? v : undefined;
362
362
  getDataViewMemory0().setBigInt64(arg0 + 8 * 1, isLikeNone(ret) ? BigInt(0) : ret, true);
363
363
  getDataViewMemory0().setInt32(arg0 + 4 * 0, !isLikeNone(ret), true);
364
364
  },
365
- __wbg___wbindgen_boolean_get_edaed31a367ce1bd: function(arg0) {
365
+ __wbg___wbindgen_boolean_get_c9c83ebd41b34df3: function(arg0) {
366
366
  const v = arg0;
367
367
  const ret = typeof(v) === 'boolean' ? v : undefined;
368
368
  return isLikeNone(ret) ? 0xFFFFFF : ret ? 1 : 0;
369
369
  },
370
- __wbg___wbindgen_debug_string_8a447059637473e2: function(arg0, arg1) {
370
+ __wbg___wbindgen_debug_string_a57024b9c6e4a48b: function(arg0, arg1) {
371
371
  const ret = debugString(arg1);
372
372
  const ptr1 = passStringToWasm0(ret, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
373
373
  const len1 = WASM_VECTOR_LEN;
374
374
  getDataViewMemory0().setInt32(arg0 + 4 * 1, len1, true);
375
375
  getDataViewMemory0().setInt32(arg0 + 4 * 0, ptr1, true);
376
376
  },
377
- __wbg___wbindgen_in_4990f46af709e33c: function(arg0, arg1) {
377
+ __wbg___wbindgen_in_ac983077f137f2e6: function(arg0, arg1) {
378
378
  const ret = arg0 in arg1;
379
379
  return ret;
380
380
  },
381
- __wbg___wbindgen_is_bigint_90b5ccfe67c78460: function(arg0) {
381
+ __wbg___wbindgen_is_bigint_8ffbbef442139384: function(arg0) {
382
382
  const ret = typeof(arg0) === 'bigint';
383
383
  return ret;
384
384
  },
385
- __wbg___wbindgen_is_function_acc5528be2b923f2: function(arg0) {
385
+ __wbg___wbindgen_is_function_5e4570eb24ffa122: function(arg0) {
386
386
  const ret = typeof(arg0) === 'function';
387
387
  return ret;
388
388
  },
389
- __wbg___wbindgen_is_null_6d937fbfb6478470: function(arg0) {
389
+ __wbg___wbindgen_is_null_7d13f41e1a2d5140: function(arg0) {
390
390
  const ret = arg0 === null;
391
391
  return ret;
392
392
  },
393
- __wbg___wbindgen_is_object_0beba4a1980d3eea: function(arg0) {
393
+ __wbg___wbindgen_is_object_a2790eb24c211ea0: function(arg0) {
394
394
  const val = arg0;
395
395
  const ret = typeof(val) === 'object' && val !== null;
396
396
  return ret;
397
397
  },
398
- __wbg___wbindgen_is_string_1fca8072260dd261: function(arg0) {
398
+ __wbg___wbindgen_is_string_e6f02f0ea5f20a32: function(arg0) {
399
399
  const ret = typeof(arg0) === 'string';
400
400
  return ret;
401
401
  },
402
- __wbg___wbindgen_is_undefined_721f8decd50c87a3: function(arg0) {
402
+ __wbg___wbindgen_is_undefined_6cff064c44e0d823: function(arg0) {
403
403
  const ret = arg0 === undefined;
404
404
  return ret;
405
405
  },
406
- __wbg___wbindgen_jsval_eq_4e8c38722cb8ff51: function(arg0, arg1) {
406
+ __wbg___wbindgen_jsval_eq_0a18949a61670320: function(arg0, arg1) {
407
407
  const ret = arg0 === arg1;
408
408
  return ret;
409
409
  },
410
- __wbg___wbindgen_jsval_loose_eq_4b9aba9e5b3c4582: function(arg0, arg1) {
410
+ __wbg___wbindgen_jsval_loose_eq_acf2776254a8d832: function(arg0, arg1) {
411
411
  const ret = arg0 == arg1;
412
412
  return ret;
413
413
  },
414
- __wbg___wbindgen_number_get_1cc01dd708740256: function(arg0, arg1) {
414
+ __wbg___wbindgen_number_get_136b9679cab35cfb: function(arg0, arg1) {
415
415
  const obj = arg1;
416
416
  const ret = typeof(obj) === 'number' ? obj : undefined;
417
417
  getDataViewMemory0().setFloat64(arg0 + 8 * 1, isLikeNone(ret) ? 0 : ret, true);
418
418
  getDataViewMemory0().setInt32(arg0 + 4 * 0, !isLikeNone(ret), true);
419
419
  },
420
- __wbg___wbindgen_string_get_71bb4348194e31f0: function(arg0, arg1) {
420
+ __wbg___wbindgen_string_get_d154f1e671052120: function(arg0, arg1) {
421
421
  const obj = arg1;
422
422
  const ret = typeof(obj) === 'string' ? obj : undefined;
423
423
  var ptr1 = isLikeNone(ret) ? 0 : passStringToWasm0(ret, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
@@ -425,56 +425,56 @@ function __wbg_get_imports() {
425
425
  getDataViewMemory0().setInt32(arg0 + 4 * 1, len1, true);
426
426
  getDataViewMemory0().setInt32(arg0 + 4 * 0, ptr1, true);
427
427
  },
428
- __wbg___wbindgen_throw_ea4887a5f8f9a9db: function(arg0, arg1) {
428
+ __wbg___wbindgen_throw_bb96b2010945f0bc: function(arg0, arg1) {
429
429
  throw new Error(getStringFromWasm0(arg0, arg1));
430
430
  },
431
- __wbg__wbg_cb_unref_33c39e13d73b25f6: function(arg0) {
431
+ __wbg__wbg_cb_unref_be22cc64ae6946a0: function(arg0) {
432
432
  arg0._wbg_cb_unref();
433
433
  },
434
- __wbg_arrayBuffer_e3174a1300c67c95: function(arg0) {
434
+ __wbg_arrayBuffer_393639d72165e90f: function(arg0) {
435
435
  const ret = arg0.arrayBuffer();
436
436
  return ret;
437
437
  },
438
- __wbg_call_5575218572ead796: function() { return handleError(function (arg0, arg1, arg2) {
439
- const ret = arg0.call(arg1, arg2);
438
+ __wbg_call_1c5886ab9c57d1c7: function() { return handleError(function (arg0, arg1) {
439
+ const ret = arg0.call(arg1);
440
440
  return ret;
441
441
  }, arguments); },
442
- __wbg_call_8e98ed2f3c86c4b5: function() { return handleError(function (arg0, arg1) {
443
- const ret = arg0.call(arg1);
442
+ __wbg_call_35dba3c747ad7521: function() { return handleError(function (arg0, arg1, arg2) {
443
+ const ret = arg0.call(arg1, arg2);
444
444
  return ret;
445
445
  }, arguments); },
446
- __wbg_done_b62d4a7d2286852a: function(arg0) {
446
+ __wbg_done_669171204c3dcae2: function(arg0) {
447
447
  const ret = arg0.done;
448
448
  return ret;
449
449
  },
450
- __wbg_entries_c261c3fa1f281256: function(arg0) {
450
+ __wbg_entries_7774d489e1da5f4f: function(arg0) {
451
451
  const ret = Object.entries(arg0);
452
452
  return ret;
453
453
  },
454
- __wbg_getRandomValues_3f44b700395062e5: function() { return handleError(function (arg0, arg1) {
454
+ __wbg_getRandomValues_a608c4436c19407a: function() { return handleError(function (arg0, arg1) {
455
455
  globalThis.crypto.getRandomValues(getArrayU8FromWasm0(arg0, arg1));
456
456
  }, arguments); },
457
- __wbg_getTime_7a770f8a2ec8d634: function(arg0) {
457
+ __wbg_getTime_63fb0332e6c4ec17: function(arg0) {
458
458
  const ret = arg0.getTime();
459
459
  return ret;
460
460
  },
461
- __wbg_getTimezoneOffset_d6fba5332f80c3da: function(arg0) {
461
+ __wbg_getTimezoneOffset_4baa793e0d3962a8: function(arg0) {
462
462
  const ret = arg0.getTimezoneOffset();
463
463
  return ret;
464
464
  },
465
- __wbg_get_197a3fe98f169e38: function(arg0, arg1) {
465
+ __wbg_get_c0c8f8d7da0c03dd: function(arg0, arg1) {
466
466
  const ret = arg0[arg1 >>> 0];
467
467
  return ret;
468
468
  },
469
- __wbg_get_9a29be2cb383ed9a: function() { return handleError(function (arg0, arg1) {
469
+ __wbg_get_d173c0308df22d37: function() { return handleError(function (arg0, arg1) {
470
470
  const ret = Reflect.get(arg0, arg1);
471
471
  return ret;
472
472
  }, arguments); },
473
- __wbg_get_unchecked_54a4374c38e08460: function(arg0, arg1) {
473
+ __wbg_get_unchecked_e20b893aeafc3fca: function(arg0, arg1) {
474
474
  const ret = arg0[arg1 >>> 0];
475
475
  return ret;
476
476
  },
477
- __wbg_instanceof_ArrayBuffer_2a7bb09fee70c2da: function(arg0) {
477
+ __wbg_instanceof_ArrayBuffer_993d02d2d254cad1: function(arg0) {
478
478
  let result;
479
479
  try {
480
480
  result = arg0 instanceof ArrayBuffer;
@@ -484,7 +484,7 @@ function __wbg_get_imports() {
484
484
  const ret = result;
485
485
  return ret;
486
486
  },
487
- __wbg_instanceof_Map_afa18d5840c04c15: function(arg0) {
487
+ __wbg_instanceof_Map_9a4d6ead180ae3a9: function(arg0) {
488
488
  let result;
489
489
  try {
490
490
  result = arg0 instanceof Map;
@@ -494,7 +494,7 @@ function __wbg_get_imports() {
494
494
  const ret = result;
495
495
  return ret;
496
496
  },
497
- __wbg_instanceof_Uint8Array_f080092dc70f5d58: function(arg0) {
497
+ __wbg_instanceof_Uint8Array_f935dbb0aa7cdeed: function(arg0) {
498
498
  let result;
499
499
  try {
500
500
  result = arg0 instanceof Uint8Array;
@@ -504,62 +504,62 @@ function __wbg_get_imports() {
504
504
  const ret = result;
505
505
  return ret;
506
506
  },
507
- __wbg_isArray_145a34fd0a38d37b: function(arg0) {
507
+ __wbg_isArray_6339f732981044bf: function(arg0) {
508
508
  const ret = Array.isArray(arg0);
509
509
  return ret;
510
510
  },
511
- __wbg_isSafeInteger_a3389a198582f5f6: function(arg0) {
511
+ __wbg_isSafeInteger_f3d6cd19ccfe4512: function(arg0) {
512
512
  const ret = Number.isSafeInteger(arg0);
513
513
  return ret;
514
514
  },
515
- __wbg_iterator_cc47ba25a2be735a: function() {
515
+ __wbg_iterator_5cebbb86e33c6dd6: function() {
516
516
  const ret = Symbol.iterator;
517
517
  return ret;
518
518
  },
519
- __wbg_length_589238bdcf171f0e: function(arg0) {
519
+ __wbg_length_36bd29c6848c2144: function(arg0) {
520
520
  const ret = arg0.length;
521
521
  return ret;
522
522
  },
523
- __wbg_length_c6054974c0a6cdb9: function(arg0) {
523
+ __wbg_length_ecfa2c63d3d0d82c: function(arg0) {
524
524
  const ret = arg0.length;
525
525
  return ret;
526
526
  },
527
- __wbg_new_0_1b32bedde98fef4b: function() {
527
+ __wbg_new_0_f117d868b403dc07: function() {
528
528
  const ret = new Date();
529
529
  return ret;
530
530
  },
531
- __wbg_new_2e117a478906f062: function() {
532
- const ret = new Object();
531
+ __wbg_new_116be93542d39019: function() {
532
+ const ret = new Array();
533
533
  return ret;
534
534
  },
535
- __wbg_new_3444eb7412549f0b: function() {
536
- const ret = new Map();
535
+ __wbg_new_77cc4f4f472aeb81: function(arg0) {
536
+ const ret = new Uint8Array(arg0);
537
537
  return ret;
538
538
  },
539
- __wbg_new_36e147a8ced3c6e0: function() {
540
- const ret = new Array();
539
+ __wbg_new_cdf041679ded4c5f: function() {
540
+ const ret = new Map();
541
541
  return ret;
542
542
  },
543
- __wbg_new_47ab770c8bd3b6bb: function(arg0) {
544
- const ret = new Date(arg0);
543
+ __wbg_new_ebe3e0f6837f0879: function() {
544
+ const ret = new Object();
545
545
  return ret;
546
546
  },
547
- __wbg_new_81880fb5002cb255: function(arg0) {
548
- const ret = new Uint8Array(arg0);
547
+ __wbg_new_f9d6489212f3b2b3: function(arg0) {
548
+ const ret = new Date(arg0);
549
549
  return ret;
550
550
  },
551
- __wbg_new_from_slice_543b875b27789a8f: function(arg0, arg1) {
551
+ __wbg_new_from_slice_3eea173078478cfe: function(arg0, arg1) {
552
552
  const ret = new Uint8Array(getArrayU8FromWasm0(arg0, arg1));
553
553
  return ret;
554
554
  },
555
- __wbg_new_typed_00a409eb4ec4f2d9: function(arg0, arg1) {
555
+ __wbg_new_typed_cceaf62d8d95e9f2: function(arg0, arg1) {
556
556
  try {
557
557
  var state0 = {a: arg0, b: arg1};
558
558
  var cb0 = (arg0, arg1) => {
559
559
  const a = state0.a;
560
560
  state0.a = 0;
561
561
  try {
562
- return wasm_bindgen__convert__closures_____invoke__h4d206e7acbddb6aa(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);
563
563
  } finally {
564
564
  state0.a = a;
565
565
  }
@@ -570,77 +570,77 @@ function __wbg_get_imports() {
570
570
  state0.a = 0;
571
571
  }
572
572
  },
573
- __wbg_next_0c4066e251d2eff9: function() { return handleError(function (arg0) {
573
+ __wbg_next_42cf16ee0dafc9e2: function() { return handleError(function (arg0) {
574
574
  const ret = arg0.next();
575
575
  return ret;
576
576
  }, arguments); },
577
- __wbg_next_402fa10b59ab20c3: function(arg0) {
577
+ __wbg_next_8f26b64fa5e9f64b: function(arg0) {
578
578
  const ret = arg0.next;
579
579
  return ret;
580
580
  },
581
- __wbg_prototypesetcall_d721637c7ca66eb8: function(arg0, arg1, arg2) {
581
+ __wbg_prototypesetcall_de8e0d9553586985: function(arg0, arg1, arg2) {
582
582
  Uint8Array.prototype.set.call(getArrayU8FromWasm0(arg0, arg1), arg2);
583
583
  },
584
- __wbg_queueMicrotask_1c9b3800e321a967: function(arg0) {
584
+ __wbg_queueMicrotask_ac694eae12e92dfb: function(arg0) {
585
+ queueMicrotask(arg0);
586
+ },
587
+ __wbg_queueMicrotask_be5fe34a8f4cad4d: function(arg0) {
585
588
  const ret = arg0.queueMicrotask;
586
589
  return ret;
587
590
  },
588
- __wbg_queueMicrotask_311744e534a929a3: function(arg0) {
589
- queueMicrotask(arg0);
590
- },
591
- __wbg_resolve_d82363d90af6928a: function(arg0) {
591
+ __wbg_resolve_020f95d838c6ef25: function(arg0) {
592
592
  const ret = Promise.resolve(arg0);
593
593
  return ret;
594
594
  },
595
- __wbg_set_6be42768c690e380: function(arg0, arg1, arg2) {
596
- arg0[arg1] = arg2;
597
- },
598
- __wbg_set_9a1d61e17de7054c: function(arg0, arg1, arg2) {
595
+ __wbg_set_014226dfeca53178: function(arg0, arg1, arg2) {
599
596
  const ret = arg0.set(arg1, arg2);
600
597
  return ret;
601
598
  },
602
- __wbg_set_dc601f4a69da0bc2: function(arg0, arg1, arg2) {
599
+ __wbg_set_6be42768c690e380: function(arg0, arg1, arg2) {
600
+ arg0[arg1] = arg2;
601
+ },
602
+ __wbg_set_a80955eb93b145c6: function(arg0, arg1, arg2) {
603
603
  arg0[arg1 >>> 0] = arg2;
604
604
  },
605
- __wbg_size_3a5e8d210d038789: function(arg0) {
605
+ __wbg_size_86ca1114f3d8af74: function(arg0) {
606
606
  const ret = arg0.size;
607
607
  return ret;
608
608
  },
609
- __wbg_slice_faf194aa1e582f72: function() { return handleError(function (arg0, arg1, arg2) {
609
+ __wbg_slice_8b3c1aff3f9a6cc3: function() { return handleError(function (arg0, arg1, arg2) {
610
610
  const ret = arg0.slice(arg1, arg2);
611
611
  return ret;
612
612
  }, arguments); },
613
- __wbg_static_accessor_GLOBAL_THIS_2fee5048bcca5938: function() {
613
+ __wbg_static_accessor_GLOBAL_THIS_466428f93b4eaa76: function() {
614
614
  const ret = typeof globalThis === 'undefined' ? null : globalThis;
615
615
  return isLikeNone(ret) ? 0 : addToExternrefTable0(ret);
616
616
  },
617
- __wbg_static_accessor_GLOBAL_ce44e66a4935da8c: function() {
617
+ __wbg_static_accessor_GLOBAL_c7aea38d4de089bc: function() {
618
618
  const ret = typeof global === 'undefined' ? null : global;
619
619
  return isLikeNone(ret) ? 0 : addToExternrefTable0(ret);
620
620
  },
621
- __wbg_static_accessor_SELF_44f6e0cb5e67cdad: function() {
621
+ __wbg_static_accessor_SELF_42d4fae05e59267a: function() {
622
622
  const ret = typeof self === 'undefined' ? null : self;
623
623
  return isLikeNone(ret) ? 0 : addToExternrefTable0(ret);
624
624
  },
625
- __wbg_static_accessor_WINDOW_168f178805d978fe: function() {
625
+ __wbg_static_accessor_WINDOW_e0db14a0eba6a812: function() {
626
626
  const ret = typeof window === 'undefined' ? null : window;
627
627
  return isLikeNone(ret) ? 0 : addToExternrefTable0(ret);
628
628
  },
629
- __wbg_then_05edfc8a4fea5106: function(arg0, arg1, arg2) {
630
- const ret = arg0.then(arg1, arg2);
629
+ __wbg_then_7026b513a94278a8: function(arg0, arg1) {
630
+ const ret = arg0.then(arg1);
631
631
  return ret;
632
632
  },
633
- __wbg_then_591b6b3a75ee817a: function(arg0, arg1) {
634
- const ret = arg0.then(arg1);
633
+ __wbg_then_72819b8d4e081fb5: function(arg0, arg1, arg2) {
634
+ const ret = arg0.then(arg1, arg2);
635
635
  return ret;
636
636
  },
637
- __wbg_value_49f783bb59765962: function(arg0) {
637
+ __wbg_value_1e2369fab29b420e: function(arg0) {
638
638
  const ret = arg0.value;
639
639
  return ret;
640
640
  },
641
641
  __wbindgen_cast_0000000000000001: function(arg0, arg1) {
642
- // Cast intrinsic for `Closure(Closure { owned: true, function: Function { arguments: [Externref], shim_idx: 1256, ret: Result(Unit), inner_ret: Some(Result(Unit)) }, mutable: true }) -> Externref`.
643
- const ret = makeMutClosure(arg0, arg1, wasm_bindgen__convert__closures_____invoke__h023ec276d801cc59);
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_);
644
644
  return ret;
645
645
  },
646
646
  __wbindgen_cast_0000000000000002: function(arg0) {
@@ -679,15 +679,15 @@ function __wbg_get_imports() {
679
679
  };
680
680
  }
681
681
 
682
- function wasm_bindgen__convert__closures_____invoke__h023ec276d801cc59(arg0, arg1, arg2) {
683
- const ret = wasm.wasm_bindgen__convert__closures_____invoke__h023ec276d801cc59(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);
684
684
  if (ret[1]) {
685
685
  throw takeFromExternrefTable0(ret[0]);
686
686
  }
687
687
  }
688
688
 
689
- function wasm_bindgen__convert__closures_____invoke__h4d206e7acbddb6aa(arg0, arg1, arg2, arg3) {
690
- wasm.wasm_bindgen__convert__closures_____invoke__h4d206e7acbddb6aa(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);
691
691
  }
692
692
 
693
693
  const ContextFinalization = (typeof FinalizationRegistry === 'undefined')
@@ -943,11 +943,15 @@ function __wbg_finalize_init(instance, module) {
943
943
 
944
944
  async function __wbg_load(module, imports) {
945
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
+
946
950
  if (typeof WebAssembly.instantiateStreaming === 'function') {
947
951
  try {
948
952
  return await WebAssembly.instantiateStreaming(module, imports);
949
953
  } catch (e) {
950
- const validResponse = module.ok && expectedResponseType(module.type);
954
+ const validResponse = expectedResponseType(module.type);
951
955
 
952
956
  if (validResponse && module.headers.get('Content-Type') !== 'application/wasm') {
953
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];
@@ -19,18 +26,11 @@ export const context_rename_file: (a: number, b: number, c: number, d: number, e
19
26
  export const context_split_localizer: (a: number, b: number) => number;
20
27
  export const context_stop_at_tags: (a: number, b: any) => [number, number, number];
21
28
  export const context_new: () => number;
22
- export const parse_header: (a: number, b: number, c: number, d: number) => [number, number, number];
23
- export const get_fw_meta: (a: any, b: any) => [number, number, number];
24
29
  export const __wbg_wasmdcmgroup_free: (a: number, b: number) => void;
25
- export const create_dcm_as_bytes: (a: any) => [number, number, number, number];
26
30
  export const group_series: (a: any, b: any, c: number) => any;
27
- export const is_dicom_part10: (a: any) => any;
28
- export const read_until_pixels: (a: any, b: any, c: number) => any;
29
- export const __wbg_deidprofile_free: (a: number, b: number) => void;
30
- export const deidprofile_deid_dcm: (a: number, b: number, c: number) => [number, number, number, number];
31
- export const deidprofile_from_yaml: (a: number, b: number) => [number, number, number];
32
- export const wasm_bindgen__convert__closures_____invoke__h023ec276d801cc59: (a: number, b: number, c: any) => [number, number];
33
- export const wasm_bindgen__convert__closures_____invoke__h4d206e7acbddb6aa: (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;
34
34
  export const __wbindgen_malloc: (a: number, b: number) => number;
35
35
  export const __wbindgen_realloc: (a: number, b: number, c: number, d: number) => number;
36
36
  export const __wbindgen_exn_store: (a: number) => 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.7.0",
8
+ "version": "0.7.2",
9
9
  "license": "MIT",
10
10
  "repository": {
11
11
  "type": "git",