sandboxedjs 0.1.59 → 0.1.61
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 +12 -4
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +12 -4
- package/dist/index.js.map +1 -1
- package/dist/python-worker.js +5 -1
- package/dist/python-worker.js.map +1 -1
- package/package.json +1 -1
package/dist/index.cjs
CHANGED
|
@@ -17960,6 +17960,10 @@ var wheels_default = {
|
|
|
17960
17960
|
]
|
|
17961
17961
|
};
|
|
17962
17962
|
|
|
17963
|
+
// package.json
|
|
17964
|
+
var package_default = {
|
|
17965
|
+
version: "0.1.61"};
|
|
17966
|
+
|
|
17963
17967
|
// src/runtime/python/config.ts
|
|
17964
17968
|
var bundledManifest = {
|
|
17965
17969
|
format: "sandboxedjs-python-runtime",
|
|
@@ -17970,10 +17974,14 @@ var bundledManifest = {
|
|
|
17970
17974
|
profile: "dynamic",
|
|
17971
17975
|
hostAbi: { name: "sbx_host_v1", version: 1 },
|
|
17972
17976
|
artifacts: {
|
|
17973
|
-
moduleUrl:
|
|
17974
|
-
|
|
17975
|
-
|
|
17976
|
-
|
|
17977
|
+
moduleUrl: (() => {
|
|
17978
|
+
const url = new URL(
|
|
17979
|
+
(typeof document === 'undefined' ? require('u' + 'rl').pathToFileURL(__filename).href : (_documentCurrentScript && _documentCurrentScript.tagName.toUpperCase() === 'SCRIPT' && _documentCurrentScript.src || new URL('index.cjs', document.baseURI).href)).includes("/src/runtime/python/") ? "../../../dist/python/python.js" : "./python/python.js",
|
|
17980
|
+
(typeof document === 'undefined' ? require('u' + 'rl').pathToFileURL(__filename).href : (_documentCurrentScript && _documentCurrentScript.tagName.toUpperCase() === 'SCRIPT' && _documentCurrentScript.src || new URL('index.cjs', document.baseURI).href))
|
|
17981
|
+
);
|
|
17982
|
+
if (url.protocol !== "file:") url.searchParams.set("sbx-runtime", package_default.version);
|
|
17983
|
+
return url.href;
|
|
17984
|
+
})()
|
|
17977
17985
|
},
|
|
17978
17986
|
capabilities: {
|
|
17979
17987
|
threads: true,
|