@luminix/support 1.0.0 → 1.1.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,10 +1,11 @@
1
1
  {
2
2
  "name": "@luminix/support",
3
- "version": "1.0.0",
3
+ "version": "1.1.0",
4
4
  "main": "dist/support.cjs",
5
5
  "module": "dist/support.js",
6
6
  "types": "types/index.d.ts",
7
7
  "type": "module",
8
+ "repository": "luminix-cms/support",
8
9
  "scripts": {
9
10
  "prebuild": "rm -rf types",
10
11
  "build": "tsc && vite build",
@@ -23,6 +23,7 @@ export default class Application<TContainers extends Record<string, any> = Recor
23
23
  bind<K extends keyof TContainers>(abstract: K, concrete: () => TContainers[K]): void;
24
24
  singleton<K extends keyof TContainers>(abstract: K, concrete: () => TContainers[K]): void;
25
25
  instance<K extends keyof TContainers>(abstract: K, instance: TContainers[K]): void;
26
+ has(abstract: string): boolean;
26
27
  make<K extends keyof TContainers & string>(abstract: K): TContainers[K];
27
28
  withConfiguration(configuration: Record<string, any>): this;
28
29
  withProviders(providers: (typeof ServiceProvider)[]): this;
@@ -15,6 +15,7 @@ export declare class ApplicationInterface<TContainers extends Record<string, any
15
15
  loadConfiguration(): void;
16
16
  bind<K extends keyof TContainers>(abstract: K, concrete: () => TContainers[K]): void;
17
17
  singleton<K extends keyof TContainers>(abstract: K, concrete: () => TContainers[K]): void;
18
+ has(abstract: string): boolean;
18
19
  make<K extends keyof TContainers & string>(abstract: K): TContainers[K];
19
20
  withConfiguration(configuration: Record<string, any>): this;
20
21
  withProviders(providers: (typeof ServiceProviderInterface)[]): this;