@flashbacktech/flashbackclient 0.1.49 → 0.1.51
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.
|
@@ -13,7 +13,7 @@ export declare class BucketOps {
|
|
|
13
13
|
* @param params - Bucket creation parameters
|
|
14
14
|
* @returns Promise resolving to the created bucket ID
|
|
15
15
|
*/
|
|
16
|
-
createBucket: (provider_id: string, params: BucketCreateParams) => Promise<
|
|
16
|
+
createBucket: (provider_id: string, params: BucketCreateParams) => Promise<any>;
|
|
17
17
|
/**
|
|
18
18
|
* Creates a bucket from an existing bucket object
|
|
19
19
|
* @param bucket - Existing bucket object to clone
|
|
@@ -16,6 +16,7 @@ class BucketOps {
|
|
|
16
16
|
* @returns Promise resolving to the created bucket ID
|
|
17
17
|
*/
|
|
18
18
|
this.createBucket = (0, decorator_1.withSignature)(async (provider_id, params) => {
|
|
19
|
+
console.log('Creating bucket with params:', JSON.stringify(params, null, 2));
|
|
19
20
|
const response = await (0, transaction_1.executeWalletTransaction)(this.context, provider_id, "create_bucket", [
|
|
20
21
|
{ value: params.name, type: 'string' },
|
|
21
22
|
{ value: params.region, type: 'string' },
|
|
@@ -44,7 +45,7 @@ class BucketOps {
|
|
|
44
45
|
return result;
|
|
45
46
|
}
|
|
46
47
|
console.error('Result is not a number, throwing error. Result:', result);
|
|
47
|
-
|
|
48
|
+
return result;
|
|
48
49
|
});
|
|
49
50
|
/**
|
|
50
51
|
* Creates a bucket from an existing bucket object
|