@volter/browser-substrate 0.1.112 → 0.1.113

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-5e417bedc3429b5c.js"));
4328
+ startExecutionFront(self, () => import("/assets/node-execution-worker-910d4c0de0f26c97.js"));
@@ -1 +1 @@
1
- {"format":1,"pyodide":"314.0.6","engine":"sha256-OgoA3+qjSKwg+e8JkEIz0y0z9kQzlmLUrzaPiiAQ83o=","preparation":"77987879a2949714bdec4de6bae2d0431adbc3549686414e4e13e051cf23bfae","integrity":"sha256-yhoUGYL6ch3XNK8pOipMrm4aCnC0u+ze36VXV+/H5uQ=","bytes":6195931}
1
+ {"format":1,"pyodide":"314.0.6","engine":"sha256-OgoA3+qjSKwg+e8JkEIz0y0z9kQzlmLUrzaPiiAQ83o=","preparation":"77987879a2949714bdec4de6bae2d0431adbc3549686414e4e13e051cf23bfae","integrity":"sha256-l94dm1Kc6rIwUaerwA0d5m0/kpsZyZBq8oBBhk9VFDU=","bytes":6221393}
@@ -24849,11 +24849,25 @@ function nodeLibBinding(name) {
24849
24849
  }
24850
24850
 
24851
24851
  // ../../node_modules/@volter/tabnode/src/shims/dns.ts
24852
+ function literalFamily(hostname3) {
24853
+ const bare = hostname3.startsWith("[") && hostname3.endsWith("]") ? hostname3.slice(1, -1) : hostname3;
24854
+ if (/^(25[0-5]|2[0-4]\d|1?\d?\d)(\.(25[0-5]|2[0-4]\d|1?\d?\d)){3}$/.test(bare)) return 4;
24855
+ const host2 = bare.split("%")[0];
24856
+ if (host2.includes(":") && /^[0-9a-fA-F:.]+$/.test(host2)) return 6;
24857
+ return 0;
24858
+ }
24852
24859
  function lookup(hostname3, optionsOrCallback, callback) {
24853
24860
  const cb2 = typeof optionsOrCallback === "function" ? optionsOrCallback : callback;
24854
24861
  const options = typeof optionsOrCallback === "object" ? optionsOrCallback : {};
24855
24862
  setImmediate(() => {
24856
- if (hostname3 === "localhost" || hostname3 === "127.0.0.1") {
24863
+ const family = literalFamily(hostname3);
24864
+ if (family) {
24865
+ const address = hostname3.startsWith("[") && hostname3.endsWith("]") ? hostname3.slice(1, -1) : hostname3;
24866
+ if (options.all) cb2(null, [{ address, family }]);
24867
+ else cb2(null, address, family);
24868
+ return;
24869
+ }
24870
+ if (hostname3 === "localhost") {
24857
24871
  if (options.all) {
24858
24872
  cb2(null, [{ address: "127.0.0.1", family: 4 }]);
24859
24873
  } else {
@@ -92750,11 +92764,25 @@ function nodeLibBinding2(name) {
92750
92764
  });
92751
92765
  return __table$1[name];
92752
92766
  }
92767
+ function literalFamily2(hostname22) {
92768
+ const bare = hostname22.startsWith("[") && hostname22.endsWith("]") ? hostname22.slice(1, -1) : hostname22;
92769
+ if (/^(25[0-5]|2[0-4]\d|1?\d?\d)(\.(25[0-5]|2[0-4]\d|1?\d?\d)){3}$/.test(bare)) return 4;
92770
+ const host2 = bare.split("%")[0];
92771
+ if (host2.includes(":") && /^[0-9a-fA-F:.]+$/.test(host2)) return 6;
92772
+ return 0;
92773
+ }
92753
92774
  function lookup2(hostname22, optionsOrCallback, callback) {
92754
92775
  const cb2 = typeof optionsOrCallback === "function" ? optionsOrCallback : callback;
92755
92776
  const options = typeof optionsOrCallback === "object" ? optionsOrCallback : {};
92756
92777
  setImmediate(() => {
92757
- if (hostname22 === "localhost" || hostname22 === "127.0.0.1") {
92778
+ const family = literalFamily2(hostname22);
92779
+ if (family) {
92780
+ const address = hostname22.startsWith("[") && hostname22.endsWith("]") ? hostname22.slice(1, -1) : hostname22;
92781
+ if (options.all) cb2(null, [{ address, family }]);
92782
+ else cb2(null, address, family);
92783
+ return;
92784
+ }
92785
+ if (hostname22 === "localhost") {
92758
92786
  if (options.all) {
92759
92787
  cb2(null, [{ address: "127.0.0.1", family: 4 }]);
92760
92788
  } else {
@@ -116373,7 +116401,7 @@ var WorkerRuntime = class {
116373
116401
  this.worker = new Worker(
116374
116402
  new URL(
116375
116403
  /* @vite-ignore */
116376
- "/assets/runtime-worker-CTPA-1k9.js",
116404
+ "/assets/runtime-worker-DJbG60eD.js",
116377
116405
  import.meta.url
116378
116406
  ),
116379
116407
  { type: "module" }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@volter/browser-substrate",
3
- "version": "0.1.112",
3
+ "version": "0.1.113",
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": {