@dolthub/doltlite-wasm 0.11.36 → 0.11.38
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/package.json +1 -1
- package/sqlite3-bundler-friendly.mjs +52 -0
- package/sqlite3-node.mjs +52 -0
- package/sqlite3.mjs +52 -0
- package/sqlite3.wasm +0 -0
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@dolthub/doltlite-wasm",
|
|
3
|
-
"version": "0.11.
|
|
3
|
+
"version": "0.11.38",
|
|
4
4
|
"description": "DoltLite compiled to WebAssembly: SQLite with Dolt-style version control (branches, commits, merge, diff) for the browser and any JS runtime.",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "index.mjs",
|
|
@@ -4297,6 +4297,27 @@ async function createWasm() {
|
|
|
4297
4297
|
}
|
|
4298
4298
|
}
|
|
4299
4299
|
|
|
4300
|
+
function ___syscall_getsockopt(fd, level, optname, optval, optlen, d1) {
|
|
4301
|
+
try {
|
|
4302
|
+
|
|
4303
|
+
var sock = getSocketFromFD(fd);
|
|
4304
|
+
// Minimal getsockopt aimed at resolving https://github.com/emscripten-core/emscripten/issues/2211
|
|
4305
|
+
// so only supports SOL_SOCKET with SO_ERROR.
|
|
4306
|
+
if (level === 1) {
|
|
4307
|
+
if (optname === 4) {
|
|
4308
|
+
HEAP32[((optval)>>2)] = sock.error;
|
|
4309
|
+
HEAP32[((optlen)>>2)] = 4;
|
|
4310
|
+
sock.error = null; // Clear the error (The SO_ERROR option obtains and then clears this field).
|
|
4311
|
+
return 0;
|
|
4312
|
+
}
|
|
4313
|
+
}
|
|
4314
|
+
return -50; // The option is unknown at the level indicated.
|
|
4315
|
+
} catch (e) {
|
|
4316
|
+
if (typeof FS == 'undefined' || !(e.name === 'ErrnoError')) throw e;
|
|
4317
|
+
return -e.errno;
|
|
4318
|
+
}
|
|
4319
|
+
}
|
|
4320
|
+
|
|
4300
4321
|
|
|
4301
4322
|
function ___syscall_ioctl(fd, op, varargs) {
|
|
4302
4323
|
SYSCALLS.varargs = varargs;
|
|
@@ -4447,6 +4468,33 @@ async function createWasm() {
|
|
|
4447
4468
|
}
|
|
4448
4469
|
}
|
|
4449
4470
|
|
|
4471
|
+
function ___syscall_poll(fds, nfds, timeout) {
|
|
4472
|
+
try {
|
|
4473
|
+
|
|
4474
|
+
var nonzero = 0;
|
|
4475
|
+
for (var i = 0; i < nfds; i++) {
|
|
4476
|
+
var pollfd = fds + 8 * i;
|
|
4477
|
+
var fd = HEAP32[((pollfd)>>2)];
|
|
4478
|
+
var events = HEAP16[(((pollfd)+(4))>>1)];
|
|
4479
|
+
var mask = 32;
|
|
4480
|
+
var stream = FS.getStream(fd);
|
|
4481
|
+
if (stream) {
|
|
4482
|
+
mask = SYSCALLS.DEFAULT_POLLMASK;
|
|
4483
|
+
if (stream.stream_ops.poll) {
|
|
4484
|
+
mask = stream.stream_ops.poll(stream, -1);
|
|
4485
|
+
}
|
|
4486
|
+
}
|
|
4487
|
+
mask &= events | 8 | 16;
|
|
4488
|
+
if (mask) nonzero++;
|
|
4489
|
+
HEAP16[(((pollfd)+(6))>>1)] = mask;
|
|
4490
|
+
}
|
|
4491
|
+
return nonzero;
|
|
4492
|
+
} catch (e) {
|
|
4493
|
+
if (typeof FS == 'undefined' || !(e.name === 'ErrnoError')) throw e;
|
|
4494
|
+
return -e.errno;
|
|
4495
|
+
}
|
|
4496
|
+
}
|
|
4497
|
+
|
|
4450
4498
|
|
|
4451
4499
|
|
|
4452
4500
|
function ___syscall_readlinkat(dirfd, path, buf, bufsize) {
|
|
@@ -5654,6 +5702,8 @@ var wasmImports = {
|
|
|
5654
5702
|
/** @export */
|
|
5655
5703
|
__syscall_getdents64: ___syscall_getdents64,
|
|
5656
5704
|
/** @export */
|
|
5705
|
+
__syscall_getsockopt: ___syscall_getsockopt,
|
|
5706
|
+
/** @export */
|
|
5657
5707
|
__syscall_ioctl: ___syscall_ioctl,
|
|
5658
5708
|
/** @export */
|
|
5659
5709
|
__syscall_lstat64: ___syscall_lstat64,
|
|
@@ -5664,6 +5714,8 @@ var wasmImports = {
|
|
|
5664
5714
|
/** @export */
|
|
5665
5715
|
__syscall_openat: ___syscall_openat,
|
|
5666
5716
|
/** @export */
|
|
5717
|
+
__syscall_poll: ___syscall_poll,
|
|
5718
|
+
/** @export */
|
|
5667
5719
|
__syscall_readlinkat: ___syscall_readlinkat,
|
|
5668
5720
|
/** @export */
|
|
5669
5721
|
__syscall_renameat: ___syscall_renameat,
|
package/sqlite3-node.mjs
CHANGED
|
@@ -4413,6 +4413,27 @@ async function createWasm() {
|
|
|
4413
4413
|
}
|
|
4414
4414
|
}
|
|
4415
4415
|
|
|
4416
|
+
function ___syscall_getsockopt(fd, level, optname, optval, optlen, d1) {
|
|
4417
|
+
try {
|
|
4418
|
+
|
|
4419
|
+
var sock = getSocketFromFD(fd);
|
|
4420
|
+
// Minimal getsockopt aimed at resolving https://github.com/emscripten-core/emscripten/issues/2211
|
|
4421
|
+
// so only supports SOL_SOCKET with SO_ERROR.
|
|
4422
|
+
if (level === 1) {
|
|
4423
|
+
if (optname === 4) {
|
|
4424
|
+
HEAP32[((optval)>>2)] = sock.error;
|
|
4425
|
+
HEAP32[((optlen)>>2)] = 4;
|
|
4426
|
+
sock.error = null; // Clear the error (The SO_ERROR option obtains and then clears this field).
|
|
4427
|
+
return 0;
|
|
4428
|
+
}
|
|
4429
|
+
}
|
|
4430
|
+
return -50; // The option is unknown at the level indicated.
|
|
4431
|
+
} catch (e) {
|
|
4432
|
+
if (typeof FS == 'undefined' || !(e.name === 'ErrnoError')) throw e;
|
|
4433
|
+
return -e.errno;
|
|
4434
|
+
}
|
|
4435
|
+
}
|
|
4436
|
+
|
|
4416
4437
|
|
|
4417
4438
|
function ___syscall_ioctl(fd, op, varargs) {
|
|
4418
4439
|
SYSCALLS.varargs = varargs;
|
|
@@ -4563,6 +4584,33 @@ async function createWasm() {
|
|
|
4563
4584
|
}
|
|
4564
4585
|
}
|
|
4565
4586
|
|
|
4587
|
+
function ___syscall_poll(fds, nfds, timeout) {
|
|
4588
|
+
try {
|
|
4589
|
+
|
|
4590
|
+
var nonzero = 0;
|
|
4591
|
+
for (var i = 0; i < nfds; i++) {
|
|
4592
|
+
var pollfd = fds + 8 * i;
|
|
4593
|
+
var fd = HEAP32[((pollfd)>>2)];
|
|
4594
|
+
var events = HEAP16[(((pollfd)+(4))>>1)];
|
|
4595
|
+
var mask = 32;
|
|
4596
|
+
var stream = FS.getStream(fd);
|
|
4597
|
+
if (stream) {
|
|
4598
|
+
mask = SYSCALLS.DEFAULT_POLLMASK;
|
|
4599
|
+
if (stream.stream_ops.poll) {
|
|
4600
|
+
mask = stream.stream_ops.poll(stream, -1);
|
|
4601
|
+
}
|
|
4602
|
+
}
|
|
4603
|
+
mask &= events | 8 | 16;
|
|
4604
|
+
if (mask) nonzero++;
|
|
4605
|
+
HEAP16[(((pollfd)+(6))>>1)] = mask;
|
|
4606
|
+
}
|
|
4607
|
+
return nonzero;
|
|
4608
|
+
} catch (e) {
|
|
4609
|
+
if (typeof FS == 'undefined' || !(e.name === 'ErrnoError')) throw e;
|
|
4610
|
+
return -e.errno;
|
|
4611
|
+
}
|
|
4612
|
+
}
|
|
4613
|
+
|
|
4566
4614
|
|
|
4567
4615
|
|
|
4568
4616
|
function ___syscall_readlinkat(dirfd, path, buf, bufsize) {
|
|
@@ -5770,6 +5818,8 @@ var wasmImports = {
|
|
|
5770
5818
|
/** @export */
|
|
5771
5819
|
__syscall_getdents64: ___syscall_getdents64,
|
|
5772
5820
|
/** @export */
|
|
5821
|
+
__syscall_getsockopt: ___syscall_getsockopt,
|
|
5822
|
+
/** @export */
|
|
5773
5823
|
__syscall_ioctl: ___syscall_ioctl,
|
|
5774
5824
|
/** @export */
|
|
5775
5825
|
__syscall_lstat64: ___syscall_lstat64,
|
|
@@ -5780,6 +5830,8 @@ var wasmImports = {
|
|
|
5780
5830
|
/** @export */
|
|
5781
5831
|
__syscall_openat: ___syscall_openat,
|
|
5782
5832
|
/** @export */
|
|
5833
|
+
__syscall_poll: ___syscall_poll,
|
|
5834
|
+
/** @export */
|
|
5783
5835
|
__syscall_readlinkat: ___syscall_readlinkat,
|
|
5784
5836
|
/** @export */
|
|
5785
5837
|
__syscall_renameat: ___syscall_renameat,
|
package/sqlite3.mjs
CHANGED
|
@@ -4388,6 +4388,27 @@ async function createWasm() {
|
|
|
4388
4388
|
}
|
|
4389
4389
|
}
|
|
4390
4390
|
|
|
4391
|
+
function ___syscall_getsockopt(fd, level, optname, optval, optlen, d1) {
|
|
4392
|
+
try {
|
|
4393
|
+
|
|
4394
|
+
var sock = getSocketFromFD(fd);
|
|
4395
|
+
// Minimal getsockopt aimed at resolving https://github.com/emscripten-core/emscripten/issues/2211
|
|
4396
|
+
// so only supports SOL_SOCKET with SO_ERROR.
|
|
4397
|
+
if (level === 1) {
|
|
4398
|
+
if (optname === 4) {
|
|
4399
|
+
HEAP32[((optval)>>2)] = sock.error;
|
|
4400
|
+
HEAP32[((optlen)>>2)] = 4;
|
|
4401
|
+
sock.error = null; // Clear the error (The SO_ERROR option obtains and then clears this field).
|
|
4402
|
+
return 0;
|
|
4403
|
+
}
|
|
4404
|
+
}
|
|
4405
|
+
return -50; // The option is unknown at the level indicated.
|
|
4406
|
+
} catch (e) {
|
|
4407
|
+
if (typeof FS == 'undefined' || !(e.name === 'ErrnoError')) throw e;
|
|
4408
|
+
return -e.errno;
|
|
4409
|
+
}
|
|
4410
|
+
}
|
|
4411
|
+
|
|
4391
4412
|
|
|
4392
4413
|
function ___syscall_ioctl(fd, op, varargs) {
|
|
4393
4414
|
SYSCALLS.varargs = varargs;
|
|
@@ -4538,6 +4559,33 @@ async function createWasm() {
|
|
|
4538
4559
|
}
|
|
4539
4560
|
}
|
|
4540
4561
|
|
|
4562
|
+
function ___syscall_poll(fds, nfds, timeout) {
|
|
4563
|
+
try {
|
|
4564
|
+
|
|
4565
|
+
var nonzero = 0;
|
|
4566
|
+
for (var i = 0; i < nfds; i++) {
|
|
4567
|
+
var pollfd = fds + 8 * i;
|
|
4568
|
+
var fd = HEAP32[((pollfd)>>2)];
|
|
4569
|
+
var events = HEAP16[(((pollfd)+(4))>>1)];
|
|
4570
|
+
var mask = 32;
|
|
4571
|
+
var stream = FS.getStream(fd);
|
|
4572
|
+
if (stream) {
|
|
4573
|
+
mask = SYSCALLS.DEFAULT_POLLMASK;
|
|
4574
|
+
if (stream.stream_ops.poll) {
|
|
4575
|
+
mask = stream.stream_ops.poll(stream, -1);
|
|
4576
|
+
}
|
|
4577
|
+
}
|
|
4578
|
+
mask &= events | 8 | 16;
|
|
4579
|
+
if (mask) nonzero++;
|
|
4580
|
+
HEAP16[(((pollfd)+(6))>>1)] = mask;
|
|
4581
|
+
}
|
|
4582
|
+
return nonzero;
|
|
4583
|
+
} catch (e) {
|
|
4584
|
+
if (typeof FS == 'undefined' || !(e.name === 'ErrnoError')) throw e;
|
|
4585
|
+
return -e.errno;
|
|
4586
|
+
}
|
|
4587
|
+
}
|
|
4588
|
+
|
|
4541
4589
|
|
|
4542
4590
|
|
|
4543
4591
|
function ___syscall_readlinkat(dirfd, path, buf, bufsize) {
|
|
@@ -5745,6 +5793,8 @@ var wasmImports = {
|
|
|
5745
5793
|
/** @export */
|
|
5746
5794
|
__syscall_getdents64: ___syscall_getdents64,
|
|
5747
5795
|
/** @export */
|
|
5796
|
+
__syscall_getsockopt: ___syscall_getsockopt,
|
|
5797
|
+
/** @export */
|
|
5748
5798
|
__syscall_ioctl: ___syscall_ioctl,
|
|
5749
5799
|
/** @export */
|
|
5750
5800
|
__syscall_lstat64: ___syscall_lstat64,
|
|
@@ -5755,6 +5805,8 @@ var wasmImports = {
|
|
|
5755
5805
|
/** @export */
|
|
5756
5806
|
__syscall_openat: ___syscall_openat,
|
|
5757
5807
|
/** @export */
|
|
5808
|
+
__syscall_poll: ___syscall_poll,
|
|
5809
|
+
/** @export */
|
|
5758
5810
|
__syscall_readlinkat: ___syscall_readlinkat,
|
|
5759
5811
|
/** @export */
|
|
5760
5812
|
__syscall_renameat: ___syscall_renameat,
|
package/sqlite3.wasm
CHANGED
|
Binary file
|