sandboxedjs 0.1.66 → 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 +7 -2
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +7 -2
- 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 +6 -1
- 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 +6 -1
- package/dist/python-abi.js.map +1 -1
- package/dist/python-worker.js +11 -0
- 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 = {
|
|
@@ -19143,6 +19144,9 @@ var MAX_TRANSFER = 8 * 1024 * 1024;
|
|
|
19143
19144
|
var POLLIN = 1;
|
|
19144
19145
|
var POLLOUT = 4;
|
|
19145
19146
|
var POLLHUP = 16;
|
|
19147
|
+
var AF_INET = 2;
|
|
19148
|
+
var SOCK_STREAM = 1;
|
|
19149
|
+
var IPPROTO_TCP = 6;
|
|
19146
19150
|
function createHostAbiServer(proc) {
|
|
19147
19151
|
const files = new FileService(proc.vfs, proc.cred);
|
|
19148
19152
|
const started = Date.now();
|
|
@@ -19392,7 +19396,8 @@ function createHostAbiServer(proc) {
|
|
|
19392
19396
|
const family = r.u32();
|
|
19393
19397
|
const type = r.u32();
|
|
19394
19398
|
const protocol = r.i32();
|
|
19395
|
-
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);
|
|
19396
19401
|
if (!proc.sockets) throw new PosixError(Errno.ENOSYS);
|
|
19397
19402
|
return { status: proc.table.add(new SocketDescription(new VirtualTcpSocket(proc.sockets))) };
|
|
19398
19403
|
}
|