sandboxedjs 0.1.78 → 0.1.79

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 CHANGED
@@ -20237,7 +20237,7 @@ var wheels_default = {
20237
20237
 
20238
20238
  // package.json
20239
20239
  var package_default = {
20240
- version: "0.1.78"};
20240
+ version: "0.1.79"};
20241
20241
 
20242
20242
  // src/python/config.ts
20243
20243
  function runtimeModuleUrl() {
@@ -29185,6 +29185,10 @@ function createCoreModules(options) {
29185
29185
  arch: "x64",
29186
29186
  version: "v22.12.0",
29187
29187
  versions: { ...processShim__default.default.versions, node: "22.12.0" },
29188
+ binding: (name) => {
29189
+ if (name === "constants") return { fs: { ...fs.constants } };
29190
+ throw new Error(`No such module: ${name}`);
29191
+ },
29188
29192
  pid: 100,
29189
29193
  ppid: 1,
29190
29194
  title: "node",
@@ -29491,7 +29495,7 @@ function createFsModule(volume, cwd, stdinPath, defer = queueMicrotask) {
29491
29495
  if (stdinPath) fds.set(0, { path: stdinPath, position: 0, flags: "r" });
29492
29496
  const abs = (value) => {
29493
29497
  if (typeof value === "number") return requiredFd(fds, value).path;
29494
- if (value instanceof URL) value = value.pathname;
29498
+ if (value instanceof URL) value = decodeURIComponent(value.pathname);
29495
29499
  if (Buffer2.isBuffer(value) || value instanceof Uint8Array) value = new TextDecoder().decode(value);
29496
29500
  if (typeof value !== "string") throw new TypeError("path must be a string, Buffer, or URL");
29497
29501
  return value.startsWith("/") ? clean(value) : resolve(cwd(), value);
@@ -29549,6 +29553,9 @@ function createFsModule(volume, cwd, stdinPath, defer = queueMicrotask) {
29549
29553
  O_EXCL: 128,
29550
29554
  O_TRUNC: 512,
29551
29555
  O_APPEND: 1024,
29556
+ O_NOCTTY: 256,
29557
+ O_SYNC: 1052672,
29558
+ O_NOFOLLOW: 131072,
29552
29559
  COPYFILE_EXCL: 1
29553
29560
  },
29554
29561
  Dirent,