[Pkg-javascript-commits] [node-static] 28/151: (dist doc) version bump & update docs

Tonnerre Lombard tonnerre-guest at moszumanska.debian.org
Tue Jan 7 23:17:56 UTC 2014


This is an automated email from the git hooks/post-receive script.

tonnerre-guest pushed a commit to branch master
in repository node-static.

commit 277d1aa0bd26d6993cff29ecf2e3fe5cd799acd9
Author: cloudhead <self at cloudhead.net>
Date:   Thu Aug 12 11:52:30 2010 -0400

    (dist doc) version bump & update docs
---
 README.md          | 6 +++---
 lib/node-static.js | 2 +-
 package.json       | 2 +-
 3 files changed, 5 insertions(+), 5 deletions(-)

diff --git a/README.md b/README.md
index 1df6f2b..825c811 100644
--- a/README.md
+++ b/README.md
@@ -65,10 +65,10 @@ the HTTP request and response object:
 
 If you want to serve a specific file, like an error page for example, use the `serveFile` method:
 
-    fileServer.serveFile('/error.html', request, response);
+    fileServer.serveFile('/error.html', 500, {}, request, response);
 
-This will serve the `error.html` file, from under the file root directory. For example, you could
-serve an error page, when the initial request wasn't found:
+This will serve the `error.html` file, from under the file root directory, with a `500` status code.
+For example, you could serve an error page, when the initial request wasn't found:
 
     require('http').createServer(function (request, response) {
         request.addListener('end', function () {
diff --git a/lib/node-static.js b/lib/node-static.js
index d997c0b..8274541 100644
--- a/lib/node-static.js
+++ b/lib/node-static.js
@@ -6,7 +6,7 @@ var fs = require('fs'),
     url = require('url'),
     path = require('path');
 
-this.version = [0, 4, 3];
+this.version = [0, 5, 0];
 
 var mime = require('./node-static/mime');
 var util = require('./node-static/util');
diff --git a/package.json b/package.json
index 1097c89..9e81543 100644
--- a/package.json
+++ b/package.json
@@ -9,7 +9,7 @@
   "dependencies"  : [],
   "lib"           : "lib",
   "main"          : "./lib/node-static",
-  "version"       : "0.4.3",
+  "version"       : "0.5.0",
   "directories"   : { "lib": "./lib/node-static", "test": "./test" },
   "engines"       : { "node": ">= 0.1.100" }
 }

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-javascript/node-static.git



More information about the Pkg-javascript-commits mailing list