Comparing version 2.0.2 to 2.0.3
@@ -154,20 +154,12 @@ /** | ||
/** | ||
* Defines the callback for the `_postRequest` function. | ||
* | ||
* @param err - Returns the error message returned from the server. | ||
* @param status - Returns the HTTP status code. | ||
* @param body - Returns the response body. | ||
*/ | ||
declare type PostRequestCallback = (err: string | null, status: number, body: string) => void; | ||
/** | ||
* Represents the Akismet API client. | ||
*/ | ||
export declare class AkismetClient { | ||
_blog: string; | ||
_apiKey: string; | ||
_host: string; | ||
_endPoint: string; | ||
_port: number; | ||
_userAgent: string; | ||
_charSet: string; | ||
private _blog; | ||
private _apiKey; | ||
private _host; | ||
private _endPoint; | ||
private _port; | ||
private _userAgent; | ||
private _charSet; | ||
/** | ||
@@ -198,3 +190,3 @@ * Initialize the Akismet client. | ||
*/ | ||
checkSpam(options: AkismetParameters, callback: CheckCommentCallback): void; | ||
private checkSpam; | ||
/** | ||
@@ -217,5 +209,3 @@ * Marks a comment as spam and reports to the Akismet API. | ||
*/ | ||
_postRequest(hostname: string, path: string, query: { | ||
[key: string]: any; | ||
}, callback: PostRequestCallback): void; | ||
private _postRequest; | ||
} | ||
@@ -222,0 +212,0 @@ /** |
{ | ||
"name": "akismet", | ||
"version": "2.0.2", | ||
"version": "2.0.3", | ||
"keywords": [ | ||
@@ -5,0 +5,0 @@ "akismet", |
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
15598
339