Socket
Socket
Sign inDemoInstall

@moderation-api/sdk

Package Overview
Dependencies
11
Maintainers
1
Versions
7
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 0.0.1 to 0.0.2

types/.DS_Store

13

cjs/index.js

@@ -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) {

4

package.json
{
"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",

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc