@diaryx/wasm-node 1.4.1-dev.adede70 → 1.4.3-dev.b07751e
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/diaryx_wasm.d.ts +3 -3
- package/diaryx_wasm.js +70 -70
- package/diaryx_wasm_bg.wasm +0 -0
- package/diaryx_wasm_bg.wasm.d.ts +3 -3
- package/package.json +1 -1
package/diaryx_wasm.d.ts
CHANGED
|
@@ -300,14 +300,14 @@ export interface InitOutput {
|
|
|
300
300
|
readonly today_formatted: (a: number, b: number) => [number, number];
|
|
301
301
|
readonly init: () => void;
|
|
302
302
|
readonly diaryxbackend_isCrdtEnabled: (a: number) => number;
|
|
303
|
-
readonly
|
|
304
|
-
readonly
|
|
305
|
-
readonly wasm_bindgen__convert__closures_____invoke__h229fb34ceaba2930: (a: number, b: number, c: any, d: any) => void;
|
|
303
|
+
readonly wasm_bindgen__convert__closures_____invoke__h31e41fe17a163321: (a: number, b: number, c: any) => [number, number];
|
|
304
|
+
readonly wasm_bindgen__convert__closures_____invoke__h186c6127932ad571: (a: number, b: number, c: any, d: any) => void;
|
|
306
305
|
readonly __wbindgen_malloc: (a: number, b: number) => number;
|
|
307
306
|
readonly __wbindgen_realloc: (a: number, b: number, c: number, d: number) => number;
|
|
308
307
|
readonly __wbindgen_exn_store: (a: number) => void;
|
|
309
308
|
readonly __externref_table_alloc: () => number;
|
|
310
309
|
readonly __wbindgen_externrefs: WebAssembly.Table;
|
|
310
|
+
readonly __wbindgen_destroy_closure: (a: number, b: number) => void;
|
|
311
311
|
readonly __externref_table_dealloc: (a: number) => void;
|
|
312
312
|
readonly __wbindgen_free: (a: number, b: number, c: number) => void;
|
|
313
313
|
readonly __wbindgen_start: () => void;
|
package/diaryx_wasm.js
CHANGED
|
@@ -329,26 +329,26 @@ export function today_formatted(format) {
|
|
|
329
329
|
function __wbg_get_imports() {
|
|
330
330
|
const import0 = {
|
|
331
331
|
__proto__: null,
|
|
332
|
-
|
|
332
|
+
__wbg___wbindgen_boolean_get_a86c216575a75c30: function(arg0) {
|
|
333
333
|
const v = arg0;
|
|
334
334
|
const ret = typeof(v) === 'boolean' ? v : undefined;
|
|
335
335
|
return isLikeNone(ret) ? 0xFFFFFF : ret ? 1 : 0;
|
|
336
336
|
},
|
|
337
|
-
|
|
337
|
+
__wbg___wbindgen_is_function_49868bde5eb1e745: function(arg0) {
|
|
338
338
|
const ret = typeof(arg0) === 'function';
|
|
339
339
|
return ret;
|
|
340
340
|
},
|
|
341
|
-
|
|
341
|
+
__wbg___wbindgen_is_undefined_c0cca72b82b86f4d: function(arg0) {
|
|
342
342
|
const ret = arg0 === undefined;
|
|
343
343
|
return ret;
|
|
344
344
|
},
|
|
345
|
-
|
|
345
|
+
__wbg___wbindgen_number_get_7579aab02a8a620c: function(arg0, arg1) {
|
|
346
346
|
const obj = arg1;
|
|
347
347
|
const ret = typeof(obj) === 'number' ? obj : undefined;
|
|
348
348
|
getDataViewMemory0().setFloat64(arg0 + 8 * 1, isLikeNone(ret) ? 0 : ret, true);
|
|
349
349
|
getDataViewMemory0().setInt32(arg0 + 4 * 0, !isLikeNone(ret), true);
|
|
350
350
|
},
|
|
351
|
-
|
|
351
|
+
__wbg___wbindgen_string_get_914df97fcfa788f2: function(arg0, arg1) {
|
|
352
352
|
const obj = arg1;
|
|
353
353
|
const ret = typeof(obj) === 'string' ? obj : undefined;
|
|
354
354
|
var ptr1 = isLikeNone(ret) ? 0 : passStringToWasm0(ret, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
@@ -356,62 +356,62 @@ 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
|
-
|
|
359
|
+
__wbg___wbindgen_throw_81fc77679af83bc6: function(arg0, arg1) {
|
|
360
360
|
throw new Error(getStringFromWasm0(arg0, arg1));
|
|
361
361
|
},
|
|
362
|
-
|
|
362
|
+
__wbg__wbg_cb_unref_3c3b4f651835fbcb: function(arg0) {
|
|
363
363
|
arg0._wbg_cb_unref();
|
|
364
364
|
},
|
|
365
|
-
|
|
365
|
+
__wbg_apply_fa9bf5e5ce151732: function() { return handleError(function (arg0, arg1, arg2) {
|
|
366
366
|
const ret = arg0.apply(arg1, arg2);
|
|
367
367
|
return ret;
|
|
368
368
|
}, arguments); },
|
|
369
|
-
|
|
370
|
-
const ret = arg0.call(arg1, arg2);
|
|
371
|
-
return ret;
|
|
372
|
-
}, arguments); },
|
|
373
|
-
__wbg_call_dcc2662fa17a72cf: function() { return handleError(function (arg0, arg1, arg2, arg3) {
|
|
369
|
+
__wbg_call_368fa9c372d473ba: function() { return handleError(function (arg0, arg1, arg2, arg3) {
|
|
374
370
|
const ret = arg0.call(arg1, arg2, arg3);
|
|
375
371
|
return ret;
|
|
376
372
|
}, arguments); },
|
|
377
|
-
|
|
373
|
+
__wbg_call_7f2987183bb62793: function() { return handleError(function (arg0, arg1) {
|
|
378
374
|
const ret = arg0.call(arg1);
|
|
379
375
|
return ret;
|
|
380
376
|
}, arguments); },
|
|
381
|
-
|
|
377
|
+
__wbg_call_d578befcc3145dee: function() { return handleError(function (arg0, arg1, arg2) {
|
|
378
|
+
const ret = arg0.call(arg1, arg2);
|
|
379
|
+
return ret;
|
|
380
|
+
}, arguments); },
|
|
381
|
+
__wbg_call_f2ac1622600b957f: function() { return handleError(function (arg0, arg1, arg2, arg3, arg4) {
|
|
382
382
|
const ret = arg0.call(arg1, arg2, arg3, arg4);
|
|
383
383
|
return ret;
|
|
384
384
|
}, arguments); },
|
|
385
|
-
|
|
385
|
+
__wbg_debug_58754cc8dbfec7ec: function(arg0, arg1, arg2, arg3) {
|
|
386
386
|
console.debug(arg0, arg1, arg2, arg3);
|
|
387
387
|
},
|
|
388
388
|
__wbg_diaryxbackend_new: function(arg0) {
|
|
389
389
|
const ret = DiaryxBackend.__wrap(arg0);
|
|
390
390
|
return ret;
|
|
391
391
|
},
|
|
392
|
-
|
|
392
|
+
__wbg_error_f8d1622cb1d8c53c: function(arg0, arg1, arg2, arg3) {
|
|
393
393
|
console.error(arg0, arg1, arg2, arg3);
|
|
394
394
|
},
|
|
395
|
-
|
|
395
|
+
__wbg_getTime_f6ac312467f7cf09: function(arg0) {
|
|
396
396
|
const ret = arg0.getTime();
|
|
397
397
|
return ret;
|
|
398
398
|
},
|
|
399
|
-
|
|
399
|
+
__wbg_getTimezoneOffset_ac5be603b21a5797: function(arg0) {
|
|
400
400
|
const ret = arg0.getTimezoneOffset();
|
|
401
401
|
return ret;
|
|
402
402
|
},
|
|
403
|
-
|
|
404
|
-
const ret = Reflect.get(arg0, arg1);
|
|
405
|
-
return ret;
|
|
406
|
-
}, arguments); },
|
|
407
|
-
__wbg_get_a8ee5c45dabc1b3b: function(arg0, arg1) {
|
|
403
|
+
__wbg_get_4848e350b40afc16: function(arg0, arg1) {
|
|
408
404
|
const ret = arg0[arg1 >>> 0];
|
|
409
405
|
return ret;
|
|
410
406
|
},
|
|
411
|
-
|
|
407
|
+
__wbg_get_f96702c6245e4ef9: function() { return handleError(function (arg0, arg1) {
|
|
408
|
+
const ret = Reflect.get(arg0, arg1);
|
|
409
|
+
return ret;
|
|
410
|
+
}, arguments); },
|
|
411
|
+
__wbg_info_8e80eb6c0f1d9449: function(arg0, arg1, arg2, arg3) {
|
|
412
412
|
console.info(arg0, arg1, arg2, arg3);
|
|
413
413
|
},
|
|
414
|
-
|
|
414
|
+
__wbg_instanceof_Object_72ee0c53dd8f0726: function(arg0) {
|
|
415
415
|
let result;
|
|
416
416
|
try {
|
|
417
417
|
result = arg0 instanceof Object;
|
|
@@ -421,7 +421,7 @@ function __wbg_get_imports() {
|
|
|
421
421
|
const ret = result;
|
|
422
422
|
return ret;
|
|
423
423
|
},
|
|
424
|
-
|
|
424
|
+
__wbg_instanceof_Promise_95d523058012a13d: function(arg0) {
|
|
425
425
|
let result;
|
|
426
426
|
try {
|
|
427
427
|
result = arg0 instanceof Promise;
|
|
@@ -431,7 +431,7 @@ function __wbg_get_imports() {
|
|
|
431
431
|
const ret = result;
|
|
432
432
|
return ret;
|
|
433
433
|
},
|
|
434
|
-
|
|
434
|
+
__wbg_instanceof_Uint8Array_4b8da683deb25d72: function(arg0) {
|
|
435
435
|
let result;
|
|
436
436
|
try {
|
|
437
437
|
result = arg0 instanceof Uint8Array;
|
|
@@ -441,45 +441,45 @@ function __wbg_get_imports() {
|
|
|
441
441
|
const ret = result;
|
|
442
442
|
return ret;
|
|
443
443
|
},
|
|
444
|
-
|
|
444
|
+
__wbg_isArray_db61795ad004c139: function(arg0) {
|
|
445
445
|
const ret = Array.isArray(arg0);
|
|
446
446
|
return ret;
|
|
447
447
|
},
|
|
448
|
-
|
|
448
|
+
__wbg_length_0c32cb8543c8e4c8: function(arg0) {
|
|
449
449
|
const ret = arg0.length;
|
|
450
450
|
return ret;
|
|
451
451
|
},
|
|
452
|
-
|
|
452
|
+
__wbg_length_6e821edde497a532: function(arg0) {
|
|
453
453
|
const ret = arg0.length;
|
|
454
454
|
return ret;
|
|
455
455
|
},
|
|
456
|
-
|
|
456
|
+
__wbg_log_dafe9ed5100e3a8c: function(arg0, arg1, arg2, arg3) {
|
|
457
457
|
console.log(arg0, arg1, arg2, arg3);
|
|
458
458
|
},
|
|
459
|
-
|
|
459
|
+
__wbg_new_0_bfa2ef4bc447daa2: function() {
|
|
460
460
|
const ret = new Date();
|
|
461
461
|
return ret;
|
|
462
462
|
},
|
|
463
|
-
|
|
464
|
-
const ret = new
|
|
463
|
+
__wbg_new_0f6d2ddfe083319b: function(arg0) {
|
|
464
|
+
const ret = new Date(arg0);
|
|
465
465
|
return ret;
|
|
466
466
|
},
|
|
467
|
-
|
|
468
|
-
const ret = new
|
|
467
|
+
__wbg_new_f3c9df4f38f3f798: function() {
|
|
468
|
+
const ret = new Array();
|
|
469
469
|
return ret;
|
|
470
470
|
},
|
|
471
|
-
|
|
471
|
+
__wbg_new_from_slice_2580ff33d0d10520: function(arg0, arg1) {
|
|
472
472
|
const ret = new Uint8Array(getArrayU8FromWasm0(arg0, arg1));
|
|
473
473
|
return ret;
|
|
474
474
|
},
|
|
475
|
-
|
|
475
|
+
__wbg_new_typed_14d7cc391ce53d2c: function(arg0, arg1) {
|
|
476
476
|
try {
|
|
477
477
|
var state0 = {a: arg0, b: arg1};
|
|
478
478
|
var cb0 = (arg0, arg1) => {
|
|
479
479
|
const a = state0.a;
|
|
480
480
|
state0.a = 0;
|
|
481
481
|
try {
|
|
482
|
-
return
|
|
482
|
+
return wasm_bindgen__convert__closures_____invoke__h186c6127932ad571(a, state0.b, arg0, arg1);
|
|
483
483
|
} finally {
|
|
484
484
|
state0.a = a;
|
|
485
485
|
}
|
|
@@ -487,68 +487,68 @@ function __wbg_get_imports() {
|
|
|
487
487
|
const ret = new Promise(cb0);
|
|
488
488
|
return ret;
|
|
489
489
|
} finally {
|
|
490
|
-
state0.a =
|
|
490
|
+
state0.a = 0;
|
|
491
491
|
}
|
|
492
492
|
},
|
|
493
|
-
|
|
493
|
+
__wbg_new_with_length_9cedd08484b73942: function(arg0) {
|
|
494
494
|
const ret = new Uint8Array(arg0 >>> 0);
|
|
495
495
|
return ret;
|
|
496
496
|
},
|
|
497
|
-
|
|
497
|
+
__wbg_prototypesetcall_3e05eb9545565046: function(arg0, arg1, arg2) {
|
|
498
498
|
Uint8Array.prototype.set.call(getArrayU8FromWasm0(arg0, arg1), arg2);
|
|
499
499
|
},
|
|
500
|
-
|
|
500
|
+
__wbg_push_6bdbc990be5ac37b: function(arg0, arg1) {
|
|
501
501
|
const ret = arg0.push(arg1);
|
|
502
502
|
return ret;
|
|
503
503
|
},
|
|
504
|
-
|
|
504
|
+
__wbg_queueMicrotask_abaf92f0bd4e80a4: function(arg0) {
|
|
505
505
|
const ret = arg0.queueMicrotask;
|
|
506
506
|
return ret;
|
|
507
507
|
},
|
|
508
|
-
|
|
508
|
+
__wbg_queueMicrotask_df5a6dac26d818f3: function(arg0) {
|
|
509
509
|
queueMicrotask(arg0);
|
|
510
510
|
},
|
|
511
|
-
|
|
511
|
+
__wbg_resolve_0a79de24e9d2267b: function(arg0) {
|
|
512
512
|
const ret = Promise.resolve(arg0);
|
|
513
513
|
return ret;
|
|
514
514
|
},
|
|
515
|
-
|
|
515
|
+
__wbg_set_16a9c1a07b3d38ec: function(arg0, arg1, arg2) {
|
|
516
516
|
arg0.set(getArrayU8FromWasm0(arg1, arg2));
|
|
517
517
|
},
|
|
518
|
-
|
|
519
|
-
const ret = typeof
|
|
518
|
+
__wbg_static_accessor_GLOBAL_THIS_a1248013d790bf5f: function() {
|
|
519
|
+
const ret = typeof globalThis === 'undefined' ? null : globalThis;
|
|
520
520
|
return isLikeNone(ret) ? 0 : addToExternrefTable0(ret);
|
|
521
521
|
},
|
|
522
|
-
|
|
523
|
-
const ret = typeof
|
|
522
|
+
__wbg_static_accessor_GLOBAL_f2e0f995a21329ff: function() {
|
|
523
|
+
const ret = typeof global === 'undefined' ? null : global;
|
|
524
524
|
return isLikeNone(ret) ? 0 : addToExternrefTable0(ret);
|
|
525
525
|
},
|
|
526
|
-
|
|
526
|
+
__wbg_static_accessor_SELF_24f78b6d23f286ea: function() {
|
|
527
527
|
const ret = typeof self === 'undefined' ? null : self;
|
|
528
528
|
return isLikeNone(ret) ? 0 : addToExternrefTable0(ret);
|
|
529
529
|
},
|
|
530
|
-
|
|
530
|
+
__wbg_static_accessor_WINDOW_59fd959c540fe405: function() {
|
|
531
531
|
const ret = typeof window === 'undefined' ? null : window;
|
|
532
532
|
return isLikeNone(ret) ? 0 : addToExternrefTable0(ret);
|
|
533
533
|
},
|
|
534
|
-
|
|
535
|
-
const ret = arg0.then(arg1);
|
|
534
|
+
__wbg_then_00eed3ac0b8e82cb: function(arg0, arg1, arg2) {
|
|
535
|
+
const ret = arg0.then(arg1, arg2);
|
|
536
536
|
return ret;
|
|
537
537
|
},
|
|
538
|
-
|
|
539
|
-
const ret = arg0.then(arg1
|
|
538
|
+
__wbg_then_a0c8db0381c8994c: function(arg0, arg1) {
|
|
539
|
+
const ret = arg0.then(arg1);
|
|
540
540
|
return ret;
|
|
541
541
|
},
|
|
542
|
-
|
|
542
|
+
__wbg_toString_891d991e862e1d44: function(arg0) {
|
|
543
543
|
const ret = arg0.toString();
|
|
544
544
|
return ret;
|
|
545
545
|
},
|
|
546
|
-
|
|
546
|
+
__wbg_warn_b5013c1036317367: function(arg0, arg1, arg2, arg3) {
|
|
547
547
|
console.warn(arg0, arg1, arg2, arg3);
|
|
548
548
|
},
|
|
549
549
|
__wbindgen_cast_0000000000000001: function(arg0, arg1) {
|
|
550
|
-
// Cast intrinsic for `Closure(Closure {
|
|
551
|
-
const ret = makeMutClosure(arg0, arg1,
|
|
550
|
+
// Cast intrinsic for `Closure(Closure { owned: true, function: Function { arguments: [Externref], shim_idx: 504, ret: Result(Unit), inner_ret: Some(Result(Unit)) }, mutable: true }) -> Externref`.
|
|
551
|
+
const ret = makeMutClosure(arg0, arg1, wasm_bindgen__convert__closures_____invoke__h31e41fe17a163321);
|
|
552
552
|
return ret;
|
|
553
553
|
},
|
|
554
554
|
__wbindgen_cast_0000000000000002: function(arg0) {
|
|
@@ -577,15 +577,15 @@ function __wbg_get_imports() {
|
|
|
577
577
|
};
|
|
578
578
|
}
|
|
579
579
|
|
|
580
|
-
function
|
|
581
|
-
const ret = wasm.
|
|
580
|
+
function wasm_bindgen__convert__closures_____invoke__h31e41fe17a163321(arg0, arg1, arg2) {
|
|
581
|
+
const ret = wasm.wasm_bindgen__convert__closures_____invoke__h31e41fe17a163321(arg0, arg1, arg2);
|
|
582
582
|
if (ret[1]) {
|
|
583
583
|
throw takeFromExternrefTable0(ret[0]);
|
|
584
584
|
}
|
|
585
585
|
}
|
|
586
586
|
|
|
587
|
-
function
|
|
588
|
-
wasm.
|
|
587
|
+
function wasm_bindgen__convert__closures_____invoke__h186c6127932ad571(arg0, arg1, arg2, arg3) {
|
|
588
|
+
wasm.wasm_bindgen__convert__closures_____invoke__h186c6127932ad571(arg0, arg1, arg2, arg3);
|
|
589
589
|
}
|
|
590
590
|
|
|
591
591
|
const DiaryxBackendFinalization = (typeof FinalizationRegistry === 'undefined')
|
|
@@ -603,7 +603,7 @@ function addToExternrefTable0(obj) {
|
|
|
603
603
|
|
|
604
604
|
const CLOSURE_DTORS = (typeof FinalizationRegistry === 'undefined')
|
|
605
605
|
? { register: () => {}, unregister: () => {} }
|
|
606
|
-
: new FinalizationRegistry(state =>
|
|
606
|
+
: new FinalizationRegistry(state => wasm.__wbindgen_destroy_closure(state.a, state.b));
|
|
607
607
|
|
|
608
608
|
function getArrayU8FromWasm0(ptr, len) {
|
|
609
609
|
ptr = ptr >>> 0;
|
|
@@ -644,8 +644,8 @@ function isLikeNone(x) {
|
|
|
644
644
|
return x === undefined || x === null;
|
|
645
645
|
}
|
|
646
646
|
|
|
647
|
-
function makeMutClosure(arg0, arg1,
|
|
648
|
-
const state = { a: arg0, b: arg1, cnt: 1
|
|
647
|
+
function makeMutClosure(arg0, arg1, f) {
|
|
648
|
+
const state = { a: arg0, b: arg1, cnt: 1 };
|
|
649
649
|
const real = (...args) => {
|
|
650
650
|
|
|
651
651
|
// First up with a closure we increment the internal reference
|
|
@@ -663,7 +663,7 @@ function makeMutClosure(arg0, arg1, dtor, f) {
|
|
|
663
663
|
};
|
|
664
664
|
real._wbg_cb_unref = () => {
|
|
665
665
|
if (--state.cnt === 0) {
|
|
666
|
-
|
|
666
|
+
wasm.__wbindgen_destroy_closure(state.a, state.b);
|
|
667
667
|
state.a = 0;
|
|
668
668
|
CLOSURE_DTORS.unregister(state);
|
|
669
669
|
}
|
package/diaryx_wasm_bg.wasm
CHANGED
|
Binary file
|
package/diaryx_wasm_bg.wasm.d.ts
CHANGED
|
@@ -21,14 +21,14 @@ export const now_timestamp: () => [number, number];
|
|
|
21
21
|
export const today_formatted: (a: number, b: number) => [number, number];
|
|
22
22
|
export const init: () => void;
|
|
23
23
|
export const diaryxbackend_isCrdtEnabled: (a: number) => number;
|
|
24
|
-
export const
|
|
25
|
-
export const
|
|
26
|
-
export const wasm_bindgen__convert__closures_____invoke__h229fb34ceaba2930: (a: number, b: number, c: any, d: any) => void;
|
|
24
|
+
export const wasm_bindgen__convert__closures_____invoke__h31e41fe17a163321: (a: number, b: number, c: any) => [number, number];
|
|
25
|
+
export const wasm_bindgen__convert__closures_____invoke__h186c6127932ad571: (a: number, b: number, c: any, d: any) => void;
|
|
27
26
|
export const __wbindgen_malloc: (a: number, b: number) => number;
|
|
28
27
|
export const __wbindgen_realloc: (a: number, b: number, c: number, d: number) => number;
|
|
29
28
|
export const __wbindgen_exn_store: (a: number) => void;
|
|
30
29
|
export const __externref_table_alloc: () => number;
|
|
31
30
|
export const __wbindgen_externrefs: WebAssembly.Table;
|
|
31
|
+
export const __wbindgen_destroy_closure: (a: number, b: number) => void;
|
|
32
32
|
export const __externref_table_dealloc: (a: number) => void;
|
|
33
33
|
export const __wbindgen_free: (a: number, b: number, c: number) => void;
|
|
34
34
|
export const __wbindgen_start: () => void;
|
package/package.json
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
"name": "@diaryx/wasm-node",
|
|
3
3
|
"type": "module",
|
|
4
4
|
"description": "WebAssembly bindings for Diaryx core functionality",
|
|
5
|
-
"version": "1.4.
|
|
5
|
+
"version": "1.4.3-dev.b07751e",
|
|
6
6
|
"license": "SEE LICENSE IN ../../LICENSE.md",
|
|
7
7
|
"repository": {
|
|
8
8
|
"type": "git",
|