From 1f6aa46e523042da8541277bf7f9fb2994afefd9 Mon Sep 17 00:00:00 2001 From: Tony Tam Date: Wed, 19 Mar 2014 08:28:16 -0700 Subject: [PATCH] updated swagger-js, version --- dist/lib/swagger.js | 5 +++-- lib/swagger.js | 5 +++-- package.json | 4 ++-- 3 files changed, 8 insertions(+), 6 deletions(-) diff --git a/dist/lib/swagger.js b/dist/lib/swagger.js index f5e1aef0..b5968a85 100644 --- a/dist/lib/swagger.js +++ b/dist/lib/swagger.js @@ -1,5 +1,5 @@ // swagger.js -// version 2.0.25 +// version 2.0.26 var __bind = function(fn, me){ return function(){ @@ -1381,7 +1381,8 @@ var PasswordAuthorization = function(name, username, password) { }; PasswordAuthorization.prototype.apply = function(obj, authorizations) { - obj.headers["Authorization"] = "Basic " + this._btoa(this.username + ":" + this.password); + var base64encoder = this._btoa; + obj.headers["Authorization"] = "Basic " + base64encoder(this.username + ":" + this.password); return true; }; diff --git a/lib/swagger.js b/lib/swagger.js index f5e1aef0..b5968a85 100644 --- a/lib/swagger.js +++ b/lib/swagger.js @@ -1,5 +1,5 @@ // swagger.js -// version 2.0.25 +// version 2.0.26 var __bind = function(fn, me){ return function(){ @@ -1381,7 +1381,8 @@ var PasswordAuthorization = function(name, username, password) { }; PasswordAuthorization.prototype.apply = function(obj, authorizations) { - obj.headers["Authorization"] = "Basic " + this._btoa(this.username + ":" + this.password); + var base64encoder = this._btoa; + obj.headers["Authorization"] = "Basic " + base64encoder(this.username + ":" + this.password); return true; }; diff --git a/package.json b/package.json index a2c5bb3a..995fc234 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "swagger-ui", - "version": "2.0.13", + "version": "2.0.14", "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": { "build": "PATH=$PATH:./node_modules/.bin cake dist", @@ -19,7 +19,7 @@ "readmeFilename": "README.md", "dependencies": { "coffee-script": "~1.5.0", - "swagger-client": "2.0.23", + "swagger-client": "2.0.26", "handlebars": "~1.0.10", "less": "~1.4.2" }