updated swagger-js version
This commit is contained in:
@@ -1,5 +1,5 @@
|
||||
// swagger.js
|
||||
// version 2.0.16
|
||||
// version 2.0.17
|
||||
|
||||
var __bind = function(fn, me){
|
||||
return function(){
|
||||
@@ -691,7 +691,7 @@ var SwaggerOperation = function(nickname, path, method, parameters, summary, not
|
||||
}
|
||||
|
||||
SwaggerOperation.prototype.isListType = function(type) {
|
||||
if (type.indexOf('[') >= 0) {
|
||||
if (type && type.indexOf('[') >= 0) {
|
||||
return type.substring(type.indexOf('[') + 1, type.indexOf(']'));
|
||||
} else {
|
||||
return void 0;
|
||||
@@ -1291,11 +1291,10 @@ var PasswordAuthorization = function(name, username, password) {
|
||||
this.username = username;
|
||||
this.password = password;
|
||||
this._btoa = null;
|
||||
|
||||
if (typeof window !== 'undefined')
|
||||
return this._btoa = btoa;
|
||||
this._btoa = btoa;
|
||||
else
|
||||
return this._btoa = require("btoa");
|
||||
this._btoa = require("btoa");
|
||||
};
|
||||
|
||||
PasswordAuthorization.prototype.apply = function(obj, authorizations) {
|
||||
@@ -1309,6 +1308,7 @@ e.SwaggerHttp = SwaggerHttp;
|
||||
e.SwaggerRequest = SwaggerRequest;
|
||||
e.authorizations = new SwaggerAuthorizations();
|
||||
e.ApiKeyAuthorization = ApiKeyAuthorization;
|
||||
e.PasswordAuthorization = PasswordAuthorization;
|
||||
e.JQueryHttpClient = JQueryHttpClient;
|
||||
e.ShredHttpClient = ShredHttpClient;
|
||||
e.SwaggerOperation = SwaggerOperation;
|
||||
|
||||
Reference in New Issue
Block a user