@cloudchipr/cloudchipr-engine
Advanced tools
Comparing version 0.1.98 to 0.1.99
@@ -46,14 +46,15 @@ "use strict"; | ||
GcpBackendServiceClient.collectAll = function (auth, project) { | ||
var _a; | ||
return __awaiter(this, void 0, void 0, function () { | ||
var data, response_1, e_1; | ||
return __generator(this, function (_a) { | ||
switch (_a.label) { | ||
return __generator(this, function (_b) { | ||
switch (_b.label) { | ||
case 0: | ||
data = {}; | ||
_a.label = 1; | ||
_b.label = 1; | ||
case 1: | ||
_a.trys.push([1, 3, , 4]); | ||
_b.trys.push([1, 3, , 4]); | ||
return [4 /*yield*/, googleapis_1.google.compute('v1').backendServices.aggregatedList({ auth: auth, project: project })]; | ||
case 2: | ||
response_1 = _a.sent(); | ||
response_1 = _b.sent(); | ||
Object.keys(response_1.data.items).forEach(function (key) { | ||
@@ -75,4 +76,4 @@ var _a; | ||
case 3: | ||
e_1 = _a.sent(); | ||
console.error('GCP: Failed to collect backend services due to: ' + e_1.message); | ||
e_1 = _b.sent(); | ||
console[((_a = e_1.response) === null || _a === void 0 ? void 0 : _a.status) === 403 ? 'warn' : 'error']('GCP: Failed to fetch target pools due to: ' + e_1.message); | ||
return [3 /*break*/, 4]; | ||
@@ -79,0 +80,0 @@ case 4: return [2 /*return*/, data]; |
@@ -45,14 +45,15 @@ "use strict"; | ||
GcpInstanceGroupClient.collectAll = function (auth, project) { | ||
var _a; | ||
return __awaiter(this, void 0, void 0, function () { | ||
var data, response_1, e_1; | ||
return __generator(this, function (_a) { | ||
switch (_a.label) { | ||
return __generator(this, function (_b) { | ||
switch (_b.label) { | ||
case 0: | ||
data = {}; | ||
_a.label = 1; | ||
_b.label = 1; | ||
case 1: | ||
_a.trys.push([1, 3, , 4]); | ||
_b.trys.push([1, 3, , 4]); | ||
return [4 /*yield*/, googleapis_1.google.compute('v1').instanceGroups.aggregatedList({ auth: auth, project: project })]; | ||
case 2: | ||
response_1 = _a.sent(); | ||
response_1 = _b.sent(); | ||
Object.keys(response_1.data.items).forEach(function (key) { | ||
@@ -68,4 +69,4 @@ var _a; | ||
case 3: | ||
e_1 = _a.sent(); | ||
console.error('GCP: Failed to fetch instance groups due to: ' + e_1.message); | ||
e_1 = _b.sent(); | ||
console[((_a = e_1.response) === null || _a === void 0 ? void 0 : _a.status) === 403 ? 'warn' : 'error']('GCP: Failed to fetch target pools due to: ' + e_1.message); | ||
return [3 /*break*/, 4]; | ||
@@ -72,0 +73,0 @@ case 4: return [2 /*return*/, data]; |
@@ -46,14 +46,15 @@ "use strict"; | ||
GcpTargetPoolClient.collectAll = function (auth, project) { | ||
var _a; | ||
return __awaiter(this, void 0, void 0, function () { | ||
var data, response_1, e_1; | ||
return __generator(this, function (_a) { | ||
switch (_a.label) { | ||
return __generator(this, function (_b) { | ||
switch (_b.label) { | ||
case 0: | ||
data = {}; | ||
_a.label = 1; | ||
_b.label = 1; | ||
case 1: | ||
_a.trys.push([1, 3, , 4]); | ||
_b.trys.push([1, 3, , 4]); | ||
return [4 /*yield*/, googleapis_1.google.compute('v1').targetPools.aggregatedList({ auth: auth, project: project })]; | ||
case 2: | ||
response_1 = _a.sent(); | ||
response_1 = _b.sent(); | ||
Object.keys(response_1.data.items).forEach(function (key) { | ||
@@ -75,4 +76,4 @@ var _a; | ||
case 3: | ||
e_1 = _a.sent(); | ||
console.error('GCP: Failed to fetch target pools due to: ' + e_1.message); | ||
e_1 = _b.sent(); | ||
console[((_a = e_1.response) === null || _a === void 0 ? void 0 : _a.status) === 403 ? 'warn' : 'error']('GCP: Failed to fetch target pools due to: ' + e_1.message); | ||
return [3 /*break*/, 4]; | ||
@@ -79,0 +80,0 @@ case 4: return [2 /*return*/, data]; |
{ | ||
"name": "@cloudchipr/cloudchipr-engine", | ||
"version": "0.1.98", | ||
"version": "0.1.99", | ||
"description": "Cloudchipr engine", | ||
@@ -5,0 +5,0 @@ "main": "lib/index.js", |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
583141
11374