From fd2afa0375a8c7580ff854795601a26516443b5c Mon Sep 17 00:00:00 2001 From: Jacob Nguyen <76754747+jacoobes@users.noreply.github.com> Date: Fri, 15 Dec 2023 15:44:36 -0600 Subject: [PATCH] feat: better way to add dependencies --- package.json | 2 +- src/handlers/event-utils.ts | 3 +-- src/types/core-modules.ts | 2 +- 3 files changed, 3 insertions(+), 4 deletions(-) diff --git a/package.json b/package.json index 25d51027..cb8c3b66 100644 --- a/package.json +++ b/package.json @@ -1,7 +1,7 @@ { "name": "@sern/handler", "packageManager": "yarn@3.5.0", - "version": "3.1.0", + "version": "3.2.0", "description": "A complete, customizable, typesafe, & reactive framework for discord bots.", "main": "./dist/index.js", "module": "./dist/index.mjs", diff --git a/src/handlers/event-utils.ts b/src/handlers/event-utils.ts index b039a80a..c4935cb6 100644 --- a/src/handlers/event-utils.ts +++ b/src/handlers/event-utils.ts @@ -23,7 +23,7 @@ import { VoidResult, useContainerRaw, } from '../core/_internal'; -import { CommandError, Emitter, ErrorHandling, Logging, ModuleManager } from '../core'; +import { Emitter, ErrorHandling, Logging, ModuleManager } from '../core'; import { contextArgs, createDispatcher } from './dispatchers'; import { ObservableInput, pipe } from 'rxjs'; import { SernEmitter } from '../core'; @@ -32,7 +32,6 @@ import type { AnyFunction, Awaitable } from '../types/utility'; import type { ControlPlugin } from '../types/core-plugin'; import type { AnyModule, CommandModule, Module, Processed } from '../types/core-modules'; import type { ImportPayload } from '../types/core'; -import assert from 'node:assert'; function createGenericHandler( source: Observable, diff --git a/src/types/core-modules.ts b/src/types/core-modules.ts index 0373596f..e53320a4 100644 --- a/src/types/core-modules.ts +++ b/src/types/core-modules.ts @@ -17,7 +17,7 @@ import type { } from 'discord.js'; import { CommandType, Context, EventType } from '../../src/core'; import { AnyCommandPlugin, AnyEventPlugin, ControlPlugin, InitPlugin } from './core-plugin'; -import { Awaitable, Args, SlashOptions, SernEventsMapping, AnyFunction } from './utility'; +import { Awaitable, Args, SlashOptions, SernEventsMapping } from './utility';