diskernel 0.1.22 → 0.1.23

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,5 +1,5 @@
1
1
  import { Client } from "discord.js";
2
- import { Core as core } from "#types";
2
+ import { Core as core } from "../types/index.js";
3
3
  export declare class Core extends core {
4
4
  private static client;
5
5
  static get Client(): Client | undefined;
@@ -1 +1 @@
1
- {"version":3,"file":"client.d.ts","sourceRoot":"","sources":["../../src/core/client.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,EAAE,MAAM,YAAY,CAAC;AAMpC,OAAO,EAAE,IAAI,IAAI,IAAI,EAAE,MAAM,QAAQ,CAAC;AAWtC,qBAAa,IAAK,SAAQ,IAAI;IAC5B,OAAO,CAAC,MAAM,CAAC,MAAM,CAAiC;IAEtD,WAAkB,MAAM,IAAI,MAAM,GAAG,SAAS,CAM7C;WAEmB,KAAK,IAAI,OAAO,CAAC,IAAI,CAAC;WAoD5B,IAAI,IAAI,IAAI;CAS3B"}
1
+ {"version":3,"file":"client.d.ts","sourceRoot":"","sources":["../../src/core/client.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,EAAE,MAAM,YAAY,CAAC;AAMpC,OAAO,EAAE,IAAI,IAAI,IAAI,EAAE,MAAM,mBAAmB,CAAC;AAWjD,qBAAa,IAAK,SAAQ,IAAI;IAC5B,OAAO,CAAC,MAAM,CAAC,MAAM,CAAiC;IAEtD,WAAkB,MAAM,IAAI,MAAM,GAAG,SAAS,CAM7C;WAEmB,KAAK,IAAI,OAAO,CAAC,IAAI,CAAC;WAoD5B,IAAI,IAAI,IAAI;CAS3B"}
@@ -4,7 +4,7 @@ import { getCustomCoreLogger, Log } from "./logger.js";
4
4
  import { ErrorHandler } from "./error.js";
5
5
  import { Command } from "./command.js";
6
6
  import { Event } from "./event.js";
7
- import { Core as core } from "#types";
7
+ import { Core as core } from "../types/index.js";
8
8
  class DiskernelError extends Error {
9
9
  constructor(message, options) {
10
10
  super(message, options);
@@ -1,4 +1,4 @@
1
- import { Command as command } from "#types";
1
+ import { Command as command } from "../types/index.js";
2
2
  export declare class Command extends command {
3
3
  private static client?;
4
4
  private static commands;
@@ -1 +1 @@
1
- {"version":3,"file":"command.d.ts","sourceRoot":"","sources":["../../src/core/command.ts"],"names":[],"mappings":"AAqBA,OAAO,EAML,OAAO,IAAI,OAAO,EAGnB,MAAM,QAAQ,CAAC;AAIhB,qBAAa,OAAQ,SAAQ,OAAO;IAClC,OAAO,CAAC,MAAM,CAAC,MAAM,CAAC,CAAS;IAC/B,OAAO,CAAC,MAAM,CAAC,QAAQ,CAAqB;IAC5C,OAAO,CAAC,MAAM,CAAC,OAAO,CAA0D;IAChF,OAAO,CAAC,MAAM,CAAC,WAAW,CAIjB;IACT,OAAO,CAAC,MAAM,CAAC,QAAQ,CAGnB;WAEgB,UAAU,IAAI,OAAO,CAAC,IAAI,CAAC;mBAiC1B,kBAAkB;IAsGvC,OAAO,CAAC,MAAM,CAAC,mBAAmB;IA0DlC,OAAO,CAAC,MAAM,CAAC,kBAAkB;IAcjC,OAAO,CAAC,MAAM,CAAC,aAAa;mBAgEP,mBAAmB;mBAqBnB,gBAAgB;IAoCrC,OAAO,CAAC,MAAM,CAAC,gBAAgB;IAkC/B,OAAO,CAAC,MAAM,CAAC,sBAAsB;IA4BrC,OAAO,CAAC,MAAM,CAAC,gBAAgB;mBA4BV,oBAAoB;mBA4BpB,qBAAqB;mBA0BrB,eAAe;mBA4Bf,cAAc;CAmHpC"}
1
+ {"version":3,"file":"command.d.ts","sourceRoot":"","sources":["../../src/core/command.ts"],"names":[],"mappings":"AAqBA,OAAO,EAML,OAAO,IAAI,OAAO,EAGnB,MAAM,mBAAmB,CAAC;AAI3B,qBAAa,OAAQ,SAAQ,OAAO;IAClC,OAAO,CAAC,MAAM,CAAC,MAAM,CAAC,CAAS;IAC/B,OAAO,CAAC,MAAM,CAAC,QAAQ,CAAqB;IAC5C,OAAO,CAAC,MAAM,CAAC,OAAO,CAA0D;IAChF,OAAO,CAAC,MAAM,CAAC,WAAW,CAIjB;IACT,OAAO,CAAC,MAAM,CAAC,QAAQ,CAGnB;WAEgB,UAAU,IAAI,OAAO,CAAC,IAAI,CAAC;mBAiC1B,kBAAkB;IAsGvC,OAAO,CAAC,MAAM,CAAC,mBAAmB;IA0DlC,OAAO,CAAC,MAAM,CAAC,kBAAkB;IAcjC,OAAO,CAAC,MAAM,CAAC,aAAa;mBAgEP,mBAAmB;mBAqBnB,gBAAgB;IAoCrC,OAAO,CAAC,MAAM,CAAC,gBAAgB;IAkC/B,OAAO,CAAC,MAAM,CAAC,sBAAsB;IA4BrC,OAAO,CAAC,MAAM,CAAC,gBAAgB;mBA4BV,oBAAoB;mBA4BpB,qBAAqB;mBA0BrB,eAAe;mBA4Bf,cAAc;CAmHpC"}
@@ -1,10 +1,10 @@
1
1
  import fs from "fs";
2
2
  import path from "path";
3
- import { ApplicationCommandType, AutocompleteInteraction, ButtonInteraction, ChatInputCommandInteraction, Client, ContextMenuCommandBuilder, ContextMenuCommandInteraction, EmbedBuilder, ModalSubmitInteraction, SlashCommandBuilder, SlashCommandSubcommandBuilder, StringSelectMenuInteraction, } from "discord.js";
3
+ import { ApplicationCommandType, AutocompleteInteraction, ButtonInteraction, ChatInputCommandInteraction, ContextMenuCommandBuilder, EmbedBuilder, ModalSubmitInteraction, SlashCommandBuilder, SlashCommandSubcommandBuilder, StringSelectMenuInteraction, } from "discord.js";
4
4
  import { Core } from "./client.js";
5
5
  import { Config } from "./config.js";
6
6
  import { getCustomCoreLogger } from "./logger.js";
7
- import { SlashCommandT, Command as command, BaseAction, BaseCommand } from "#types";
7
+ import { SlashCommandT, Command as command, BaseAction, BaseCommand } from "../types/index.js";
8
8
  const Logger = getCustomCoreLogger("commands");
9
9
  export class Command extends command {
10
10
  static client;
@@ -1,4 +1,4 @@
1
- import { type ConfigT, Config as config } from "#types";
1
+ import { type ConfigT, Config as config } from "../types/index.js";
2
2
  export declare class Config extends config {
3
3
  protected static instance: ConfigT;
4
4
  private static validateConfig;
@@ -1 +1 @@
1
- {"version":3,"file":"config.d.ts","sourceRoot":"","sources":["../../src/core/config.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,KAAK,OAAO,EAAe,MAAM,IAAI,MAAM,EAAE,MAAM,QAAQ,CAAC;AAUrE,qBAAa,MAAO,SAAQ,MAAM;IAChC,SAAS,CAAC,MAAM,CAAC,QAAQ,EAAE,OAAO,CAAC;IAEnC,OAAO,CAAC,MAAM,CAAC,cAAc;gBA2EjB,MAAM,EAAE,OAAO;WAUb,GAAG,CAAC,CAAC,SAAS,MAAM,OAAO,EAAE,GAAG,EAAE,CAAC,GAAG,OAAO,CAAC,CAAC,CAAC;WAShD,aAAa,IAAI,OAAO;CAGvC"}
1
+ {"version":3,"file":"config.d.ts","sourceRoot":"","sources":["../../src/core/config.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,KAAK,OAAO,EAAe,MAAM,IAAI,MAAM,EAAE,MAAM,mBAAmB,CAAC;AAUhF,qBAAa,MAAO,SAAQ,MAAM;IAChC,SAAS,CAAC,MAAM,CAAC,QAAQ,EAAE,OAAO,CAAC;IAEnC,OAAO,CAAC,MAAM,CAAC,cAAc;gBA2EjB,MAAM,EAAE,OAAO;WAUb,GAAG,CAAC,CAAC,SAAS,MAAM,OAAO,EAAE,GAAG,EAAE,CAAC,GAAG,OAAO,CAAC,CAAC,CAAC;WAShD,aAAa,IAAI,OAAO;CAGvC"}
@@ -1,5 +1,5 @@
1
1
  import { GatewayIntentBits } from "discord.js";
2
- import { Config as config } from "#types";
2
+ import { Config as config } from "../types/index.js";
3
3
  import { Log } from "./logger.js";
4
4
  class EnvConfigError extends Error {
5
5
  constructor(message, options) {
@@ -1,4 +1,4 @@
1
- import { ErrorHandler as errorhandler } from "#types";
1
+ import { ErrorHandler as errorhandler } from "../types/index.js";
2
2
  export declare class ErrorHandler extends errorhandler {
3
3
  private static uncaughtException;
4
4
  private static unhandledRejection;
@@ -1 +1 @@
1
- {"version":3,"file":"error.d.ts","sourceRoot":"","sources":["../../src/core/error.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,YAAY,IAAI,YAAY,EAAE,MAAM,QAAQ,CAAC;AAItD,qBAAa,YAAa,SAAQ,YAAY;IAW5C,OAAO,CAAC,MAAM,CAAC,iBAAiB;IAOhC,OAAO,CAAC,MAAM,CAAC,kBAAkB;IAMjC,OAAO,CAAC,MAAM,CAAC,eAAe;WAehB,KAAK,CAAC,MAAM,CAAC,EAAE,MAAM,EAAE,KAAK,CAAC,EAAE,KAAK,GAAG,IAAI;CAM1D"}
1
+ {"version":3,"file":"error.d.ts","sourceRoot":"","sources":["../../src/core/error.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,YAAY,IAAI,YAAY,EAAE,MAAM,mBAAmB,CAAC;AAIjE,qBAAa,YAAa,SAAQ,YAAY;IAW5C,OAAO,CAAC,MAAM,CAAC,iBAAiB;IAOhC,OAAO,CAAC,MAAM,CAAC,kBAAkB;IAMjC,OAAO,CAAC,MAAM,CAAC,eAAe;WAehB,KAAK,CAAC,MAAM,CAAC,EAAE,MAAM,EAAE,KAAK,CAAC,EAAE,KAAK,GAAG,IAAI;CAM1D"}
@@ -1,6 +1,6 @@
1
1
  import { Core } from "./client.js";
2
2
  import { getCustomCoreLogger } from "./logger.js";
3
- import { ErrorHandler as errorhandler } from "#types";
3
+ import { ErrorHandler as errorhandler } from "../types/index.js";
4
4
  const Logger = getCustomCoreLogger("errorHandler");
5
5
  export class ErrorHandler extends errorhandler {
6
6
  static {
@@ -1,5 +1,5 @@
1
1
  import type { Client } from "discord.js";
2
- import { Event as event } from "#types";
2
+ import { Event as event } from "../types/index.js";
3
3
  export declare class Event extends event {
4
4
  private static events;
5
5
  static initalize(client: Client): Promise<void>;
@@ -1 +1 @@
1
- {"version":3,"file":"event.d.ts","sourceRoot":"","sources":["../../src/core/event.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,MAAM,EAAgB,MAAM,YAAY,CAAC;AAEvD,OAAO,EAAE,KAAK,IAAI,KAAK,EAAe,MAAM,QAAQ,CAAC;AAMrD,qBAAa,KAAM,SAAQ,KAAK;IAC9B,OAAO,CAAC,MAAM,CAAC,MAAM,CAAgB;WAEjB,SAAS,CAAC,MAAM,EAAE,MAAM,GAAG,OAAO,CAAC,IAAI,CAAC;mBAKvC,gBAAgB;IA2CrC,OAAO,CAAC,MAAM,CAAC,cAAc;CAiB9B"}
1
+ {"version":3,"file":"event.d.ts","sourceRoot":"","sources":["../../src/core/event.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,MAAM,EAAgB,MAAM,YAAY,CAAC;AAEvD,OAAO,EAAE,KAAK,IAAI,KAAK,EAAe,MAAM,mBAAmB,CAAC;AAMhE,qBAAa,KAAM,SAAQ,KAAK;IAC9B,OAAO,CAAC,MAAM,CAAC,MAAM,CAAgB;WAEjB,SAAS,CAAC,MAAM,EAAE,MAAM,GAAG,OAAO,CAAC,IAAI,CAAC;mBAKvC,gBAAgB;IA2CrC,OAAO,CAAC,MAAM,CAAC,cAAc;CAiB9B"}
@@ -1,7 +1,7 @@
1
1
  import path from "path";
2
2
  import fs from "fs";
3
3
  import { getCustomCoreLogger } from "./logger.js";
4
- import { Event as event } from "#types";
4
+ import { Event as event } from "../types/index.js";
5
5
  const Logger = getCustomCoreLogger("events");
6
6
  export class Event extends event {
7
7
  static events = [];
@@ -1,5 +1,5 @@
1
1
  import { getLogger, type Logger as LoggerT } from "@logtape/logtape";
2
- import { Log as log, type Logging } from "#types";
2
+ import { Log as log, type Logging } from "../types/index.js";
3
3
  export declare class Log extends log {
4
4
  private static isInitalized;
5
5
  static readonly LOGGER_READY: symbol;
@@ -1 +1 @@
1
- {"version":3,"file":"logger.d.ts","sourceRoot":"","sources":["../../src/core/logger.ts"],"names":[],"mappings":"AAEA,OAAO,EAIL,SAAS,EACT,KAAK,MAAM,IAAI,OAAO,EACvB,MAAM,kBAAkB,CA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,CAAC,uBAAuB;WAQlB,mBAAmB,CAAC,OAAO,CAAC,EAAE,OAAO,GAAG,OAAO,CAAC,IAAI,CAAC;IAqEzE,WAAkB,GAAG,IAAI,UAAU,CAAC,OAAO,SAAS,CAAC,CAEpD;WAGa,QAAQ,CAAC,OAAO,EAAE,OAAO,CAAC,IAAI,CAAC,GAAG,IAAI;WAItC,QAAQ,IAAI,OAAO,CAAC,IAAI,CAAC;WAInB,SAAS,IAAI,OAAO,CAAC,IAAI,CAAC;CAG/C;AAED,eAAO,MAAM,MAAM,EAAE,CAAC,GAAG,CAAC,EAAE,MAAM,GAAG,MAAM,EAAE,KAAK,OAEjD,CAAC;AACF,eAAO,MAAM,UAAU,EAAE,OAAkC,CAAC;AAC5D,wBAAgB,mBAAmB,CAAC,QAAQ,EAAE,MAAM,GAAG,MAAM,EAAE,WAE9D"}
@@ -2,7 +2,7 @@ import fs from "fs";
2
2
  import path from "path";
3
3
  import { configure, getConsoleSink, getAnsiColorFormatter, getLogger, } from "@logtape/logtape";
4
4
  import { getRotatingFileSink } from "@logtape/file";
5
- import { Config, Log as log } from "#types";
5
+ import { Config, Log as log } from "../types/index.js";
6
6
  export class Log extends log {
7
7
  static isInitalized = false;
8
8
  static LOGGER_READY = Symbol.for("diskernel.logger.ready");
@@ -1 +1 @@
1
- import { GatewayIntentBits } from "discord.js";
1
+ export {};
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "diskernel",
3
- "version": "0.1.22",
3
+ "version": "0.1.23",
4
4
  "description": "",
5
5
  "type": "module",
6
6
  "keywords": [],