akismet-api
Advanced tools
Comparing version 4.0.1 to 4.1.0
@@ -0,1 +1,8 @@ | ||
4.1.0 | ||
===== | ||
* Feature: Added support for Akismet's `comment_date_gmt` | ||
* Feature: Added support for Akismet's `comment_post_modified_gmt` | ||
* Patch: Updated mocha to 5.0.0 | ||
4.0.1 | ||
@@ -2,0 +9,0 @@ ===== |
/* |
/* |
* akismet.js |
* Provide Nodejs API bindings to the Akismet web service |
* "Ham" refers to anything not spam |
* See README for more info |
* Provide Nodejs API bindings to the Akismet web service |
* "Ham" refers to anything not spam |
* See README for more info |
*/ |
@@ -18,3 +18,3 @@ |
/* |
/* Configure our client based on provided options |
/* Configure our client based on provided options |
*/ |
@@ -33,3 +33,3 @@ |
/* |
* Verify that the provided key is accepted by Akismet |
* Verify that the provided key is accepted by Akismet |
*/ |
@@ -57,5 +57,5 @@ |
/* |
* Check if the given data is spam |
* Check if the given data is spam |
* Returns true for spam |
* Return false for ham |
* Return false for ham |
*/ |
@@ -70,13 +70,15 @@ |
.send({ |
blog : this.blog, |
user_ip : options.user_ip || '', |
permalink : options.permalink || '', |
user_agent : options.user_agent || '', |
comment_type : options.comment_type || '', |
comment_author : options.comment_author || '', |
comment_content : options.comment_content || '', |
comment_author_url : options.comment_author_url || '', |
comment_author_email : options.comment_author_email || '', |
referrer : options.referrer || options.referer || '', |
is_test : options.is_test === true |
blog : this.blog, |
user_ip : options.user_ip || '', |
permalink : options.permalink || '', |
user_agent : options.user_agent || '', |
comment_type : options.comment_type || '', |
comment_author : options.comment_author || '', |
comment_content : options.comment_content || '', |
comment_author_url : options.comment_author_url || '', |
comment_author_email : options.comment_author_email || '', |
comment_date_gmt : options.comment_date_gmt || '', |
comment_post_modified_gmt : options.comment_post_modified_gmt || '', |
referrer : options.referrer || options.referer || '', |
is_test : options.is_test === true |
}) |
@@ -97,3 +99,3 @@ .set('User-Agent', this.userAgent) |
* Submit the given value as a false-negative |
* Essentially, tell Akismet that they told us this WASN'T spam, but it WAS |
* Essentially, tell Akismet that they told us this WASN'T spam, but it WAS |
*/ |
@@ -108,13 +110,15 @@ |
.send({ |
blog : this.blog, |
user_ip : options.user_ip || '', |
permalink : options.permalink || '', |
user_agent : options.user_agent || '', |
comment_type : options.comment_type || '', |
comment_author : options.comment_author || '', |
comment_content : options.comment_content || '', |
comment_author_url : options.comment_author_url || '', |
comment_author_email : options.comment_author_email || '', |
referrer : options.referrer || options.referer || '', |
is_test : options.is_test === true |
blog : this.blog, |
user_ip : options.user_ip || '', |
permalink : options.permalink || '', |
user_agent : options.user_agent || '', |
comment_type : options.comment_type || '', |
comment_author : options.comment_author || '', |
comment_content : options.comment_content || '', |
comment_author_url : options.comment_author_url || '', |
comment_author_email : options.comment_author_email || '', |
comment_date_gmt : options.comment_date_gmt || '', |
comment_post_modified_gmt : options.comment_post_modified_gmt || '', |
referrer : options.referrer || options.referer || '', |
is_test : options.is_test === true |
}) |
@@ -128,3 +132,3 @@ .set('User-Agent', this.userAgent) |
* Submit the given value as a false-positive |
* Essentially, tell Akismet that they told us this WAS spam, but it WASN'T |
* Essentially, tell Akismet that they told us this WAS spam, but it WASN'T |
*/ |
@@ -139,13 +143,15 @@ |
.send({ |
blog : this.blog, |
user_ip : options.user_ip || '', |
permalink : options.permalink || '', |
user_agent : options.user_agent || '', |
comment_type : options.comment_type || '', |
comment_author : options.comment_author || '', |
comment_content : options.comment_content || '', |
comment_author_url : options.comment_author_url || '', |
comment_author_email : options.comment_author_email || '', |
referrer : options.referrer || options.referer || '', |
is_test : options.is_test === true |
blog : this.blog, |
user_ip : options.user_ip || '', |
permalink : options.permalink || '', |
user_agent : options.user_agent || '', |
comment_type : options.comment_type || '', |
comment_author : options.comment_author || '', |
comment_content : options.comment_content || '', |
comment_author_url : options.comment_author_url || '', |
comment_author_email : options.comment_author_email || '', |
comment_date_gmt : options.comment_date_gmt || '', |
comment_post_modified_gmt : options.comment_post_modified_gmt || '', |
referrer : options.referrer || options.referer || '', |
is_test : options.is_test === true |
}) |
@@ -164,3 +170,3 @@ .set('User-agent', this.userAgent) |
/* |
* Shorthand Client constructor function |
* Shorthand Client constructor function |
*/ |
@@ -167,0 +173,0 @@ |
{ | ||
"name": "akismet-api", | ||
"version": "4.0.1", | ||
"version": "4.1.0", | ||
"description": "Nodejs bindings to the Akismet (https://akismet.com) spam detection service", | ||
@@ -13,3 +13,3 @@ "main": "lib/akismet.js", | ||
"nock": "^9.0.6", | ||
"mocha": "^4.0.0" | ||
"mocha": "^5.0.0" | ||
}, | ||
@@ -16,0 +16,0 @@ "scripts": { |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
43653
1027
10