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 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: new URL(
17974
- (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",
17975
- (typeof document === 'undefined' ? require('u' + 'rl').pathToFileURL(__filename).href : (_documentCurrentScript && _documentCurrentScript.tagName.toUpperCase() === 'SCRIPT' && _documentCurrentScript.src || new URL('index.cjs', document.baseURI).href))
17976
- ).href
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,