gcf-common-lib 0.16.3 → 0.17.0
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/index.js +1 -1
- package/index.ts +4 -1
- package/package.json +5 -5
package/index.js
CHANGED
|
@@ -120,7 +120,7 @@ class GcfCommon {
|
|
|
120
120
|
}
|
|
121
121
|
static getSecrets(names, versions) {
|
|
122
122
|
return __awaiter(this, void 0, void 0, function* () {
|
|
123
|
-
return Promise.all(names.map((name, idx) => __awaiter(this, void 0, void 0, function* () { return this.getSecret(name, versions === null || versions === void 0 ? void 0 : versions[idx]); })));
|
|
123
|
+
return Promise.all(names.map((name, idx) => __awaiter(this, void 0, void 0, function* () { return this.getSecret(name, versions === null || versions === void 0 ? void 0 : versions[idx]).catch(); })));
|
|
124
124
|
});
|
|
125
125
|
}
|
|
126
126
|
}
|
package/index.ts
CHANGED
|
@@ -173,6 +173,9 @@ export class GcfCommon {
|
|
|
173
173
|
}
|
|
174
174
|
|
|
175
175
|
static async getSecrets(names: string[], versions?: string[]) {
|
|
176
|
-
return Promise.all(
|
|
176
|
+
return Promise.all(
|
|
177
|
+
names.map(async (name, idx) =>
|
|
178
|
+
this.getSecret(name, versions?.[idx]).catch())
|
|
179
|
+
);
|
|
177
180
|
}
|
|
178
181
|
}
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "gcf-common-lib",
|
|
3
3
|
"description": "",
|
|
4
|
-
"version": "0.
|
|
4
|
+
"version": "0.17.0",
|
|
5
5
|
"publishConfig": {
|
|
6
6
|
"access": "public",
|
|
7
7
|
"branches": [
|
|
@@ -20,14 +20,14 @@
|
|
|
20
20
|
"url": "https://github.com/TopTechnologies/gcf-common.git"
|
|
21
21
|
},
|
|
22
22
|
"dependencies": {
|
|
23
|
-
"@google-cloud/pubsub": "^2.19.
|
|
24
|
-
"@google-cloud/secret-manager": "^3.
|
|
25
|
-
"@google-cloud/storage": "^5.
|
|
23
|
+
"@google-cloud/pubsub": "^2.19.4",
|
|
24
|
+
"@google-cloud/secret-manager": "^3.12.0",
|
|
25
|
+
"@google-cloud/storage": "^5.19.4",
|
|
26
26
|
"lodash": "^4.17.21"
|
|
27
27
|
},
|
|
28
28
|
"devDependencies": {
|
|
29
29
|
"@tsconfig/node14": "^1.0.1",
|
|
30
|
-
"@types/lodash": "^4.14.
|
|
30
|
+
"@types/lodash": "^4.14.182"
|
|
31
31
|
},
|
|
32
32
|
"author": "alert83@gmail.com",
|
|
33
33
|
"license": "MIT"
|