updated swagger-js version

This commit is contained in:
Tony Tam
2014-02-19 11:17:26 -08:00
parent 0095768ab7
commit 7108afc191
3 changed files with 12 additions and 12 deletions

10
dist/lib/swagger.js vendored
View File

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

View File

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

View File

@@ -1,6 +1,6 @@
{ {
"name": "swagger-ui", "name": "swagger-ui",
"version": "2.0.10", "version": "2.0.11",
"description": "Swagger UI is a dependency-free collection of HTML, Javascript, and CSS assets that dynamically generate beautiful documentation from a Swagger-compliant API", "description": "Swagger UI is a dependency-free collection of HTML, Javascript, and CSS assets that dynamically generate beautiful documentation from a Swagger-compliant API",
"scripts": { "scripts": {
"build": "PATH=$PATH:./node_modules/.bin cake dist", "build": "PATH=$PATH:./node_modules/.bin cake dist",
@@ -19,7 +19,7 @@
"readmeFilename": "README.md", "readmeFilename": "README.md",
"dependencies": { "dependencies": {
"coffee-script": "~1.5.0", "coffee-script": "~1.5.0",
"swagger-client": "2.0.16", "swagger-client": "2.0.18",
"handlebars": "~1.0.10", "handlebars": "~1.0.10",
"less": "~1.4.2" "less": "~1.4.2"
} }