@gethashd/bytecave-browser 1.0.37 → 1.0.38

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.
@@ -6133,6 +6133,7 @@ var StorageWebSocketClient = class {
6133
6133
  requestId,
6134
6134
  data: base64Data,
6135
6135
  contentType: options.contentType,
6136
+ hashIdToken: options.hashIdToken,
6136
6137
  authorization: options.authorization
6137
6138
  };
6138
6139
  return new Promise((resolve, reject) => {
@@ -6550,6 +6551,7 @@ Nonce: ${nonce}`;
6550
6551
  const result = await this.storageWsClient.store({
6551
6552
  data: dataArray,
6552
6553
  contentType: mimeType || "application/octet-stream",
6554
+ hashIdToken,
6553
6555
  authorization: wsAuth,
6554
6556
  timeout: 3e4
6555
6557
  });
package/dist/index.cjs CHANGED
@@ -6186,6 +6186,7 @@ var StorageWebSocketClient = class {
6186
6186
  requestId,
6187
6187
  data: base64Data,
6188
6188
  contentType: options.contentType,
6189
+ hashIdToken: options.hashIdToken,
6189
6190
  authorization: options.authorization
6190
6191
  };
6191
6192
  return new Promise((resolve, reject) => {
@@ -6603,6 +6604,7 @@ Nonce: ${nonce}`;
6603
6604
  const result = await this.storageWsClient.store({
6604
6605
  data: dataArray,
6605
6606
  contentType: mimeType || "application/octet-stream",
6607
+ hashIdToken,
6606
6608
  authorization: wsAuth,
6607
6609
  timeout: 3e4
6608
6610
  });
package/dist/index.js CHANGED
@@ -13,7 +13,7 @@ import {
13
13
  useHashdImage,
14
14
  useHashdMedia,
15
15
  useHashdUrl
16
- } from "./chunk-544OXLKK.js";
16
+ } from "./chunk-CIBPIU23.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-544OXLKK.js";
11
+ } from "../chunk-CIBPIU23.js";
12
12
  import "../chunk-EEZWRIUI.js";
13
13
  export {
14
14
  HashdAudio,
@@ -5,6 +5,7 @@
5
5
  export interface StoreViaWebSocketOptions {
6
6
  data: Uint8Array;
7
7
  contentType: string;
8
+ hashIdToken?: number;
8
9
  authorization?: {
9
10
  signature: string;
10
11
  address: string;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@gethashd/bytecave-browser",
3
- "version": "1.0.37",
3
+ "version": "1.0.38",
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",
package/src/client.ts CHANGED
@@ -497,6 +497,7 @@ Nonce: ${nonce}`;
497
497
  const result = await this.storageWsClient.store({
498
498
  data: dataArray,
499
499
  contentType: mimeType || 'application/octet-stream',
500
+ hashIdToken,
500
501
  authorization: wsAuth,
501
502
  timeout: 30000
502
503
  });
@@ -8,6 +8,7 @@ interface StorageRequestMessage {
8
8
  requestId: string;
9
9
  data: string; // base64
10
10
  contentType: string;
11
+ hashIdToken?: number;
11
12
  authorization?: {
12
13
  signature: string;
13
14
  address: string;
@@ -31,6 +32,7 @@ type Message = StorageRequestMessage | StorageResponseMessage;
31
32
  export interface StoreViaWebSocketOptions {
32
33
  data: Uint8Array;
33
34
  contentType: string;
35
+ hashIdToken?: number;
34
36
  authorization?: {
35
37
  signature: string;
36
38
  address: string;
@@ -124,6 +126,7 @@ export class StorageWebSocketClient {
124
126
  requestId,
125
127
  data: base64Data,
126
128
  contentType: options.contentType,
129
+ hashIdToken: options.hashIdToken,
127
130
  authorization: options.authorization
128
131
  };
129
132