New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

akismet

Package Overview
Dependencies
Maintainers
1
Versions
21
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

akismet - npm Package Compare versions

Comparing version 2.0.5 to 2.0.6

.travis.yml

12

lib/index.js

@@ -42,4 +42,4 @@ "use strict";

AkismetClient.prototype.checkComment = function (options, callback) {
options.blog = this._blog;
options.user_agent = this._userAgent;
options.blog = options.blog || this._blog;
options.user_agent = options.user_agent || this._userAgent;
this._postRequest(this._endPoint, "/1.1/comment-check", options, function (err, status, body) {

@@ -56,4 +56,4 @@ callback(err, status >= 200 && status < 300 && body === "true");

AkismetClient.prototype.submitSpam = function (options, callback) {
options.blog = this._blog;
options.user_agent = this._userAgent;
options.blog = options.blog || this._blog;
options.user_agent = options.user_agent || this._userAgent;
this._postRequest(this._endPoint, "/1.1/submit-spam", options, function (err, status, body) {

@@ -70,4 +70,4 @@ callback(err);

AkismetClient.prototype.submitHam = function (options, callback) {
options.blog = this._blog;
options.user_agent = this._userAgent;
options.blog = options.blog || this._blog;
options.user_agent = options.user_agent || this._userAgent;
this._postRequest(this._endPoint, "/1.1/submit-ham", options, function (err, status, body) {

@@ -74,0 +74,0 @@ callback(err);

{
"name": "akismet",
"version": "2.0.5",
"version": "2.0.6",
"keywords": [

@@ -30,9 +30,9 @@ "akismet",

"devDependencies": {
"@types/jest": "^24.0.15",
"@types/node": "^12.6.8",
"@types/request": "^2.48.2",
"jest": "^24.8.0",
"@types/jest": "*",
"@types/node": "*",
"@types/request": "*",
"jest": "*",
"ts-jest": "*",
"tslint": "^5.18.0",
"typescript": "^3.5.3"
"tslint": "*",
"typescript": "*"
},

@@ -50,5 +50,4 @@ "jest": {

"prepublishOnly": "npm run build",
"test": "npm run lint && jest",
"cover": "jest --coverage"
"test": "tsc && jest --coverage"
}
}

@@ -6,2 +6,7 @@ An [Akismet](http://www.akismet.com/) API client for [node.js](http://nodejs.org/).

[![Travis Build Status](https://img.shields.io/travis/oozcitak/akismet-js?logo=travis&style=flat-square)](http://travis-ci.org/oozcitak/akismet-js)
[![AppVeyor Build status](https://img.shields.io/appveyor/ci/oozcitak/akismet-js?logo=appveyor&style=flat-square)](https://ci.appveyor.com/project/oozcitak/akismet-js)
[![Dev Dependency Status](http://img.shields.io/david/dev/oozcitak/akismet-js.svg?style=flat-square)](https://david-dm.org/oozcitak/akismet-js)
[![Code Coverage](https://img.shields.io/codecov/c/github/oozcitak/akismet-js?logo=codecov&style=flat-square)](https://codecov.io/gh/oozcitak/akismet-js)
### Installation:

@@ -8,0 +13,0 @@

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