@beam-network/sdk 0.2.6 → 0.2.7
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.
- package/dist/client.d.ts +8 -0
- package/dist/client.js +1 -1
- package/package.json +1 -1
package/dist/client.d.ts
CHANGED
|
@@ -37,3 +37,11 @@ export declare class BeamClient {
|
|
|
37
37
|
private request;
|
|
38
38
|
}
|
|
39
39
|
export declare function calculateOptimalChunkSize(totalSize: number): number;
|
|
40
|
+
export declare function buildStagingObjectKey(input: {
|
|
41
|
+
finalObjectKey: string;
|
|
42
|
+
transferId: string;
|
|
43
|
+
sourceId: string;
|
|
44
|
+
destinationId: string;
|
|
45
|
+
chunkIndex: number;
|
|
46
|
+
partNumber: number;
|
|
47
|
+
}): string;
|
package/dist/client.js
CHANGED
|
@@ -313,7 +313,7 @@ function normalizeBaseUrl(value) {
|
|
|
313
313
|
function compact(input) {
|
|
314
314
|
return Object.fromEntries(Object.entries(input).filter(([, value]) => value !== undefined));
|
|
315
315
|
}
|
|
316
|
-
function buildStagingObjectKey(input) {
|
|
316
|
+
export function buildStagingObjectKey(input) {
|
|
317
317
|
const base = input.finalObjectKey.replace(/\/+$/, "") || "object";
|
|
318
318
|
return [
|
|
319
319
|
`${base}.beam-staging`,
|