Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

api-schema-builder

Package Overview
Dependencies
Maintainers
2
Versions
35
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

api-schema-builder - npm Package Compare versions

Comparing version 1.0.4 to 1.0.5

2

package.json
{
"name": "api-schema-builder",
"version": "1.0.4",
"version": "1.0.5",
"description": "build schema with validators for each endpoint",

@@ -5,0 +5,0 @@ "main": "src/index.js",

@@ -17,3 +17,2 @@ 'use strict';

function buildSchema(swaggerPath, options) {
let updatedOptions = Object.assign({}, DEFAULT_SETTINGS, options);
return Promise.all([

@@ -23,7 +22,8 @@ SwaggerParser.dereference(swaggerPath),

]).then(function ([dereferenced, referenced]) {
return buildValidations(referenced, dereferenced, updatedOptions);
return buildValidations(referenced, dereferenced, options);
});
}
function buildValidations(referenced, dereferenced, options) {
function buildValidations(referenced, dereferenced, receivedOptions) {
const options = Object.assign({}, DEFAULT_SETTINGS, receivedOptions);
const { buildRequests, buildResponses } = options;

@@ -30,0 +30,0 @@ const schemas = {};

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