bakit 2.0.0-alpha.18 → 2.0.0-alpha.19

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.
package/dist/index.js CHANGED
@@ -1,9 +1,8 @@
1
1
  import { register } from 'module';
2
- import { posix, resolve, relative, sep, join, dirname } from 'path';
3
- import { pathToFileURL } from 'url';
4
2
  import { MessageChannel } from 'worker_threads';
5
3
  import { GatewayIntentBits, Events, Client, Collection, IntentsBitField, SlashCommandBuilder, SlashCommandStringOption, SlashCommandNumberOption, SlashCommandUserOption, ChatInputCommandInteraction, Message } from 'discord.js';
6
4
  import { inspect } from 'util';
5
+ import { posix, relative, sep, join, dirname } from 'path';
7
6
  import glob from 'tiny-glob';
8
7
  import z4 from 'zod';
9
8
  import { existsSync, mkdirSync, rmSync } from 'fs';
@@ -30,7 +29,7 @@ function unload(module) {
30
29
  }
31
30
  var port1, port2, hookPath, init_register = __esm({
32
31
  "src/loader/register.ts"() {
33
- (({ port1, port2 } = new MessageChannel())), hookPath = pathToFileURL(resolve("./loader.js")).href;
32
+ (({ port1, port2 } = new MessageChannel())), hookPath = new URL("./hooks.js", import.meta.url).href;
34
33
  register(hookPath, import.meta.url, {
35
34
  data: { port: port1 },
36
35
  transferList: [port1]