Skip to content

Commit

Permalink
Bumped the package to v0.3.1
Browse files Browse the repository at this point in the history
  • Loading branch information
cedx committed Sep 19, 2014
1 parent 748fd9a commit f7fa684
Show file tree
Hide file tree
Showing 6 changed files with 12 additions and 9 deletions.
3 changes: 3 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,9 @@
# Changelog
This file contains highlights of what changes on each version of the [Akismet.js](https://www.npmjs.org/package/akismet-js) library.

#### Version 0.3.1
- Fixed bugs in server implementation: bad error handling.

#### Version 0.3.0
- Added `Blog` class to support the latest Akismet APIs.

Expand Down
4 changes: 2 additions & 2 deletions lib/server.js
Original file line number Diff line number Diff line change
Expand Up @@ -304,13 +304,13 @@ Server.prototype._registerRoutes=function() {
* @method _sendResponse
* @param {express.Response} res The response sent by the server.
* @param {String} body The response body to send to the client.
* @param {Error} [error] An error message to add to the response headers as `akismet.HTTPHeaders.X_AKISMET_DEBUG_HELP`.
* @param {Object} [error] An error message to add to the response headers as `akismet.HTTPHeaders.X_AKISMET_DEBUG_HELP`.
* @static
* @private
*/
Server._sendResponse=function(res, body, error) {
res.type('text/plain; charset=utf-8');
if(error instanceof Error) res.set(enums.HTTPHeaders.X_AKISMET_DEBUG_HELP, error.message);
if(typeof error!='undefined') res.set(enums.HTTPHeaders.X_AKISMET_DEBUG_HELP, error.toString());
res.send(body);
};

Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
"license": "MIT",
"main": "./index",
"name": "akismet-js",
"version": "0.3.0",
"version": "0.3.1",
"bin": {
"akismet": "./bin/cli.js"
},
Expand Down
4 changes: 2 additions & 2 deletions www/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -202,8 +202,8 @@ <h3 class="panel-title"><i class="fa fa-download"></i> Downloads</h3>
</div>

<div class="list-group">
<a href="https://github.com/cedx/akismet.js/releases/download/v0.3.0/akismet.js-0.3.0.zip" class="list-group-item">
<span class="label label-info pull-right">0.3.0</span>
<a href="https://github.com/cedx/akismet.js/releases/download/v0.3.1/akismet.js-0.3.1.zip" class="list-group-item">
<span class="label label-info pull-right">0.3.1</span>
Pub package
</a>
<a href="https://github.com/cedx/akismet.js/archive/master.zip" class="list-group-item">
Expand Down
6 changes: 3 additions & 3 deletions www/js/tests.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion www/js/tests.min.js

Large diffs are not rendered by default.

0 comments on commit f7fa684

Please sign in to comment.