@monogrid/gainmap-js 2.0.1 → 2.0.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.
@@ -1,5 +1,5 @@
1
1
  /**
2
- * @monogrid/gainmap-js v2.0.0
2
+ * @monogrid/gainmap-js v2.0.1
3
3
  * With ❤️, by MONOGRID <hello@mono-grid.com>
4
4
  */
5
5
 
@@ -38,7 +38,7 @@
38
38
  readyPromiseResolve = resolve;
39
39
  readyPromiseReject = reject;
40
40
  });
41
- ["_main","_memory","___indirect_function_table","_fflush","onRuntimeInitialized"].forEach((prop) => {
41
+ ["_main","_memory","___indirect_function_table","__embind_initialize_bindings","_fflush","onRuntimeInitialized"].forEach((prop) => {
42
42
  if (!Object.getOwnPropertyDescriptor(Module['ready'], prop)) {
43
43
  Object.defineProperty(Module['ready'], prop, {
44
44
  get: () => abort('You are getting ' + prop + ' on the Promise object, instead of the instance. Use .then() to get called back with the instance, see the MODULARIZE docs in src/settings.js'),
@@ -356,7 +356,7 @@
356
356
  // An online HTML version (which may be of a different version of Emscripten)
357
357
  // is up at http://kripken.github.io/emscripten-site/docs/api_reference/preamble.js.html
358
358
 
359
- var wasmBinary;
359
+ var wasmBinary;
360
360
  if (Module['wasmBinary']) wasmBinary = Module['wasmBinary'];legacyModuleProp('wasmBinary', 'wasmBinary');
361
361
 
362
362
  if (typeof WebAssembly != 'object') {
@@ -380,10 +380,6 @@
380
380
  // but only when noExitRuntime is false.
381
381
  var EXITSTATUS;
382
382
 
383
- // In STRICT mode, we only define assert() when ASSERTIONS is set. i.e. we
384
- // don't define it at all in release modes. This matches the behaviour of
385
- // MINIMAL_RUNTIME.
386
- // TODO(sbc): Make this the default even without STRICT enabled.
387
383
  /** @type {function(*, string=)} */
388
384
  function assert(condition, text) {
389
385
  if (!condition) {
@@ -1178,7 +1174,10 @@
1178
1174
  var setter = field.setter;
1179
1175
  var setterContext = field.setterContext;
1180
1176
  fields[fieldName] = {
1181
- read: (ptr) => getterReturnType['fromWireType'](getter(getterContext, ptr)),
1177
+ read: (ptr) => {
1178
+ return getterReturnType['fromWireType'](
1179
+ getter(getterContext, ptr));
1180
+ },
1182
1181
  write: (ptr, o) => {
1183
1182
  var destructors = [];
1184
1183
  setter(setterContext, ptr, setterArgumentType['toWireType'](destructors, o));
@@ -1444,12 +1443,33 @@
1444
1443
  });
1445
1444
  };
1446
1445
 
1447
- var createNamedFunction = (name, body) => Object.defineProperty(body, 'name', {
1448
- value: name
1449
- });
1446
+ var char_0 = 48;
1450
1447
 
1448
+ var char_9 = 57;
1449
+ var makeLegalFunctionName = (name) => {
1450
+ if (undefined === name) {
1451
+ return '_unknown';
1452
+ }
1453
+ name = name.replace(/[^a-zA-Z0-9_]/g, '$');
1454
+ var f = name.charCodeAt(0);
1455
+ if (f >= char_0 && f <= char_9) {
1456
+ return `_${name}`;
1457
+ }
1458
+ return name;
1459
+ };
1451
1460
 
1452
1461
 
1462
+
1463
+ function createNamedFunction(name, body) {
1464
+ name = makeLegalFunctionName(name);
1465
+ // Use an abject with a computed property name to create a new function with
1466
+ // a name specified at runtime, but without using `new Function` or `eval`.
1467
+ return {
1468
+ [name]: function() {
1469
+ return body.apply(this, arguments);
1470
+ }
1471
+ }[name];
1472
+ }
1453
1473
  function newFunc(constructor, argumentList) {
1454
1474
  if (!(constructor instanceof Function)) {
1455
1475
  throw new TypeError(`new_ called with constructor type ${typeof(constructor)} which is not a function`);
@@ -1518,7 +1538,7 @@
1518
1538
  }
1519
1539
 
1520
1540
  var invokerFnBody = `
1521
- return function (${argsList}) {
1541
+ return function ${makeLegalFunctionName(humanName)}(${argsList}) {
1522
1542
  if (arguments.length !== ${argCount - 2}) {
1523
1543
  throwBindingError('function ${humanName} called with ' + arguments.length + ' arguments, expected ${argCount - 2}');
1524
1544
  }`;
@@ -1570,8 +1590,7 @@
1570
1590
 
1571
1591
  args1.push(invokerFnBody);
1572
1592
 
1573
- var invokerFn = newFunc(Function, args1).apply(null, args2);
1574
- return createNamedFunction(humanName, invokerFn);
1593
+ return newFunc(Function, args1).apply(null, args2);
1575
1594
  }
1576
1595
 
1577
1596
  var ensureOverloadTable = (proto, methodName, humanName) => {
@@ -1903,7 +1922,7 @@
1903
1922
 
1904
1923
 
1905
1924
  var stringToUTF8Array = (str, heap, outIdx, maxBytesToWrite) => {
1906
- assert(typeof str === 'string', `stringToUTF8Array expects a string (got ${typeof str})`);
1925
+ assert(typeof str === 'string');
1907
1926
  // Parameter maxBytesToWrite is not optional. Negative values, 0, null,
1908
1927
  // undefined and false each don't write out any bytes.
1909
1928
  if (!(maxBytesToWrite > 0))
@@ -2047,7 +2066,7 @@
2047
2066
  * @return {string}
2048
2067
  */
2049
2068
  var UTF8ToString = (ptr, maxBytesToRead) => {
2050
- assert(typeof ptr == 'number', `UTF8ToString expects a number (got ${typeof ptr})`);
2069
+ assert(typeof ptr == 'number');
2051
2070
  return ptr ? UTF8ArrayToString(HEAPU8, ptr, maxBytesToRead) : '';
2052
2071
  };
2053
2072
  var __embind_register_std_string = (rawType, name) => {
@@ -2420,7 +2439,9 @@
2420
2439
  return symbol;
2421
2440
  };
2422
2441
 
2423
- var __emval_new_cstring = (v) => Emval.toHandle(getStringOrSymbol(v));
2442
+ var __emval_new_cstring = (v) => {
2443
+ return Emval.toHandle(getStringOrSymbol(v));
2444
+ };
2424
2445
 
2425
2446
 
2426
2447
 
@@ -2635,7 +2656,9 @@
2635
2656
  var paths = Array.prototype.slice.call(arguments);
2636
2657
  return PATH.normalize(paths.join('/'));
2637
2658
  },
2638
- join2:(l, r) => PATH.normalize(l + '/' + r),
2659
+ join2:(l, r) => {
2660
+ return PATH.normalize(l + '/' + r);
2661
+ },
2639
2662
  };
2640
2663
 
2641
2664
  var initRandomFill = () => {
@@ -3292,7 +3315,7 @@
3292
3315
 
3293
3316
 
3294
3317
  var FS_createDataFile = (parent, name, fileData, canRead, canWrite, canOwn) => {
3295
- FS.createDataFile(parent, name, fileData, canRead, canWrite, canOwn);
3318
+ return FS.createDataFile(parent, name, fileData, canRead, canWrite, canOwn);
3296
3319
  };
3297
3320
 
3298
3321
  var preloadPlugins = Module['preloadPlugins'] || [];
@@ -3489,128 +3512,7 @@
3489
3512
  };
3490
3513
 
3491
3514
  var ERRNO_CODES = {
3492
- 'EPERM': 63,
3493
- 'ENOENT': 44,
3494
- 'ESRCH': 71,
3495
- 'EINTR': 27,
3496
- 'EIO': 29,
3497
- 'ENXIO': 60,
3498
- 'E2BIG': 1,
3499
- 'ENOEXEC': 45,
3500
- 'EBADF': 8,
3501
- 'ECHILD': 12,
3502
- 'EAGAIN': 6,
3503
- 'EWOULDBLOCK': 6,
3504
- 'ENOMEM': 48,
3505
- 'EACCES': 2,
3506
- 'EFAULT': 21,
3507
- 'ENOTBLK': 105,
3508
- 'EBUSY': 10,
3509
- 'EEXIST': 20,
3510
- 'EXDEV': 75,
3511
- 'ENODEV': 43,
3512
- 'ENOTDIR': 54,
3513
- 'EISDIR': 31,
3514
- 'EINVAL': 28,
3515
- 'ENFILE': 41,
3516
- 'EMFILE': 33,
3517
- 'ENOTTY': 59,
3518
- 'ETXTBSY': 74,
3519
- 'EFBIG': 22,
3520
- 'ENOSPC': 51,
3521
- 'ESPIPE': 70,
3522
- 'EROFS': 69,
3523
- 'EMLINK': 34,
3524
- 'EPIPE': 64,
3525
- 'EDOM': 18,
3526
- 'ERANGE': 68,
3527
- 'ENOMSG': 49,
3528
- 'EIDRM': 24,
3529
- 'ECHRNG': 106,
3530
- 'EL2NSYNC': 156,
3531
- 'EL3HLT': 107,
3532
- 'EL3RST': 108,
3533
- 'ELNRNG': 109,
3534
- 'EUNATCH': 110,
3535
- 'ENOCSI': 111,
3536
- 'EL2HLT': 112,
3537
- 'EDEADLK': 16,
3538
- 'ENOLCK': 46,
3539
- 'EBADE': 113,
3540
- 'EBADR': 114,
3541
- 'EXFULL': 115,
3542
- 'ENOANO': 104,
3543
- 'EBADRQC': 103,
3544
- 'EBADSLT': 102,
3545
- 'EDEADLOCK': 16,
3546
- 'EBFONT': 101,
3547
- 'ENOSTR': 100,
3548
- 'ENODATA': 116,
3549
- 'ETIME': 117,
3550
- 'ENOSR': 118,
3551
- 'ENONET': 119,
3552
- 'ENOPKG': 120,
3553
- 'EREMOTE': 121,
3554
- 'ENOLINK': 47,
3555
- 'EADV': 122,
3556
- 'ESRMNT': 123,
3557
- 'ECOMM': 124,
3558
- 'EPROTO': 65,
3559
- 'EMULTIHOP': 36,
3560
- 'EDOTDOT': 125,
3561
- 'EBADMSG': 9,
3562
- 'ENOTUNIQ': 126,
3563
- 'EBADFD': 127,
3564
- 'EREMCHG': 128,
3565
- 'ELIBACC': 129,
3566
- 'ELIBBAD': 130,
3567
- 'ELIBSCN': 131,
3568
- 'ELIBMAX': 132,
3569
- 'ELIBEXEC': 133,
3570
- 'ENOSYS': 52,
3571
- 'ENOTEMPTY': 55,
3572
- 'ENAMETOOLONG': 37,
3573
- 'ELOOP': 32,
3574
- 'EOPNOTSUPP': 138,
3575
- 'EPFNOSUPPORT': 139,
3576
- 'ECONNRESET': 15,
3577
- 'ENOBUFS': 42,
3578
- 'EAFNOSUPPORT': 5,
3579
- 'EPROTOTYPE': 67,
3580
- 'ENOTSOCK': 57,
3581
- 'ENOPROTOOPT': 50,
3582
- 'ESHUTDOWN': 140,
3583
- 'ECONNREFUSED': 14,
3584
- 'EADDRINUSE': 3,
3585
- 'ECONNABORTED': 13,
3586
- 'ENETUNREACH': 40,
3587
- 'ENETDOWN': 38,
3588
- 'ETIMEDOUT': 73,
3589
- 'EHOSTDOWN': 142,
3590
- 'EHOSTUNREACH': 23,
3591
- 'EINPROGRESS': 26,
3592
- 'EALREADY': 7,
3593
- 'EDESTADDRREQ': 17,
3594
- 'EMSGSIZE': 35,
3595
- 'EPROTONOSUPPORT': 66,
3596
- 'ESOCKTNOSUPPORT': 137,
3597
- 'EADDRNOTAVAIL': 4,
3598
- 'ENETRESET': 39,
3599
- 'EISCONN': 30,
3600
- 'ENOTCONN': 53,
3601
- 'ETOOMANYREFS': 141,
3602
- 'EUSERS': 136,
3603
- 'EDQUOT': 19,
3604
- 'ESTALE': 72,
3605
- 'ENOTSUP': 138,
3606
- 'ENOMEDIUM': 148,
3607
- 'EILSEQ': 25,
3608
- 'EOVERFLOW': 61,
3609
- 'ECANCELED': 11,
3610
- 'ENOTRECOVERABLE': 56,
3611
- 'EOWNERDEAD': 62,
3612
- 'ESTRPIPE': 135,
3613
- };
3515
+ };
3614
3516
 
3615
3517
  var demangle = (func) => {
3616
3518
  warnOnce('warning: build with -sDEMANGLE_SUPPORT to link in libcxxabi demangling');
@@ -4949,6 +4851,7 @@
4949
4851
  FS.close(stream);
4950
4852
  FS.chmod(node, mode);
4951
4853
  }
4854
+ return node;
4952
4855
  },
4953
4856
  createDevice(parent, name, input, output) {
4954
4857
  var path = PATH.join2(typeof parent == 'string' ? parent : FS.getPath(parent), name);
@@ -5247,19 +5150,19 @@
5247
5150
  HEAP32[(((buf)+(12))>>2)] = stat.uid;
5248
5151
  HEAP32[(((buf)+(16))>>2)] = stat.gid;
5249
5152
  HEAP32[(((buf)+(20))>>2)] = stat.rdev;
5250
- (tempI64 = [stat.size>>>0,(tempDouble = stat.size,(+(Math.abs(tempDouble))) >= 1.0 ? (tempDouble > 0.0 ? (+(Math.floor((tempDouble)/4294967296.0)))>>>0 : (~~((+(Math.ceil((tempDouble - +(((~~(tempDouble)))>>>0))/4294967296.0)))))>>>0) : 0)], HEAP32[(((buf)+(24))>>2)] = tempI64[0],HEAP32[(((buf)+(28))>>2)] = tempI64[1]);
5153
+ (tempI64 = [stat.size>>>0,(tempDouble=stat.size,(+(Math.abs(tempDouble))) >= 1.0 ? (tempDouble > 0.0 ? (+(Math.floor((tempDouble)/4294967296.0)))>>>0 : (~~((+(Math.ceil((tempDouble - +(((~~(tempDouble)))>>>0))/4294967296.0)))))>>>0) : 0)], HEAP32[(((buf)+(24))>>2)] = tempI64[0],HEAP32[(((buf)+(28))>>2)] = tempI64[1]);
5251
5154
  HEAP32[(((buf)+(32))>>2)] = 4096;
5252
5155
  HEAP32[(((buf)+(36))>>2)] = stat.blocks;
5253
5156
  var atime = stat.atime.getTime();
5254
5157
  var mtime = stat.mtime.getTime();
5255
5158
  var ctime = stat.ctime.getTime();
5256
- (tempI64 = [Math.floor(atime / 1000)>>>0,(tempDouble = Math.floor(atime / 1000),(+(Math.abs(tempDouble))) >= 1.0 ? (tempDouble > 0.0 ? (+(Math.floor((tempDouble)/4294967296.0)))>>>0 : (~~((+(Math.ceil((tempDouble - +(((~~(tempDouble)))>>>0))/4294967296.0)))))>>>0) : 0)], HEAP32[(((buf)+(40))>>2)] = tempI64[0],HEAP32[(((buf)+(44))>>2)] = tempI64[1]);
5159
+ (tempI64 = [Math.floor(atime / 1000)>>>0,(tempDouble=Math.floor(atime / 1000),(+(Math.abs(tempDouble))) >= 1.0 ? (tempDouble > 0.0 ? (+(Math.floor((tempDouble)/4294967296.0)))>>>0 : (~~((+(Math.ceil((tempDouble - +(((~~(tempDouble)))>>>0))/4294967296.0)))))>>>0) : 0)], HEAP32[(((buf)+(40))>>2)] = tempI64[0],HEAP32[(((buf)+(44))>>2)] = tempI64[1]);
5257
5160
  HEAPU32[(((buf)+(48))>>2)] = (atime % 1000) * 1000;
5258
- (tempI64 = [Math.floor(mtime / 1000)>>>0,(tempDouble = Math.floor(mtime / 1000),(+(Math.abs(tempDouble))) >= 1.0 ? (tempDouble > 0.0 ? (+(Math.floor((tempDouble)/4294967296.0)))>>>0 : (~~((+(Math.ceil((tempDouble - +(((~~(tempDouble)))>>>0))/4294967296.0)))))>>>0) : 0)], HEAP32[(((buf)+(56))>>2)] = tempI64[0],HEAP32[(((buf)+(60))>>2)] = tempI64[1]);
5161
+ (tempI64 = [Math.floor(mtime / 1000)>>>0,(tempDouble=Math.floor(mtime / 1000),(+(Math.abs(tempDouble))) >= 1.0 ? (tempDouble > 0.0 ? (+(Math.floor((tempDouble)/4294967296.0)))>>>0 : (~~((+(Math.ceil((tempDouble - +(((~~(tempDouble)))>>>0))/4294967296.0)))))>>>0) : 0)], HEAP32[(((buf)+(56))>>2)] = tempI64[0],HEAP32[(((buf)+(60))>>2)] = tempI64[1]);
5259
5162
  HEAPU32[(((buf)+(64))>>2)] = (mtime % 1000) * 1000;
5260
- (tempI64 = [Math.floor(ctime / 1000)>>>0,(tempDouble = Math.floor(ctime / 1000),(+(Math.abs(tempDouble))) >= 1.0 ? (tempDouble > 0.0 ? (+(Math.floor((tempDouble)/4294967296.0)))>>>0 : (~~((+(Math.ceil((tempDouble - +(((~~(tempDouble)))>>>0))/4294967296.0)))))>>>0) : 0)], HEAP32[(((buf)+(72))>>2)] = tempI64[0],HEAP32[(((buf)+(76))>>2)] = tempI64[1]);
5163
+ (tempI64 = [Math.floor(ctime / 1000)>>>0,(tempDouble=Math.floor(ctime / 1000),(+(Math.abs(tempDouble))) >= 1.0 ? (tempDouble > 0.0 ? (+(Math.floor((tempDouble)/4294967296.0)))>>>0 : (~~((+(Math.ceil((tempDouble - +(((~~(tempDouble)))>>>0))/4294967296.0)))))>>>0) : 0)], HEAP32[(((buf)+(72))>>2)] = tempI64[0],HEAP32[(((buf)+(76))>>2)] = tempI64[1]);
5261
5164
  HEAPU32[(((buf)+(80))>>2)] = (ctime % 1000) * 1000;
5262
- (tempI64 = [stat.ino>>>0,(tempDouble = stat.ino,(+(Math.abs(tempDouble))) >= 1.0 ? (tempDouble > 0.0 ? (+(Math.floor((tempDouble)/4294967296.0)))>>>0 : (~~((+(Math.ceil((tempDouble - +(((~~(tempDouble)))>>>0))/4294967296.0)))))>>>0) : 0)], HEAP32[(((buf)+(88))>>2)] = tempI64[0],HEAP32[(((buf)+(92))>>2)] = tempI64[1]);
5165
+ (tempI64 = [stat.ino>>>0,(tempDouble=stat.ino,(+(Math.abs(tempDouble))) >= 1.0 ? (tempDouble > 0.0 ? (+(Math.floor((tempDouble)/4294967296.0)))>>>0 : (~~((+(Math.ceil((tempDouble - +(((~~(tempDouble)))>>>0))/4294967296.0)))))>>>0) : 0)], HEAP32[(((buf)+(88))>>2)] = tempI64[0],HEAP32[(((buf)+(92))>>2)] = tempI64[1]);
5263
5166
  return 0;
5264
5167
  },
5265
5168
  doMsync(addr, stream, len, flags, offset) {
@@ -5400,7 +5303,7 @@
5400
5303
  if (isNaN(offset)) return 61;
5401
5304
  var stream = SYSCALLS.getStreamFromFD(fd);
5402
5305
  FS.llseek(stream, offset, whence);
5403
- (tempI64 = [stream.position>>>0,(tempDouble = stream.position,(+(Math.abs(tempDouble))) >= 1.0 ? (tempDouble > 0.0 ? (+(Math.floor((tempDouble)/4294967296.0)))>>>0 : (~~((+(Math.ceil((tempDouble - +(((~~(tempDouble)))>>>0))/4294967296.0)))))>>>0) : 0)], HEAP32[((newOffset)>>2)] = tempI64[0],HEAP32[(((newOffset)+(4))>>2)] = tempI64[1]);
5306
+ (tempI64 = [stream.position>>>0,(tempDouble=stream.position,(+(Math.abs(tempDouble))) >= 1.0 ? (tempDouble > 0.0 ? (+(Math.floor((tempDouble)/4294967296.0)))>>>0 : (~~((+(Math.ceil((tempDouble - +(((~~(tempDouble)))>>>0))/4294967296.0)))))>>>0) : 0)], HEAP32[((newOffset)>>2)] = tempI64[0],HEAP32[(((newOffset)+(4))>>2)] = tempI64[1]);
5404
5307
  if (stream.getdents && offset === 0 && whence === 0) stream.getdents = null; // reset readdir state
5405
5308
  return 0;
5406
5309
  } catch (e) {
@@ -5439,7 +5342,9 @@
5439
5342
  }
5440
5343
  }
5441
5344
 
5442
- var isLeapYear = (year) => year%4 === 0 && (year%100 !== 0 || year%400 === 0);
5345
+ var isLeapYear = (year) => {
5346
+ return year%4 === 0 && (year%100 !== 0 || year%400 === 0);
5347
+ };
5443
5348
 
5444
5349
  var arraySum = (array, index) => {
5445
5350
  var sum = 0;
@@ -5811,7 +5716,129 @@
5811
5716
  });
5812
5717
  FS.FSNode = FSNode;
5813
5718
  FS.createPreloadedFile = FS_createPreloadedFile;
5814
- FS.staticInit();function checkIncomingModuleAPI() {
5719
+ FS.staticInit();ERRNO_CODES = {
5720
+ 'EPERM': 63,
5721
+ 'ENOENT': 44,
5722
+ 'ESRCH': 71,
5723
+ 'EINTR': 27,
5724
+ 'EIO': 29,
5725
+ 'ENXIO': 60,
5726
+ 'E2BIG': 1,
5727
+ 'ENOEXEC': 45,
5728
+ 'EBADF': 8,
5729
+ 'ECHILD': 12,
5730
+ 'EAGAIN': 6,
5731
+ 'EWOULDBLOCK': 6,
5732
+ 'ENOMEM': 48,
5733
+ 'EACCES': 2,
5734
+ 'EFAULT': 21,
5735
+ 'ENOTBLK': 105,
5736
+ 'EBUSY': 10,
5737
+ 'EEXIST': 20,
5738
+ 'EXDEV': 75,
5739
+ 'ENODEV': 43,
5740
+ 'ENOTDIR': 54,
5741
+ 'EISDIR': 31,
5742
+ 'EINVAL': 28,
5743
+ 'ENFILE': 41,
5744
+ 'EMFILE': 33,
5745
+ 'ENOTTY': 59,
5746
+ 'ETXTBSY': 74,
5747
+ 'EFBIG': 22,
5748
+ 'ENOSPC': 51,
5749
+ 'ESPIPE': 70,
5750
+ 'EROFS': 69,
5751
+ 'EMLINK': 34,
5752
+ 'EPIPE': 64,
5753
+ 'EDOM': 18,
5754
+ 'ERANGE': 68,
5755
+ 'ENOMSG': 49,
5756
+ 'EIDRM': 24,
5757
+ 'ECHRNG': 106,
5758
+ 'EL2NSYNC': 156,
5759
+ 'EL3HLT': 107,
5760
+ 'EL3RST': 108,
5761
+ 'ELNRNG': 109,
5762
+ 'EUNATCH': 110,
5763
+ 'ENOCSI': 111,
5764
+ 'EL2HLT': 112,
5765
+ 'EDEADLK': 16,
5766
+ 'ENOLCK': 46,
5767
+ 'EBADE': 113,
5768
+ 'EBADR': 114,
5769
+ 'EXFULL': 115,
5770
+ 'ENOANO': 104,
5771
+ 'EBADRQC': 103,
5772
+ 'EBADSLT': 102,
5773
+ 'EDEADLOCK': 16,
5774
+ 'EBFONT': 101,
5775
+ 'ENOSTR': 100,
5776
+ 'ENODATA': 116,
5777
+ 'ETIME': 117,
5778
+ 'ENOSR': 118,
5779
+ 'ENONET': 119,
5780
+ 'ENOPKG': 120,
5781
+ 'EREMOTE': 121,
5782
+ 'ENOLINK': 47,
5783
+ 'EADV': 122,
5784
+ 'ESRMNT': 123,
5785
+ 'ECOMM': 124,
5786
+ 'EPROTO': 65,
5787
+ 'EMULTIHOP': 36,
5788
+ 'EDOTDOT': 125,
5789
+ 'EBADMSG': 9,
5790
+ 'ENOTUNIQ': 126,
5791
+ 'EBADFD': 127,
5792
+ 'EREMCHG': 128,
5793
+ 'ELIBACC': 129,
5794
+ 'ELIBBAD': 130,
5795
+ 'ELIBSCN': 131,
5796
+ 'ELIBMAX': 132,
5797
+ 'ELIBEXEC': 133,
5798
+ 'ENOSYS': 52,
5799
+ 'ENOTEMPTY': 55,
5800
+ 'ENAMETOOLONG': 37,
5801
+ 'ELOOP': 32,
5802
+ 'EOPNOTSUPP': 138,
5803
+ 'EPFNOSUPPORT': 139,
5804
+ 'ECONNRESET': 15,
5805
+ 'ENOBUFS': 42,
5806
+ 'EAFNOSUPPORT': 5,
5807
+ 'EPROTOTYPE': 67,
5808
+ 'ENOTSOCK': 57,
5809
+ 'ENOPROTOOPT': 50,
5810
+ 'ESHUTDOWN': 140,
5811
+ 'ECONNREFUSED': 14,
5812
+ 'EADDRINUSE': 3,
5813
+ 'ECONNABORTED': 13,
5814
+ 'ENETUNREACH': 40,
5815
+ 'ENETDOWN': 38,
5816
+ 'ETIMEDOUT': 73,
5817
+ 'EHOSTDOWN': 142,
5818
+ 'EHOSTUNREACH': 23,
5819
+ 'EINPROGRESS': 26,
5820
+ 'EALREADY': 7,
5821
+ 'EDESTADDRREQ': 17,
5822
+ 'EMSGSIZE': 35,
5823
+ 'EPROTONOSUPPORT': 66,
5824
+ 'ESOCKTNOSUPPORT': 137,
5825
+ 'EADDRNOTAVAIL': 4,
5826
+ 'ENETRESET': 39,
5827
+ 'EISCONN': 30,
5828
+ 'ENOTCONN': 53,
5829
+ 'ETOOMANYREFS': 141,
5830
+ 'EUSERS': 136,
5831
+ 'EDQUOT': 19,
5832
+ 'ESTALE': 72,
5833
+ 'ENOTSUP': 138,
5834
+ 'ENOMEDIUM': 148,
5835
+ 'EILSEQ': 25,
5836
+ 'EOVERFLOW': 61,
5837
+ 'ECANCELED': 11,
5838
+ 'ENOTRECOVERABLE': 56,
5839
+ 'EOWNERDEAD': 62,
5840
+ 'ESTRPIPE': 135,
5841
+ };function checkIncomingModuleAPI() {
5815
5842
  ignoredModuleProp('fetchSettings');
5816
5843
  }
5817
5844
  var wasmImports = {
@@ -5893,6 +5920,7 @@
5893
5920
  var _main = Module['_main'] = createExportWrapper('main');
5894
5921
  var _free = createExportWrapper('free');
5895
5922
  var ___getTypeName = createExportWrapper('__getTypeName');
5923
+ Module['__embind_initialize_bindings'] = createExportWrapper('_embind_initialize_bindings');
5896
5924
  var _fflush = Module['_fflush'] = createExportWrapper('fflush');
5897
5925
  var _setThrew = createExportWrapper('setThrew');
5898
5926
  var _emscripten_stack_init = () => (_emscripten_stack_init = wasmExports['emscripten_stack_init'])();
@@ -6156,11 +6184,8 @@
6156
6184
  'downcastPointer',
6157
6185
  'upcastPointer',
6158
6186
  'validateThis',
6159
- 'char_0',
6160
- 'char_9',
6161
- 'makeLegalFunctionName',
6187
+ 'craftEmvalAllocator',
6162
6188
  'emval_get_global',
6163
- 'emval_returnValue',
6164
6189
  'emval_lookupTypes',
6165
6190
  'emval_addMethodCaller',
6166
6191
  ];
@@ -6341,14 +6366,17 @@
6341
6366
  'detachFinalizer_deps',
6342
6367
  'deletionQueue',
6343
6368
  'delayFunction',
6369
+ 'char_0',
6370
+ 'char_9',
6371
+ 'makeLegalFunctionName',
6344
6372
  'emval_handles',
6345
6373
  'emval_symbols',
6346
6374
  'init_emval',
6347
6375
  'count_emval_handles',
6348
6376
  'getStringOrSymbol',
6349
6377
  'Emval',
6378
+ 'emval_newers',
6350
6379
  'emval_methodCallers',
6351
- 'reflectConstruct',
6352
6380
  ];
6353
6381
  unexportedSymbols.forEach(unexportedRuntimeSymbol);
6354
6382
 
@@ -6503,6 +6531,7 @@
6503
6531
 
6504
6532
  return moduleArg.ready
6505
6533
  }
6534
+
6506
6535
  );
6507
6536
  })();
6508
6537
  var libultrahdr = Module;
@@ -1,9 +1,9 @@
1
1
  /**
2
- * @monogrid/gainmap-js v2.0.0
2
+ * @monogrid/gainmap-js v2.0.1
3
3
  * With ❤️, by MONOGRID <hello@mono-grid.com>
4
4
  */
5
5
 
6
- import { c as commonjsGlobal, g as getDefaultExportFromCjs } from './_commonjsHelpers-A0Fo_jMO.js';
6
+ import { c as commonjsGlobal, g as getDefaultExportFromCjs } from './_commonjsHelpers-Q30iHbTG.js';
7
7
 
8
8
  var lib$1;
9
9
  var hasRequiredLib$1;
@@ -1,5 +1,5 @@
1
1
  /**
2
- * @monogrid/gainmap-js v2.0.0
2
+ * @monogrid/gainmap-js v2.0.1
3
3
  * With ❤️, by MONOGRID <hello@mono-grid.com>
4
4
  */
5
5
 
package/dist/worker.js CHANGED
@@ -1,10 +1,10 @@
1
1
  /**
2
- * @monogrid/gainmap-js v2.0.0
2
+ * @monogrid/gainmap-js v2.0.1
3
3
  * With ❤️, by MONOGRID <hello@mono-grid.com>
4
4
  */
5
5
 
6
- import { g as getDefaultExportFromCjs } from './_commonjsHelpers-A0Fo_jMO.js';
7
- import { c as compress } from './compress-nWDFn7nF.js';
6
+ import { g as getDefaultExportFromCjs } from './_commonjsHelpers-Q30iHbTG.js';
7
+ import { c as compress } from './compress-OWkN-Bv4.js';
8
8
 
9
9
  var isPromise$2 = {exports: {}};
10
10
 
@@ -1,5 +1,5 @@
1
1
  /**
2
- * @monogrid/gainmap-js v2.0.0
2
+ * @monogrid/gainmap-js v2.0.1
3
3
  * With ❤️, by MONOGRID <hello@mono-grid.com>
4
4
  */
5
5