apigee-x-module
Advanced tools
Comparing version 0.5.3 to 0.5.4
@@ -21,2 +21,6 @@ "use strict"; | ||
}).then((response) => { | ||
// LOGGING START | ||
console.log(JSON.stringify(response.data)); | ||
console.log(this.apigeeOrganization); | ||
// LOGGING END | ||
let apigeeProducts = response.data; | ||
@@ -26,15 +30,17 @@ let products = { | ||
}; | ||
apigeeProducts.apiProduct.forEach(apigeeProduct => { | ||
let apiProduct = apigeeProduct; | ||
if (apigeeProduct.attributes) | ||
for (const attr of apigeeProduct.attributes) { | ||
if (attr.name === "image") | ||
apiProduct.imageUrl = attr.value; | ||
if (attr.name === "spec") | ||
apiProduct.specUrl = attr.value; | ||
if (attr.name === "access") | ||
apiProduct.access = attr.value; | ||
} | ||
products.apiProducts.push(apiProduct); | ||
}); | ||
if (apigeeProducts && apigeeProducts.apiProduct) { | ||
apigeeProducts.apiProduct.forEach(apigeeProduct => { | ||
let apiProduct = apigeeProduct; | ||
if (apigeeProduct.attributes) | ||
for (const attr of apigeeProduct.attributes) { | ||
if (attr.name === "image") | ||
apiProduct.imageUrl = attr.value; | ||
if (attr.name === "spec") | ||
apiProduct.specUrl = attr.value; | ||
if (attr.name === "access") | ||
apiProduct.access = attr.value; | ||
} | ||
products.apiProducts.push(apiProduct); | ||
}); | ||
} | ||
resolve(products); | ||
@@ -41,0 +47,0 @@ }).catch((error) => { |
{ | ||
"name": "apigee-x-module", | ||
"version": "0.5.3", | ||
"version": "0.5.4", | ||
"description": "Module for integrating with the Apigee X platform for TS/JS developer portal integrations.", | ||
@@ -5,0 +5,0 @@ "homepage": "https://github.com/tyayers/apigee-x-module", |
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
40604
650