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/python/python.wasm
CHANGED
|
Binary file
|
package/dist/python/runtime.json
CHANGED
|
@@ -18,9 +18,9 @@
|
|
|
18
18
|
"artifacts": {
|
|
19
19
|
"moduleUrl": "./python.js",
|
|
20
20
|
"hashes": {
|
|
21
|
-
"python.js": "sha256-
|
|
22
|
-
"python.wasm": "sha256-
|
|
23
|
-
"python.data": "sha256-
|
|
21
|
+
"python.js": "sha256-114d024dc91e6795c7e89a8828e7c4e236a2667c21e8055232913f122cdb0a2f",
|
|
22
|
+
"python.wasm": "sha256-3e16bdb125a90e6fdb9ba0968ea4bd1b2763deec11b8d2d8582ebcbe5e7037ee",
|
|
23
|
+
"python.data": "sha256-2c7635b24b5026667f02872a9cf83d13e6d3260a9bb3a3058a1603ca635e7c4b",
|
|
24
24
|
"python.worker.js": "sha256-63bb1df52c4e3a95eae7b2d77c98554188fcc5925e72628ea0c34d5c573977a5"
|
|
25
25
|
}
|
|
26
26
|
},
|
package/dist/python-abi.cjs
CHANGED
|
@@ -86,6 +86,7 @@ var Errno = {
|
|
|
86
86
|
ELOOP: 40,
|
|
87
87
|
ENODATA: 61,
|
|
88
88
|
ENOTSOCK: 88,
|
|
89
|
+
EPROTONOSUPPORT: 93,
|
|
89
90
|
EAFNOSUPPORT: 97,
|
|
90
91
|
EADDRINUSE: 98,
|
|
91
92
|
EADDRNOTAVAIL: 99,
|
|
@@ -1272,6 +1273,9 @@ var MAX_TRANSFER = 8 * 1024 * 1024;
|
|
|
1272
1273
|
var POLLIN = 1;
|
|
1273
1274
|
var POLLOUT = 4;
|
|
1274
1275
|
var POLLHUP = 16;
|
|
1276
|
+
var AF_INET = 2;
|
|
1277
|
+
var SOCK_STREAM = 1;
|
|
1278
|
+
var IPPROTO_TCP = 6;
|
|
1275
1279
|
function createHostAbiServer(proc) {
|
|
1276
1280
|
const files = new FileService(proc.vfs, proc.cred);
|
|
1277
1281
|
const started = Date.now();
|
|
@@ -1521,7 +1525,8 @@ function createHostAbiServer(proc) {
|
|
|
1521
1525
|
const family = r.u32();
|
|
1522
1526
|
const type = r.u32();
|
|
1523
1527
|
const protocol = r.i32();
|
|
1524
|
-
if (family !==
|
|
1528
|
+
if (family !== AF_INET || (type & 15) !== SOCK_STREAM) throw new PosixError(Errno.EAFNOSUPPORT);
|
|
1529
|
+
if (protocol !== 0 && protocol !== IPPROTO_TCP) throw new PosixError(Errno.EPROTONOSUPPORT);
|
|
1525
1530
|
if (!proc.sockets) throw new PosixError(Errno.ENOSYS);
|
|
1526
1531
|
return { status: proc.table.add(new SocketDescription(new VirtualTcpSocket(proc.sockets))) };
|
|
1527
1532
|
}
|