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

swagger-ui

Package Overview
Dependencies
Maintainers
1
Versions
394
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

swagger-ui - npm Package Compare versions

Comparing version 2.1.0-alpha.6 to 2.1.0-alpha.7

22

dist/lib/swagger-client.js
// swagger-client.js
// version 2.1.0-alpha.2
// version 2.1.0-alpha.3
/**

@@ -843,3 +843,3 @@ * Array Model

}
else if (param.in === 'query') {
else if (param.in === 'query' && typeof args[param.name] !== 'undefined') {
if(querystring === '')

@@ -1107,10 +1107,7 @@ querystring += '?';

this.required = required;
if(obj['$ref']) {
var refType = obj['$ref'];
refType = refType.indexOf('#/definitions') === -1 ? refType : refType.substring('#/definitions').length;
this['$ref'] = refType;
}
if(obj['$ref'])
this['$ref'] = simpleRef(obj['$ref']);
else if (obj.type === 'array') {
if(obj.items['$ref'])
this['$ref'] = obj.items['$ref'];
this['$ref'] = simpleRef(obj.items['$ref']);
else

@@ -1146,3 +1143,4 @@ obj = obj.items;

if(this['$ref']) {
var refModel = models[this['$ref']];
var refModelName = simpleRef(this['$ref']);
var refModel = models[refModelName];
if(refModel && typeof ignoredModels[type] === 'undefined') {

@@ -1206,4 +1204,6 @@ ignoredModels[type] = this;

str += 'boolean';
else if(obj['$ref'])
str += simpleRef(obj['$ref']);
else
str += obj.type || obj['$ref'];
str += obj.type;
if(obj.type === 'array')

@@ -1215,2 +1215,4 @@ str += ']';

simpleRef = function(name) {
if(typeof name === 'undefined')
return null;
if(name.indexOf("#/definitions/") === 0)

@@ -1217,0 +1219,0 @@ return name.substring('#/definitions/'.length)

// swagger-client.js
// version 2.1.0-alpha.2
// version 2.1.0-alpha.3
/**

@@ -843,3 +843,3 @@ * Array Model

}
else if (param.in === 'query') {
else if (param.in === 'query' && typeof args[param.name] !== 'undefined') {
if(querystring === '')

@@ -1107,10 +1107,7 @@ querystring += '?';

this.required = required;
if(obj['$ref']) {
var refType = obj['$ref'];
refType = refType.indexOf('#/definitions') === -1 ? refType : refType.substring('#/definitions').length;
this['$ref'] = refType;
}
if(obj['$ref'])
this['$ref'] = simpleRef(obj['$ref']);
else if (obj.type === 'array') {
if(obj.items['$ref'])
this['$ref'] = obj.items['$ref'];
this['$ref'] = simpleRef(obj.items['$ref']);
else

@@ -1146,3 +1143,4 @@ obj = obj.items;

if(this['$ref']) {
var refModel = models[this['$ref']];
var refModelName = simpleRef(this['$ref']);
var refModel = models[refModelName];
if(refModel && typeof ignoredModels[type] === 'undefined') {

@@ -1206,4 +1204,6 @@ ignoredModels[type] = this;

str += 'boolean';
else if(obj['$ref'])
str += simpleRef(obj['$ref']);
else
str += obj.type || obj['$ref'];
str += obj.type;
if(obj.type === 'array')

@@ -1215,2 +1215,4 @@ str += ']';

simpleRef = function(name) {
if(typeof name === 'undefined')
return null;
if(name.indexOf("#/definitions/") === 0)

@@ -1217,0 +1219,0 @@ return name.substring('#/definitions/'.length)

{
"name": "swagger-ui",
"version": "2.1.0-alpha.6",
"version": "2.1.0-alpha.7",
"description": "Swagger UI is a dependency-free collection of HTML, Javascript, and CSS assets that dynamically generate beautiful documentation from a Swagger-compliant API",

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

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

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