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

swagger-jsdoc

Package Overview
Dependencies
Maintainers
2
Versions
93
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

swagger-jsdoc - npm Package Compare versions

Comparing version 1.3.0 to 1.3.1

7

lib/index.js

@@ -104,2 +104,3 @@ /** @module index */

var propertyName = propertyNames[j];
var keyName = propertyName + 's';
switch (propertyName) {

@@ -110,3 +111,2 @@ case 'securityDefinition':

case 'definition': {
var keyName = propertyName + 's';
var definitionNames = Object

@@ -121,2 +121,6 @@ .getOwnPropertyNames(pathObject[propertyName]);

}
case 'tag': {
swaggerObject[keyName].push(pathObject[propertyName]);
break;
}
default: {

@@ -172,2 +176,3 @@ swaggerObject.paths[propertyName] = objectMerge(

swaggerObject.securityDefinitions = {};
swaggerObject.tags = [];

@@ -174,0 +179,0 @@ var apiPaths = convertGlobPaths(options.apis);

2

package.json
{
"name": "swagger-jsdoc",
"version": "1.3.0",
"version": "1.3.1",
"description": "Generates swagger doc based on JSDoc",

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

@@ -10,5 +10,5 @@ # swagger-jsdoc

[![Circle CI](https://img.shields.io/circleci/project/Surnet/swagger-jsdoc/master.svg)](https://circleci.com/gh/Surnet/swagger-jsdoc)
[![Codacy Badge](https://img.shields.io/codacy/c5d3d458d11a4fb88b55cd527b1c708f.svg)](https://www.codacy.com/app/Surnet/swagger-jsdoc)
[![Dependency Status](https://img.shields.io/gemnasium/Surnet/swagger-jsdoc.svg)](https://gemnasium.com/Surnet/swagger-jsdoc)
[![Documentation Status](http://inch-ci.org/github/Surnet/swagger-jsdoc.svg?branch=master&style=flat)](http://inch-ci.org/github/Surnet/swagger-jsdoc)
[![Known Vulnerabilities](https://snyk.io/test/npm/swagger-jsdoc/badge.svg)](https://snyk.io/test/npm/swagger-jsdoc)

@@ -15,0 +15,0 @@ ## Supported Swagger Versions

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