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

@blockfrost/openapi

Package Overview
Dependencies
Maintainers
3
Versions
224
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@blockfrost/openapi - npm Package Compare versions

Comparing version 0.1.44-beta.10 to 0.1.44-beta.11

26

lib/index.js

@@ -60,12 +60,25 @@ "use strict";

const queryParams = parameters.filter((i) => i.in === 'query');
let properties = {};
let queryProps = {};
if (queryParams && queryParams.length > 0) {
queryParams.forEach((param) => {
properties[param.name] = param.schema;
queryProps[param.name] = param.schema;
});
responses['querystring'] = {
type: 'object',
properties,
properties: queryProps,
};
}
const pathparams = parameters.filter((i) => i.in === 'path');
if (pathparams && pathparams.length > 0) {
let pathProps = {};
pathparams.forEach((param) => {
pathProps[param.name] = param.schema;
});
responses['params'] = {
type: 'object',
properties: pathProps,
};
}
// const query = parameters.filter((i: any) => i.in === 'param');
// let queryParams: any = {};
}

@@ -224,8 +237,7 @@ // 1 bug -> edge case

}
// use this to debug custom schemas
// if (endpointName === '/metadata/txs/labels/{label}') {
// console.log(JSON.stringify(responses));
// }
if (endpointName === '/addresses/{address}') {
console.log(JSON.stringify(responses));
}
return responses;
};
exports.getSchemaForEndpoint = getSchemaForEndpoint;
{
"name": "@blockfrost/openapi",
"version": "0.1.44-beta.10",
"version": "0.1.44-beta.11",
"description": "OpenAPI specifications for blockfrost.io",

@@ -5,0 +5,0 @@ "repository": "git@github.com:blockfrost/openapi.git",

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