@riocrypto/common-server 1.0.2613 → 1.0.2614
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.
|
@@ -89,7 +89,7 @@ class SecretManagerClient {
|
|
|
89
89
|
if (this.env === common_1.RioEnv.Development) {
|
|
90
90
|
file = "dev-secrets";
|
|
91
91
|
}
|
|
92
|
-
else if (this.env === common_1.RioEnv.Sandbox
|
|
92
|
+
else if (this.env === common_1.RioEnv.Sandbox) {
|
|
93
93
|
file = "sandbox-secrets";
|
|
94
94
|
}
|
|
95
95
|
else if (this.env === common_1.RioEnv.Test) {
|
|
@@ -98,6 +98,12 @@ class SecretManagerClient {
|
|
|
98
98
|
else if (this.env === common_1.RioEnv.Production) {
|
|
99
99
|
file = "production-secrets";
|
|
100
100
|
}
|
|
101
|
+
else if (this.env === common_1.RioEnv.Local) {
|
|
102
|
+
file = "local-secrets";
|
|
103
|
+
}
|
|
104
|
+
else {
|
|
105
|
+
throw new Error(`Invalid environment: ${this.env}`);
|
|
106
|
+
}
|
|
101
107
|
const maxRetries = 5;
|
|
102
108
|
let attempt = 0;
|
|
103
109
|
while (attempt < maxRetries) {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@riocrypto/common-server",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.2614",
|
|
4
4
|
"description": "",
|
|
5
5
|
"main": "./build/index.js",
|
|
6
6
|
"types": "./build/index.d.ts",
|
|
@@ -28,7 +28,7 @@
|
|
|
28
28
|
"@google-cloud/secret-manager": "^5.3.0",
|
|
29
29
|
"@google-cloud/storage": "^6.9.5",
|
|
30
30
|
"@hyperdx/node-opentelemetry": "^0.7.0",
|
|
31
|
-
"@riocrypto/common": "^1.0.
|
|
31
|
+
"@riocrypto/common": "^1.0.2414",
|
|
32
32
|
"@types/express": "^4.17.13",
|
|
33
33
|
"axios": "^1.7.4",
|
|
34
34
|
"crypto-js": "^4.2.0",
|