New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

apigee-x-module

Package Overview
Dependencies
Maintainers
1
Versions
49
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

apigee-x-module - npm Package Compare versions

Comparing version 0.5.9 to 0.5.10

56

dist/lib/apigee-service.js

@@ -12,29 +12,31 @@ "use strict";

return new Promise((resolve, reject) => {
auth.getClient().then((client) => {
client.request({
url: `https://apigee.googleapis.com/v1/organizations/${client.projectId}/apiproducts?expand=true`,
method: 'GET'
}).then((response) => {
let apigeeProducts = response.data;
let products = {
apiProducts: []
};
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);
}).catch((error) => {
reject(error);
auth.getProjectId().then((projectId) => {
auth.getClient().then((client) => {
client.request({
url: `https://apigee.googleapis.com/v1/organizations/${projectId}/apiproducts?expand=true`,
method: 'GET'
}).then((response) => {
let apigeeProducts = response.data;
let products = {
apiProducts: []
};
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);
}).catch((error) => {
reject(error);
});
});

@@ -41,0 +43,0 @@ });

{
"name": "apigee-x-module",
"version": "0.5.9",
"version": "0.5.10",
"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",

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc