Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

akismet-api

Package Overview
Dependencies
Maintainers
1
Versions
22
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

akismet-api - npm Package Compare versions

Comparing version 4.0.1 to 4.1.0

7

CHANGELOG.md

@@ -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 @@ =====

94

lib/akismet.js
/*
/*
* 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": {

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc