Skip to content

Commit 7108afc

Browse files
committed
updated swagger-js version
1 parent 0095768 commit 7108afc

File tree

3 files changed

+12
-12
lines changed

3 files changed

+12
-12
lines changed

dist/lib/swagger.js

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
// swagger.js
2-
// version 2.0.16
2+
// version 2.0.17
33

44
var __bind = function(fn, me){
55
return function(){
@@ -691,7 +691,7 @@ var SwaggerOperation = function(nickname, path, method, parameters, summary, not
691691
}
692692

693693
SwaggerOperation.prototype.isListType = function(type) {
694-
if (type.indexOf('[') >= 0) {
694+
if (type && type.indexOf('[') >= 0) {
695695
return type.substring(type.indexOf('[') + 1, type.indexOf(']'));
696696
} else {
697697
return void 0;
@@ -1291,11 +1291,10 @@ var PasswordAuthorization = function(name, username, password) {
12911291
this.username = username;
12921292
this.password = password;
12931293
this._btoa = null;
1294-
12951294
if (typeof window !== 'undefined')
1296-
return this._btoa = btoa;
1295+
this._btoa = btoa;
12971296
else
1298-
return this._btoa = require("btoa");
1297+
this._btoa = require("btoa");
12991298
};
13001299

13011300
PasswordAuthorization.prototype.apply = function(obj, authorizations) {
@@ -1309,6 +1308,7 @@ e.SwaggerHttp = SwaggerHttp;
13091308
e.SwaggerRequest = SwaggerRequest;
13101309
e.authorizations = new SwaggerAuthorizations();
13111310
e.ApiKeyAuthorization = ApiKeyAuthorization;
1311+
e.PasswordAuthorization = PasswordAuthorization;
13121312
e.JQueryHttpClient = JQueryHttpClient;
13131313
e.ShredHttpClient = ShredHttpClient;
13141314
e.SwaggerOperation = SwaggerOperation;

lib/swagger.js

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
// swagger.js
2-
// version 2.0.16
2+
// version 2.0.17
33

44
var __bind = function(fn, me){
55
return function(){
@@ -691,7 +691,7 @@ var SwaggerOperation = function(nickname, path, method, parameters, summary, not
691691
}
692692

693693
SwaggerOperation.prototype.isListType = function(type) {
694-
if (type.indexOf('[') >= 0) {
694+
if (type && type.indexOf('[') >= 0) {
695695
return type.substring(type.indexOf('[') + 1, type.indexOf(']'));
696696
} else {
697697
return void 0;
@@ -1291,11 +1291,10 @@ var PasswordAuthorization = function(name, username, password) {
12911291
this.username = username;
12921292
this.password = password;
12931293
this._btoa = null;
1294-
12951294
if (typeof window !== 'undefined')
1296-
return this._btoa = btoa;
1295+
this._btoa = btoa;
12971296
else
1298-
return this._btoa = require("btoa");
1297+
this._btoa = require("btoa");
12991298
};
13001299

13011300
PasswordAuthorization.prototype.apply = function(obj, authorizations) {
@@ -1309,6 +1308,7 @@ e.SwaggerHttp = SwaggerHttp;
13091308
e.SwaggerRequest = SwaggerRequest;
13101309
e.authorizations = new SwaggerAuthorizations();
13111310
e.ApiKeyAuthorization = ApiKeyAuthorization;
1311+
e.PasswordAuthorization = PasswordAuthorization;
13121312
e.JQueryHttpClient = JQueryHttpClient;
13131313
e.ShredHttpClient = ShredHttpClient;
13141314
e.SwaggerOperation = SwaggerOperation;

package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "swagger-ui",
3-
"version": "2.0.10",
3+
"version": "2.0.11",
44
"description": "Swagger UI is a dependency-free collection of HTML, Javascript, and CSS assets that dynamically generate beautiful documentation from a Swagger-compliant API",
55
"scripts": {
66
"build": "PATH=$PATH:./node_modules/.bin cake dist",
@@ -19,7 +19,7 @@
1919
"readmeFilename": "README.md",
2020
"dependencies": {
2121
"coffee-script": "~1.5.0",
22-
"swagger-client": "2.0.16",
22+
"swagger-client": "2.0.18",
2323
"handlebars": "~1.0.10",
2424
"less": "~1.4.2"
2525
}

0 commit comments

Comments
 (0)