@moderation-api/sdk
Advanced tools
Comparing version 0.0.1 to 0.0.2
@@ -6,4 +6,14 @@ "use strict"; | ||
const generated_1 = require("./generated"); | ||
/** | ||
* A client for the Moderation API. | ||
*/ | ||
class ModerationAPI { | ||
/** | ||
* Creates a new ModerationAPI instance. | ||
* @param key - The API key. | ||
*/ | ||
constructor({ key }) { | ||
/** | ||
* The webhook methods. | ||
*/ | ||
this.webhooks = { | ||
@@ -31,2 +41,5 @@ constructEvent: handleWebhookSigning, | ||
} | ||
/** | ||
* The webhook types. | ||
*/ | ||
var WebhookType; | ||
@@ -33,0 +46,0 @@ (function (WebhookType) { |
import * as crypto from 'crypto'; | ||
import { ModerationAPI as ModerationAPIClient } from './generated'; | ||
/** | ||
* A client for the Moderation API. | ||
*/ | ||
class ModerationAPI { | ||
/** | ||
* Creates a new ModerationAPI instance. | ||
* @param key - The API key. | ||
*/ | ||
constructor({ key }) { | ||
/** | ||
* The webhook methods. | ||
*/ | ||
this.webhooks = { | ||
@@ -27,2 +37,5 @@ constructEvent: handleWebhookSigning, | ||
} | ||
/** | ||
* The webhook types. | ||
*/ | ||
export var WebhookType; | ||
@@ -29,0 +42,0 @@ (function (WebhookType) { |
{ | ||
"name": "@moderation-api/sdk", | ||
"version": "0.0.1", | ||
"version": "0.0.2", | ||
"private": false, | ||
"description": "Automatically moderate your content with Moderation API", | ||
"main": "cjs/index.js", | ||
"types": "types/index.d.ts", | ||
"author": "Moderation API <info@moderationapi.com> (https://moderationapi.com)", | ||
@@ -62,2 +63,3 @@ "repository": {}, | ||
"exports": { | ||
"types": "./types/index.d.ts", | ||
"default": { | ||
@@ -64,0 +66,0 @@ "import": "./esm/index.js", |
111869
44
2817