assemblerjs 0.9.1 → 0.9.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/dist/index.d.ts +2 -1
- package/dist/index.mjs +2 -1
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
|
@@ -57,7 +57,7 @@ export declare abstract class AbstractAssembler extends AbstractEventManager {
|
|
|
57
57
|
abstract use<T>(identifier: string | symbol, object: T): T;
|
|
58
58
|
abstract prepareInitHook<T = AbstractAssemblage>(instance: T, configuration?: Record<string, any>): unknown[];
|
|
59
59
|
abstract has<T>(identifier: Identifier<T>): boolean;
|
|
60
|
-
abstract require<T>(identifier: Identifier<T> | string | symbol): T;
|
|
60
|
+
abstract require<T>(identifier: Identifier<T> | string | symbol, configuration?: Record<string, any>): T;
|
|
61
61
|
abstract concrete<T>(identifier: Identifier<T>): Concrete<T> | undefined;
|
|
62
62
|
abstract tagged(...tags: string[]): any[];
|
|
63
63
|
abstract dispose(): void;
|
|
@@ -123,6 +123,7 @@ export declare interface AssemblageDefinition {
|
|
|
123
123
|
use?: InstanceInjection<unknown>[];
|
|
124
124
|
tags?: string | string[];
|
|
125
125
|
metadata?: Record<string, any>;
|
|
126
|
+
[key: string]: any;
|
|
126
127
|
}
|
|
127
128
|
|
|
128
129
|
/**
|
package/dist/index.mjs
CHANGED
|
@@ -798,7 +798,8 @@ class Assembler extends EventManager {
|
|
|
798
798
|
throw new Error(`Class with identifier '${e.name}' has not been registered or is a circular dependency.`);
|
|
799
799
|
}
|
|
800
800
|
const i = this.injectables.get(e);
|
|
801
|
-
|
|
801
|
+
const s = i.build(t);
|
|
802
|
+
return s;
|
|
802
803
|
}
|
|
803
804
|
}
|
|
804
805
|
}
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "assemblerjs",
|
|
3
3
|
"description": "A general purpose Dependency Injection library for node and browser.",
|
|
4
|
-
"version": "0.9.
|
|
4
|
+
"version": "0.9.2",
|
|
5
5
|
"author": "Benoît LAHOZ <info@benoitlahoz.io>",
|
|
6
6
|
"bugs": "https://github.com/benoitlahoz/assemblerjs/issues",
|
|
7
7
|
"homepage": "https://github.com/benoitlahoz/assemblerjs#README",
|