Skip to content
Permalink
Browse files

Updated the documentation

  • Loading branch information...
cedx committed Jun 11, 2019
1 parent 6ae04a7 commit 9f0af2cb3ed70a1e5c4bd19a422b3c49c8e88adc
Showing with 9 additions and 5 deletions.
  1. +1 −1 lib/http/browser_client.js
  2. +2 −2 lib/http/{client.js → mixins.js}
  3. +6 −2 lib/http/node_client.js
@@ -1,5 +1,5 @@
import {packageVersion} from '../version.g.js';
import {ClientConstructor, ClientPrototype} from './client.js';
import {ClientConstructor, ClientPrototype} from './mixins.js';
import {ClientError} from './error.js';
import {RequestEvent, ResponseEvent} from './events.js';
import {NodeClient} from './node_client.js';
@@ -1,6 +1,6 @@
/**
* Provides static properties for {@link https://akismet.com|Akismet} clients.
* @type {object}
* @mixin
*/
export const ClientConstructor = {

@@ -23,7 +23,7 @@ export const ClientConstructor = {

/**
* Provides the instance methods for {@link https://akismet.com|Akismet} clients.
* @type {object}
* @mixin
*/
export const ClientPrototype = {

@@ -1,7 +1,7 @@
import EventEmitter from 'events';
import fetch from 'node-fetch';
import {packageVersion} from '../version.g.js';
import {ClientConstructor, ClientPrototype} from './client.js';
import {ClientConstructor, ClientPrototype} from './mixins.js';
import {ClientError} from './error.js';
import {RequestEvent, ResponseEvent} from './events.js';

@@ -13,7 +13,11 @@ import {RequestEvent, ResponseEvent} from './events.js';
* @property {string} [userAgent] The user agent string to use when making requests.
*/

/** Submits comments to the {@link https://akismet.com|Akismet} service. */
/**
* Submits comments to the {@link https://akismet.com|Akismet} service.
* @mixes ClientConstructor
* @mixes ClientPrototype
*/
export class NodeClient extends EventEmitter {

/**

0 comments on commit 9f0af2c

Please sign in to comment.
You can’t perform that action at this time.