Comparing version 2.0.6 to 2.0.7
"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": { |
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
16990
8
7
346