Huge News!Announcing our $40M Series B led by Abstract Ventures.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.6 to 2.0.7

7

lib/index.js
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.client = exports.AkismetClient = void 0;
var domain_1 = require("domain");

@@ -78,3 +79,3 @@ var request_1 = require("request");

AkismetClient.prototype._postRequest = function (hostname, path, query, callback) {
var requestUrl = url_1.format({
var requestUrl = (0, url_1.format)({
protocol: this._port === 443 ? "https" : "http",

@@ -93,6 +94,6 @@ hostname: hostname,

};
var dom = domain_1.create();
var dom = (0, domain_1.create)();
dom.on("error", function (err) { return callback(err, 0, ""); });
dom.run(function () {
request_1.post(options, function (err, response, body) {
(0, request_1.post)(options, function (err, response, body) {
if (err) {

@@ -99,0 +100,0 @@ callback(err, 0, "");

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

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

"devDependencies": {
"@types/jest": "*",
"@types/node": "*",
"@types/request": "*",
"jest": "*",
"ts-jest": "*",
"tslint": "*",
"typescript": "*"
"@types/jest": "^27.4.1",
"@types/node": "^17.0.23",
"@types/request": "^2.48.8",
"jest": "^27.5.1",
"ts-jest": "^27.1.4",
"tslint": "^6.1.3",
"typescript": "^4.6.3",
"dotenv": "16.0.0"
},

@@ -39,0 +40,0 @@ "jest": {

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