powr-sdk-api 1.5.0 → 1.5.2
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/logger/index.js +2 -0
- package/package.json +3 -2
package/dist/logger/index.js
CHANGED
|
@@ -19,6 +19,7 @@ const transports = [new winston.transports.Console()];
|
|
|
19
19
|
// Add S3 transport only in production and if enabled
|
|
20
20
|
if (process.env.NODE_ENV === "production") {
|
|
21
21
|
if (process.env.LOG_DESTINATION === "s3") {
|
|
22
|
+
console.log("Adding S3 transport");
|
|
22
23
|
transports.push(new S3Transport({
|
|
23
24
|
bucket: process.env.LOG_BUCKET_NAME,
|
|
24
25
|
prefix: "logs",
|
|
@@ -27,6 +28,7 @@ if (process.env.NODE_ENV === "production") {
|
|
|
27
28
|
}));
|
|
28
29
|
}
|
|
29
30
|
if (process.env.LOG_DESTINATION === "gcs") {
|
|
31
|
+
console.log("Adding GCS transport");
|
|
30
32
|
transports.push(new GCSTransport({
|
|
31
33
|
bucket: process.env.LOG_BUCKET_NAME,
|
|
32
34
|
prefix: "logs",
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "powr-sdk-api",
|
|
3
|
-
"version": "1.5.
|
|
3
|
+
"version": "1.5.2",
|
|
4
4
|
"description": "Shared API core library for PowrStack projects",
|
|
5
5
|
"main": "dist/index.js",
|
|
6
6
|
"types": "dist/index.d.ts",
|
|
@@ -37,8 +37,9 @@
|
|
|
37
37
|
"homepage": "https://github.com/powrstack/powr-sdk-api#readme",
|
|
38
38
|
"dependencies": {
|
|
39
39
|
"@aws-sdk/client-s3": "^3.787.0",
|
|
40
|
+
"@google-cloud/storage": "^7.16.0",
|
|
40
41
|
"express": "^4.18.2",
|
|
41
|
-
"jsonwebtoken": "^9.0.2",
|
|
42
|
+
"jsonwebtoken": "^9.0.2",
|
|
42
43
|
"swagger-jsdoc": "^6.2.8",
|
|
43
44
|
"swagger-ui-express": "^5.0.0",
|
|
44
45
|
"winston": "^3.17.0"
|