sandboxedjs 0.1.72 → 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,6 +1,6 @@
1
1
  'use strict';
2
2
 
3
- // src/runtime/python/host-abi.ts
3
+ // src/python/host-abi.ts
4
4
  var SBX_HOST_ABI_VERSION = 1;
5
5
  var SBX_REQUEST_HEADER_BYTES = 16;
6
6
  var SBX_RESPONSE_HEADER_BYTES = 20;
@@ -113,7 +113,7 @@ var ERRNO_NAMES = Object.fromEntries(
113
113
  Object.entries(Errno).map(([name, code]) => [code, name])
114
114
  );
115
115
 
116
- // src/runtime/python/protocol.ts
116
+ // src/python/protocol.ts
117
117
  var ProtocolError = class extends Error {
118
118
  code = "ERR_SBX_ABI_PROTOCOL";
119
119
  };
@@ -273,7 +273,7 @@ function failure(errno) {
273
273
  return -Math.abs(errno);
274
274
  }
275
275
 
276
- // src/runtime/python/sync-transport.ts
276
+ // src/python/sync-transport.ts
277
277
  var STATE = 0;
278
278
  var LENGTH = 1;
279
279
  var MORE = 2;
@@ -1276,7 +1276,7 @@ var SocketDescription = class _SocketDescription {
1276
1276
  }
1277
1277
  };
1278
1278
 
1279
- // src/runtime/python/syscall-server.ts
1279
+ // src/python/syscall-server.ts
1280
1280
  var MAX_TRANSFER = 8 * 1024 * 1024;
1281
1281
  var POLLIN = 1;
1282
1282
  var POLLOUT = 4;
@@ -1725,7 +1725,7 @@ function encodeStat(st) {
1725
1725
  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();
1726
1726
  }
1727
1727
 
1728
- // src/runtime/python/syscall-client.ts
1728
+ // src/python/syscall-client.ts
1729
1729
  var HostAbiError = class extends Error {
1730
1730
  errno;
1731
1731
  code;
@@ -2883,7 +2883,7 @@ var Vfs = class {
2883
2883
  }
2884
2884
  };
2885
2885
 
2886
- // src/runtime/memory-volume.ts
2886
+ // src/fs/memory-volume.ts
2887
2887
  var VolumeError = class extends Error {
2888
2888
  constructor(code, operation, path) {
2889
2889
  super(`${code}: ${operation}, '${path}'`);