@gethashd/bytecave-browser 1.0.57 → 1.0.58

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.
@@ -6314,7 +6314,8 @@ var StorageWebTransportClient = class {
6314
6314
  if (!ip || !port || !hasQuic || !hasWebTransport) {
6315
6315
  return null;
6316
6316
  }
6317
- return `https://${ip}:${port}/storage`;
6317
+ const host = ip === "127.0.0.1" ? "localhost" : ip;
6318
+ return `https://${host}:${port}/storage`;
6318
6319
  } catch (error) {
6319
6320
  console.error("[WebTransport] Failed to parse multiaddr:", error);
6320
6321
  return null;
package/dist/index.cjs CHANGED
@@ -6367,7 +6367,8 @@ var StorageWebTransportClient = class {
6367
6367
  if (!ip || !port || !hasQuic || !hasWebTransport) {
6368
6368
  return null;
6369
6369
  }
6370
- return `https://${ip}:${port}/storage`;
6370
+ const host = ip === "127.0.0.1" ? "localhost" : ip;
6371
+ return `https://${host}:${port}/storage`;
6371
6372
  } catch (error) {
6372
6373
  console.error("[WebTransport] Failed to parse multiaddr:", error);
6373
6374
  return null;
package/dist/index.js CHANGED
@@ -13,7 +13,7 @@ import {
13
13
  useHashdImage,
14
14
  useHashdMedia,
15
15
  useHashdUrl
16
- } from "./chunk-TQKA66LZ.js";
16
+ } from "./chunk-NLZDUMYM.js";
17
17
  import {
18
18
  clearHashdCache,
19
19
  createHashdUrl,
@@ -8,7 +8,7 @@ import {
8
8
  useHashdImage,
9
9
  useHashdMedia,
10
10
  useHashdUrl
11
- } from "../chunk-TQKA66LZ.js";
11
+ } from "../chunk-NLZDUMYM.js";
12
12
  import "../chunk-EEZWRIUI.js";
13
13
  export {
14
14
  HashdAudio,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@gethashd/bytecave-browser",
3
- "version": "1.0.57",
3
+ "version": "1.0.58",
4
4
  "description": "ByteCave browser client for WebRTC P2P connections to storage nodes",
5
5
  "main": "dist/index.cjs",
6
6
  "module": "dist/index.js",
@@ -146,8 +146,10 @@ export class StorageWebTransportClient {
146
146
  return null;
147
147
  }
148
148
 
149
- // WebTransport URL format: https://ip:port/storage
150
- return `https://${ip}:${port}/storage`;
149
+ // WebTransport URL format: https://host:port/storage
150
+ // Use 'localhost' instead of '127.0.0.1' for better certificate compatibility
151
+ const host = ip === '127.0.0.1' ? 'localhost' : ip;
152
+ return `https://${host}:${port}/storage`;
151
153
 
152
154
  } catch (error) {
153
155
  console.error('[WebTransport] Failed to parse multiaddr:', error);