@riocrypto/common-server 1.0.563 → 1.0.565
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.
|
@@ -1,6 +1,7 @@
|
|
|
1
|
+
import { Bucket } from "@google-cloud/storage";
|
|
1
2
|
export declare class GCloudStorageClient {
|
|
2
|
-
|
|
3
|
+
_bucket: Bucket;
|
|
3
4
|
constructor(bucket: string);
|
|
4
|
-
get
|
|
5
|
+
get bucket(): Bucket;
|
|
5
6
|
}
|
|
6
7
|
export declare const buildGCloudStorageClient: () => Promise<GCloudStorageClient>;
|
|
@@ -15,12 +15,12 @@ const secret_manager_client_1 = require("./secret-manager-client");
|
|
|
15
15
|
class GCloudStorageClient {
|
|
16
16
|
constructor(bucket) {
|
|
17
17
|
const storage = new storage_1.Storage({
|
|
18
|
-
keyFilename: "/etc/secrets/
|
|
18
|
+
keyFilename: "/etc/secrets/cloud-storage-service-account-key.json",
|
|
19
19
|
});
|
|
20
|
-
this.
|
|
20
|
+
this._bucket = storage.bucket(bucket);
|
|
21
21
|
}
|
|
22
|
-
get
|
|
23
|
-
return this.
|
|
22
|
+
get bucket() {
|
|
23
|
+
return this._bucket;
|
|
24
24
|
}
|
|
25
25
|
}
|
|
26
26
|
exports.GCloudStorageClient = GCloudStorageClient;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@riocrypto/common-server",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.565",
|
|
4
4
|
"description": "",
|
|
5
5
|
"main": "./build/index.js",
|
|
6
6
|
"types": "./build/index.d.ts",
|
|
@@ -23,7 +23,7 @@
|
|
|
23
23
|
"dependencies": {
|
|
24
24
|
"@aws-sdk/client-s3": "^3.297.0",
|
|
25
25
|
"@google-cloud/storage": "^6.9.5",
|
|
26
|
-
"@riocrypto/common": "^1.0.
|
|
26
|
+
"@riocrypto/common": "^1.0.553",
|
|
27
27
|
"@types/express": "^4.17.13",
|
|
28
28
|
"axios": "^0.27.2",
|
|
29
29
|
"ccxt": "^3.0.30",
|