@volter/browser-substrate 0.1.114 → 0.1.115

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.
@@ -4325,4 +4325,4 @@ function serveStore(scope3, port, loadEngine) {
4325
4325
  }
4326
4326
 
4327
4327
  // <stdin>
4328
- startExecutionFront(self, () => import("/assets/node-execution-worker-961b76ab350a1c3c.js"));
4328
+ startExecutionFront(self, () => import("/assets/node-execution-worker-714dbca4282e90ae.js"));
@@ -1 +1 @@
1
- {"format":1,"pyodide":"314.0.6","engine":"sha256-OgoA3+qjSKwg+e8JkEIz0y0z9kQzlmLUrzaPiiAQ83o=","preparation":"77987879a2949714bdec4de6bae2d0431adbc3549686414e4e13e051cf23bfae","integrity":"sha256-SdAO9ZieFjxDcQv7Q2h/ru07IVmFilyx38Q1Tk6pif4=","bytes":6199460}
1
+ {"format":1,"pyodide":"314.0.6","engine":"sha256-OgoA3+qjSKwg+e8JkEIz0y0z9kQzlmLUrzaPiiAQ83o=","preparation":"77987879a2949714bdec4de6bae2d0431adbc3549686414e4e13e051cf23bfae","integrity":"sha256-NFJLwpq7xXWMBmAqqZnmyvkxn1RyYfRdE3bKM6CEGFI=","bytes":6203572}
@@ -95987,10 +95987,17 @@ var implementation$1 = function bind2(that) {
95987
95987
  var implementation = implementation$1;
95988
95988
  var functionBind = Function.prototype.bind || implementation;
95989
95989
  var functionCall = Function.prototype.call;
95990
- var functionApply = Function.prototype.apply;
95990
+ var functionApply;
95991
+ var hasRequiredFunctionApply;
95992
+ function requireFunctionApply() {
95993
+ if (hasRequiredFunctionApply) return functionApply;
95994
+ hasRequiredFunctionApply = 1;
95995
+ functionApply = Function.prototype.apply;
95996
+ return functionApply;
95997
+ }
95991
95998
  var reflectApply = typeof Reflect !== "undefined" && Reflect && Reflect.apply;
95992
95999
  var bind$2 = functionBind;
95993
- var $apply$1 = functionApply;
96000
+ var $apply$1 = requireFunctionApply();
95994
96001
  var $call$2 = functionCall;
95995
96002
  var $reflectApply = reflectApply;
95996
96003
  var actualApply = $reflectApply || bind$2.call($call$2, $apply$1);
@@ -96110,7 +96117,7 @@ var hasSymbols = requireHasSymbols()();
96110
96117
  var getProto = requireGetProto();
96111
96118
  var $ObjectGPO = requireObject_getPrototypeOf();
96112
96119
  var $ReflectGPO = requireReflect_getPrototypeOf();
96113
- var $apply = functionApply;
96120
+ var $apply = requireFunctionApply();
96114
96121
  var $call = functionCall;
96115
96122
  var needsEval = {};
96116
96123
  var TypedArray = typeof Uint8Array === "undefined" || !getProto ? undefined$1 : getProto(Uint8Array);
@@ -96752,7 +96759,7 @@ function requireApplyBind() {
96752
96759
  if (hasRequiredApplyBind) return applyBind;
96753
96760
  hasRequiredApplyBind = 1;
96754
96761
  var bind3 = functionBind;
96755
- var $apply2 = functionApply;
96762
+ var $apply2 = requireFunctionApply();
96756
96763
  var actualApply$1 = actualApply;
96757
96764
  applyBind = function applyBind2() {
96758
96765
  return actualApply$1(bind3, $apply2, arguments);
@@ -114171,11 +114178,15 @@ function __substrateGuestGlobal(process22) {
114171
114178
  })
114172
114179
  }
114173
114180
  });
114174
- const isLocalGlobal = (key) => key === "Promise" || key === "navigator" || key === "Navigator";
114181
+ Object.defineProperties(localGlobals, {
114182
+ Worker: { value: void 0, writable: true, configurable: true, enumerable: true },
114183
+ self: { value: void 0, writable: true, configurable: true, enumerable: true }
114184
+ });
114185
+ const isLocalGlobal = (key) => ["Promise", "navigator", "Navigator", "Worker", "self"].includes(key);
114175
114186
  guest = new Proxy(localGlobals, {
114176
114187
  get(target, key) {
114177
114188
  var _a22, _b22, _c22;
114178
- if (["document", "window", "location", "self"].includes(key)) return void 0;
114189
+ if (["document", "window", "location"].includes(key)) return void 0;
114179
114190
  if (key === "fetch") return fetch2;
114180
114191
  if (key === "Buffer") return buffer2 ?? loadNodeLibFor(process22, "buffer").Buffer;
114181
114192
  if (key === "process") return process22;
@@ -115562,7 +115573,7 @@ function createRequire(vfs22, fsShim, process22, currentDir, moduleCache, option
115562
115573
  const importMetaUrl = resolvedPath.startsWith("data:") ? resolvedPath : "file://" + resolvedPath;
115563
115574
  const strictBody = code22.startsWith(__substrateModuleMarker);
115564
115575
  if (!scoped) code22 = __substrateScopeGlobalCalls(code22);
115565
- const wrappedCode = `(function($exports, $require, $module, $filename, $dirname, $process, $console, $importMeta, $dynamicImport, __substrateGuestGlobal, __substrateGuestConstructor) { var exports = $exports; var require = $require; var module = $module; var __filename = $filename; var __dirname = $dirname; var process = $process; var console = $console; var import_meta = $importMeta; var __dynamicImport = $dynamicImport; var document = void 0, window = void 0, location = void 0, self = void 0; var globalThis = __substrateGuestGlobal($process); var global = globalThis; var Buffer = globalThis.Buffer; var queueMicrotask = globalThis.queueMicrotask, atob = globalThis.atob, btoa = globalThis.btoa, structuredClone = globalThis.structuredClone, setTimeout = globalThis.setTimeout, clearTimeout = globalThis.clearTimeout, setInterval = globalThis.setInterval, clearInterval = globalThis.clearInterval; globalThis.process = $process; global.process = $process; with ({ __proto__: null, get navigator() { return globalThis.navigator; }, set navigator(value) { globalThis.navigator = value; }, get Navigator() { return globalThis.Navigator; }, set Navigator(value) { globalThis.Navigator = value; }, get Promise() { return globalThis.Promise; }, set Promise(value) { globalThis.Promise = value; }, get fetch() { return globalThis.fetch; }, set fetch(value) { globalThis.fetch = value; } }) { return (function() {${code22}
115576
+ const wrappedCode = `(function($exports, $require, $module, $filename, $dirname, $process, $console, $importMeta, $dynamicImport, __substrateGuestGlobal, __substrateGuestConstructor) { var exports = $exports; var require = $require; var module = $module; var __filename = $filename; var __dirname = $dirname; var process = $process; var console = $console; var import_meta = $importMeta; var __dynamicImport = $dynamicImport; var document = void 0, window = void 0, location = void 0; var globalThis = __substrateGuestGlobal($process); var global = globalThis; var Buffer = globalThis.Buffer; var queueMicrotask = globalThis.queueMicrotask, atob = globalThis.atob, btoa = globalThis.btoa, structuredClone = globalThis.structuredClone, setTimeout = globalThis.setTimeout, clearTimeout = globalThis.clearTimeout, setInterval = globalThis.setInterval, clearInterval = globalThis.clearInterval; globalThis.process = $process; global.process = $process; with ({ __proto__: null, get Worker() { return globalThis.Worker; }, set Worker(value) { globalThis.Worker = value; }, get self() { return globalThis.self; }, set self(value) { globalThis.self = value; }, get navigator() { return globalThis.navigator; }, set navigator(value) { globalThis.navigator = value; }, get Navigator() { return globalThis.Navigator; }, set Navigator(value) { globalThis.Navigator = value; }, get Promise() { return globalThis.Promise; }, set Promise(value) { globalThis.Promise = value; }, get fetch() { return globalThis.fetch; }, set fetch(value) { globalThis.fetch = value; } }) { return (function() {${code22}
115566
115577
  }).call(${strictBody ? "void 0" : "$module.exports"}); }
115567
115578
  })${__substrateSourceURL(resolvedPath)}`;
115568
115579
  let bodyKind = code22.includes(__substrateTopLevelAwaitMarker) ? "async" : code22.includes(__substrateAwaitMarker) ? "generator" : "sync";
@@ -115932,7 +115943,7 @@ var Runtime = class {
115932
115943
  const importMetaUrl = "file://" + filename;
115933
115944
  const strictBody = code22.startsWith(__substrateModuleMarker);
115934
115945
  code22 = __substrateScopeGlobalCalls(code22);
115935
- const wrappedCode = `(function($exports, $require, $module, $filename, $dirname, $process, $console, $importMeta, $dynamicImport, __substrateGuestGlobal, __substrateGuestConstructor) { var exports = $exports; var require = $require; var module = $module; var __filename = $filename; var __dirname = $dirname; var process = $process; var console = $console; var import_meta = $importMeta; var __dynamicImport = $dynamicImport; var document = void 0, window = void 0, location = void 0, self = void 0; var globalThis = __substrateGuestGlobal($process); var global = globalThis; var Buffer = globalThis.Buffer; var queueMicrotask = globalThis.queueMicrotask, atob = globalThis.atob, btoa = globalThis.btoa, structuredClone = globalThis.structuredClone, setTimeout = globalThis.setTimeout, clearTimeout = globalThis.clearTimeout, setInterval = globalThis.setInterval, clearInterval = globalThis.clearInterval; globalThis.process = $process; global.process = $process; with ({ __proto__: null, get navigator() { return globalThis.navigator; }, set navigator(value) { globalThis.navigator = value; }, get Navigator() { return globalThis.Navigator; }, set Navigator(value) { globalThis.Navigator = value; }, get Promise() { return globalThis.Promise; }, set Promise(value) { globalThis.Promise = value; }, get fetch() { return globalThis.fetch; }, set fetch(value) { globalThis.fetch = value; } }) { return (function() {${code22}
115946
+ const wrappedCode = `(function($exports, $require, $module, $filename, $dirname, $process, $console, $importMeta, $dynamicImport, __substrateGuestGlobal, __substrateGuestConstructor) { var exports = $exports; var require = $require; var module = $module; var __filename = $filename; var __dirname = $dirname; var process = $process; var console = $console; var import_meta = $importMeta; var __dynamicImport = $dynamicImport; var document = void 0, window = void 0, location = void 0; var globalThis = __substrateGuestGlobal($process); var global = globalThis; var Buffer = globalThis.Buffer; var queueMicrotask = globalThis.queueMicrotask, atob = globalThis.atob, btoa = globalThis.btoa, structuredClone = globalThis.structuredClone, setTimeout = globalThis.setTimeout, clearTimeout = globalThis.clearTimeout, setInterval = globalThis.setInterval, clearInterval = globalThis.clearInterval; globalThis.process = $process; global.process = $process; with ({ __proto__: null, get Worker() { return globalThis.Worker; }, set Worker(value) { globalThis.Worker = value; }, get self() { return globalThis.self; }, set self(value) { globalThis.self = value; }, get navigator() { return globalThis.navigator; }, set navigator(value) { globalThis.navigator = value; }, get Navigator() { return globalThis.Navigator; }, set Navigator(value) { globalThis.Navigator = value; }, get Promise() { return globalThis.Promise; }, set Promise(value) { globalThis.Promise = value; }, get fetch() { return globalThis.fetch; }, set fetch(value) { globalThis.fetch = value; } }) { return (function() {${code22}
115936
115947
  }).call(${strictBody ? "void 0" : "$module.exports"}); }
115937
115948
  })${__substrateSourceURL(filename)}`;
115938
115949
  const dynamicImport = createDynamicImport(require2, this.process, filename.startsWith("data:") ? filename : `file://${filename}`);
@@ -116437,7 +116448,7 @@ var WorkerRuntime = class {
116437
116448
  this.worker = new Worker(
116438
116449
  new URL(
116439
116450
  /* @vite-ignore */
116440
- "/assets/runtime-worker-DiqY2fQ4.js",
116451
+ "/assets/runtime-worker-DH_89R1c.js",
116441
116452
  import.meta.url
116442
116453
  ),
116443
116454
  { type: "module" }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@volter/browser-substrate",
3
- "version": "0.1.114",
3
+ "version": "0.1.115",
4
4
  "description": "Run a folder in a browser tab: one command, a Dockerfile as the config, static files out",
5
5
  "license": "MIT",
6
6
  "repository": {