sandboxedjs 0.1.71 → 0.1.73
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/README.md +21 -0
- package/bin/sandboxedjs-build-wheels.mjs +143 -0
- package/dist/agent.d.cts +1 -1
- package/dist/agent.d.ts +1 -1
- package/dist/{container-WPf_A76-.d.ts → container-B5X6stfx.d.ts} +8 -0
- package/dist/{container-BwXE2J26.d.cts → container-BxEoVOmX.d.cts} +8 -0
- package/dist/index.cjs +555 -304
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +2 -2
- package/dist/index.d.ts +2 -2
- package/dist/index.js +555 -304
- package/dist/index.js.map +1 -1
- package/dist/python/wheels/index.json +23 -2
- package/dist/python/wheels/numpy-2.2.6-cp313-cp313-emscripten_5_0_6_wasm32.whl +0 -0
- package/dist/python/wheels/sbx_meson_probe-1.0.0-cp313-cp313-emscripten_5_0_6_wasm32.whl +0 -0
- package/dist/python/wheels/siphash24-1.9-cp313-cp313-emscripten_5_0_6_wasm32.whl +0 -0
- package/dist/python-abi.cjs +6 -6
- package/dist/python-abi.cjs.map +1 -1
- package/dist/python-abi.js +6 -6
- package/dist/python-abi.js.map +1 -1
- package/dist/python-worker.js +7 -7
- package/dist/python-worker.js.map +1 -1
- package/dist/rolldown-wasi-worker.js +1 -1
- package/dist/rolldown-wasi-worker.js.map +1 -1
- package/dist/worker-entry.js +22 -22
- package/dist/worker-entry.js.map +1 -1
- package/package.json +3 -2
package/dist/python-abi.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
// src/
|
|
1
|
+
// src/python/host-abi.ts
|
|
2
2
|
var SBX_HOST_ABI_VERSION = 1;
|
|
3
3
|
var SBX_REQUEST_HEADER_BYTES = 16;
|
|
4
4
|
var SBX_RESPONSE_HEADER_BYTES = 20;
|
|
@@ -111,7 +111,7 @@ var ERRNO_NAMES = Object.fromEntries(
|
|
|
111
111
|
Object.entries(Errno).map(([name, code]) => [code, name])
|
|
112
112
|
);
|
|
113
113
|
|
|
114
|
-
// src/
|
|
114
|
+
// src/python/protocol.ts
|
|
115
115
|
var ProtocolError = class extends Error {
|
|
116
116
|
code = "ERR_SBX_ABI_PROTOCOL";
|
|
117
117
|
};
|
|
@@ -271,7 +271,7 @@ function failure(errno) {
|
|
|
271
271
|
return -Math.abs(errno);
|
|
272
272
|
}
|
|
273
273
|
|
|
274
|
-
// src/
|
|
274
|
+
// src/python/sync-transport.ts
|
|
275
275
|
var STATE = 0;
|
|
276
276
|
var LENGTH = 1;
|
|
277
277
|
var MORE = 2;
|
|
@@ -1274,7 +1274,7 @@ var SocketDescription = class _SocketDescription {
|
|
|
1274
1274
|
}
|
|
1275
1275
|
};
|
|
1276
1276
|
|
|
1277
|
-
// src/
|
|
1277
|
+
// src/python/syscall-server.ts
|
|
1278
1278
|
var MAX_TRANSFER = 8 * 1024 * 1024;
|
|
1279
1279
|
var POLLIN = 1;
|
|
1280
1280
|
var POLLOUT = 4;
|
|
@@ -1723,7 +1723,7 @@ function encodeStat(st) {
|
|
|
1723
1723
|
return new Writer().u64(st.ino).u32(st.mode).u64(st.size).u32(st.uid).u32(st.gid).u32(st.nlink).i64(Math.round(st.atimeMs * 1e6)).i64(Math.round(st.mtimeMs * 1e6)).i64(Math.round(st.ctimeMs * 1e6)).finish();
|
|
1724
1724
|
}
|
|
1725
1725
|
|
|
1726
|
-
// src/
|
|
1726
|
+
// src/python/syscall-client.ts
|
|
1727
1727
|
var HostAbiError = class extends Error {
|
|
1728
1728
|
errno;
|
|
1729
1729
|
code;
|
|
@@ -2881,7 +2881,7 @@ var Vfs = class {
|
|
|
2881
2881
|
}
|
|
2882
2882
|
};
|
|
2883
2883
|
|
|
2884
|
-
// src/
|
|
2884
|
+
// src/fs/memory-volume.ts
|
|
2885
2885
|
var VolumeError = class extends Error {
|
|
2886
2886
|
constructor(code, operation, path) {
|
|
2887
2887
|
super(`${code}: ${operation}, '${path}'`);
|