Skip to content

Commit

Permalink
Fixing the XML renderer via dependency update
Browse files Browse the repository at this point in the history
  • Loading branch information
avoidwork committed Dec 20, 2015
1 parent 0783d3c commit e28bf81
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion lib/renderers.js
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ renderers.set("text/html", function (arg, req, headers, tpl) {
return i.indexOf("html") === -1;
}).map(function (i) {
return "<option value='" + i + "'>" + i.replace(/^.*\//, "").toUpperCase() + "</option>";
}).join("\n")).replace("{{body}}", JSON.stringify(arg, null, 2)).replace("{{year}}", new Date().getFullYear()).replace("{{version}}", "3.0.0").replace("{{allow}}", headers.allow).replace("{{methods}}", utility.explode(headers.allow.replace("GET, HEAD, OPTIONS", "")).filter(function (i) {
}).join("\n")).replace("{{body}}", JSON.stringify(arg, null, 2)).replace("{{year}}", new Date().getFullYear()).replace("{{version}}", "3.0.1").replace("{{allow}}", headers.allow).replace("{{methods}}", utility.explode(headers.allow.replace("GET, HEAD, OPTIONS", "")).filter(function (i) {
return i !== "";
}).map(function (i) {
return "<option value='" + i + "'>" + i + "</option>";
Expand Down
2 changes: 1 addition & 1 deletion lib/tenso.js
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ var Tenso = (function () {
this.rates = {};
this.server = turtleio(config);
this.server.tenso = this;
this.version = "3.0.0";
this.version = "3.0.1";
}

_createClass(Tenso, [{
Expand Down
2 changes: 1 addition & 1 deletion lib/utility.js
Original file line number Diff line number Diff line change
Expand Up @@ -530,7 +530,7 @@ function bootstrap(obj, config) {

// Setting headers
config.headers = config.headers || {};
config.headers.server = "tenso/3.0.0";
config.headers.server = "tenso/3.0.1";

// Creating status > message map
shared.iterate(obj.server.codes, function (value, key) {
Expand Down
4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "tenso",
"description": "Tensō is a REST API gateway for node.js, designed to simplify the implementation of APIs.",
"version": "3.0.0",
"version": "3.0.1",
"homepage": "http://avoidwork.github.io/tenso",
"author": "Jason Mulligan <[email protected]>",
"repository": {
Expand Down Expand Up @@ -38,7 +38,7 @@
"retsu": "^2.0.0",
"tiny-defer": "^1.0.4",
"tiny-uuid4": "^1.0.0",
"tiny-xml": "^1.0.2",
"tiny-xml": "^1.0.6",
"turtle.io": "^5.0.3",
"yamljs": "^0.2.4"
},
Expand Down

0 comments on commit e28bf81

Please sign in to comment.