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

swagger-parser

Package Overview
Dependencies
Maintainers
1
Versions
81
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

swagger-parser - npm Package Compare versions

Comparing version 1.0.6 to 1.0.7

2

lib/parse.js

@@ -82,3 +82,3 @@ 'use strict';

// We're done. Invoke the callback.
util.doCallback(callback, null, swaggerObject);
util.doCallback(callback, null, swaggerObject, state);
});

@@ -85,0 +85,0 @@ });

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

try {
state.files.push(filePath);
callback(null, parseJsonOrYaml(filePath, data, state));

@@ -140,2 +141,3 @@ }

try {
state.urls.push(urlPath);
callback(null, parseJsonOrYaml(href, body, state));

@@ -142,0 +144,0 @@ }

@@ -29,2 +29,14 @@ 'use strict';

/**
* The full path and filename of files that have been read during the parsing operation.
* @type {string[]}
*/
this.files = [];
/**
* The parsed URLs that have been downloaded during the parsing operation.
* @type {url.Url[]}
*/
this.urls = [];
/**
* A map of resolved "$ref" pointers to their values

@@ -31,0 +43,0 @@ */

{
"name": "swagger-parser",
"version": "1.0.6",
"version": "1.0.7",
"description": "Parses a JSON or YAML Swagger spec, validates it against the Swagger schema, and dereferences all $ref pointers",

@@ -11,2 +11,3 @@ "keywords": [

"schema",
"parse",
"validate",

@@ -26,3 +27,5 @@ "validation",

"build": "gulp build",
"test": "istanbul cover _mocha -- --recursive tests && karma start --single-run"
"test": "istanbul cover _mocha -- --recursive tests && karma start --single-run",
"mocha": "mocha --recursive tests",
"karma": "karma start --single-run"
},

@@ -29,0 +32,0 @@ "repository": {

@@ -5,3 +5,3 @@ Swagger-Parser

[![Build Status](https://travis-ci.org/BigstickCarpet/swagger-parser.svg?branch=master)](https://travis-ci.org/BigstickCarpet/swagger-parser)
[![Build Status](https://img.shields.io/travis/BigstickCarpet/swagger-parser.svg)](https://travis-ci.org/BigstickCarpet/swagger-parser)
[![Dependencies](https://david-dm.org/bigstickcarpet/swagger-parser.svg)](https://david-dm.org/bigstickcarpet/swagger-parser)

@@ -8,0 +8,0 @@ [![Code Climate Score](https://codeclimate.com/github/BigstickCarpet/swagger-parser/badges/gpa.svg)](https://codeclimate.com/github/BigstickCarpet/swagger-parser)

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is not supported yet

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