sandboxedjs 0.1.65 → 0.1.67
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/dist/index.cjs +10 -5
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +10 -5
- package/dist/index.js.map +1 -1
- package/dist/python/python.data +167 -180
- package/dist/python/python.js +1 -1
- package/dist/python/python.wasm +0 -0
- package/dist/python/runtime.json +3 -3
- package/dist/python-abi.cjs +9 -4
- package/dist/python-abi.cjs.map +1 -1
- package/dist/python-abi.d.cts +1 -0
- package/dist/python-abi.d.ts +1 -0
- package/dist/python-abi.js +9 -4
- package/dist/python-abi.js.map +1 -1
- package/dist/python-worker.js +23 -2
- package/dist/python-worker.js.map +1 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -17838,6 +17838,7 @@ var Errno = {
|
|
|
17838
17838
|
ELOOP: 40,
|
|
17839
17839
|
ENODATA: 61,
|
|
17840
17840
|
ENOTSOCK: 88,
|
|
17841
|
+
EPROTONOSUPPORT: 93,
|
|
17841
17842
|
EAFNOSUPPORT: 97,
|
|
17842
17843
|
EADDRINUSE: 98,
|
|
17843
17844
|
EADDRNOTAVAIL: 99,
|
|
@@ -17945,7 +17946,7 @@ var wheels_default = {
|
|
|
17945
17946
|
|
|
17946
17947
|
// package.json
|
|
17947
17948
|
var package_default = {
|
|
17948
|
-
version: "0.1.
|
|
17949
|
+
version: "0.1.67"};
|
|
17949
17950
|
|
|
17950
17951
|
// src/runtime/python/config.ts
|
|
17951
17952
|
var bundledManifest = {
|
|
@@ -19140,6 +19141,12 @@ var VirtualTcpNetwork = class {
|
|
|
19140
19141
|
|
|
19141
19142
|
// src/runtime/python/syscall-server.ts
|
|
19142
19143
|
var MAX_TRANSFER = 8 * 1024 * 1024;
|
|
19144
|
+
var POLLIN = 1;
|
|
19145
|
+
var POLLOUT = 4;
|
|
19146
|
+
var POLLHUP = 16;
|
|
19147
|
+
var AF_INET = 2;
|
|
19148
|
+
var SOCK_STREAM = 1;
|
|
19149
|
+
var IPPROTO_TCP = 6;
|
|
19143
19150
|
function createHostAbiServer(proc) {
|
|
19144
19151
|
const files = new FileService(proc.vfs, proc.cred);
|
|
19145
19152
|
const started = Date.now();
|
|
@@ -19389,7 +19396,8 @@ function createHostAbiServer(proc) {
|
|
|
19389
19396
|
const family = r.u32();
|
|
19390
19397
|
const type = r.u32();
|
|
19391
19398
|
const protocol = r.i32();
|
|
19392
|
-
if (family !==
|
|
19399
|
+
if (family !== AF_INET || (type & 15) !== SOCK_STREAM) throw new PosixError(Errno.EAFNOSUPPORT);
|
|
19400
|
+
if (protocol !== 0 && protocol !== IPPROTO_TCP) throw new PosixError(Errno.EPROTONOSUPPORT);
|
|
19393
19401
|
if (!proc.sockets) throw new PosixError(Errno.ENOSYS);
|
|
19394
19402
|
return { status: proc.table.add(new SocketDescription(new VirtualTcpSocket(proc.sockets))) };
|
|
19395
19403
|
}
|
|
@@ -19502,9 +19510,6 @@ function createHostAbiServer(proc) {
|
|
|
19502
19510
|
if (proc.signal.aborted) throw new PosixError(Errno.EINTR);
|
|
19503
19511
|
}
|
|
19504
19512
|
}
|
|
19505
|
-
const POLLIN = 1;
|
|
19506
|
-
const POLLOUT = 4;
|
|
19507
|
-
const POLLHUP = 16;
|
|
19508
19513
|
async function poll(requests, timeoutMs) {
|
|
19509
19514
|
const deadline = timeoutMs < 0 ? Infinity : Date.now() + timeoutMs;
|
|
19510
19515
|
for (; ; ) {
|