electron-reactive-event-cli 1.0.118 → 1.0.120
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/ReadMe.md +3 -10
- package/package.json +7 -26
- package/Distribution/All.Command.d.ts +0 -2
- package/Distribution/All.Command.d.ts.map +0 -1
- package/Distribution/All.Command.js +0 -22
- package/Distribution/All.Command.js.map +0 -1
- package/Distribution/Bin.d.ts +0 -3
- package/Distribution/Bin.d.ts.map +0 -1
- package/Distribution/Bin.js +0 -86
- package/Distribution/Bin.js.map +0 -1
- package/Distribution/Command.d.ts +0 -12
- package/Distribution/Command.d.ts.map +0 -1
- package/Distribution/Command.js +0 -100
- package/Distribution/Command.js.map +0 -1
- package/Distribution/Config.Types.d.ts +0 -36
- package/Distribution/Config.Types.d.ts.map +0 -1
- package/Distribution/Config.Types.js +0 -8
- package/Distribution/Config.Types.js.map +0 -1
- package/Distribution/Config.d.ts +0 -28
- package/Distribution/Config.d.ts.map +0 -1
- package/Distribution/Config.js +0 -161
- package/Distribution/Config.js.map +0 -1
- package/Distribution/DeclareEvents.Command.d.ts +0 -2
- package/Distribution/DeclareEvents.Command.d.ts.map +0 -1
- package/Distribution/DeclareEvents.Command.js +0 -16
- package/Distribution/DeclareEvents.Command.js.map +0 -1
- package/Distribution/DeclareEvents.Types.d.ts +0 -11
- package/Distribution/DeclareEvents.Types.d.ts.map +0 -1
- package/Distribution/DeclareEvents.Types.js +0 -8
- package/Distribution/DeclareEvents.Types.js.map +0 -1
- package/Distribution/DeclareEvents.d.ts +0 -3
- package/Distribution/DeclareEvents.d.ts.map +0 -1
- package/Distribution/DeclareEvents.js +0 -213
- package/Distribution/DeclareEvents.js.map +0 -1
- package/Distribution/Docs.Command.d.ts +0 -3
- package/Distribution/Docs.Command.d.ts.map +0 -1
- package/Distribution/Docs.Command.js +0 -19
- package/Distribution/Docs.Command.js.map +0 -1
- package/Distribution/DownloadSample.Command.d.ts +0 -3
- package/Distribution/DownloadSample.Command.d.ts.map +0 -1
- package/Distribution/DownloadSample.Command.js +0 -107
- package/Distribution/DownloadSample.Command.js.map +0 -1
- package/Distribution/Generate.Command.d.ts +0 -5
- package/Distribution/Generate.Command.d.ts.map +0 -1
- package/Distribution/Generate.Command.js +0 -20
- package/Distribution/Generate.Command.js.map +0 -1
- package/Distribution/GenerateIpc.Command.d.ts +0 -3
- package/Distribution/GenerateIpc.Command.d.ts.map +0 -1
- package/Distribution/GenerateIpc.Command.js +0 -22
- package/Distribution/GenerateIpc.Command.js.map +0 -1
- package/Distribution/GenerateIpcMainModule.d.ts +0 -3
- package/Distribution/GenerateIpcMainModule.d.ts.map +0 -1
- package/Distribution/GenerateIpcMainModule.js +0 -37
- package/Distribution/GenerateIpcMainModule.js.map +0 -1
- package/Distribution/GenerateIpcRendererModule.d.ts +0 -5
- package/Distribution/GenerateIpcRendererModule.d.ts.map +0 -1
- package/Distribution/GenerateIpcRendererModule.js +0 -73
- package/Distribution/GenerateIpcRendererModule.js.map +0 -1
- package/Distribution/GenerateScopedTypes.Command.d.ts +0 -3
- package/Distribution/GenerateScopedTypes.Command.d.ts.map +0 -1
- package/Distribution/GenerateScopedTypes.Command.js +0 -44
- package/Distribution/GenerateScopedTypes.Command.js.map +0 -1
- package/Distribution/GenerateScopedTypes.Types.d.ts +0 -25
- package/Distribution/GenerateScopedTypes.Types.d.ts.map +0 -1
- package/Distribution/GenerateScopedTypes.Types.js +0 -8
- package/Distribution/GenerateScopedTypes.Types.js.map +0 -1
- package/Distribution/GenerateScopedTypes.d.ts +0 -9
- package/Distribution/GenerateScopedTypes.d.ts.map +0 -1
- package/Distribution/GenerateScopedTypes.js +0 -228
- package/Distribution/GenerateScopedTypes.js.map +0 -1
- package/Distribution/Setup.Command.d.ts +0 -3
- package/Distribution/Setup.Command.d.ts.map +0 -1
- package/Distribution/Setup.Command.js +0 -11
- package/Distribution/Setup.Command.js.map +0 -1
- package/Distribution/Setup.d.ts +0 -2
- package/Distribution/Setup.d.ts.map +0 -1
- package/Distribution/Setup.js +0 -184
- package/Distribution/Setup.js.map +0 -1
- package/Distribution/Shared.Types.d.ts +0 -6
- package/Distribution/Shared.Types.d.ts.map +0 -1
- package/Distribution/Shared.Types.js +0 -8
- package/Distribution/Shared.Types.js.map +0 -1
- package/Distribution/Shared.d.ts +0 -24
- package/Distribution/Shared.d.ts.map +0 -1
- package/Distribution/Shared.js +0 -66
- package/Distribution/Shared.js.map +0 -1
- package/Distribution/WriteTypesToClipboard.d.ts +0 -2
- package/Distribution/WriteTypesToClipboard.d.ts.map +0 -1
- package/Distribution/WriteTypesToClipboard.js +0 -193
- package/Distribution/WriteTypesToClipboard.js.map +0 -1
- package/Distribution/index.d.ts +0 -4
- package/Distribution/index.d.ts.map +0 -1
- package/Distribution/index.js +0 -25
- package/Distribution/index.js.map +0 -1
- package/License.md +0 -21
package/Distribution/Shared.js
DELETED
|
@@ -1,66 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
/* File: Shared.ts
|
|
3
|
-
* Author: Gage Sorrell <gage@sorrell.sh>
|
|
4
|
-
* Copyright: (c) 2026 Gage Sorrell
|
|
5
|
-
* License: MIT
|
|
6
|
-
*/
|
|
7
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
8
|
-
exports.SimpleError = exports.PackageName = void 0;
|
|
9
|
-
exports.RunListr = RunListr;
|
|
10
|
-
const listr2_1 = require("listr2");
|
|
11
|
-
/* eslint-disable jsdoc/require-jsdoc */
|
|
12
|
-
/** {@inheritdoc PackageNameType} */
|
|
13
|
-
exports.PackageName = "electron-reactive-event-cli";
|
|
14
|
-
/* eslint-enable jsdoc/require-jsdoc */
|
|
15
|
-
/** A string-only {@link Error} used by {@link Listr} to show nicely-formatted errors. */
|
|
16
|
-
class SimpleError extends Error {
|
|
17
|
-
constructor(Message) {
|
|
18
|
-
super();
|
|
19
|
-
this.TheMessage = Message;
|
|
20
|
-
}
|
|
21
|
-
TheMessage;
|
|
22
|
-
}
|
|
23
|
-
exports.SimpleError = SimpleError;
|
|
24
|
-
;
|
|
25
|
-
class Listr extends listr2_1.Listr {
|
|
26
|
-
constructor(Task, Options, ParentTask) {
|
|
27
|
-
if (Options === undefined && ParentTask === undefined) {
|
|
28
|
-
super(Task);
|
|
29
|
-
}
|
|
30
|
-
else if (Options !== undefined && ParentTask === undefined) {
|
|
31
|
-
super(Task, Options);
|
|
32
|
-
}
|
|
33
|
-
else if (Options !== undefined && ParentTask !== undefined) {
|
|
34
|
-
super(Task, Options, ParentTask);
|
|
35
|
-
}
|
|
36
|
-
}
|
|
37
|
-
}
|
|
38
|
-
;
|
|
39
|
-
/**
|
|
40
|
-
* A wrapper for `new Listr` that handles errors nicely.
|
|
41
|
-
*
|
|
42
|
-
* @typeParam ContextType - The type of the `listr2` context used by the {@link Task}.
|
|
43
|
-
*
|
|
44
|
-
* @param Task - The task(s) to run.
|
|
45
|
-
* @param GenericErrorMessage - The error message that is shown if the {@link Task | task(s)} throw(s)
|
|
46
|
-
* something other than a {@link SimpleError}.
|
|
47
|
-
* @param Options - *(Optional)* The {@link ListrBaseClassOptions} used to customize the
|
|
48
|
-
* {@link Task | task(s)}.
|
|
49
|
-
* @param ParentTask - *(Optional)* The {@link ListrTaskObject | parent task} of which the
|
|
50
|
-
* {@link Task | task(s)} are (a) descendant(s).
|
|
51
|
-
*/
|
|
52
|
-
async function RunListr(Task, GenericErrorMessage, Options, ParentTask) {
|
|
53
|
-
try {
|
|
54
|
-
await new Listr(Task, Options, ParentTask);
|
|
55
|
-
}
|
|
56
|
-
catch (ListrError) {
|
|
57
|
-
if (ListrError instanceof SimpleError) {
|
|
58
|
-
console.error(`🚨 ${ListrError.TheMessage}`);
|
|
59
|
-
}
|
|
60
|
-
else {
|
|
61
|
-
console.dir(ListrError);
|
|
62
|
-
console.error(`\n🚨 ${GenericErrorMessage}. The error is printed above.`);
|
|
63
|
-
}
|
|
64
|
-
}
|
|
65
|
-
}
|
|
66
|
-
//# sourceMappingURL=Shared.js.map
|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UAAW,EAAE,CAAC,CAAC;QACnD,CAAC;aAED,CAAC;YACG,OAAO,CAAC,GAAG,CAAC,UAAU,CAAC,CAAC;YACxB,OAAO,CAAC,KAAK,CAAC,QAAS,mBAAoB,gCAAgC,CAAC,CAAC;QACjF,CAAC;IACL,CAAC;AACL,CAAC"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"WriteTypesToClipboard.d.ts","sourceRoot":"","sources":["../Source/WriteTypesToClipboard.ts"],"names":[],"mappings":""}
|
|
@@ -1,193 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
/* File: WriteTypesToClipboard.ts
|
|
3
|
-
* Author: Gage Sorrell <gage@sorrell.sh>
|
|
4
|
-
* Copyright: (c) 2026 Gage Sorrell
|
|
5
|
-
* License: MIT
|
|
6
|
-
*/
|
|
7
|
-
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
8
|
-
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
9
|
-
};
|
|
10
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
11
|
-
/* eslint-disable */
|
|
12
|
-
const clipboardy_1 = __importDefault(require("clipboardy"));
|
|
13
|
-
const path_1 = require("path");
|
|
14
|
-
const typescript_1 = __importDefault(require("typescript"));
|
|
15
|
-
function GetExportedTypeNamesWithTypeParameterVectors(PackageEntryDeclarationPath) {
|
|
16
|
-
const Program = typescript_1.default.createProgram([PackageEntryDeclarationPath], {});
|
|
17
|
-
const TypeChecker = Program.getTypeChecker();
|
|
18
|
-
const SourceFile = Program.getSourceFile(PackageEntryDeclarationPath);
|
|
19
|
-
const EmptyRecord = {
|
|
20
|
-
Scoped: [],
|
|
21
|
-
Unscoped: []
|
|
22
|
-
};
|
|
23
|
-
if (!SourceFile) {
|
|
24
|
-
return EmptyRecord;
|
|
25
|
-
}
|
|
26
|
-
const ModuleSymbol = TypeChecker.getSymbolAtLocation(SourceFile) ??
|
|
27
|
-
SourceFile.symbol;
|
|
28
|
-
if (!ModuleSymbol) {
|
|
29
|
-
return EmptyRecord;
|
|
30
|
-
}
|
|
31
|
-
const ScopedResults = new Set();
|
|
32
|
-
const UnscopedResults = new Set();
|
|
33
|
-
for (const ExportedSymbol of TypeChecker.getExportsOfModule(ModuleSymbol)) {
|
|
34
|
-
const ResolvedSymbol = ExportedSymbol.getFlags() & typescript_1.default.SymbolFlags.Alias
|
|
35
|
-
? TypeChecker.getAliasedSymbol(ExportedSymbol)
|
|
36
|
-
: ExportedSymbol;
|
|
37
|
-
const Declaration = GetExportedTypeDeclaration(ResolvedSymbol);
|
|
38
|
-
if (!Declaration) {
|
|
39
|
-
continue;
|
|
40
|
-
}
|
|
41
|
-
const ToString = (TypeParameter) => {
|
|
42
|
-
if (TypeParameter.constraint !== undefined) {
|
|
43
|
-
return `${TypeParameter.name.getText()} extends ${TypeParameter.constraint.getText()}`;
|
|
44
|
-
}
|
|
45
|
-
else {
|
|
46
|
-
return TypeParameter.name.getText();
|
|
47
|
-
}
|
|
48
|
-
};
|
|
49
|
-
const TypeParameters = typescript_1.default.getEffectiveTypeParameterDeclarations(Declaration);
|
|
50
|
-
const IsScopedType = TypeParameters.some((TypeParameter) => TypeParameter.name.getText() === "PackageKey");
|
|
51
|
-
const TypeParameterNames = TypeParameters
|
|
52
|
-
.filter((TypeParameter) => {
|
|
53
|
-
return TypeParameter.name.getText() !== "PackageKey";
|
|
54
|
-
})
|
|
55
|
-
.map(ToString);
|
|
56
|
-
const TypeParameterVector = TypeParameterNames.length === 0
|
|
57
|
-
? ""
|
|
58
|
-
: `<${TypeParameterNames.join(", ")}>`;
|
|
59
|
-
if (IsScopedType) {
|
|
60
|
-
ScopedResults.add(`${ResolvedSymbol.getName()}${TypeParameterVector};`);
|
|
61
|
-
}
|
|
62
|
-
else {
|
|
63
|
-
UnscopedResults.add(`${ResolvedSymbol.getName()}${TypeParameterVector};`);
|
|
64
|
-
}
|
|
65
|
-
}
|
|
66
|
-
const ToArray = (In) => Array.from(In).sort();
|
|
67
|
-
const Trim = (Type) => Type.replaceAll(";", "");
|
|
68
|
-
return {
|
|
69
|
-
Scoped: ToArray(ScopedResults).map(Trim),
|
|
70
|
-
Unscoped: ToArray(UnscopedResults).map(Trim)
|
|
71
|
-
};
|
|
72
|
-
}
|
|
73
|
-
function GetExportedTypeDeclaration(Symbol) {
|
|
74
|
-
const Declarations = Symbol.getDeclarations() ?? [];
|
|
75
|
-
return Declarations.find((Declaration) => typescript_1.default.isClassDeclaration(Declaration) ||
|
|
76
|
-
typescript_1.default.isInterfaceDeclaration(Declaration) ||
|
|
77
|
-
typescript_1.default.isTypeAliasDeclaration(Declaration) ||
|
|
78
|
-
typescript_1.default.isEnumDeclaration(Declaration) ||
|
|
79
|
-
typescript_1.default.isNamespaceExport(Declaration));
|
|
80
|
-
}
|
|
81
|
-
// function GetOutput(): string
|
|
82
|
-
// {
|
|
83
|
-
// const Types: TypesRecord = GetExportedTypeNamesWithTypeParameterVectors(resolve("..", "ElectronReactiveEvent", "Source", "index.Scoped.ts"));
|
|
84
|
-
// Out.push(...Types.Scoped.map((Type: string): string =>
|
|
85
|
-
// {
|
|
86
|
-
// Type = Type.replaceAll(";", "");
|
|
87
|
-
// const Name: string = Type.includes("<")
|
|
88
|
-
// ? Type.slice(0, Type.indexOf("<"))
|
|
89
|
-
// : Type;
|
|
90
|
-
// const TypeArgumentVector: string | undefined = ((): string | undefined =>
|
|
91
|
-
// {
|
|
92
|
-
// if (!Type.includes("<"))
|
|
93
|
-
// {
|
|
94
|
-
// return undefined;
|
|
95
|
-
// }
|
|
96
|
-
// const Input: string =
|
|
97
|
-
// Type.slice(Type.indexOf("<") + 1, Type.indexOf(">"))
|
|
98
|
-
// const Matches: Array<string> = [ ];
|
|
99
|
-
// const Pattern: RegExp = /(?:^|,)\s*([^,\s]+)/g;
|
|
100
|
-
// let Match: RegExpExecArray | null;
|
|
101
|
-
// while ((Match = Pattern.exec(Input)) !== null)
|
|
102
|
-
// {
|
|
103
|
-
// Matches.push(Match[1] as string);
|
|
104
|
-
// }
|
|
105
|
-
// return Matches.join(", ");
|
|
106
|
-
// })();
|
|
107
|
-
// return `${ Name }: \"export type ${ Type } = ${ Name }Imported<${ TypeArgumentVector }>;\"`;
|
|
108
|
-
// }));
|
|
109
|
-
// Out.push("// UNSCOPED");
|
|
110
|
-
// Out.push(...Types.Unscoped.map((Type: string): string =>
|
|
111
|
-
// {
|
|
112
|
-
// Type = Type.replaceAll(";", "");
|
|
113
|
-
// const Name: string = Type.includes("<")
|
|
114
|
-
// ? Type.slice(0, Type.indexOf("<"))
|
|
115
|
-
// : Type;
|
|
116
|
-
// return Name;
|
|
117
|
-
// }));
|
|
118
|
-
// return Out.join("\n");
|
|
119
|
-
// }
|
|
120
|
-
// const Out: string = GetOutput();
|
|
121
|
-
clipboardy_1.default.writeSync(JSON.stringify(GetExportedTypeNamesWithTypeParameterVectors((0, path_1.resolve)("..", "ElectronReactiveEvent", "Source", "index.Scoped.ts")), null, 4));
|
|
122
|
-
console.log("Wrote to the clipboard!");
|
|
123
|
-
// const OutOld: Array<string> = Types.map((Type: string): string =>
|
|
124
|
-
// {
|
|
125
|
-
// const IpcMainKeys: Array<string> =
|
|
126
|
-
// [
|
|
127
|
-
// "addListener",
|
|
128
|
-
// "handle",
|
|
129
|
-
// "handleOnce",
|
|
130
|
-
// "off",
|
|
131
|
-
// "on",
|
|
132
|
-
// "once",
|
|
133
|
-
// "removeAllListeners",
|
|
134
|
-
// "removeHandler",
|
|
135
|
-
// "removeListener"
|
|
136
|
-
// ];
|
|
137
|
-
// const ShouldRedefine: boolean = (
|
|
138
|
-
// Type.includes("PackageKey") ||
|
|
139
|
-
// IpcMainKeys.map(Key => Key.toLowerCase()).some(Key => Type.toLowerCase().startsWith(Key)) ||
|
|
140
|
-
// Type.toLowerCase().startsWith("use")
|
|
141
|
-
// );
|
|
142
|
-
// if (ShouldRedefine)
|
|
143
|
-
// {
|
|
144
|
-
// const TypeName: string = Type.slice(0, Type.indexOf("<"));
|
|
145
|
-
// if (Type.indexOf(",") !== Type.lastIndexOf(","))
|
|
146
|
-
// {
|
|
147
|
-
// const TypeParameterVector: string = Type.slice(Type.indexOf("<"), Type.indexOf(">")).replace("PackageKey, ", "");
|
|
148
|
-
// const StringDelimiter: string = Type.includes("PackageKey")
|
|
149
|
-
// ? "`"
|
|
150
|
-
// : "\"";
|
|
151
|
-
// const Almost: string = (
|
|
152
|
-
// TypeName +
|
|
153
|
-
// `: ${ StringDelimiter }export type ${ TypeName }${ TypeParameterVector }> = ` +
|
|
154
|
-
// Type.replace(TypeName, `${ TypeName }Imported`).replace("PackageKey", "${ PackageKey }") +
|
|
155
|
-
// `${ StringDelimiter },`
|
|
156
|
-
// );
|
|
157
|
-
// const Out: string = Almost.replace("OwnerType", "OwnerType extends EventOwner")
|
|
158
|
-
// return Out;
|
|
159
|
-
// }
|
|
160
|
-
// else
|
|
161
|
-
// {
|
|
162
|
-
// if (Type.includes("PackageKey"))
|
|
163
|
-
// {
|
|
164
|
-
// const TypeNameBase: string = Type.replace(";", "");
|
|
165
|
-
// const TypeName: string = TypeNameBase.slice(0, TypeNameBase.indexOf("<"));
|
|
166
|
-
// return `${ TypeName }: \`export type ${ TypeName } = ${ TypeName }Imported<\${ PackageKey }>;\`,`;
|
|
167
|
-
// }
|
|
168
|
-
// else
|
|
169
|
-
// {
|
|
170
|
-
// const TypeNameBase: string = Type.replace(";", "");
|
|
171
|
-
// const Out: string = TypeNameBase.includes("<")
|
|
172
|
-
// ? TypeNameBase.slice(TypeNameBase.indexOf("<"), TypeNameBase.indexOf(">"))
|
|
173
|
-
// : TypeNameBase;
|
|
174
|
-
// return `${ Out }: ReexportedType,`;
|
|
175
|
-
// }
|
|
176
|
-
// }
|
|
177
|
-
// }
|
|
178
|
-
// else
|
|
179
|
-
// {
|
|
180
|
-
// const TypeNameBase: string = Type.replace(";", "");
|
|
181
|
-
// const TypeName: string = TypeNameBase + Type.includes("<")
|
|
182
|
-
// ? Type.slice(0, Type.indexOf("<"))
|
|
183
|
-
// : "";
|
|
184
|
-
// return `${ TypeName }: ReexportedType,`;
|
|
185
|
-
// }
|
|
186
|
-
// });
|
|
187
|
-
// clipboard.writeSync(OutOld.join("\n"));
|
|
188
|
-
// // const OldTypesArray: Array<string> = Object.keys(OldTypes);
|
|
189
|
-
// // const NewTypes: Array<string> = Types.map(Type => Type.toLowerCase());
|
|
190
|
-
// // const New: Array<string> = OldTypesArray.filter(Type => !NewTypes.some(NewType => NewType.includes(Type.toLowerCase())));
|
|
191
|
-
// // clipboard.writeSync(New.join("\n"));
|
|
192
|
-
// console.log(`✔️ Wrote ${ Out.length } types to the clipboard.`);
|
|
193
|
-
//# sourceMappingURL=WriteTypesToClipboard.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"WriteTypesToClipboard.js","sourceRoot":"","sources":["../Source/WriteTypesToClipboard.ts"],"names":[],"mappings":";AAAA;;;;GAIG;;;;;AAEH,oBAAoB;AAEpB,4DAAmC;AACnC,+BAA+B;AAC/B,4DAAmG;AAmDnG,SAAS,4CAA4C,CACjD,2BAAmC;IAGnC,MAAM,OAAO,GAAG,oBAAE,CAAC,aAAa,CAAC,CAAC,2BAA2B,CAAC,EAAE,EAAE,CAAC,CAAC;IACpE,MAAM,WAAW,GAAG,OAAO,CAAC,cAAc,EAAE,CAAC;IAC7C,MAAM,UAAU,GAAG,OAAO,CAAC,aAAa,CAAC,2BAA2B,CAAC,CAAC;IAEtE,MAAM,WAAW,GACb;QACI,MAAM,EAAE,EAAG;QACX,QAAQ,EAAE,EAAG;KAChB,CAAA;IAEL,IAAI,CAAC,UAAU,EACf,CAAC;QACG,OAAO,WAAW,CAAC;IACvB,CAAC;IAED,MAAM,YAAY,GACd,WAAW,CAAC,mBAAmB,CAAC,UAAU,CAAC;QAC1C,UAAyD,CAAC,MAAM,CAAC;IAEtE,IAAI,CAAC,YAAY,EACjB,CAAC;QACG,OAAO,WAAW,CAAC;IACvB,CAAC;IAED,MAAM,aAAa,GAA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GAA6G;AAC7G,0CAA0C;AAC1C,iBAAiB;AAEjB,8FAA8F;AAE9F,0BAA0B;AAC1B,YAAY;AACZ,eAAe;AACf,YAAY;AACZ,+CAA+C;AAC/C,gBAAgB;AAChB,sEAAsE;AACtE,6FAA6F;AAC7F,qHAAqH;AACrH,gBAAgB;AAChB,mBAAmB;AACnB,gBAAgB;AAChB,sEAAsE;AACtE,iEAAiE;AACjE,iGAAiG;AACjG,sCAAsC;AACtC,sDAAsD;AACtD,gBAAgB;AAChB,YAAY;AACZ,QAAQ;AACR,WAAW;AACX,QAAQ;AACR,8DAA8D;AAC9D,qEAAqE;AACrE,iDAAiD;AACjD,oBAAoB;AACpB,mDAAmD;AACnD,QAAQ;AACR,MAAM;AAEN,0CAA0C;AAE1C,iEAAiE;AACjE,4EAA4E;AAC5E,+HAA+H;AAE/H,0CAA0C;AAC1C,oEAAoE"}
|
package/Distribution/index.d.ts
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../Source/index.ts"],"names":[],"mappings":"AAMA,cAAc,UAAU,CAAC;AACzB,cAAc,gBAAgB,CAAC;AAC/B,cAAc,iBAAiB,CAAC"}
|
package/Distribution/index.js
DELETED
|
@@ -1,25 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
/* File: index.ts
|
|
3
|
-
* Author: Gage Sorrell <gage@sorrell.sh>
|
|
4
|
-
* Copyright: (c) 2026 Gage Sorrell
|
|
5
|
-
* License: MIT
|
|
6
|
-
*/
|
|
7
|
-
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
8
|
-
if (k2 === undefined) k2 = k;
|
|
9
|
-
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
10
|
-
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
11
|
-
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
12
|
-
}
|
|
13
|
-
Object.defineProperty(o, k2, desc);
|
|
14
|
-
}) : (function(o, m, k, k2) {
|
|
15
|
-
if (k2 === undefined) k2 = k;
|
|
16
|
-
o[k2] = m[k];
|
|
17
|
-
}));
|
|
18
|
-
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
19
|
-
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
20
|
-
};
|
|
21
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
22
|
-
__exportStar(require("./Config"), exports);
|
|
23
|
-
__exportStar(require("./Config.Types"), exports);
|
|
24
|
-
__exportStar(require("./DeclareEvents"), exports);
|
|
25
|
-
//# sourceMappingURL=index.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../Source/index.ts"],"names":[],"mappings":";AAAA;;;;GAIG;;;;;;;;;;;;;;;;AAEH,2CAAyB;AACzB,iDAA+B;AAC/B,kDAAgC"}
|
package/License.md
DELETED
|
@@ -1,21 +0,0 @@
|
|
|
1
|
-
The MIT License (MIT)
|
|
2
|
-
|
|
3
|
-
Copyright (c) 2026 Gage Sorrell
|
|
4
|
-
|
|
5
|
-
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
6
|
-
of this software and associated documentation files (the "Software"), to deal
|
|
7
|
-
in the Software without restriction, including without limitation the rights
|
|
8
|
-
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
9
|
-
copies of the Software, and to permit persons to whom the Software is
|
|
10
|
-
furnished to do so, subject to the following conditions:
|
|
11
|
-
|
|
12
|
-
The above copyright notice and this permission notice shall be included in all
|
|
13
|
-
copies or substantial portions of the Software.
|
|
14
|
-
|
|
15
|
-
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
16
|
-
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
17
|
-
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
18
|
-
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
19
|
-
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
20
|
-
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
21
|
-
SOFTWARE.
|