sandboxedjs 0.1.58 → 0.1.60
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 +4 -1
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +4 -1
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
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
|
-
|
|
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 {
|