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.js CHANGED
@@ -17943,6 +17943,10 @@ var wheels_default = {
17943
17943
  ]
17944
17944
  };
17945
17945
 
17946
+ // package.json
17947
+ var package_default = {
17948
+ version: "0.1.61"};
17949
+
17946
17950
  // src/runtime/python/config.ts
17947
17951
  var bundledManifest = {
17948
17952
  format: "sandboxedjs-python-runtime",
@@ -17953,10 +17957,14 @@ var bundledManifest = {
17953
17957
  profile: "dynamic",
17954
17958
  hostAbi: { name: "sbx_host_v1", version: 1 },
17955
17959
  artifacts: {
17956
- moduleUrl: new URL(
17957
- import.meta.url.includes("/src/runtime/python/") ? "../../../dist/python/python.js" : "./python/python.js",
17958
- import.meta.url
17959
- ).href
17960
+ moduleUrl: (() => {
17961
+ const url = new URL(
17962
+ import.meta.url.includes("/src/runtime/python/") ? "../../../dist/python/python.js" : "./python/python.js",
17963
+ import.meta.url
17964
+ );
17965
+ if (url.protocol !== "file:") url.searchParams.set("sbx-runtime", package_default.version);
17966
+ return url.href;
17967
+ })()
17960
17968
  },
17961
17969
  capabilities: {
17962
17970
  threads: true,