sandboxedjs 0.1.58 → 0.1.59

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
@@ -20472,7 +20472,10 @@ environments. A package with no usable wheel is an error, never a silent skip.`,
20472
20472
  const filename = decodeURIComponent(url.slice("sbx-wheel:".length).replace(/^\/+/, ""));
20473
20473
  const encoded = embeddedFiles[filename];
20474
20474
  if (!encoded) throw new Error(`bundled wheel ${filename} is missing`);
20475
- return await read(new Response(Uint8Array.from(Buffer.from(encoded, "base64"))));
20475
+ const binary = atob(encoded);
20476
+ const bytes2 = new Uint8Array(binary.length);
20477
+ for (let i = 0; i < binary.length; i += 1) bytes2[i] = binary.charCodeAt(i);
20478
+ return await read(new Response(bytes2));
20476
20479
  }
20477
20480
  if (url.startsWith("file:")) {
20478
20481
  try {