Comparing version 0.0.8 to 0.0.9
(function() { |
var Akismet, http, qs, util; |
var Akismet, domain, http, qs, util; |
@@ -10,2 +10,4 @@ http = require('http'); |
domain = require('domain'); |
Akismet = (function() { |
@@ -61,3 +63,3 @@ |
Akismet.prototype.postRequest = function(hostname, path, query, callback) { |
var options, req; |
var dom, options; |
query = qs.stringify(query); |
@@ -75,16 +77,17 @@ options = { |
}; |
req = http.request(options, function(res) { |
res.setEncoding('utf8'); |
return res.on('data', function(body) { |
console.log("Query: " + query); |
console.log(util.inspect(options)); |
console.log("Body: " + body); |
return callback(null, res.statusCode, res.headers, body); |
dom = domain.create(); |
dom.on('error', function(err) { |
return callback(err); |
}); |
return dom.run(function() { |
var req; |
req = http.request(options, function(res) { |
res.setEncoding('utf8'); |
return res.on('data', function(body) { |
return callback(null, res.statusCode, res.headers, body); |
}); |
}); |
req.write(query); |
return req.end(); |
}); |
req.on('error', function(err) { |
return callback(err); |
}); |
req.write(query); |
return req.end(); |
}; |
@@ -91,0 +94,0 @@ |
{ | ||
"name" : "akismet", | ||
"version": "0.0.8", | ||
"version": "0.0.9", | ||
"keywords": ["akismet", "comment", "spam"], | ||
@@ -5,0 +5,0 @@ "homepage": "https://github.com/oozcitak/akismet-js", |
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
Found 1 instance in 1 package
New author
Supply chain riskA new npm collaborator published a version of the package for the first time. New collaborators are usually benign additions to a project, but do indicate a change to the security surface area of a package.
Found 1 instance in 1 package
5920
87
1