reciple 10.0.42 → 10.0.43

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,4 +1,4 @@
1
- //#region \0@oxc-project+runtime@0.115.0/helpers/decorate.js
1
+ //#region \0@oxc-project+runtime@0.122.0/helpers/decorate.js
2
2
  function __decorate(decorators, target, key, desc) {
3
3
  var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
4
4
  if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
@@ -1,7 +1,7 @@
1
+ import { RolldownPlugin } from "../../node_modules/rolldown/dist/shared/define-config-BkRKRADp.mjs";
1
2
  import { Logger } from "@prtty/print";
2
3
  import { Command } from "commander";
3
4
  import { SpinnerOptions, spinner } from "@clack/prompts";
4
- import { RolldownPlugin } from "rolldown";
5
5
 
6
6
  //#region src/classes/cli/CLI.d.ts
7
7
  declare class CLI {
@@ -94,7 +94,7 @@ var CLI = class {
94
94
  (function(_CLI) {
95
95
  _CLI.root = path.join(path.dirname(fileURLToPath(import.meta.url)), "../../../");
96
96
  _CLI.bin = path.join(CLI.root, "dist/bin/reciple.mjs");
97
- _CLI.version = "10.0.42";
97
+ _CLI.version = "10.0.43";
98
98
  function stringifyFlags(flags, command, ignored = []) {
99
99
  let arr = [];
100
100
  for (const [key, value] of Object.entries(flags)) {
@@ -1,6 +1,6 @@
1
1
  import { BaseModule } from "../modules/BaseModule.mjs";
2
2
  import { ModuleType } from "../../helpers/constants.mjs";
3
- import { __decorate } from "../../_virtual/_@oxc-project_runtime@0.115.0/helpers/decorate.mjs";
3
+ import { __decorate } from "../../_virtual/_@oxc-project_runtime@0.122.0/helpers/decorate.mjs";
4
4
  import { BaseManager, RecipleError } from "@reciple/core";
5
5
  import { mix } from "ts-mixer";
6
6
  import { EventEmitter } from "node:events";
@@ -1,6 +1,6 @@
1
1
  import { BaseModule } from "./BaseModule.mjs";
2
2
  import { ModuleType } from "../../helpers/constants.mjs";
3
- import { __decorate } from "../../_virtual/_@oxc-project_runtime@0.115.0/helpers/decorate.mjs";
3
+ import { __decorate } from "../../_virtual/_@oxc-project_runtime@0.122.0/helpers/decorate.mjs";
4
4
  import { CommandPostcondition } from "@reciple/core";
5
5
  import { hasMixin, mix } from "ts-mixer";
6
6
 
@@ -1,6 +1,6 @@
1
1
  import { BaseModule } from "./BaseModule.mjs";
2
2
  import { ModuleType } from "../../helpers/constants.mjs";
3
- import { __decorate } from "../../_virtual/_@oxc-project_runtime@0.115.0/helpers/decorate.mjs";
3
+ import { __decorate } from "../../_virtual/_@oxc-project_runtime@0.122.0/helpers/decorate.mjs";
4
4
  import { CommandPrecondition } from "@reciple/core";
5
5
  import { hasMixin, mix } from "ts-mixer";
6
6
 
@@ -1,6 +1,6 @@
1
1
  import { BaseModule } from "../BaseModule.mjs";
2
2
  import { ModuleType } from "../../../helpers/constants.mjs";
3
- import { __decorate } from "../../../_virtual/_@oxc-project_runtime@0.115.0/helpers/decorate.mjs";
3
+ import { __decorate } from "../../../_virtual/_@oxc-project_runtime@0.122.0/helpers/decorate.mjs";
4
4
  import { ContextMenuCommand } from "@reciple/core";
5
5
  import { DiscordSnowflake } from "@sapphire/snowflake";
6
6
  import { hasMixin, mix } from "ts-mixer";
@@ -1,6 +1,6 @@
1
1
  import { BaseModule } from "../BaseModule.mjs";
2
2
  import { ModuleType } from "../../../helpers/constants.mjs";
3
- import { __decorate } from "../../../_virtual/_@oxc-project_runtime@0.115.0/helpers/decorate.mjs";
3
+ import { __decorate } from "../../../_virtual/_@oxc-project_runtime@0.122.0/helpers/decorate.mjs";
4
4
  import { MessageCommand, MessageCommandBuilder } from "@reciple/core";
5
5
  import { DiscordSnowflake } from "@sapphire/snowflake";
6
6
  import { hasMixin, mix } from "ts-mixer";
@@ -1,6 +1,6 @@
1
1
  import { BaseModule } from "../BaseModule.mjs";
2
2
  import { ModuleType } from "../../../helpers/constants.mjs";
3
- import { __decorate } from "../../../_virtual/_@oxc-project_runtime@0.115.0/helpers/decorate.mjs";
3
+ import { __decorate } from "../../../_virtual/_@oxc-project_runtime@0.122.0/helpers/decorate.mjs";
4
4
  import { SlashCommand } from "@reciple/core";
5
5
  import { DiscordSnowflake } from "@sapphire/snowflake";
6
6
  import { hasMixin, mix } from "ts-mixer";
@@ -1,6 +1,5 @@
1
1
  import { BaseModule } from "../BaseModule.mjs";
2
2
  import { ModuleType } from "../../../helpers/constants.mjs";
3
- import { Awaitable } from "discord.js";
4
3
  import { EventEmitter } from "node:events";
5
4
 
6
5
  //#region src/classes/modules/events/EventModule.d.ts
@@ -9,7 +8,7 @@ declare abstract class EventModule<Events extends EventModule.EventMap = EventMo
9
8
  abstract emitter: EventEmitter;
10
9
  abstract event: Event;
11
10
  once?: boolean;
12
- abstract onEvent(...args: Events[Event]): Awaitable<void>;
11
+ abstract onEvent(...args: Events[Event]): Promise<void> | void;
13
12
  static from(data: EventModule.Resolvable): EventModule;
14
13
  }
15
14
  declare namespace EventModule {
@@ -20,7 +19,7 @@ declare namespace EventModule {
20
19
  emitter: EventEmitter;
21
20
  event: Event;
22
21
  once?: boolean;
23
- onEvent: (...args: Events[Event]) => Awaitable<void>;
22
+ onEvent: (...args: Events[Event]) => Promise<void> | void;
24
23
  }
25
24
  }
26
25
  //#endregion
@@ -1 +1 @@
1
- {"version":3,"file":"EventModule.mjs","names":[],"sources":["../../../../src/classes/modules/events/EventModule.ts"],"sourcesContent":["import { EventEmitter } from 'node:events';\nimport { BaseModule } from '../BaseModule.js';\nimport { ModuleType } from '../../../helpers/constants.js';\nimport type { Awaitable } from 'discord.js';\nimport { hasMixin } from 'ts-mixer';\n\nexport abstract class EventModule<Events extends EventModule.EventMap = EventModule.EventMap, Event extends keyof Events = keyof Events> extends BaseModule implements EventModule.Data<Events, Event> {\n public readonly moduleType: ModuleType.Event = ModuleType.Event;\n public abstract emitter: EventEmitter;\n public abstract event: Event;\n\n public once?: boolean = false;\n\n public abstract onEvent(...args: Events[Event]): Awaitable<void>;\n\n public static from(data: EventModule.Resolvable): EventModule {\n if (hasMixin(data, EventModule)) return data;\n\n const ModuleInstance = class extends EventModule {\n emitter = data.emitter;\n event = data.event;\n once = data.once;\n onEvent = data.onEvent;\n };\n\n Object.assign(ModuleInstance.prototype, data);\n return new ModuleInstance();\n }\n}\n\nexport namespace EventModule {\n export type EventMap = Record<string|symbol, any>;\n export type Resolvable<Events extends EventModule.EventMap = EventModule.EventMap, Event extends keyof Events = keyof Events> = EventModule<Events, Event>|EventModule.Data<Events, Event>;\n\n export interface Data<Events extends EventModule.EventMap = EventModule.EventMap, Event extends keyof Events = keyof Events> extends Omit<BaseModule.Data, 'moduleType'> {\n moduleType: ModuleType.Event;\n emitter: EventEmitter;\n event: Event;\n once?: boolean;\n onEvent: (...args: Events[Event]) => Awaitable<void>;\n }\n}\n"],"mappings":";;;;;;AAMA,IAAsB,cAAtB,MAAsB,oBAA2H,WAAsD;CACnM,AAAgB,aAA+B,WAAW;CAI1D,AAAO,OAAiB;CAIxB,OAAc,KAAK,MAA2C;AAC1D,MAAI,SAAS,MAAM,YAAY,CAAE,QAAO;EAExC,MAAM,iBAAiB,cAAc,YAAY;GAC7C,UAAU,KAAK;GACf,QAAQ,KAAK;GACb,OAAO,KAAK;GACZ,UAAU,KAAK;;AAGnB,SAAO,OAAO,eAAe,WAAW,KAAK;AAC7C,SAAO,IAAI,gBAAgB"}
1
+ {"version":3,"file":"EventModule.mjs","names":[],"sources":["../../../../src/classes/modules/events/EventModule.ts"],"sourcesContent":["import { EventEmitter } from 'node:events';\nimport { BaseModule } from '../BaseModule.js';\nimport { ModuleType } from '../../../helpers/constants.js';\nimport { hasMixin } from 'ts-mixer';\n\nexport abstract class EventModule<Events extends EventModule.EventMap = EventModule.EventMap, Event extends keyof Events = keyof Events> extends BaseModule implements EventModule.Data<Events, Event> {\n public readonly moduleType: ModuleType.Event = ModuleType.Event;\n public abstract emitter: EventEmitter;\n public abstract event: Event;\n\n public once?: boolean = false;\n\n public abstract onEvent(...args: Events[Event]): Promise<void>|void;\n\n public static from(data: EventModule.Resolvable): EventModule {\n if (hasMixin(data, EventModule)) return data;\n\n const ModuleInstance = class extends EventModule {\n emitter = data.emitter;\n event = data.event;\n once = data.once;\n onEvent = data.onEvent;\n };\n\n Object.assign(ModuleInstance.prototype, data);\n return new ModuleInstance();\n }\n}\n\nexport namespace EventModule {\n export type EventMap = Record<string|symbol, any>;\n export type Resolvable<Events extends EventModule.EventMap = EventModule.EventMap, Event extends keyof Events = keyof Events> = EventModule<Events, Event>|EventModule.Data<Events, Event>;\n\n export interface Data<Events extends EventModule.EventMap = EventModule.EventMap, Event extends keyof Events = keyof Events> extends Omit<BaseModule.Data, 'moduleType'> {\n moduleType: ModuleType.Event;\n emitter: EventEmitter;\n event: Event;\n once?: boolean;\n onEvent: (...args: Events[Event]) => Promise<void>|void;\n }\n}\n"],"mappings":";;;;;;AAKA,IAAsB,cAAtB,MAAsB,oBAA2H,WAAsD;CACnM,AAAgB,aAA+B,WAAW;CAI1D,AAAO,OAAiB;CAIxB,OAAc,KAAK,MAA2C;AAC1D,MAAI,SAAS,MAAM,YAAY,CAAE,QAAO;EAExC,MAAM,iBAAiB,cAAc,YAAY;GAC7C,UAAU,KAAK;GACf,QAAQ,KAAK;GACb,OAAO,KAAK;GACZ,UAAU,KAAK;;AAGnB,SAAO,OAAO,eAAe,WAAW,KAAK;AAC7C,SAAO,IAAI,gBAAgB"}
@@ -1,5 +1,6 @@
1
1
  import { ModuleType } from "../../helpers/constants.mjs";
2
2
  import { AnyCommandModuleData } from "../../helpers/types.mjs";
3
+ import "../../index.mjs";
3
4
  import * as _reciple_core0 from "@reciple/core";
4
5
  import { Validator } from "@reciple/core";
5
6
  import * as _sapphire_shapeshift0 from "@sapphire/shapeshift";
@@ -74,6 +75,8 @@ declare class CommandModuleValidator extends Validator {
74
75
  execute: Function;
75
76
  }>>;
76
77
  static resolvable: _sapphire_shapeshift0.UnionValidator<_sapphire_shapeshift0.UndefinedToOptional<{
78
+ toJSON: Function;
79
+ }> | _sapphire_shapeshift0.UndefinedToOptional<{
77
80
  id: string | undefined;
78
81
  moduleType: ModuleType | undefined;
79
82
  onEnable: Function | undefined;
@@ -106,8 +109,6 @@ declare class CommandModuleValidator extends Validator {
106
109
  disabledPreconditions: string[] | undefined;
107
110
  disabledPostconditions: string[] | undefined;
108
111
  execute: Function;
109
- }> | _sapphire_shapeshift0.UndefinedToOptional<{
110
- toJSON: Function;
111
112
  }>>;
112
113
  static isValid(value: unknown): asserts value is AnyCommandModuleData;
113
114
  }
@@ -1,5 +1,6 @@
1
1
  import { ModuleType } from "../../helpers/constants.mjs";
2
2
  import { EventModule } from "../modules/events/EventModule.mjs";
3
+ import "../../index.mjs";
3
4
  import { Validator } from "@reciple/core";
4
5
  import { EventEmitter } from "node:events";
5
6
  import * as _sapphire_shapeshift0 from "@sapphire/shapeshift";
@@ -1,7 +1,7 @@
1
1
  //#region package.json
2
2
  var package_default = {
3
3
  name: "reciple",
4
- version: "10.0.42",
4
+ version: "10.0.43",
5
5
  license: "LGPL-3.0-only",
6
6
  description: "The CLI for reciple",
7
7
  module: "./dist/index.mjs",
@@ -37,7 +37,7 @@ var package_default = {
37
37
  },
38
38
  dependencies: {
39
39
  "@clack/prompts": "^1.1.0",
40
- "@dotenvx/dotenvx": "^1.57.1",
40
+ "@dotenvx/dotenvx": "^1.57.5",
41
41
  "@prtty/print": "catalog:",
42
42
  "@prtty/prtty": "catalog:",
43
43
  "@reciple/utils": "workspace:^",
@@ -58,7 +58,7 @@ var package_default = {
58
58
  "@types/micromatch": "^4.0.10",
59
59
  "@types/node": "catalog:",
60
60
  "nodemon": "^3.1.14",
61
- "rolldown": "^1.0.0-rc.10",
61
+ "rolldown": "^1.0.0-rc.12",
62
62
  "typescript": "catalog:"
63
63
  },
64
64
  peerDependencies: {
@@ -0,0 +1 @@
1
+ {"version":3,"file":"package.mjs","names":[],"sources":["../../../package.json"],"sourcesContent":[""],"mappings":""}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "reciple",
3
- "version": "10.0.42",
3
+ "version": "10.0.43",
4
4
  "license": "LGPL-3.0-only",
5
5
  "description": "The CLI for reciple",
6
6
  "module": "./dist/index.mjs",
@@ -36,10 +36,10 @@
36
36
  },
37
37
  "dependencies": {
38
38
  "@clack/prompts": "^1.1.0",
39
- "@dotenvx/dotenvx": "^1.57.1",
39
+ "@dotenvx/dotenvx": "^1.57.5",
40
40
  "@prtty/print": "^1.1.3",
41
41
  "@prtty/prtty": "^1.1.2",
42
- "@reciple/utils": "^10.0.2",
42
+ "@reciple/utils": "^10.0.3",
43
43
  "@sapphire/shapeshift": "^4.0.0",
44
44
  "@sapphire/snowflake": "^3.5.5",
45
45
  "commander": "^14.0.3",
@@ -50,18 +50,18 @@
50
50
  "pkg-types": "^2.3.0",
51
51
  "tinyglobby": "^0.2.15",
52
52
  "ts-mixer": "^6.0.4",
53
- "tsdown": "^0.21.4"
53
+ "tsdown": "^0.21.5"
54
54
  },
55
55
  "devDependencies": {
56
- "@reciple/jsx": "^10.0.9",
56
+ "@reciple/jsx": "^10.0.10",
57
57
  "@types/micromatch": "^4.0.10",
58
58
  "@types/node": "^25.5.0",
59
59
  "nodemon": "^3.1.14",
60
- "rolldown": "^1.0.0-rc.10",
61
- "typescript": "^5.9.3"
60
+ "rolldown": "^1.0.0-rc.12",
61
+ "typescript": "^6.0.2"
62
62
  },
63
63
  "peerDependencies": {
64
- "@reciple/core": "^10.0.4",
64
+ "@reciple/core": "^10.0.5",
65
65
  "discord.js": "^14.25.1"
66
66
  },
67
67
  "peerDependenciesMeta": {
@@ -1 +0,0 @@
1
- {"version":3,"file":"package.mjs","names":[],"sources":["../package.json"],"sourcesContent":[""],"mappings":""}