Skip to content

Commit

Permalink
Lowered the required Node.js version
Browse files Browse the repository at this point in the history
  • Loading branch information
cedx committed Sep 20, 2014
1 parent f7fa684 commit c5d721d
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion lib/client.js
Original file line number Diff line number Diff line change
Expand Up @@ -275,7 +275,7 @@ Client.prototype._queryService=function(endPoint, fields, callback) {
.send(fields)
.end(function(err, res) {
if(err) callback(err, null);
else if(!res.ok) callback(new Error(res.error ? res.error.message : res.status), null);
else if(!res.ok) callback(new Error(res.error ? res.error.toString() : res.status), null);
else {
var akismetHeader=enums.HTTPHeaders.X_AKISMET_DEBUG_HELP;
callback(akismetHeader in res.header ? new Error(res.header[akismetHeader]) : null, res.text);
Expand Down
2 changes: 1 addition & 1 deletion lib/server.js
Original file line number Diff line number Diff line change
Expand Up @@ -156,7 +156,7 @@ Server.prototype.close=function(callback) {
/**
* Begin accepting connections.
* @method listen
* @param {Number} [port] The port that the server should run on.
* @param {Number} port The port that the server should run on.
* @param {String} [host] The host that the server should run on.
* @param {Function} [callback] A function to invoke when server is ready to process requests.
* @async
Expand Down
4 changes: 2 additions & 2 deletions 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.1",
"version": "0.3.2",
"bin": {
"akismet": "./bin/cli.js"
},
Expand All @@ -25,7 +25,7 @@
"uglify-js": "^2.4.15"
},
"engines": {
"node": ">=0.10.30"
"node": ">=0.10.0"
},
"jshintConfig": {
"browser": true,
Expand Down

0 comments on commit c5d721d

Please sign in to comment.