@evitcastudio/kit 3.6.0 → 3.7.0
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/lib/bundle/cli/cli.js +5 -5
- package/lib/kit.d.ts +8 -4
- package/lib/kit.d.ts.map +1 -1
- package/lib/kit.js +8 -4
- package/lib/types/shared-types.d.ts +1 -1
- package/lib/types/shared-types.d.ts.map +1 -1
- package/package.json +2 -2
package/lib/bundle/cli/cli.js
CHANGED
|
@@ -2,8 +2,8 @@
|
|
|
2
2
|
// @bun
|
|
3
3
|
|
|
4
4
|
/*!
|
|
5
|
-
* @evitcastudio/kit@3.
|
|
6
|
-
* Compiled
|
|
5
|
+
* @evitcastudio/kit@3.7.0 git+https://github.com/EvitcaStudio/Kit.git
|
|
6
|
+
* Compiled Sun, 13 Sep 2026 19:10:44 UTC
|
|
7
7
|
* Copyright (c) 2026 Jared Bates, Evitca Studio, "doubleactii"
|
|
8
8
|
*
|
|
9
9
|
* @evitcastudio/kit is licensed under the MIT License.
|
|
@@ -1951,7 +1951,7 @@ import { stat as statcb, Stats } from "fs";
|
|
|
1951
1951
|
import { readdir as readdir2, stat as stat3 } from "fs/promises";
|
|
1952
1952
|
import * as sp2 from "path";
|
|
1953
1953
|
|
|
1954
|
-
// node_modules/
|
|
1954
|
+
// node_modules/readdirp/index.js
|
|
1955
1955
|
import { lstat, readdir, realpath, stat } from "fs/promises";
|
|
1956
1956
|
import { join as pjoin, resolve as presolve, sep as psep } from "path";
|
|
1957
1957
|
import { Readable } from "stream";
|
|
@@ -11486,7 +11486,7 @@ import os2 from "os";
|
|
|
11486
11486
|
// package.json
|
|
11487
11487
|
var package_default = {
|
|
11488
11488
|
name: "@evitcastudio/kit",
|
|
11489
|
-
version: "3.
|
|
11489
|
+
version: "3.7.0",
|
|
11490
11490
|
author: "doubleactii 56242467+doubleactii@users.noreply.github.com (https://evitcastudio.com)",
|
|
11491
11491
|
main: "./lib/index.js",
|
|
11492
11492
|
types: "./lib/index.d.ts",
|
|
@@ -11550,7 +11550,7 @@ var package_default = {
|
|
|
11550
11550
|
},
|
|
11551
11551
|
dependencies: {
|
|
11552
11552
|
"@clack/prompts": "^1.1.0",
|
|
11553
|
-
"@evitcastudio/lens": "
|
|
11553
|
+
"@evitcastudio/lens": "4.4.1",
|
|
11554
11554
|
chalk: "^5.4.0",
|
|
11555
11555
|
chokidar: "^5.0.0",
|
|
11556
11556
|
commander: "^12.1.0",
|
package/lib/kit.d.ts
CHANGED
|
@@ -18,13 +18,17 @@ export declare class Kit {
|
|
|
18
18
|
* @deprecated Use `registerPlugin` instead.
|
|
19
19
|
* @param pPlugins - An array of plugins to initialize.
|
|
20
20
|
*/
|
|
21
|
-
static init<T>(pPlugins: KitPluginConstructor<T>[]): void;
|
|
21
|
+
static init<T = any>(pPlugins: (KitPluginConstructor<T, any[]> | T)[]): void;
|
|
22
22
|
/**
|
|
23
23
|
* Register a plugin with the Kit class.
|
|
24
|
-
*
|
|
24
|
+
* Accepts a plugin constructor (with optional constructor arguments), an instantiated plugin instance, or an array of plugins.
|
|
25
|
+
* @param pPlugin - The plugin constructor, plugin instance, or array of plugins to register.
|
|
26
|
+
* @param args - Optional arguments passed to the plugin constructor when instantiating.
|
|
25
27
|
*/
|
|
26
|
-
static registerPlugin<T
|
|
27
|
-
static registerPlugin<T>(pPlugin:
|
|
28
|
+
static registerPlugin<T, C extends KitPluginConstructor<T, any[]>>(pPlugin: C, ...args: ConstructorParameters<C>): T;
|
|
29
|
+
static registerPlugin<T extends object>(pPlugin: T): T;
|
|
30
|
+
static registerPlugin<T>(pPlugin: (KitPluginConstructor<T, any[]> | T)[]): T[];
|
|
31
|
+
static registerPlugin<T>(pPlugin: KitPluginConstructor<T, any[]> | T): T;
|
|
28
32
|
/**
|
|
29
33
|
* Gets a plugin by name.
|
|
30
34
|
* @param pName - String name of the plugin to retrieve.
|
package/lib/kit.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":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AK,EAAE,MAAM,GAAG,CAAC,GAAG,SAAS;IAQlE;;OAEG;IACH,MAAM,CAAC,UAAU,IAAI,MAAM,EAAE;IAI7B;;;OAGG;IACH,OAAO,CAAC,MAAM,CAAC,IAAI;IAWlB;;;;;MAKE;IACH,MAAM,CAAC,EAAE,CAAC,WAAW,EAAE,MAAM,EAAE,UAAU,EAAE,MAAM,EAAE,SAAS,EAAE,QAAQ,GAAG,IAAI;IAQ7E;;;;;OAKG;IACH,MAAM,CAAC,GAAG,CAAC,WAAW,EAAE,MAAM,EAAE,UAAU,EAAE,MAAM,EAAE,SAAS,EAAE,QAAQ,GAAG,IAAI;IAO9E;;;OAGG;IACH,OAAO,CAAC,MAAM,CAAC,WAAW;IAiB1B;;OAEG;WACU,YAAY,CAAC,aAAa,EAAE,MAAM,CAAC,MAAM,EAAE,YAAY,EAAE,CAAC,GAAG,OAAO,CAAC,IAAI,CAAC;CAa1F"}
|
package/lib/kit.js
CHANGED
|
@@ -32,16 +32,18 @@ export class Kit {
|
|
|
32
32
|
* @deprecated Use `registerPlugin` instead.
|
|
33
33
|
* @param pPlugins - An array of plugins to initialize.
|
|
34
34
|
*/
|
|
35
|
+
/* eslint-disable @typescript-eslint/no-explicit-any */
|
|
35
36
|
static init(pPlugins) {
|
|
36
37
|
pPlugins.forEach(pPlugin => {
|
|
37
38
|
this.registerPlugin(pPlugin);
|
|
38
39
|
});
|
|
39
40
|
}
|
|
40
|
-
static registerPlugin(pPlugin) {
|
|
41
|
+
static registerPlugin(pPlugin, ...args) {
|
|
42
|
+
/* eslint-enable @typescript-eslint/no-explicit-any */
|
|
41
43
|
if (Array.isArray(pPlugin)) {
|
|
42
44
|
const plugins = [];
|
|
43
|
-
pPlugin.forEach(
|
|
44
|
-
const plugin = this.registerPlugin(
|
|
45
|
+
pPlugin.forEach(p => {
|
|
46
|
+
const plugin = this.registerPlugin(p);
|
|
45
47
|
if (plugin && !Array.isArray(plugin)) {
|
|
46
48
|
plugins.push(plugin);
|
|
47
49
|
}
|
|
@@ -49,7 +51,9 @@ export class Kit {
|
|
|
49
51
|
return plugins;
|
|
50
52
|
}
|
|
51
53
|
else {
|
|
52
|
-
const plugin =
|
|
54
|
+
const plugin = typeof pPlugin === 'function'
|
|
55
|
+
? new pPlugin(...args)
|
|
56
|
+
: pPlugin;
|
|
53
57
|
const pluginRecord = plugin;
|
|
54
58
|
const pluginName = pluginRecord?.name;
|
|
55
59
|
if (!pluginName || typeof pluginName !== 'string' || !/^[a-zA-Z0-9-_]+$/.test(pluginName)) {
|
|
@@ -24,7 +24,7 @@ interface KitPluginLike {
|
|
|
24
24
|
_register?(pEmitter: unknown): void;
|
|
25
25
|
[key: string]: unknown;
|
|
26
26
|
}
|
|
27
|
-
type KitPluginConstructor<T =
|
|
27
|
+
type KitPluginConstructor<T = any, Args extends any[] = any[]> = new (...args: Args) => T;
|
|
28
28
|
declare global {
|
|
29
29
|
/**
|
|
30
30
|
* The Vylocity engine.
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"shared-types.d.ts","sourceRoot":"","sources":["../../src/types/shared-types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,aAAa,CAAC;AAC5C;;GAEG;AACH,KAAK,YAAY,GAAG;IAChB;;OAEG;IACH,KAAK,EAAE,MAAM,CAAC;IACd;;OAEG;IACH,IAAI,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;IAC/B,CAAC,GAAG,EAAE,MAAM,GAAG,OAAO,CAAC;CAC1B,CAAA;AAED,KAAK,YAAY,GAAG;IAChB,kBAAkB,EAAE,MAAM,CAAC;IAC3B,QAAQ,EAAE,MAAM,CAAA;CACnB,CAAC;AAEF,KAAK,QAAQ,GAAG,CAAC,KAAK,EAAE,YAAY,KAAK,IAAI,CAAC;AAE9C,UAAU,aAAa;IACnB,IAAI,EAAE,MAAM,CAAC;IACb,YAAY,CAAC,IAAI,IAAI,CAAC;IACtB,SAA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castudio/kit",
|
|
3
|
-
"version": "3.
|
|
3
|
+
"version": "3.7.0",
|
|
4
4
|
"author": "doubleactii 56242467+doubleactii@users.noreply.github.com (https://evitcastudio.com)",
|
|
5
5
|
"main": "./lib/index.js",
|
|
6
6
|
"types": "./lib/index.d.ts",
|
|
@@ -64,7 +64,7 @@
|
|
|
64
64
|
},
|
|
65
65
|
"dependencies": {
|
|
66
66
|
"@clack/prompts": "^1.1.0",
|
|
67
|
-
"@evitcastudio/lens": "
|
|
67
|
+
"@evitcastudio/lens": "4.4.1",
|
|
68
68
|
"chalk": "^5.4.0",
|
|
69
69
|
"chokidar": "^5.0.0",
|
|
70
70
|
"commander": "^12.1.0",
|