@luminix/support 0.2.1 → 0.4.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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@luminix/support",
3
- "version": "0.2.1",
3
+ "version": "0.4.0",
4
4
  "module": "dist/support.js",
5
5
  "types": "types/index.d.ts",
6
6
  "type": "module",
@@ -7,7 +7,11 @@ export default class Application<TContainers extends Record<string, any> = Recor
7
7
  protected singletons: Record<string, any>;
8
8
  protected loaders: Record<string, ServiceLoader>;
9
9
  constructor(providers?: (typeof ServiceProvider)[]);
10
- get services(): Record<string, ServiceLoader>;
10
+ get services(): {
11
+ loader: () => any;
12
+ singleton?: boolean;
13
+ name: string;
14
+ }[];
11
15
  get configuration(): Record<string, any>;
12
16
  loadConfiguration(): void;
13
17
  bind<K extends keyof TContainers>(abstract: K, concrete: () => TContainers[K]): void;
@@ -8,7 +8,9 @@ export type ApplicationEvents = {
8
8
  ready: () => void;
9
9
  };
10
10
  export declare class ApplicationInterface<TContainers extends Record<string, any> = Record<string, any>> extends EventSource<ApplicationEvents> {
11
- get services(): Record<string, ServiceLoader>;
11
+ get services(): Array<ServiceLoader & {
12
+ name: string;
13
+ }>;
12
14
  get configuration(): Record<string, any>;
13
15
  loadConfiguration(): void;
14
16
  bind<K extends keyof TContainers>(abstract: K, concrete: () => TContainers[K]): void;
@@ -0,0 +1,4 @@
1
+ export default class AppAlreadyBootedException extends Error {
2
+ [Symbol.toStringTag]: string;
3
+ constructor();
4
+ }
package/types/Str.d.ts CHANGED
@@ -13,7 +13,7 @@ declare class StrStatic {
13
13
  padBoth(string: string, length: number, chars?: string): string;
14
14
  padLeft(string: string, length: number, chars?: string): string;
15
15
  padRight(string: string, length: number, chars?: string): string;
16
- readable(string: string): string;
16
+ human(string: string): string;
17
17
  studly(string: string): string;
18
18
  snake(string: string): string;
19
19
  title(string: string): string;