Skip to content

Commit

Permalink
updated swagger-js, version
Browse files Browse the repository at this point in the history
  • Loading branch information
fehguy committed Mar 19, 2014
1 parent c965247 commit 1f6aa46
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 6 deletions.
5 changes: 3 additions & 2 deletions dist/lib/swagger.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// swagger.js
// version 2.0.25
// version 2.0.26

var __bind = function(fn, me){
return function(){
Expand Down Expand Up @@ -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;
};

Expand Down
5 changes: 3 additions & 2 deletions lib/swagger.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// swagger.js
// version 2.0.25
// version 2.0.26

var __bind = function(fn, me){
return function(){
Expand Down Expand Up @@ -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;
};

Expand Down
4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
@@ -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",
Expand All @@ -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"
}
Expand Down

0 comments on commit 1f6aa46

Please sign in to comment.