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.
@@ -1,4 +1,4 @@
1
- // src/runtime/python/host-abi.ts
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/runtime/python/protocol.ts
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/runtime/python/sync-transport.ts
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/runtime/python/syscall-server.ts
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/runtime/python/syscall-client.ts
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/runtime/memory-volume.ts
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}'`);