@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
package/dist/react/index.js
CHANGED
package/package.json
CHANGED
package/src/client.ts
CHANGED
package/src/storage-websocket.ts
CHANGED
|
@@ -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
|
|