@mobtakronio/capskit 0.1.0 → 0.1.2
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 +7 -7
- package/dist/index.cjs +21509 -49
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +7 -3
- package/dist/index.d.ts +7 -3
- package/dist/index.js +21520 -27
- package/dist/index.js.map +1 -1
- package/package.json +2 -2
package/dist/index.d.cts
CHANGED
|
@@ -41,9 +41,13 @@ interface RouteDefinition {
|
|
|
41
41
|
interface CapsKitConfig {
|
|
42
42
|
capsuleDirs?: string[];
|
|
43
43
|
dependencies?: Record<string, any>;
|
|
44
|
+
boot?: {
|
|
45
|
+
action: string;
|
|
46
|
+
payload?: any;
|
|
47
|
+
};
|
|
44
48
|
}
|
|
45
49
|
interface ICapsKit {
|
|
46
|
-
start(): Promise<
|
|
50
|
+
start(): Promise<any>;
|
|
47
51
|
call(actionName: string, payload: any): Promise<any>;
|
|
48
52
|
use<TCapsule = any>(capsuleName: string): TCapsule;
|
|
49
53
|
describe(capsuleName: string): CapsuleManifest | undefined;
|
|
@@ -59,7 +63,7 @@ declare class CapsKit implements ICapsKit {
|
|
|
59
63
|
private eventRegistry;
|
|
60
64
|
private dependencies;
|
|
61
65
|
constructor(config: CapsKitConfig);
|
|
62
|
-
start(): Promise<
|
|
66
|
+
start(): Promise<any>;
|
|
63
67
|
private registerCapsule;
|
|
64
68
|
private validateDependencies;
|
|
65
69
|
addInterceptor(interceptor: ActionInterceptor): void;
|
|
@@ -69,7 +73,7 @@ declare class CapsKit implements ICapsKit {
|
|
|
69
73
|
emit(event: string, data: any): void;
|
|
70
74
|
getManifests(): CapsuleManifest[];
|
|
71
75
|
}
|
|
72
|
-
declare function createCapsKit(config: CapsKitConfig): Promise<
|
|
76
|
+
declare function createCapsKit(config: CapsKitConfig): Promise<any>;
|
|
73
77
|
|
|
74
78
|
declare function loadCapsules(capsulesDir: string): Promise<CapsuleManifest[]>;
|
|
75
79
|
|
package/dist/index.d.ts
CHANGED
|
@@ -41,9 +41,13 @@ interface RouteDefinition {
|
|
|
41
41
|
interface CapsKitConfig {
|
|
42
42
|
capsuleDirs?: string[];
|
|
43
43
|
dependencies?: Record<string, any>;
|
|
44
|
+
boot?: {
|
|
45
|
+
action: string;
|
|
46
|
+
payload?: any;
|
|
47
|
+
};
|
|
44
48
|
}
|
|
45
49
|
interface ICapsKit {
|
|
46
|
-
start(): Promise<
|
|
50
|
+
start(): Promise<any>;
|
|
47
51
|
call(actionName: string, payload: any): Promise<any>;
|
|
48
52
|
use<TCapsule = any>(capsuleName: string): TCapsule;
|
|
49
53
|
describe(capsuleName: string): CapsuleManifest | undefined;
|
|
@@ -59,7 +63,7 @@ declare class CapsKit implements ICapsKit {
|
|
|
59
63
|
private eventRegistry;
|
|
60
64
|
private dependencies;
|
|
61
65
|
constructor(config: CapsKitConfig);
|
|
62
|
-
start(): Promise<
|
|
66
|
+
start(): Promise<any>;
|
|
63
67
|
private registerCapsule;
|
|
64
68
|
private validateDependencies;
|
|
65
69
|
addInterceptor(interceptor: ActionInterceptor): void;
|
|
@@ -69,7 +73,7 @@ declare class CapsKit implements ICapsKit {
|
|
|
69
73
|
emit(event: string, data: any): void;
|
|
70
74
|
getManifests(): CapsuleManifest[];
|
|
71
75
|
}
|
|
72
|
-
declare function createCapsKit(config: CapsKitConfig): Promise<
|
|
76
|
+
declare function createCapsKit(config: CapsKitConfig): Promise<any>;
|
|
73
77
|
|
|
74
78
|
declare function loadCapsules(capsulesDir: string): Promise<CapsuleManifest[]>;
|
|
75
79
|
|