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

bravado-core

Package Overview
Dependencies
Maintainers
1
Versions
33
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

bravado-core - npm Package Compare versions

Comparing version 0.3.0 to 0.4.0

9

lib/api-definition.js

@@ -18,9 +18,5 @@ var jsonRefs = require('json-refs');

function ApiDefinition (obj, file) {
function ApiDefinition (obj) {
var schema = schemas[obj.bravado] || schemas['1.0'];
// var filter = validator.filter(schema)
Object.defineProperty(this, '_source', {
enumerable: false,
value: file
});
// Object.defineProperty(this, '_validate', {

@@ -99,2 +95,3 @@ // enumerable: false,

var api = results.resolved;
api['x-bravado-sourceFile'] = source;
for (var r in api.resources) {

@@ -108,3 +105,3 @@ var resource = api.resources[r];

}
var def = new ApiDefinition(api, source);
var def = new ApiDefinition(api);
return def;

@@ -111,0 +108,0 @@ });

{
"name": "bravado-core",
"version": "0.3.0",
"version": "0.4.0",
"description": "REST (Level 3/HATEOAS) API Framework",

@@ -5,0 +5,0 @@ "directories": {

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